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

125 lines
4.8 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.MD.Web.Models.ProcessRouteModel>" %>
<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)%>
<%
var editable = false;
if (string.IsNullOrEmpty(Model.PID))
{
editable = true;
}
%>
<table id="editTable" cellpadding="0" cellspacing="0">
<tr>
<td>
<table>
<tr>
<th align="right">
<%=Html.QV(p=>p.FACTORY_CODE) %>
</th>
<td>
<%=Html.QC(p => p.FACTORY_CODE)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.ROUTE_CODE)%>
</th>
<td>
<%=Html.QC(p => p.ROUTE_CODE)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.ROUTE_NAME)%>
</th>
<td>
<%=Html.QC(p => p.ROUTE_NAME)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.EFF_DATE)%>
</th>
<td>
<%-- <%=Html.QC(p => p.EFF_DATE)%>--%>
<input id="EFF_DATE" name="EFF_DATE" value="<%=string.IsNullOrEmpty(Model.PID)?"":Model.EFF_DATE.ToString("yyyy-MM-dd") %>"
type="text" class="easyui-datebox" required="required" <%=editable?"":"readonly =\"readonly\"" %> />
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.EXP_DATE)%>
</th>
<td>
<%--<%=Html.QC(p => p.EXP_DATE)%>--%>
<input id="Text1" name="EXP_DATE" value="<%=string.IsNullOrEmpty(Model.PID)?"":Model.EXP_DATE.ToString("yyyy-MM-dd") %>"
type="text" class="easyui-datebox" required="required" <%=editable?"":"readonly =\"readonly\"" %> />
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.ROUTE_VER)%>
</th>
<td>
<%=Html.QC(p => p.ROUTE_VER)%>
</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.PID)%>
<%=Html.HiddenFor(p => p.FLGDEL)%>
<%=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("ProcessRoute", "Save", "return Save();")%>
<%=Html.QTButtonBack("close", "List", "parent.closeAppWindow1();return false;")%>
</td>
</tr>
</table>
<script type="text/javascript">
//保存
function Save() {
if (isValidate() == false) {
return false;
}
// var code = /^[0-9a-zA-Z]*$/;
// var routecode = document.getElementById("ROUTE_CODE").value;
// if (!code.test(routecode))
// {
// alert("工艺路线编码必须为半角英数字");
// return false;
// }
submitByButton("Save");
}
$(function () {
$('#FACTORY_CODE').combobox({
panelWidth: '350'
});
});
</script>
</asp:Content>