| | |
| | | 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 }, |
| | |
| | | if (rowObject.Fblx != null && rowObject.Fblx != '') { |
| | | color = "red"; |
| | | } |
| | | if (rowObject.Creater != null && rowObject.Creater == '111') { |
| | | color = "orange"; |
| | | } |
| | | |
| | | return "<a onclick=\"OpenWindow('" + cellvalue + "','98%','100%', '/Project/Add?id=" + rowObject.Id + "')\" ><span style='color:" + color + ";'>" + cellvalue + "</span></a>"; |
| | | 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: 140 }, |
| | | { |
| | |
| | | { 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?StartTimestar=" + Baomingtimebegin + "|" + Baomingtimeend +"@(string.IsNullOrEmpty(Creater11) ?"":"&Creater="+ Creater11)"; |
| | | searchCol = [ |
| | |
| | | { label: '项目名称', name: 'Name', labtype: 'txt', hidden: false }, |
| | | { label: '评审专家', name: 'Zhuanjia', labtype: 'txt', hidden: false/*, cwidth: '8.5%', cccwidth: '15%' */ }, |
| | | |
| | | { label: '采购代理人', name: 'Caigourenname', labtype: 'txt', hidden: false }, |
| | | { label: '采购人', name: 'Caigourenname', labtype: 'txt', hidden: false }, |
| | | { label: '采购代理机构', name: 'Dailiname', labtype: 'txt', hidden: false }, |
| | | |
| | | { label: '采购方式', name: 'Cgfs', labtype: 'combox', hidden: false, data: JSON.parse(projectDropDown) }, |
| | |
| | | { 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 |
| | | 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) { |
| | |
| | | $("#PBSReasonname").parent().after("<br>"); |
| | | $("#PBSCreater").parent().next().remove(); |
| | | $("#PBSFenchadayu").parent().after("<br>"); |
| | | |
| | | $("#PBSShifouqueren").parent().next().remove(); |
| | | |
| | | $("#PBSStartTimestarend").val(Baomingtimeend); |
| | | |