From 19bc2e140fbef74cf87f8e0edfb2d173b1f52d40 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期一, 29 八月 2022 13:06:20 +0800 Subject: [PATCH] 提交 --- zhengcaioa/zhengcaioa/Views/Project/Select.cshtml | 22 ++++++++++++++-------- 1 files changed, 14 insertions(+), 8 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/Project/Select.cshtml b/zhengcaioa/zhengcaioa/Views/Project/Select.cshtml index b45e2d4..aff4513 100644 --- a/zhengcaioa/zhengcaioa/Views/Project/Select.cshtml +++ b/zhengcaioa/zhengcaioa/Views/Project/Select.cshtml @@ -23,18 +23,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 +56,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 +73,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('銆�'); -- Gitblit v1.9.1