username@email.com
2022-08-27 6e2b929cf381e2320ba6e7dec56c0371124d2b51
zhengcaioa/zhengcaioa/Views/CooperOrder/selectWenshu.cshtml
@@ -1,13 +1,17 @@
@{
@using DTO;
@{
    ViewBag.Title = "CooperOrder";
    Layout = "~/Views/Shared/_Layout_Search.cshtml";
    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
}
@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 = [
@@ -24,24 +28,24 @@
            { 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: '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>";
                        return "<a class=\"Dayin\" style=\"display: none;\" 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>";
                        return "<a class=\"Dayin\" style=\"display: none;\" onclick=\"OpenWindow('打印导出质疑函','98%','100%', '/CooperOrder/PrintZhiyihan?id=" + rowObject.Id + "')\"  >打印导出质疑函</a>";
                    }
                }
            },
        ];
        dataUrl = "/CooperOrder/GetListWenshu";
        dataUrl = "/CooperOrder/GetListWenshu?Status=2";
        searchCol = [
            { label: '时间', name: 'XdTime', labtype: 'datearea', hidden: false },
            { label: '文书类别', name: 'Wenshuleixing', labtype: 'combox', hidden: false, data: JSON.parse(Wenshuleixing) },
@@ -52,7 +56,7 @@
            { 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) },
@@ -128,6 +132,19 @@
        }
           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>
}