From 15eb82df2d6ec539e9d4245bfe08d531e8eb6379 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期日, 27 四月 2025 14:33:26 +0800
Subject: [PATCH] 修改培训订单占多个座位
---
zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml | 33 ++++++++++++++++++++-------------
1 files changed, 20 insertions(+), 13 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml
index 2627445..a920611 100644
--- a/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml
@@ -35,7 +35,7 @@
shoulibool = false;
} else if (pageEntitiesJson[i].PageName == "鎾ゅ崟") {
chedanbool = false;
- } else if (pageEntitiesJson[i].PageName == "瀹屽伐") {
+ } else if (pageEntitiesJson[i].PageName == "纭璁㈠崟") {
wangongbool = false;
} else if (pageEntitiesJson[i].PageName == "閫佽揣") {
songhuobool = false;
@@ -55,10 +55,15 @@
{
label: '璁㈠崟鍙�', name: 'OrderNo', labtype: 'txt', hidden: false, width: 100,
formatter: function (cellvalue, options, rowObject) {
+ var color = "";
+ if (rowObject.OrderType == '08') {
+ color = "red";
+ }
+
if (rowObject.ShouliStatus == "A") {
- return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "&ShouliStatus=" + rowObject.ShouliStatus + "')\" >" + cellvalue + "</a>";
+ return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "&ShouliStatus=" + rowObject.ShouliStatus + "')\" ><span style='color:" + color + ";'>" + cellvalue + "</span></a>";
} else {
- return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "&ShouliStatus=" + rowObject.ShouliStatus + "')\" >" + cellvalue + "</a>";
+ return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "&ShouliStatus=" + rowObject.ShouliStatus + "')\" ><span style='color:" + color + ";'>" + cellvalue + "</span></a>";
}
}
@@ -83,6 +88,7 @@
{ label: '閲戦', name: 'Money', labtype: 'txt', hidden: false, width: 60 },
{ label: '璁㈠崟鐘舵��', name: 'ShouliStatusName', labtype: 'txt', hidden: false, width: 60 },
+ { label: '鍒跺崟浜�', name: 'CreaterName', labtype: 'txt', hidden: false, width: 60 },
{
label: '鍙楃悊', name: 'ShouliStatus', labtype: 'txt', hidden: shoulibool, width: 60,
formatter: function (cellvalue, options, rowObject) {
@@ -110,15 +116,15 @@
}
},
{
- label: '瀹屽伐', name: 'WangongStatusName', labtype: 'txt', hidden: true, width: 60,
+ label: '纭璁㈠崟', name: 'WangongStatusName', labtype: 'txt', hidden: false, width: 60,
formatter: function (cellvalue, options, rowObject) {
- if (rowObject.ShouliStatus == '4' || rowObject.ShouliStatus == '5' ) {
+ if (rowObject.WangongStatus == 'A' ) {
return "鈭�";
} else {
- if (rowObject.ShouliStatus == '1' || rowObject.ChedanStatus == 'A') {
+ if (rowObject.ShouliStatus == '1' || rowObject.ChedanStatus == 'A' || rowObject.OrderType != '08' ) {
return "";
} else {
- return "<a onclick=\"wangong('" + rowObject.Id + "')\" >瀹屽伐</a>";
+ return "<a onclick=\"wangong('" + rowObject.Id + "')\" >纭璁㈠崟</a>";
}
}
@@ -263,7 +269,7 @@
{ label: '璁㈠崟鐘舵��', name: 'ShouliStatus', labtype: 'combox', hidden: false, data: JSON.parse(ShouliStatus), cwidth: '5%', cccwidth: '8%' },
-
+ { label: '鍒跺崟浜�', name: 'Creater', labtype: 'combox', hidden: false, data: JSON.parse(users), cwidth: '5%', cccwidth: '8%' },
@@ -322,7 +328,7 @@
}
function chedan(id) {
- OpenWindow("鎾ゅ崟", "20%", "30%", "/CooperOrder/Chedan?id=" + id);
+ OpenWindow("鎾ゅ崟", "50%", "60%", "/CooperOrder/Chedan?id=" + id);
}
function huifang(id) {
@@ -384,7 +390,7 @@
var index = layer.open({
type: 1,銆�銆�//鍩烘湰灞傜被鍨�
icon: 0, //鍥炬爣
- content: '纭瀹屽伐锛�', //鍐呭
+ content: '纭璁㈠崟锛�', //鍐呭
shade: 0.3, //閬僵,濡傛灉鎯冲畾涔夊埆鐨勯鑹�,鍙互shade:[0.5,'#fff']
shadeClose: 1, //鏄惁鐐瑰嚮閬僵鍏抽棴
skin: 'demoClass', //鏍峰紡绫诲悕
@@ -403,16 +409,16 @@
success: function (data) {
if (data.Result) {
- toastr.success("瀹屽伐鎴愬姛");
+ toastr.success("纭璁㈠崟");
window._reloadPageData();
} else {
- toastr.error("瀹屽伐澶辫触" + data.Message);
+ toastr.error("纭璁㈠崟澶辫触" + data.Message);
}
},
error: function () {
- toastr.error("瀹屽伐澶辫触");
+ toastr.error("纭璁㈠崟澶辫触");
}
});
},
@@ -474,6 +480,7 @@
}
+ jQuery("#jqGrid").jqGrid("footerData", "set", { KhdwName: "<font color='darkgoldenrod'>--褰撻〉鍚堣--</font> </br> <font color='darkgoldenrod'>--鍚堣--</font>", OrderNum: "<font color='darkgoldenrod'>" + xhr.DangyeHeji1 + "</font></br><font color='darkgoldenrod'>" + xhr.Heji1 + "</font>", Price: "<font color='darkgoldenrod'>" + xhr.DangyeHeji2 + "</font></br><font color='darkgoldenrod'>" + xhr.Heji2 + "</font>", Money: "<font color='darkgoldenrod'>" + xhr.DangyeHeji3 + "</font></br><font color='darkgoldenrod'>" + xhr.Heji3 + "</font>", Youhui: "<font color='darkgoldenrod'>" + xhr.DangyeHeji4 + "</font></br><font color='darkgoldenrod'>" + xhr.Heji4 + "</font>"});
};
</script>
--
Gitblit v1.9.1