From 976aa1a04fff81af4939affa80d3357013157353 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期四, 28 七月 2022 16:51:17 +0800 Subject: [PATCH] 文书管理 --- zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml | 77 +++++++++++++++++++++++++++++++------- 1 files changed, 62 insertions(+), 15 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml index 7271917..34368e1 100644 --- a/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml +++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml @@ -166,23 +166,24 @@ }, { label: '浼樻儬/鍏�', name: 'Youhui', labtype: 'txt', hidden: youhuibool, width: 60, - formatter: function (cellvalue, options, rowObject) { - if (rowObject.YouhuiStatus == null || rowObject.YouhuiStatus == 'null' || rowObject.YouhuiStatus == '') { - if (rowObject.ShouliStatus == '1' || rowObject.ChedanStatus == 'A' ) { - if (rowObject.ChedanStatus == 'A') { - return cellvalue; - } else { - return ""; - } + //formatter: function (cellvalue, options, rowObject) { + // if (rowObject.YouhuiStatus == null || rowObject.YouhuiStatus == 'null' || rowObject.YouhuiStatus == '') { + // if (rowObject.ShouliStatus == '1' || rowObject.ChedanStatus == 'A' ) { + // if (rowObject.ChedanStatus == 'A') { + // return cellvalue; + // } else { + // return ""; + // } - } else { - return "<a onclick=\"youhui('" + rowObject.Id + "')\" >浼樻儬</a>"; - } + // } else { + // return "<a onclick=\"youhui('" + rowObject.Id + "')\" >浼樻儬</a>"; + // } - } else { - return cellvalue; - } - } }, + // } else { + // return cellvalue; + // } + //} + }, { label: '鎵撳嵃', name: 'OrderType', labtype: 'txt', hidden: false, width: 60, formatter: function (cellvalue, options, rowObject) { @@ -191,7 +192,53 @@ } }, + { + label: '鎵撳嵃鍚堝悓', name: 'OrderType', labtype: 'txt', hidden: false, width: 60, + formatter: function (cellvalue, options, rowObject) { + if (rowObject.OrderType == '03') { + return "<a onclick=\"OpenWindow('" + rowObject.OrderNo.replace(/'/g, '') + "','100%','100%', '/CooperOrder/Printbiaoshuhetong?id=" + rowObject.Id + "')\" >鎵撳嵃鍚堝悓</a>"; + } + else if (rowObject.OrderType == '02' && (rowObject.OrderType1 == '浠f嫙璐ㄧ枒鍑�' || rowObject.OrderType1 == '浠f嫙鎶曡瘔涔�')) { + return "<a onclick=\"OpenWindow('" + rowObject.OrderNo.replace(/'/g, '') + "','100%','100%', '/CooperOrder/Printzhiyitousuhetong?id=" + rowObject.Id + "')\" >鎵撳嵃鍚堝悓</a>"; + } + else if (rowObject.OrderType == '05') { + return "<a onclick=\"OpenWindow('" + rowObject.OrderNo.replace(/'/g, '') + "','100%','100%', '/CooperOrder/Printhuiyuanhetong?id=" + rowObject.Id + "')\" >鎵撳嵃鍚堝悓</a>"; + } + else if (rowObject.OrderType == '08') { + return "<a onclick=\"OpenWindow('" + rowObject.OrderNo.replace(/'/g, '') + "','100%','100%', '/CooperOrder/Printfengxianhetong?id=" + rowObject.Id + "')\" >鎵撳嵃鍚堝悓</a>"; + } + else { + return ""; + } + + + + + } + }, + + { + label: '鏂板璁㈠崟', name: 'dingdantype', labtype: 'txt', hidden: false, width: 60, + formatter: function (cellvalue, options, rowObject) { + if (rowObject.OrderType == '02' && rowObject.OrderType1 == '浠f嫙璐ㄧ枒鍑�' ) { + return "<a onclick=\"OpenWindow('浠f嫙鎶曡瘔涔�','100%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "&dingdantype=1')\" >浠f嫙鎶曡瘔涔�</a>"; + } + else if (rowObject.OrderType == '02' && rowObject.OrderType1 == '浠f嫙鎶曡瘔涔�') { + return "<a onclick=\"OpenWindow('澶嶈璇夎','100%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "&dingdantype=2')\" >澶嶈璇夎</a>"; + } + else if (rowObject.OrderType == '08' && rowObject.OrderType1 == '澶嶈璇夎') { + return "<a onclick=\"OpenWindow('澶嶈璇夎','100%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "&dingdantype=3')\" >澶嶈璇夎</a>"; + } + else { + return ""; + } + + + + + } + }, ]; -- Gitblit v1.9.1