From 4deba85ff3417a76b4cfef1874effa6a2be1fd40 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 11 十一月 2022 09:24:28 +0800
Subject: [PATCH] 撤单退款修改
---
zhengcaioa/zhengcaioa/Views/IntentionCustomer/Index.cshtml | 69 ++++++++++++++++++++++++++++------
1 files changed, 56 insertions(+), 13 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Views/IntentionCustomer/Index.cshtml b/zhengcaioa/zhengcaioa/Views/IntentionCustomer/Index.cshtml
index 13788e4..960ce94 100644
--- a/zhengcaioa/zhengcaioa/Views/IntentionCustomer/Index.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/IntentionCustomer/Index.cshtml
@@ -1,6 +1,11 @@
-锘緻{
+锘緻using DTO;
+@{
ViewBag.Title = "IntentionCustomer";
Layout = "~/Views/Shared/_Layout_Search.cshtml";
+
+ List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
+
+ string Creater11 = ViewData["Creater11"] as string;
}
@section headerStyle{
<script type="text/javascript">
@@ -10,7 +15,11 @@
var users = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.users))';
var shengDropDown = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.ShengDropDown))';
var Creater = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Creater))';
- var shifou = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.shifou))';
+ var shifou = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.shifou))';
+
+ var Baomingtimebegin = '@Html.Raw(ViewBag.Baomingtimebegin)';
+ var Baomingtimeend = '@Html.Raw(ViewBag.Baomingtimeend)';
+
loseherght = 60;
gridConfig = { multiselect: true, selectcol: "Id" };
dataCol = [
@@ -32,12 +41,12 @@
{
label: '瀹㈡埛璁块棶', name: 'Name111', labtype: 'txt', hidden: false, width: 100,
formatter: function (cellvalue, options, rowObject) {
- return "<a onclick=\"OpenWindow('鏂板鎰忓悜瀹㈡埛鎷滆','98%','100%', '/IntentionVisit/Edit?id=&Viscustomer=" + rowObject.Id + "')\" >瀹㈡埛璁块棶</a>";
+ return "<a class='Fangwen' style='display: none;' onclick=\"OpenWindow('鏂板鎰忓悜瀹㈡埛鎷滆','98%','100%', '/IntentionVisit/Edit?id=&Viscustomer=" + rowObject.Id + "')\" >瀹㈡埛璁块棶</a>";
}
},
];
- dataUrl = "/IntentionCustomer/GetList";
+ dataUrl = "/IntentionCustomer/GetList?Createtime=" + Baomingtimebegin + "|" + Baomingtimeend +"@(string.IsNullOrEmpty(Creater11) ?"": "&Ywjl=" + Creater11)";
searchCol = [
{ label: '瀹㈡埛鏉ユ簮', name: 'Khly', labtype: 'combox', hidden: false, data: JSON.parse(khlys), cwidth: '5%', cccwidth: '8%' },
{ label: '琛屼笟鍒嗙被', name: 'Hyfl', labtype: 'combox', hidden: false, data: JSON.parse(hyfls), cwidth: '5%', cccwidth: '15%' },
@@ -59,6 +68,18 @@
OpenWindow("鏂板鎰忓悜瀹㈡埛", "98%", "100%", "/IntentionCustomer/Edit/");
}
+ var _pageSearch = function () {
+ $("#jqGrid").jqGrid('setGridParam', {
+ url: dataUrl = "/IntentionCustomer/GetList"+"@(string.IsNullOrEmpty(Creater11) ?"": "?Ywjl=" + Creater11)", postData: jsons, page: 1
+ }); //閲嶆柊杞藉叆
+ var jsons = GetSearchEnd();
+ if (jsons == false) {
+ msg.info("璇峰綍鍏ユ煡璇㈡潯浠�");
+ return false;
+ }
+ LoadGrid(jsons);
+ }
+
var _pagePrint = function () {
var Khly = $("#PBSKhly").val();
@@ -74,7 +95,7 @@
var Creater = $("#PBSCreater").val();
var Shifouweixin = $("#PBSShifouweixin").val();
-
+
var url = "/IntentionCustomer/print?Khly=" + Khly + "&Hyfl=" + Hyfl + "&Khlx=" + Khlx + "&Ywjl=" + Ywjl + "&Sheng=" + Sheng + "&City=" + City + "&AreaId=" + AreaId + "&Name=" + Name + "&Createtime=" + Createtime
@@ -221,9 +242,9 @@
-
-
+
+
}
@@ -245,7 +266,20 @@
toastr.error("鍒犻櫎澶辫触");
/**/
}
-}
+ }
+ var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))';
+ var _afterLoadDataload = function (xhr) {
+ var data = JSON.parse(ActionInfo22);
+ for (var o in data) {
+ //alert(o);
+ //alert(data[o]);
+ /* alert("PageShortcut:" + data[o].PageShortcut + " PageName:" + data[o].PageName);*/
+ $("." + data[o].PageShortcut).show();
+
+ }
+
+
+ };
</script>
}
@@ -256,7 +290,7 @@
var msg = $("#PBSSheng");
-
+
if (msg.length > 0) {
$("#PBSSheng").change(function () {
var sheng = $("#PBSSheng").val();
@@ -267,7 +301,7 @@
global: false,
data: "",
success: function (data) {
-
+
var city = $("#PBSCity");
city.find('option').remove();
var aaa = '<option value="" hassubinfo="true"> </option>';
@@ -291,7 +325,8 @@
} else {
setTimeout(send, 1000);
- } }
+ }
+ }
send();
@@ -302,7 +337,7 @@
var msg = $("#PBSCity");
-
+
if (msg.length > 0) {
$("#PBSCity").change(function () {
@@ -314,7 +349,7 @@
global: false,
data: "",
success: function (data) {
-
+
var quxian = $("#PBSAreaId");
quxian.find('option').remove();
var aaa = '<option value="" hassubinfo="true"> </option>';
@@ -345,7 +380,15 @@
sendCity();
+ $(function () {
+
+ $("#PBSCreatetimeend").val(Baomingtimeend);
+
+ $("#PBSCreatetimestart").val(Baomingtimebegin);
+
+ });
+
</script>
}
--
Gitblit v1.9.1