@{
|
ViewBag.Title = "CooperOrder";
|
Layout = "~/Views/Shared/_Layout_Search.cshtml";
|
}
|
@section headerStyle{
|
<script type="text/javascript">
|
var Wenshuleixing = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Wenshuleixing))';
|
|
var status = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.status))';
|
|
gridConfig = { multiselect: true, selectcol: "Id" };
|
loseherght = 40;
|
dataCol = [
|
{ label: 'id', name: 'Id', labtype: 'txt', hidden: true },
|
{ label: '创建日期', name: 'XdTimeName', labtype: 'txt', hidden: false, width: 100 },
|
{
|
label: '项目编号', name: 'XmCode', labtype: 'txt', hidden: false, width: 100
|
//,
|
//formatter: function (cellvalue, options, rowObject) {
|
// return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/OrderBanciOrder/Edit?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>";
|
//}
|
},
|
{ label: '项目名称', name: 'XmName', labtype: 'txt', hidden: false, width: 100 },
|
{ label: '采购人', name: 'PurchaserName', labtype: 'txt', hidden: false, width: 100 },
|
{ label: '采购代理机构', name: 'Agency', labtype: 'txt', hidden: false, width: 100 },
|
{ label: '客户单位', name: 'KhdwName', labtype: 'txt', hidden: false, width: 100 },
|
{ label: '状态', name: 'StatusName', labtype: 'txt', hidden: false, width: 100 },
|
{
|
label: '查看文书', name: 'Status', labtype: 'txt', hidden: false, width: 100
|
,
|
formatter: function (cellvalue, options, rowObject) {
|
|
if (rowObject.OrderType1 == "代拟投诉书") {
|
return "<a onclick=\"OpenWindow('查看投诉书','98%','100%', '/CooperOrder/Printtousushu?id=" + rowObject.Id + "')\" >查看投诉书</a>";
|
}
|
else if (rowObject.OrderType1 == "代拟质疑函") {
|
return "<a onclick=\"OpenWindow('查看质疑函','98%','100%', '/CooperOrder/PrintZhiyihan?id=" + rowObject.Id + "')\" >查看质疑函</a>";
|
}
|
}
|
},
|
|
|
];
|
dataUrl = "/CooperOrder/GetListWenshu";
|
searchCol = [
|
{ label: '时间', name: 'XdTime', labtype: 'datearea', hidden: false },
|
{ label: '文书类别', name: 'Wenshuleixing', labtype: 'combox', hidden: false, data: JSON.parse(Wenshuleixing) },
|
{ label: '项目名称', name: 'XmName', labtype: 'txt', hidden: false },
|
{ label: '项目编号', name: 'XmCode', labtype: 'txt', hidden: false },
|
|
{ label: '采购人', name: 'PurchaserName', labtype: 'txt', hidden: false },
|
{ label: '采购代理机构', name: 'Agency', labtype: 'txt', hidden: false },
|
{ label: '客户名称', name: 'KhdwName', labtype: 'txt', hidden: false },
|
{ label: '生成状态', name: 'status', labtype: 'combox', hidden: false, data: JSON.parse(status) },
|
|
|
|
|
|
|
|
];
|
//var _pageAdd = function () {
|
// OpenWindow("新增班次", "98%", "90%", "/CooperOrder/Edit/");
|
//}
|
|
|
|
|
var _afterSave = function (result) {
|
if (result) {
|
toastr.success("保存成功");
|
} else {
|
toastr.error("保存失败");
|
}
|
}
|
|
var _afterDel = function (result) {
|
if (result) {
|
toastr.success("删除成功");
|
} else {
|
/**/
|
toastr.error("删除成功");
|
/**/
|
}
|
}
|
|
var _pageDuanxin = function () {
|
var duanxin = GetGridSelect();
|
var baifangid = "";
|
if (duanxin != '') {
|
for (var i = 0; i < duanxin.length; i++) {
|
baifangid += duanxin[i] + ','
|
}
|
baifangid = baifangid.substring(0, baifangid.length - 1);
|
} else {
|
toastr.error("请选择订单");
|
return;
|
}
|
|
OpenWindow("群发短信", "50%", "50%", "/OrderBanciOrder/Duanxin?id=" + baifangid);
|
|
}
|
|
|
var _pagePrint = function () {
|
|
var Baomingtime = $("#PBSBaomingtime").val();
|
var Peixunbanci = $("#PBSPeixunbanci").val();
|
var Kechengleixing = $("#PBSKechengleixing").val();
|
var Xingming = $("#PBSXingming").val();
|
var Lianxidianhua = $("#PBSLianxidianhua").val();
|
|
|
|
var Createtimestart = $("#PBSCreatetimestart").val();
|
|
var Createtimeend = $("#PBSCreatetimeend").val();
|
var Createtime = '';
|
if (Createtimestart != '' && Createtimeend != '') {
|
Createtime = Createtimestart + '|' + Createtimeend;
|
}
|
|
|
var url = "/OrderBanciOrder/print?Baomingtime=" + Baomingtime + "&Peixunbanci=" + Peixunbanci + "&Kechengleixing=" + Kechengleixing + "&Xingming=" + Xingming + "&Lianxidianhua=" + Lianxidianhua;
|
var me = window.open(url, "打印"); //打开新窗口
|
|
|
}
|
|
</script>
|
}
|
|
@section footerScripts{
|
<script type="text/javascript">
|
|
|
|
|
|
</script>
|
}
|