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.
161 lines
6.5 KiB
161 lines
6.5 KiB
3 years ago
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
||
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.FIS.DoorPlankPlanModel>" %>
|
||
|
|
||
|
<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">
|
||
|
<span style="color: #FF0000">*</span>顺序号
|
||
|
</th>
|
||
|
<td>
|
||
|
<input class="easyui-validatebox" style=" width:196px" type="text" id="PLAN_SEQ" name="PLAN_SEQ" value="<%=Model.PLAN_SEQ %>"
|
||
|
<%=editable?"data-options=\"required:true,validType:['number','length[3,3]']\"":"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.SHIFT_CODE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.SHIFT_CODE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p => p.PRODUCEREQUIRE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.PRODUCEREQUIRE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p => p.STARTTIME)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.STARTTIME)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p => p.ENDTIME)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.ENDTIME)%>
|
||
|
</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.WORKCENTER_CODE) %>
|
||
|
<%=Html.HiddenFor(p=>p.CREATEDATE) %>
|
||
|
<%=Html.HiddenFor(p=>p.CREATEUSER) %>
|
||
|
<%=Html.HiddenFor(p=>p.UPDATEDATE)%>
|
||
|
<%=Html.HiddenFor(p=>p.UPDATEUSER) %>
|
||
|
<%=Html.HiddenFor(p=>p.COMPLETE_QTY) %>
|
||
|
<%=Html.HiddenFor(p => p.PLAN_STATE)%>
|
||
|
<%=Html.HiddenFor(p => p.FACTORY_CODE)%>
|
||
|
<%=Html.HiddenFor(p => p.ORDER_TYPE)%>
|
||
|
<%=Html.HiddenFor(p => p.ROUTE_CODE)%>
|
||
|
<%=Html.HiddenFor(p => p.PBOM_CODE)%>
|
||
|
<%=Html.HiddenFor(p => p.PLAN_NO)%>
|
||
|
<%=Html.HiddenFor(p => p.FACTORY_CODE)%>
|
||
|
<%=Html.Hidden("PLANSOURCE",1)%>
|
||
|
<%=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 () {
|
||
|
var type = document.getElementById("ORDER_TYPE").value;
|
||
|
//获取物料下拉数据源
|
||
|
$('#MATERIAL_CODE').combotree({
|
||
|
url: "/Dict/GetFisMaterialTree?ordertype=" + type,
|
||
|
panelHeight: '230',
|
||
|
panelWidth: '470',
|
||
|
});
|
||
|
});
|
||
|
function Save() {
|
||
|
|
||
|
var reg = /^[0-9]+$/;
|
||
|
var netId = $("#QTY").val();
|
||
|
if (!reg.test(netId)) {
|
||
|
MSI("提示", "计划数量只能输入数字。");
|
||
|
return;
|
||
|
}
|
||
|
var starttime = document.getElementById("STARTTIME").value;
|
||
|
var endtime = document.getElementById("ENDTIME").value;
|
||
|
if (starttime == "" || endtime == "") {
|
||
|
alert("请输入以时间为准的时间段!");
|
||
|
return;
|
||
|
}
|
||
|
if (parseDate($("#STARTTIME").val()) > parseDate($("#ENDTIME").val())) {
|
||
|
alert("开始日期不能大于截止时间!");
|
||
|
return;
|
||
|
}
|
||
|
if (isValidate() == false) {
|
||
|
return false;
|
||
|
}
|
||
|
submitByButton("Save");
|
||
|
}
|
||
|
</script>
|
||
|
</asp:Content>
|