From 378725af30f2ccf5007f80c553865be2b39f727a Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 18 十月 2022 17:09:58 +0800
Subject: [PATCH] 修改数据库地址

---
 zhengcaioa/zhengcaioa/Views/Project/Select.cshtml |   65 +++++++++++++++++++++++++++-----
 1 files changed, 54 insertions(+), 11 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/Project/Select.cshtml b/zhengcaioa/zhengcaioa/Views/Project/Select.cshtml
index b45e2d4..0cdf0e0 100644
--- a/zhengcaioa/zhengcaioa/Views/Project/Select.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/Project/Select.cshtml
@@ -14,7 +14,8 @@
         var Creater = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Creater))';
         var flbx = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.flbx))';
         var ShiFouyReasonname = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.ShiFouyReasonname))';
-
+          var Baomingtimebegin = '@Html.Raw(ViewBag.Baomingtimebegin)';
+        var Baomingtimeend = '@Html.Raw(ViewBag.Baomingtimeend)';
 
         loseherght = 110;
         dataCol = [
@@ -23,18 +24,24 @@
             {
                 label: '鍏憡鏃堕棿', name: 'StartTime', labtype: 'txt', hidden: false, width: 90 ,
                 formatter: function (v) {
-                    return $.trim(v) == '' ? '' : $.trim(v).replace("T"," ") //.substring(0,10);
+                    return $.trim(v) == '' ? '' : $.trim(v).substring(0, 10); //$.trim(v).replace("T"," ")
                 }
             },
-            { label: '椤圭洰鍖哄煙', name: 'Sheng', labtype: 'txt', hidden: false, width: 100  },
+            { label: '椤圭洰鍖哄煙', name: 'Sheng', labtype: 'txt', hidden: false, width: 160  },
             {
-                label: '椤圭洰鍚嶇О', name: 'Name', labtype: 'txt', hidden: false, width: 400 ,
+                label: '椤圭洰鍚嶇О', name: 'Name', labtype: 'txt', hidden: false, width: 500 ,
                 formatter: function (cellvalue, options, rowObject) {
-                    return "<a onclick=\"OpenWindow('" + cellvalue + "','98%','100%', '/Project/Add?id=" + rowObject.Id + "')\"  >" + cellvalue + "</a>";
+
+                    var color = "";
+                    if (rowObject.Fblx != null && rowObject.Fblx != '') {
+                        color = "red";
+                    }
+
+                    return "<a onclick=\"OpenWindow('" + cellvalue + "','98%','100%', '/Project/Add?id=" + rowObject.Id + "')\"  ><span style='color:" + color + ";'>" + cellvalue + "</span></a>";
                 }
-            }, { label: '椤圭洰缂栧彿', name: 'Number', labtype: 'txt', hidden: false, width: 100 },
+            }, { label: '椤圭洰缂栧彿', name: 'Number', labtype: 'txt', hidden: false, width: 140 },
             {
-                label: '涓爣渚涘簲鍟�', name: 'Toubiaocishu', labtype: 'txt', hidden: false, width: 400,
+                label: '涓爣渚涘簲鍟�', name: 'Toubiaocishu', labtype: 'txt', hidden: false, width: 200,
                 formatter: function (cellvalue, options, rowObject) {
                     if (cellvalue != null && cellvalue != "null" && cellvalue != "") {
                         var ss = cellvalue.split('銆�');
@@ -50,7 +57,7 @@
                 }
             },
             {
-                label: '绗簩鍊欓��', name: 'Drhx', labtype: 'txt', hidden: false, width: 400,
+                label: '绗簩鍊欓��', name: 'Drhx', labtype: 'txt', hidden: false, width: 200,
                 formatter: function (cellvalue, options, rowObject) {
                     if (cellvalue != null && cellvalue != "null" && cellvalue != "") {
                         var ss = cellvalue.split('銆�');
@@ -67,7 +74,7 @@
                 }
             },
             {
-                label: '绗笁鍊欓��', name: 'Dshx', labtype: 'txt', hidden: false, width: 400,
+                label: '绗笁鍊欓��', name: 'Dshx', labtype: 'txt', hidden: false, width: 200,
                 formatter: function (cellvalue, options, rowObject) {
                     if (cellvalue != null && cellvalue != "null" && cellvalue != "") {
                         var ss = cellvalue.split('銆�');
@@ -86,9 +93,28 @@
             { label: '鎶曟爣娆℃暟', name: 'Toubiaocishu', labtype: 'txt', hidden: true },
             { label: '涓爣娆℃暟', name: 'Zhongbiaocishu', labtype: 'txt', hidden: true },
             { label: '搴熸爣娆℃暟', name: 'Feibiaocishu', labtype: 'txt', hidden: true },
-            { label: '涓爣閲戦', name: 'Zhongbiaojine', labtype: 'txt', hidden: true }
+            { label: '涓爣閲戦', name: 'Zhongbiaojine', labtype: 'txt', hidden: true },
+            {
+                label: '璐ㄧ枒', name: 'Zhiyistatus', labtype: 'txt', hidden: false, width: 60,
+                formatter: function (cellvalue, options, rowObject) {
+
+                    
+
+                    return "<a onclick=\"OpenWindow('" + rowObject.Name + "','98%','100%', '/Project/Add?id=" + rowObject.Id + "')\"  >" + cellvalue + "</a>";
+                }
+            },
+            {
+                label: '鎶曡瘔', name: 'Tousustatus', labtype: 'txt', hidden: false, width: 60,
+                formatter: function (cellvalue, options, rowObject) {
+
+                    
+
+                    return "<a onclick=\"OpenWindow('" + rowObject.Name + "','98%','100%', '/Project/Add?id=" + rowObject.Id + "')\"  >" + cellvalue + "</a>";
+                }
+            },
+
         ];
-        dataUrl = "/Project/GetLiaotianList"+"@(string.IsNullOrEmpty(Creater11) ?"":"?Creater="+ Creater11)";
+        dataUrl = "/Project/GetLiaotianList?StartTimestar=" + Baomingtimebegin + "|" + Baomingtimeend +"@(string.IsNullOrEmpty(Creater11) ?"":"&Creater="+ Creater11)";
         searchCol = [
             //{ label: '鍏憡鏃堕棿', name: 'StartTimestar', labtype: 'date', hidden: false },
             //{ label: '--', name: 'StartTimeend', labtype: 'date', hidden: false, cwidth: '1%', cccwidth: '15%' },
@@ -123,6 +149,18 @@
         ];
         var _pageAdd = function () {
             OpenWindow("鏂板椤圭洰", "98%", "90%", "/Project/Add/");
+        }
+
+        var _pageSearch = function () {
+            $("#jqGrid").jqGrid('setGridParam', {
+                url: dataUrl = "/Project/GetLiaotianList"+"@(string.IsNullOrEmpty(Creater11) ?"":"?Creater="+ Creater11)", postData: jsons, page: 1
+            }); //閲嶆柊杞藉叆
+            var jsons = GetSearchEnd();
+            if (jsons == false) {
+                msg.info("璇峰綍鍏ユ煡璇㈡潯浠�");
+                return false;
+            }
+            LoadGrid(jsons);
         }
 
         var _afterSave = function (result) {
@@ -253,6 +291,11 @@
             $("#PBSCreater").parent().next().remove();
             $("#PBSFenchadayu").parent().after("<br>");
 
+
+            $("#PBSStartTimestarend").val(Baomingtimeend);
+
+            $("#PBSStartTimestarstart").val(Baomingtimebegin);
+
         });
 
     </script>

--
Gitblit v1.9.1