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.
106 lines
4.1 KiB
106 lines
4.1 KiB
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.TianJin.TJDoorPlankPlanModel>" %>
|
|
|
|
<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.PLAN_STATE) || string.Equals(Model.PLAN_STATE, "0"))
|
|
{
|
|
editable = true;
|
|
}
|
|
%>
|
|
<table id="editTable" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td>
|
|
<table>
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.PLAN_DATE)%>
|
|
</th>
|
|
<td>
|
|
<input id="PLAN_DATE" name="PLAN_DATE" value="<%=string.IsNullOrEmpty(Model.PID)?DateTime.Now.ToString("yyyy-MM-dd"):Model.PLAN_DATE.ToString("yyyy-MM-dd HH:mm:ss") %>"
|
|
style=" width:200px" type="text" class="easyui-datebox" required="required" <%=editable?"":"readonly =\"readonly\"" %> />
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.MATERIAL_CODE)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.MATERIAL_CODE, editable ? null : new { Readonly = "readonly" })%>
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
</script>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.QTY)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.QTY)%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.LINENO)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.LINENO)%>
|
|
</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.CREATEDATE) %>
|
|
<%=Html.HiddenFor(p=>p.CREATEUSER) %>
|
|
<%=Html.HiddenFor(p => p.PLAN_STATE)%>
|
|
<%=Html.HiddenFor(p => p.PLAN_NO)%>
|
|
<%=Html.QPEnd() %>
|
|
</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", "DashBoardPlanList", "parent.closeAppWindow1();return false;")%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
//获取物料下拉数据源
|
|
$('#MATERIAL_CODE').combotree({
|
|
url: "/Dict/GetFisMaterialTree?ordertype=",
|
|
panelHeight: '230',
|
|
panelWidth: '470',
|
|
});
|
|
});
|
|
function Save() {
|
|
|
|
var reg = /^[0-9]+$/;
|
|
var netId = $("#QTY").val();
|
|
if (!reg.test(netId)) {
|
|
MSI("提示", "计划数量只能输入数字。");
|
|
return;
|
|
}
|
|
|
|
submitByButton("Save");
|
|
}
|
|
</script>
|
|
</asp:Content>
|
|
|