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

176 lines
6.3 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" Inherits="System.Web.Mvc.ViewPage<QMAPP.MD.Web.Models.Dict.HMaterialModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
自制件零件与器具关系编辑
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPEdit()%>
<table id="editTable" cellpadding="0" cellspacing="0">
<tr>
<td>
<table align="center">
<tr>
<th align="right">
<%=Html.QV(p => p.CORPCODE)%>
</th>
<td>
<%=Html.HiddenFor(p => p.CORPID)%>
<%=Html.QMyPerceptTextboxFor(p => p.CORPCODE, p => p.CORPNAME, "corp", "setCorpID", null, "")%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p=>p.MATERIALNO) %>
</th>
<td>
<%=Html.HiddenFor(p=>p.MATERIALID) %>
<%=Html.QMyPerceptTextboxFor(p => p.MATERIALNO, p => p.MATERIALNAME, "matcode", "setMatNoID", "all")%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.SENDPLACENO)%>
</th>
<td>
<%=Html.HiddenFor(p => p.SENDPLACEID)%>
<%=Html.QMyPerceptTextboxFor(p => p.SENDPLACENO, p => p.SENDPLACENAME, "sendplace", "setSendPlaceID", null, "")%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.UTENSILNO)%>
</th>
<td>
<%=Html.HiddenFor(p => p.UTENSILID)%>
<%=Html.QMyPerceptTextboxFor(p => p.UTENSILNO, p => p.UTENSILNAME, "utensil", "setUtensilID", null, "")%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.CONTENT)%>
</th>
<td>
<%=Html.QC(p => p.CONTENT)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.REMARK)%>
</th>
<td>
<%=Html.QC(p => p.REMARK)%>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%=Html.HiddenFor(p=>p.CREATEDATE) %>
<%=Html.HiddenFor(p=>p.CREATEUSER) %>
<%=Html.HiddenFor(p=>p.UPDATEDATE) %>
<%=Html.HiddenFor(p=>p.UPDATEUSER) %>
<%=Html.HiddenFor(p=>p.HMATERIALID) %>
<%=Html.QPEnd() %>
<%=Html.Hidden("SelectedPowers")%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<%=Html.QTButtonSave("User", "SingleTableSave", "return Save();")%>
<%=Html.QTButton("close", "HMaterialEdit", "close", "parent.closeAppWindow1();return false;", (s, f) => { return true; })%>
</td>
</tr>
</table>
<script type="text/javascript">
//设置仓库主键
function setCorpID(data) {
if (data != null) {
document.getElementById("CORPID").value = data.id;
}
else {
document.getElementById("CORPID").value = "";
}
}
//设置零件主键
function setMatNoID(data) {
if (data != null) {
document.getElementById("MATERIALID").value = data.id;
}
else {
document.getElementById("MATERIALID").value = "";
}
}
//设置器具主键
function setUtensilID(data) {
if (data != null) {
document.getElementById("UTENSILID").value = data.id;
}
else {
document.getElementById("UTENSILID").value = "";
}
}
//设置发货地主键
function setSendPlaceID(data) {
if (data != null) {
document.getElementById("SENDPLACEID").value = data.id;
}
else {
document.getElementById("SENDPLACEID").value = "";
}
}
function Save() {
if (isValidate() == false) {
return false;
}
if (document.getElementById("CORPCODE").value == "") {
alert("仓库不能为空!");
return;
}
if (document.getElementById("CORPID").value == "") {
alert("仓库不存在!");
return;
}
if (document.getElementById("SENDPLACENO").value == "") {
alert("发货地不能为空!");
return;
}
if (document.getElementById("SENDPLACEID").value == "") {
alert("发货地不存在!");
return;
}
if (document.getElementById("UTENSILNO").value == "") {
alert("器具不能为空!");
return;
}
if (document.getElementById("UTENSILID").value == "") {
alert("器具不存在!");
return;
}
if (document.getElementById("MATERIALNO").value == "") {
alert("零件不能为空!");
return;
}
if (document.getElementById("MATERIALID").value == "") {
alert("零件不存在!");
return;
}
if (document.getElementById("CONTENT").value == "") {
alert("器具容量不能为空!");
return;
}
submitByButton("SingleTableSave");
}
</script>
</asp:Content>