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.
149 lines
5.1 KiB
149 lines
5.1 KiB
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.MD.Web.Models.DaiModel>" %>
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
信息列表
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|
<%=Html.QPSeach(80,true)%>
|
|
<table class="condiTable">
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p=>p.FACTORY_CODE) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.FACTORY_CODE)%>
|
|
</td>
|
|
<th>
|
|
<%=Html.QV(p => p.WORKCELL_CODE) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.WORKCELL_CODE)%>
|
|
</td>
|
|
<th>
|
|
<%=Html.QV(p => p.DA_CODE) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.DA_CODE)%>
|
|
</td>
|
|
<th>
|
|
<%=Html.QV(p => p.DA_NAME) %>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.DA_NAME)%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%=Html.QPEnd()%>
|
|
<%=Html.QPList()%>
|
|
<%=Html.QDateGrid<QMAPP.MD.Web.Models.DaiModel>(Model)%>
|
|
<%=Html.QPEnd()%>
|
|
<%=Html.Hidden("selectKey")%>
|
|
<%=Html.Hidden("fileName")%>
|
|
<%Html.RenderPartial("ShowProgress");%>
|
|
<script language="javascript" type="text/javascript">
|
|
$(function () {
|
|
//工厂
|
|
$('#FACTORY_CODE').combobox({
|
|
onSelect: function () {
|
|
var factoryCode = $('#FACTORY_CODE').combobox('getValue');
|
|
if (factoryCode != "") {
|
|
//获取下拉数据源
|
|
var workCenterCode = "";
|
|
$('#WORKCELL_CODE').combobox({
|
|
url: "/Dict/GetFactoryWorkCellComboxSource?factoryCode=" + factoryCode + "&workCenterCode=" + workCenterCode,
|
|
editable: 'false',
|
|
valueField: 'WORKCELL_CODE',
|
|
textField: 'WORKCELL_NAME'
|
|
});
|
|
$('#WORKCELL_CODE').combobox("setValue", "");
|
|
}
|
|
else {
|
|
//清空工序下拉框
|
|
var emptyData = [{ 'WORKCELL_CODE': "", 'WORKCELL_NAME': ""}];
|
|
$('#WORKCELL_CODE').combobox("loadData", emptyData);
|
|
$('#WORKCELL_CODE').combobox("select", "");
|
|
}
|
|
}
|
|
});
|
|
});
|
|
//添加
|
|
function Add() {
|
|
openAppWindow1(AddWindowTitle, 'DaiAdd', '550', '460');
|
|
}
|
|
|
|
//修改
|
|
function Update() {
|
|
var ids = getSelectKey();
|
|
if (ids == "") {
|
|
MSI(MsgNormalTitle, NothingSelectTitle);
|
|
return;
|
|
}
|
|
if (ids.indexOf(":") > 0) {
|
|
MSI(MsgNormalTitle, OnlyOneTitle);
|
|
return;
|
|
}
|
|
document.getElementById("selectKey").value = ids;
|
|
openAppWindow1(UpdateWindowTitle, 'DaiEdit?PID=' + ids, '550', '460');
|
|
}
|
|
|
|
//删除
|
|
function Delete() {
|
|
var ids = getSelectKey();
|
|
if (ids == "") {
|
|
MSI(MsgNormalTitle, AtLeastOneTitle);
|
|
}
|
|
else {
|
|
document.getElementById("selectKey").value = ids;
|
|
MSQ(MsgNormalTitle, FixDeleteTitle, function () {
|
|
submitByButton("DaiDelete");
|
|
})
|
|
}
|
|
}
|
|
|
|
//导入
|
|
function Import() {
|
|
var fileName = window.showModalDialog("/File/UploadFile", "", "dialogHeight: 200px; dialogWidth: 400px; center: Yes; help: Yes;status: Yes;");
|
|
if (fileName == null)
|
|
return;
|
|
document.getElementById("fileName").value = fileName;
|
|
//处理等待
|
|
_showProgress();
|
|
submitByButton("ImportExcel");
|
|
}
|
|
|
|
//导出
|
|
function Export() {
|
|
document.getElementById("selectKey").value = getSelectKey();
|
|
submitByButton("ExportExcel");
|
|
}
|
|
|
|
//下载模板
|
|
function getTemplate() {
|
|
submitByButton("GetTemplate");
|
|
}
|
|
$(function () {
|
|
|
|
$('#FACTORY_CODE').combobox({
|
|
panelWidth: '350'
|
|
|
|
});
|
|
|
|
});
|
|
</script>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td align="center">
|
|
<%=Html.QTButtonSearch("Dai", "List", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonAdd("Dai", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonUpdate("Dai", "Update", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonDelete("Dai", "Delete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</asp:Content>
|
|
|
|
|
|
|
|
|
|
|