You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
114 lines
4.1 KiB
114 lines
4.1 KiB
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Basic.DAIValidationModel>" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
采集点校验规则
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|
|
|
<%=Html.QPSeach(80,true) %>
|
|
<table id="condiTable">
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p=>p.WORKCELL_CODE) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.WORKCELL_CODE)%>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
<div style="left: 1px; position: relative;"></div>
|
|
|
|
<%=Html.QPEnd()%>
|
|
<%=Html.QPList() %>
|
|
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.Basic.DAIValidationModel>(Model)%>
|
|
<%=Html.QPEnd() %>
|
|
<%=Html.Hidden("selectKey")%>
|
|
<script language="javascript" type="text/javascript">
|
|
//添加
|
|
function Add() {
|
|
//var CALL_TYPE = $('#CALL_TYPE').val();
|
|
//var callType = $('#CALL_TYPE').combobox('getValue');
|
|
//if (callType === "") {
|
|
// alert("请选择呼叫类型!");
|
|
// } else {
|
|
//openAppWindow1('呼叫原因添加', 'Edit?callType=' + callType, '350', '400');
|
|
// }
|
|
openAppWindow1('呼叫原因添加', 'Edit', '750', '600');
|
|
}
|
|
//修改
|
|
function Update() {
|
|
var ids = getSelectKey();
|
|
if (ids == "") {
|
|
MSI("提示", "请选择修改记录。");
|
|
return;
|
|
}
|
|
if (ids.indexOf(":") > 0) {
|
|
MSI("提示", "每次只能修改一条记录。");
|
|
return;
|
|
}
|
|
document.getElementById("selectKey").value = ids;
|
|
openAppWindow1('校验修改', 'Edit?PID=' + ids, '450', '350');
|
|
}
|
|
//禁用
|
|
function Disable() {
|
|
var ids = getSelectKey();
|
|
if (ids == "") {
|
|
MSI("错误", "至少选择一条记录");
|
|
}
|
|
else {
|
|
document.getElementById("selectKey").value = ids;
|
|
MSQ("提示",
|
|
"确定要禁用选中的校验吗?",
|
|
function () {
|
|
submitByButton("Disable");
|
|
});
|
|
}
|
|
}
|
|
|
|
//启用
|
|
function Enable() {
|
|
var ids = getSelectKey();
|
|
if (ids == "") {
|
|
MSI("错误", "至少选择一条记录");
|
|
}
|
|
else {
|
|
document.getElementById("selectKey").value = ids;
|
|
MSQ("提示",
|
|
"确定要启用选中的校验吗?",
|
|
function () {
|
|
submitByButton("Enable");
|
|
});
|
|
}
|
|
}
|
|
// //查询
|
|
// function Search() {
|
|
//// var typeId = $('#CALL_TYPE').combobox('getValue');
|
|
//// alert(typeId);
|
|
// List(1);
|
|
// }
|
|
// $(function () {
|
|
// //呼叫类型
|
|
// $('#CALL_TYPE').combobox({
|
|
// onSelect: function () {
|
|
// List(1);
|
|
// }
|
|
// });
|
|
// });
|
|
</script>
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td align="center">
|
|
<%=Html.QTButtonSearch("DAIValidation", "List", " List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonUpdate("DAIValidation", "Edit", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButton("Enable","Enable",QMFrameWork.WebUI.IconCls.ok, "Enable()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButton("Disable", "Disable", QMFrameWork.WebUI.IconCls.no, "Disable()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</asp:Content>
|