username@email.com
2022-07-28 976aa1a04fff81af4939affa80d3357013157353
zhengcaioa/zhengcaioa/Views/CooperOrder/Index.cshtml
@@ -192,7 +192,53 @@
                }
            },
            {
                label: '打印合同', name: 'OrderType', labtype: 'txt', hidden: false, width: 60,
                formatter: function (cellvalue, options, rowObject) {
                    if (rowObject.OrderType == '03') {
                        return "<a onclick=\"OpenWindow('" + rowObject.OrderNo.replace(/'/g, '') + "','100%','100%', '/CooperOrder/Printbiaoshuhetong?id=" + rowObject.Id + "')\"  >打印合同</a>";
                    }
                    else if (rowObject.OrderType == '02' && (rowObject.OrderType1 == '代拟质疑函' || rowObject.OrderType1 == '代拟投诉书')) {
                        return "<a onclick=\"OpenWindow('" + rowObject.OrderNo.replace(/'/g, '') + "','100%','100%', '/CooperOrder/Printzhiyitousuhetong?id=" + rowObject.Id + "')\"  >打印合同</a>";
                    }
                    else if (rowObject.OrderType == '05') {
                        return "<a onclick=\"OpenWindow('" + rowObject.OrderNo.replace(/'/g, '') + "','100%','100%', '/CooperOrder/Printhuiyuanhetong?id=" + rowObject.Id + "')\"  >打印合同</a>";
                    }
                    else if (rowObject.OrderType == '08') {
                        return "<a onclick=\"OpenWindow('" + rowObject.OrderNo.replace(/'/g, '') + "','100%','100%', '/CooperOrder/Printfengxianhetong?id=" + rowObject.Id + "')\"  >打印合同</a>";
                    }
                    else {
                        return "";
                    }
                }
            },
            {
                label: '新增订单', name: 'dingdantype', labtype: 'txt', hidden: false, width: 60,
                formatter: function (cellvalue, options, rowObject) {
                    if (rowObject.OrderType == '02' && rowObject.OrderType1 == '代拟质疑函' ) {
                        return "<a onclick=\"OpenWindow('代拟投诉书','100%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "&dingdantype=1')\"  >代拟投诉书</a>";
                    }
                    else if (rowObject.OrderType == '02' && rowObject.OrderType1 == '代拟投诉书') {
                        return "<a onclick=\"OpenWindow('复议诉讼','100%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "&dingdantype=2')\"  >复议诉讼</a>";
                    }
                    else if (rowObject.OrderType == '08' && rowObject.OrderType1 == '复议诉讼') {
                        return "<a onclick=\"OpenWindow('复议诉讼','100%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "&dingdantype=3')\"  >复议诉讼</a>";
                    }
                    else {
                        return "";
                    }
                }
            },
        ];