From 1243f9cdb1ce367af05caabbb71ce81e38d5a1af Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 16 四月 2025 16:16:43 +0800
Subject: [PATCH] 增加一种报名类型
---
zhengcaioa/zhengcaioa/Views/Project/Select.cshtml | 236 ++++++++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 203 insertions(+), 33 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Views/Project/Select.cshtml b/zhengcaioa/zhengcaioa/Views/Project/Select.cshtml
index f88d9fa..3d3cb78 100644
--- a/zhengcaioa/zhengcaioa/Views/Project/Select.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/Project/Select.cshtml
@@ -1,54 +1,207 @@
-锘緻{
+锘緻using DTO;
+@{
ViewBag.Title = "Liaotian";
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">
var projectDropDown = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.ProjectDropDown))';
var shengDropDown = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.ShengDropDown))';
var Creater = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Creater))';
- loseherght = 60;
+ var flbx = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.flbx))';
+ var ShiFouyReasonname = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.ShiFouyReasonname))';
+ var Baomingtimebegin = '@Html.Raw(ViewBag.Baomingtimebegin)';
+ var Baomingtimeend = '@Html.Raw(ViewBag.Baomingtimeend)';
+ var wanshan = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.wanshan))';
+ loseherght = 110;
dataCol = [
{ label: 'id', name: 'Id', labtype: 'txt', hidden: true },
{
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.replace(/'/g, '') + "','98%','100%', '/Project/Add?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>";
+
+ var color = "";
+ if (rowObject.Fblx != null && rowObject.Fblx != '') {
+ color = "red";
+ }
+ if (rowObject.Creater != null && rowObject.Creater == '111') {
+ color = "orange";
+ }
+
+ return "<a onclick=\"OpenWindow('" + cellvalue.replaceAll("\"", "") + "','98%','100%', '/Project/Add?id=" + rowObject.Id + "')\" ><span style='color:" + color + ";'>" + cellvalue.replaceAll("\"", "") + "</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: 200,
+ formatter: function (cellvalue, options, rowObject) {
+ if (cellvalue != null && cellvalue != "null" && cellvalue != "") {
+ var ss = cellvalue.split('銆�');
+ var result = "";
+ for (var i = 0;i < ss.length; i++){
+ result += "<a onclick=\"OpenWindow('" + ss[i] + "','98%','100%', '/IntentionCustomer/EditByName?name=" + ss[i] + "')\" >" + ss[i] + "</a> ";
+ }
+
+ return result;
+ } else {
+ return "";
+ }
+ }
+ },
+ {
+ label: '绗簩鍊欓��', name: 'Drhx', labtype: 'txt', hidden: false, width: 200,
+ formatter: function (cellvalue, options, rowObject) {
+ if (cellvalue != null && cellvalue != "null" && cellvalue != "") {
+ var ss = cellvalue.split('銆�');
+ var result = "";
+ for (var i = 0; i < ss.length; i++) {
+ result += "<a onclick=\"OpenWindow('" + ss[i] + "','98%','100%', '/IntentionCustomer/EditByName?name=" + ss[i] + "')\" >" + ss[i] + "</a> ";
+ }
+
+ return result;
+ } else {
+ return "";
+ }
+
+ }
+ },
+ {
+ label: '绗笁鍊欓��', name: 'Dshx', labtype: 'txt', hidden: false, width: 200,
+ formatter: function (cellvalue, options, rowObject) {
+ if (cellvalue != null && cellvalue != "null" && cellvalue != "") {
+ var ss = cellvalue.split('銆�');
+ var result = "";
+ for (var i = 0; i < ss.length; i++) {
+ result += "<a onclick=\"OpenWindow('" + ss[i] + "','98%','100%', '/IntentionCustomer/EditByName?name=" + ss[i] + "')\" >" + ss[i] + "</a> ";
+ }
+
+ return result;
+ } else {
+ return "";
+ }
+ }
+ },
{ label: '璇勫涓撳', name: 'Zhuanjia', labtype: 'txt', hidden: false, width: 400 },
{ label: '鎶曟爣娆℃暟', name: 'Toubiaocishu', labtype: 'txt', hidden: true },
{ label: '涓爣娆℃暟', name: 'Zhongbiaocishu', labtype: 'txt', hidden: true },
{ label: '搴熸爣娆℃暟', name: 'Feibiaocishu', labtype: 'txt', hidden: true },
- { label: '涓爣閲戦', name: 'Zhongbiaojine', labtype: 'txt', hidden: true }
+ { label: '涓爣閲戦', name: 'Zhongbiaojine', labtype: 'txt', hidden: true },
+ {
+ label: '璐ㄧ枒', name: 'Zhiyistatus', labtype: 'txt', hidden: false, width: 60,
+ formatter: function (cellvalue, options, rowObject) {
+
+
+
+ return "<a onclick=\"OpenWindow('" + rowObject.Name + "','98%','100%', '/Project/Add?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>";
+ }
+ },
+ {
+ label: '鎶曡瘔', name: 'Tousustatus', labtype: 'txt', hidden: false, width: 60,
+ formatter: function (cellvalue, options, rowObject) {
+
+
+
+ return "<a onclick=\"OpenWindow('" + rowObject.Name + "','98%','100%', '/Project/Add?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>";
+ }
+ },
+
];
- dataUrl = "/Project/GetLiaotianList";
+ dataUrl = "/Project/GetLiaotianList?StartTimestar=" + Baomingtimebegin + "|" + Baomingtimeend +"@(string.IsNullOrEmpty(Creater11) ?"":"&Creater="+ Creater11)";
searchCol = [
- { label: '鍏憡鏃堕棿', name: 'StartTimestar', labtype: 'date', hidden: false },
- { label: '--', name: 'StartTimeend', labtype: 'date', hidden: false, cwidth: '1%', cccwidth: '15%' },
- { label: '椤圭洰缂栧彿', name: 'Number', labtype: 'txt', hidden: false },
+ //{ label: '鍏憡鏃堕棿', name: 'StartTimestar', labtype: 'date', hidden: false },
+ //{ label: '--', name: 'StartTimeend', labtype: 'date', hidden: false, cwidth: '1%', cccwidth: '15%' },
+ { label: '鍏憡鏃堕棿', name: 'StartTimestar', labtype: 'datearea', hidden: false },
+ { label: '鐪�', name: 'Sheng', labtype: 'combox', hidden: false, data: JSON.parse(shengDropDown), cwidth: '2%', cccwidth: '6%' },
+ { label: '', name: 'City', labtype: 'combox', hidden: false, data: JSON.parse('[]'), cwidth: '0%', cccwidth: '6%' },
+ { label: '', name: 'AreaId', labtype: 'combox', hidden: false, data: JSON.parse('[]'), cwidth: '0%', cccwidth: '6%' },
+ //{ label: '椤圭洰缂栧彿', name: 'Number', labtype: 'txt', hidden: false },
{ label: '椤圭洰鍚嶇О', name: 'Name', labtype: 'txt', hidden: false },
+ { label: '璇勫涓撳', name: 'Zhuanjia', labtype: 'txt', hidden: false/*, cwidth: '8.5%', cccwidth: '15%' */ },
- { label: '鐪�', name: 'Sheng', labtype: 'combox', hidden: false, data: JSON.parse(shengDropDown), cwidth: '5%', cccwidth: '8%' },
- { label: '甯�', name: 'City', labtype: 'combox', hidden: false, data: JSON.parse('[]'), cwidth: '1%', cccwidth: '8%' },
- { label: '鍖哄幙', name: 'AreaId', labtype: 'combox', hidden: false, data: JSON.parse('[]'), cwidth: '2%', cccwidth: '8%' },
- { label: '璇勫涓撳', name: 'Zhuanjia', labtype: 'txt', hidden: false, cwidth: '8.5%', cccwidth: '15%' },
- { label: '渚涘簲鍟�', name: 'Names', labtype: 'txt', hidden: false },
+ { label: '閲囪喘浜�', name: 'Caigourenname', labtype: 'txt', hidden: false },
+ { label: '閲囪喘浠g悊鏈烘瀯', name: 'Dailiname', labtype: 'txt', hidden: false },
+
{ label: '閲囪喘鏂瑰紡', name: 'Cgfs', labtype: 'combox', hidden: false, data: JSON.parse(projectDropDown) },
- { label: '褰曞叆鏃堕棿', name: 'Createtime', labtype: 'datearea', hidden: false },
- { label: '褰曞叆浜�', name: 'Creater', labtype: 'combox', hidden: false, data: JSON.parse(Creater), cwidth: '5%', cccwidth: '8%' },
+ { label: '鏄惁搴熸爣', name: 'fblx', labtype: 'combox', hidden: false, data: JSON.parse(flbx)/*, cwidth: '5%', cccwidth: '8%' */ },
+ { label: '涓爣渚涘簲鍟�', name: 'Names', labtype: 'txt', hidden: false },
+ { label: '鎶曟爣渚涘簲鍟�', name: 'NamesToubiao', labtype: 'txt', hidden: false },
+ { label: '鏄惁鏈夋棤鏁堜緵搴斿晢', name: 'ShiFouyReasonname', labtype: 'combox', hidden: false, data: JSON.parse(ShiFouyReasonname), cwidth: '8%', cccwidth: '12%'},
+ { label: '鏃犳晥渚涘簲鍟�', name: 'Reasonname', labtype: 'txt', hidden: false },
+ { label: '褰曞叆鏃堕棿', name: 'Createtime', labtype: 'datearea', hidden: false },
+ { label: '褰曞叆浜�', name: 'Creater', labtype: 'combox', hidden: false, data: JSON.parse(Creater)/*, cwidth: '5%', cccwidth: '8%'*/ },
+
+ { label: '鍒嗗樊灏忎簬', name: 'Fencha', labtype: 'txt', hidden: false/*, cwidth: '8.5%', cccwidth: '15%' */ },
+ { label: '鍒嗗樊澶т簬', name: 'Fenchadayu', labtype: 'txt', hidden: false/*, cwidth: '8.5%', cccwidth: '15%' */ },
+ { label: '渚涘簲鍟嗘暟閲�', name: 'Shuliang', labtype: 'txt', hidden: false/*, cwidth: '8.5%', cccwidth: '15%' */ },
+ //{ label: '浠峰樊灏忎簬', name: 'Baojiachaxiaoyu', labtype: 'txt', hidden: false/*, cwidth: '8.5%', cccwidth: '15%' */ },
+ { label: '鏄惁纭', name: 'Shifouqueren', labtype: 'combox', hidden: false, data: JSON.parse(flbx) },
+ { label: '渚涘簲鍟嗕俊鎭�', name: 'Wanshan', labtype: 'combox', hidden: false, data: JSON.parse(wanshan) },
+
+
+
];
var _pageAdd = function () {
OpenWindow("鏂板椤圭洰", "98%", "90%", "/Project/Add/");
+ }
+
+ var _pageSearch = function () {
+
+ $("#jqGrid").jqGrid('setGridParam', {
+ url: dataUrl = "/Project/GetLiaotianList" + "@(string.IsNullOrEmpty(Creater11) ?"":"?Creater="+ Creater11)", postData: jsons, page: 1
+ }); //閲嶆柊杞藉叆
+
+ $('.ui-pg-input').val(1);
+
+ var jsons = GetSearchEnd();
+ if (jsons == false) {
+ msg.info("璇峰綍鍏ユ煡璇㈡潯浠�");
+ return false;
+ }
+ LoadGrid(jsons);
+ }
+
+
+ function LoadGrid(jdata) {
+
+ var pages = $('.ui-pg-input').val();
+ var paggg = parseInt(pages);
+
+ //alert(paggg);
+
+ if (paggg == NaN || paggg==0 ) {
+ paggg=1
+ }
+
+ var postData = $('#jqGrid').jqGrid("getGridParam", "postData");
+ $.each(lastSearch, function (k, v) {
+ delete postData[k];
+ });
+ lastSearch = jdata;
+ // alert(JSON.stringify(jdata));
+ // $('#jqGrid').jqGrid('clearGridData');
+
+ $.extend(jdata, { totalrows: 0 });
+
+ $("#jqGrid").jqGrid('setGridParam', {
+ postData: jdata, page: paggg
+ }); //閲嶆柊杞藉叆
+ $("#jqGrid").trigger("reloadGrid");
+ // $("#jqGrid").trigger("reloadGrid");
+
+ toSetTooBarVal();
+
}
var _afterSave = function (result) {
@@ -75,10 +228,10 @@
<script type="text/javascript">
function send() {
-
+
var msg = $("#PBSSheng");
-
-
+
+
if (msg.length > 0) {
$("#PBSSheng").change(function () {
var sheng = $("#PBSSheng").val();
@@ -89,7 +242,7 @@
global: false,
data: "",
success: function (data) {
-
+
var city = $("#PBSCity");
city.find('option').remove();
var aaa = '<option value="" hassubinfo="true"> </option>';
@@ -110,12 +263,13 @@
}
});
});
-
+
} else {
setTimeout(send, 1000);
- } }
+ }
+ }
-
+
send();
@@ -123,11 +277,11 @@
function sendCity() {
var msg = $("#PBSCity");
-
-
+
+
if (msg.length > 0) {
$("#PBSCity").change(function () {
-
+
var city = $("#PBSCity").val();
$.ajax({
type: "GET",
@@ -136,7 +290,7 @@
global: false,
data: "",
success: function (data) {
-
+
var quxian = $("#PBSAreaId");
quxian.find('option').remove();
var aaa = '<option value="" hassubinfo="true"> </option>';
@@ -157,7 +311,7 @@
}
});
});
-
+
} else {
setTimeout(sendCity, 1000);
}
@@ -166,8 +320,24 @@
sendCity();
-
-
+
+ $(function () {
+ $("#PBSAreaId").parent().next().remove();
+ $("#PBSZhuanjia").parent().after("<br>");
+ $("#PBSDailiname").parent().next().remove();
+ $("#PBSfblx").parent().after("<br>");
+ $("#PBSNamesToubiao").parent().next().remove();
+ $("#PBSReasonname").parent().after("<br>");
+ $("#PBSCreater").parent().next().remove();
+ $("#PBSFenchadayu").parent().after("<br>");
+ $("#PBSShifouqueren").parent().next().remove();
+
+ $("#PBSStartTimestarend").val(Baomingtimeend);
+
+ $("#PBSStartTimestarstart").val(Baomingtimebegin);
+
+ });
+
</script>
}
--
Gitblit v1.9.1