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.
181 lines
6.7 KiB
181 lines
6.7 KiB
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.MD.Web.Models.MaterialModel>" %>
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
添加物料号
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|
<%=Html.QPEdit("添加物料号", string.IsNullOrEmpty(Model.PID) ? QMFrameWork.WebUI.panelType.Add : QMFrameWork.WebUI.panelType.Update)%>
|
|
<table id="editTable" cellpadding="0" cellspacing="0" >
|
|
<tr>
|
|
<td>
|
|
<table>
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.MATERIAL_CODE)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.MATERIAL_CODE)%>
|
|
</td>
|
|
|
|
<th align="right">
|
|
<%=Html.QV(p => p.MATERIAL_NAME)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.MATERIAL_NAME)%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.MATERIAL_SHORT)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.MATERIAL_SHORT)%>
|
|
</td>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.COLOR)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.COLOR)%>
|
|
</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.PROJECTCODE)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.PROJECTCODE)%>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.OUTSOURCE)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.OUTSOURCE)%>
|
|
</td>
|
|
|
|
<th align="right">
|
|
<%=Html.QV(p => p.HBTYPE)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.HBTYPE)%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<th align="right">
|
|
<%=Html.QV(p => p.STD_QTY)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.STD_QTY)%>
|
|
</td>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.MATERIAL_COMP)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.MATERIAL_COMP)%>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<th align="left" >
|
|
<%=Html.QV(p => p.REMARK)%>
|
|
</th>
|
|
<td colspan="3">
|
|
<%=Html.QC(p => p.REMARK)%>
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%=Html.HiddenFor(p => p.PID)%>
|
|
<%=Html.HiddenFor(p => p.FLGDEL)%>
|
|
<%=Html.HiddenFor(p => p.PROJECTCODE)%>
|
|
<%=Html.HiddenFor(p => p.MATERIAL_TYPE_CODE)%>
|
|
<%=Html.HiddenFor(p => p.CREATEDATE)%>
|
|
<%=Html.HiddenFor(p => p.CREATEUSER)%>
|
|
<%=Html.HiddenFor(p => p.UPDATEDATE)%>
|
|
<%=Html.HiddenFor(p => p.UPDATEUSER)%>
|
|
<%=Html.QPEnd() %>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
|
<table width="100%" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td>
|
|
<%=Html.QTButtonSave("Material", "Save", "return Save();")%>
|
|
<%=Html.QTButtonBack("close", "List", "parent.closeAppWindow1();return false;")%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
//修改时:赋值
|
|
// var selectCode = $('#FACTORY_CODE').combobox('getValue');
|
|
// if (selectCode != "") {
|
|
// //获取下拉数据源
|
|
// $('#PROJECTCODE').combobox({
|
|
// url: "/Dict/GetFactoryProjectComboxSource?factoryCode=" + selectCode,
|
|
// editable: 'false',
|
|
// valueField: 'PROJECT_CODE',
|
|
// textField: 'PROJECT_NAME'
|
|
// });
|
|
// $('#PROJECTCODE').combobox("setText", $('#PROJECT_NAME').val());
|
|
// }
|
|
// else {
|
|
// $('#PROJECTCODE').combobox("setText", "");
|
|
// }
|
|
//新增时:级联
|
|
$('#FACTORY_CODE').combobox({
|
|
onSelect: function () {
|
|
var selectCode = $('#FACTORY_CODE').combobox('getValue');
|
|
if (selectCode != "") {
|
|
//获取下拉数据源
|
|
$('#PROJECTCODE').combobox({
|
|
url: "/Dict/GetFactoryProjectComboxSource?factoryCode=" + selectCode,
|
|
editable: 'false',
|
|
valueField: 'PROJECT_CODE',
|
|
textField: 'PROJECT_NAME'
|
|
});
|
|
$('#PROJECTCODE').combobox("setText", "");
|
|
}
|
|
else {
|
|
//清空工序下拉框
|
|
var emptyData = [{ 'PROJECT_CODE': "", 'PROJECT_NAME': ""}];
|
|
$('#PROJECTCODE').combobox("loadData", emptyData);
|
|
$('#PROJECTCODE').combobox("select", "");
|
|
}
|
|
}
|
|
});
|
|
});
|
|
function Save() {
|
|
if (isValidate() == false) {
|
|
return false;
|
|
}
|
|
submitByButton("SaveMaterialCode");
|
|
}
|
|
$(function () {
|
|
|
|
$('#FACTORY_CODE').combobox({
|
|
panelWidth: '350'
|
|
|
|
});
|
|
|
|
});
|
|
</script>
|
|
</asp:Content>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|