天津投入产出系统后端
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.

126 lines
4.7 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Basic.ProductInfoModel>" %>
<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.PRODUCTMARK) %>
</th>
<td>
<%=Html.QC(p => p.PRODUCTMARK)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p=>p.PRODUCTDESCRIPTION) %>
</th>
<td>
<%=Html.QC(p => p.PRODUCTDESCRIPTION)%>
</td>
</tr>
<%-- <tr>
<th align="right">
<%=Html.QV(p=>p.AREAID) %>
</th>
<td>
<%=Html.QC(p => p.AREAID)%>
</td>
</tr>--%>
<tr>
<th align="right">
<%=Html.QV(p => p.FACTORYID)%>
</th>
<td>
<%=Html.QC(p => p.FACTORYID)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p=>p.PRODUCTBASICID) %>
</th>
<td>
<%=Html.QC(p => p.PRODUCTBASICID)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p=>p.MEMO) %>
</th>
<td>
<%=Html.QC(p => p.MEMO)%>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%=Html.HiddenFor(p=>p.PID) %>
<%=Html.HiddenFor(p=>p.CREATEDATE) %>
<%=Html.HiddenFor(p=>p.CREATEUSER) %>
<%=Html.HiddenFor(p=>p.UPDATEDATE) %>
<%=Html.HiddenFor(p=>p.UPDATEUSER) %>
<%=Html.QPEnd() %>
<script type="text/javascript">
$(function () {
//编辑页面绑定工厂下拉列表
var pid = $("#PID").val();
var areaId = $("#AREAID").val();
if (pid != "") {
$('#PLANTID').combobox({
url: "/Dict/GetPlantComboxSource?areaId=" + areaId,
editable: 'false',
valueField: 'PID',
textField: 'PLANTNAME'
});
}
});
//区域联动事件
// $('#AREAID').combobox({
// onSelect: function () {
// var areaId = $('#AREAID').combobox('getValue');
// if (areaId != "") {
// //获取工厂下拉数据源
// $('#PLANTID').combobox({
// url: "/Dict/GetPlantComboxSource?areaId=" + areaId,
// editable: 'false',
// valueField: 'PID',
// textField: 'PLANTNAME'
// });
// $('#PLANTID').combobox("setValue", "");
// }
// else {
// //清空工厂下拉框
// var plantData = [{ 'PID': "", 'PLANTNAME': ""}];
// $('#PLANTID').combobox("loadData", plantData);
// $('#PLANTID').combobox("select", "");
// }
// }
// });
function Save() {
if (isValidate() == false) {
return false;
}
submitByButton("Save");
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<%=Html.QTButtonSave("User", "Save", "return Save();")%>
<%=Html.QTButtonBack("close", "List", "parent.closeAppWindow1();return false;")%>
</td>
</tr>
</table>
</asp:Content>