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.
217 lines
9.6 KiB
217 lines
9.6 KiB
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.FIS.OrderPlanModel>" %>
|
|
|
|
<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>
|
|
<%-- <%=Html.QC(p => p.PLAN_DATE)%>--%>
|
|
<%--<input id="PLAN_DATE" name="PLAN_DATE" value="<%=Model.PLAN_DATE %>" type="text"
|
|
class="easyui-datebox" required="required" />--%>
|
|
<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") %>"
|
|
type="text" class="easyui-datebox" style="width:200px" 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)%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.MACHINECODDE)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.MACHINECODDE)%>
|
|
</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">
|
|
<%--<th align="right" id="timeHead" style="display:none">--%>
|
|
<%=Html.QV(p => p.STARTTIME)%>
|
|
</th>
|
|
<td>
|
|
<%-- <td id="timeValues" style="display:none">--%>
|
|
<%=Html.QC(p => p.STARTTIME)%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right">
|
|
<%-- <th align="right" id="timeEndHead" style="display:none">--%>
|
|
<%=Html.QV(p => p.ENDTIME)%>
|
|
</th>
|
|
<td>
|
|
<%--<td id="timeEndValues" style="display:none">--%>
|
|
<%=Html.QC(p => p.ENDTIME)%>
|
|
<%--<script type="text/javascript" language="javascript">
|
|
$(function () {
|
|
$("#PRODUCEREQUIRE").combobox({ onSelect: function () { SetTime() } });
|
|
var SetTime = function () {
|
|
var uiHead = document.getElementById("timeHead");
|
|
var uiValues = document.getElementById("timeValues");
|
|
var uiEndHead = document.getElementById("timeEndHead");
|
|
var uiEndValues = document.getElementById("timeEndValues");
|
|
if ($("#PRODUCEREQUIRE").combobox("getValue") == 1) {
|
|
uiHead.style.display = "";
|
|
uiValues.style.display = "";
|
|
uiEndHead.style.display = "";
|
|
uiEndValues.style.display = "";
|
|
}
|
|
else {
|
|
uiHead.style.display = "none";
|
|
uiValues.style.display = "none";
|
|
uiEndHead.style.display = "none";
|
|
uiEndValues.style.display = "none";
|
|
}
|
|
};
|
|
});
|
|
</script>--%>
|
|
</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_SEQ)%>
|
|
<%=Html.HiddenFor(p => p.PLAN_NO)%>
|
|
<%=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.FACTORY_CODE)%>
|
|
<%=Html.HiddenFor(p => p.PLANSOURCE)%>
|
|
<%=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", "OrderPlanList", "parent.closeAppWindow1();return false;")%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
var type = document.getElementById("ORDER_TYPE").value;
|
|
//获取物料下拉数据源
|
|
$('#MATERIAL_CODE').combotree({
|
|
panelHeight: '250',
|
|
panelWidth: '500',
|
|
url: "/Dict/GetFisMaterialTree?ordertype=" + type
|
|
});
|
|
//获取设备MACHINE下拉数据源
|
|
$('#MACHINECODDE').combobox({
|
|
url: "/Dict/GetMachineForOrder?ordertype=" + type,
|
|
editable: 'false',
|
|
panelWidth: '250',
|
|
valueField: 'MACHINECODDE',
|
|
textField: 'MACHINENAME'
|
|
});
|
|
//$('#MACHINECODDE').combobox("setValue", "");
|
|
|
|
// var uiHead = document.getElementById("timeHead");
|
|
// var uiValues = document.getElementById("timeValues");
|
|
// var uiEndHead = document.getElementById("timeEndHead");
|
|
// var uiEndValues = document.getElementById("timeEndValues");
|
|
// if ($("#PRODUCEREQUIRE").combobox("getValue") == 1) {
|
|
// uiHead.style.display = "";
|
|
// uiValues.style.display = "";
|
|
// uiEndHead.style.display = "";
|
|
// uiEndValues.style.display = "";
|
|
// }
|
|
// else {
|
|
// uiHead.style.display = "none";
|
|
// uiValues.style.display = "none";
|
|
// uiEndHead.style.display = "none";
|
|
// uiEndValues.style.display = "none";
|
|
// }
|
|
});
|
|
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 ($("#PRODUCEREQUIRE").combobox("getValue") == 1)
|
|
// {
|
|
if (starttime == "" || endtime=="") {
|
|
alert("请输入以时间为准的时间段!");
|
|
return;
|
|
}
|
|
if (parseDate($("#STARTTIME").val()) > parseDate($("#ENDTIME").val())) {
|
|
alert("开始日期不能大于截止时间!");
|
|
return;
|
|
}
|
|
// }
|
|
if (isValidate() == false) {
|
|
return false;
|
|
}
|
|
submitByButton("Save");
|
|
}
|
|
</script>
|
|
</asp:Content>
|
|
|