From 1599039b5665dda2a480d5a62976d6d752ec63e0 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 26 七月 2022 09:12:24 +0800
Subject: [PATCH] 提交
---
zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml | 56 +++++++++++++++++++++++++++++++++++++++++---------------
1 files changed, 41 insertions(+), 15 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml
index 7271917..f6743f1 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,6 +192,31 @@
}
},
+ {
+ 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 "";
+ }
+
+
+
+
+ }
+ },
];
--
Gitblit v1.9.1