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.
178 lines
6.9 KiB
178 lines
6.9 KiB
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Equipment.MouldModel>" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
模具信息列表
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|
<%=Html.QPSeach(100,true) %>
|
|
<table id="condiTable">
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.MOULD_NAME)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.MOULD_NAME)%>
|
|
</td>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.MOULD_CODE)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.MOULD_CODE)%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.FACTORY_CODE)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.FACTORY_CODE)%>
|
|
</td>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.WORKCENTER_CODE)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.WORKCENTER_CODE)%>
|
|
</td>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.MATERIAL_CODE)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.MATERIAL_CODE)%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%=Html.QPEnd()%>
|
|
<%=Html.QPList() %>
|
|
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.Equipment.MouldModel>(Model)%>
|
|
<%=Html.QPEnd() %>
|
|
<%=Html.Hidden("selectKey")%>
|
|
<%=Html.Hidden("PID")%>
|
|
<script language="javascript" type="text/javascript">
|
|
$(function () {
|
|
//工厂
|
|
$('#FACTORY_CODE').combobox({
|
|
onSelect: function () {
|
|
var factoryCode = $('#FACTORY_CODE').combobox('getValue');
|
|
if (factoryCode != "") {
|
|
//获取工作中心
|
|
$('#WORKCENTER_CODE').combobox({
|
|
url: "/Dict/GetFactoryWorkCenterComboxSource?factoryCode=" + factoryCode,
|
|
editable: 'false',
|
|
valueField: 'WORKCENTER_CODE',
|
|
textField: 'WORKCENTER_NAME'
|
|
});
|
|
$('#WORKCENTER_CODE').combobox("setValue", "");
|
|
//获取物料号
|
|
$('#MATERIAL_CODE').combobox({
|
|
url: "/Dict/GetFactoryMaterialComboxSource?factoryCode=" + factoryCode,
|
|
editable: 'false',
|
|
valueField: 'MATERIAL_CODE',
|
|
textField: 'MATERIAL_NAME'
|
|
});
|
|
$('#MATERIAL_CODE').combobox("setValue", "");
|
|
}
|
|
else {
|
|
//清空工序下拉框
|
|
var tempData = [{ 'WORKCENTER_CODE': "", 'WORKCENTER_NAME': ""}];
|
|
$('#WORKCENTER_CODE').combobox("loadData", tempData);
|
|
$('#WORKCENTER_CODE').combobox("select", "");
|
|
//清空工序下拉框
|
|
var emptyData = [{ 'MATERIAL_CODE': "", 'MATERIAL_NAME': ""}];
|
|
$('#MATERIAL_CODE').combobox("loadData", emptyData);
|
|
$('#MATERIAL_CODE').combobox("select", "");
|
|
}
|
|
}
|
|
});
|
|
|
|
});
|
|
//添加
|
|
function Add() {
|
|
openAppWindow1('信息添加', 'Edit', '400', '400');
|
|
}
|
|
//修改
|
|
function Update() {
|
|
var ids = getSelectKey();
|
|
if (ids == "") {
|
|
MSI("提示", "请选择修改记录。");
|
|
return;
|
|
}
|
|
if (ids.indexOf(":") > 0) {
|
|
MSI("提示", "每次只能修改一条记录。");
|
|
return;
|
|
}
|
|
document.getElementById("selectKey").value = ids;
|
|
openAppWindow1('修改', 'Edit?PID=' + ids, '400', '400');
|
|
}
|
|
//删除
|
|
function Delete() {
|
|
var ids = getSelectKey();
|
|
if (ids == "") {
|
|
MSI("错误", "至少选择一条记录");
|
|
}
|
|
else {
|
|
document.getElementById("selectKey").value = ids;
|
|
MSQ("提示", "确定要删除选中的记录吗?", function () {
|
|
submitByButton("Delete");
|
|
})
|
|
}
|
|
}
|
|
//模具资料维护
|
|
function SetProcess() {
|
|
|
|
var ids = getSelectColumnValues("MOULD_CODE");
|
|
|
|
if (ids == "") {
|
|
MSI("提示", "请选择要维护模具的记录。");
|
|
return;
|
|
}
|
|
if (ids.indexOf(":") > 0) {
|
|
MSI("提示", "每次只能配置一条记录。");
|
|
return;
|
|
}
|
|
document.getElementById("selectKey").value = ids;
|
|
window.location.href = "/Mould/MouldDataList?MOULDDATA_CODE=" + ids;
|
|
}
|
|
|
|
//导入
|
|
function Import() {
|
|
// var fileName = window.showModalDialog("/File/UploadFile", "", "dialogHeight: 200px; dialogWidth: 300px; center: Yes; help: Yes;status: Yes;");
|
|
|
|
// if (fileName == null)
|
|
// return;
|
|
// document.getElementById("fileName").value = fileName;
|
|
// //处理等待
|
|
submitByButton("ImportExcel");
|
|
}
|
|
//导出
|
|
function Export() {
|
|
document.getElementById("selectKey").value = getSelectKey();
|
|
submitByButton("ExportExcel");
|
|
}
|
|
$(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("Mould", "List", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonAdd("Mould", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonUpdate("Mould", "Edit", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonDelete("Mould", "Delete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButton("MouldSet", "SetProcess", QMFrameWork.WebUI.IconCls.add, "SetProcess()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%--<%=Html.QTButton("export", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "Export()", QMAPP.Common.Web.SystemLimit.isLimt)%>--%>
|
|
<%--<%=Html.QTButton("newimport", "ImportExcel", QMFrameWork.WebUI.IconCls.undo, "Import()", QMAPP.Common.Web.SystemLimit.isLimt)%> --%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</asp:Content>
|
|
|