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

283 lines
10 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.ProduceManage.ProducePlanModel>" %>
<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)%>
<table id="editTable" cellpadding="0" cellspacing="0">
<tr>
<td>
<table>
<tr>
<th align="right">
<%=Html.QV(p=>p.PLANDATE) %>
</th>
<td>
<%=Html.QC(p => p.PLANDATE)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p=>p.PROCESSTYPE) %>
</th>
<td>
<%=Html.QC(p => p.PROCESSTYPE)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p=>p.PRODUCTTYPE) %>
</th>
<td>
<%=Html.QC(p => p.PRODUCTTYPE)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p=>p.COLOR) %>
</th>
<td>
<%=Html.QC(p => p.COLOR)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p=>p.HB) %>
</th>
<td>
<%=Html.QC(p => p.HB)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p=>p.MACHINECODE) %>
</th>
<td>
<%=Html.QC(p => p.MACHINECODE)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p=>p.PRODUCESHIFTTCODE) %>
</th>
<td>
<%=Html.QC(p => p.PRODUCESHIFTTCODE)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.PRODUCECOUNT)%>
</th>
<td>
<%=Html.QC(p => p.PRODUCECOUNT)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p=>p.MEMO) %>
</th>
<td>
<%=Html.QC(p => p.MEMO)%>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%=Html.HiddenFor(p => p.PID)%>
<%=Html.HiddenFor(p => p.PRODUCTTYPE)%>
<%=Html.HiddenFor(p => p.MACHINECODE)%>
<%=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("User", "Save", "return Save();")%>
<%=Html.QTButtonBack("close", "List", "parent.closeAppWindow1();return false;")%>
</td>
</tr>
</table>
<script type="text/javascript">
//搪塑
var slushData = [{ id: 0, text: "表皮"}];
//骨架
var injectData = [{ id: 1, text: "骨架"}];
//气囊支架
var injectAirBagData = [{ id: 2, text: "气囊支架"}];
//开关支架
var injectSwitchData = [{ id: 3, text: "开关支架"}];
//风道
var injectWindData = [{ id: 4, text: "风道"}];
//HUD风道
var injectHUDWindData = [{ id: 5, text: "HUD风道"}];
//中控支架
var injectControlData = [{ id: 7, text: "中控支架"}];
//中控支架
var mainData = [{ id: 8, text: "本体"}];
var MoajieData = [{ id: 4, text: "风道" }, { id: 5, text: "HUD风道" }, { id: 8, text: "本体"}];
//加工工序值
var ProcessTypeData = {
Slush: 0, Inject: 1,
AirbagInject: 2, WindInject: 3,
ControlInject: 4, HUDWindInject: 5,
SkinCore: 6, Frame: 7,
Cast: 9, Punch: 11,
Mill: 12, Maojie: 13,
Subno: 14, Weld: 15,
Gether: 16
};
$(function () {
$('#PROCESSTYPE').combobox({
onSelect: function () {
var provalue = $('#PROCESSTYPE').combobox('getValue');
if (provalue == ProcessTypeData.Slush || provalue == ProcessTypeData.SkinCore) {
$('#PRODUCTTYPE').combobox('loadData', slushData);
}
else if (provalue == ProcessTypeData.Inject || provalue == ProcessTypeData.Frame) {
$('#PRODUCTTYPE').combobox('loadData', injectData);
}
else if (provalue == ProcessTypeData.AirbagInject) {
$('#PRODUCTTYPE').combobox('loadData', injectAirBagData);
}
else if (provalue == ProcessTypeData.WindInject) {
$('#PRODUCTTYPE').combobox('loadData', injectWindData);
}
else if (provalue == ProcessTypeData.ControlInject) {
$('#PRODUCTTYPE').combobox('loadData', injectControlData);
}
else if (provalue == ProcessTypeData.HUDWindInject) {
$('#PRODUCTTYPE').combobox('loadData', injectHUDWindData);
}
else if (provalue == ProcessTypeData.Maojie) {
$('#PRODUCTTYPE').combobox('loadData', MoajieData);
}
else {
$('#PRODUCTTYPE').combobox('loadData', mainData);
}
$('#PRODUCTTYPE').combobox('clear');
//气囊支架注塑、中控支架注塑、风道注塑、HUD风道注塑时
//设定为注塑
if (provalue == ProcessTypeData.AirbagInject || provalue == ProcessTypeData.WindInject
|| provalue == ProcessTypeData.ControlInject || provalue == ProcessTypeData.HUDWindInject) {
provalue = ProcessTypeData.Inject;
}
$('#MACHINECODE').combobox("clear");
//获取设备信息
$.ajax({
url: "/ProducePlan/GetMachineNo?PROCESSTYPE=" + provalue,
type: "GET",
cache: false,
dataType: "json",
async: false,
success: function (data) {
var machineData = eval(data);
$('#MACHINECODE').combobox('loadData', machineData);
}
});
}
});
if ($('#PID').val() != "") {
var provalue = $('#PROCESSTYPE').combobox('getValue');
if (provalue == ProcessTypeData.Slush || provalue == ProcessTypeData.SkinCore) {
$('#PRODUCTTYPE').combobox('loadData', slushData);
}
else if (provalue == ProcessTypeData.Inject || provalue == ProcessTypeData.Frame) {
$('#PRODUCTTYPE').combobox('loadData', injectData);
}
else if (provalue == ProcessTypeData.AirbagInject) {
$('#PRODUCTTYPE').combobox('loadData', injectAirBagData);
}
else if (provalue == ProcessTypeData.WindInject) {
$('#PRODUCTTYPE').combobox('loadData', injectWindData);
}
else if (provalue == ProcessTypeData.ControlInject) {
$('#PRODUCTTYPE').combobox('loadData', injectControlData);
}
else if (provalue == ProcessTypeData.HUDWindInject) {
$('#PRODUCTTYPE').combobox('loadData', injectHUDWindData);
}
else if (provalue == ProcessTypeData.Maojie) {
$('#PRODUCTTYPE').combobox('loadData', MoajieData);
}
else {
$('#PRODUCTTYPE').combobox('loadData', mainData);
}
//获取设备列表
//气囊支架注塑、中控支架注塑、风道注塑、HUD风道注塑时
//设定为注塑
if (provalue == ProcessTypeData.AirbagInject || provalue == ProcessTypeData.WindInject
|| provalue == ProcessTypeData.WindInject || provalue == ProcessTypeData.WindInject) {
provalue = ProcessTypeData.Inject;
}
//获取设备信息
$.ajax({
url: "/ProducePlan/GetMachineNo?PROCESSTYPE=" + provalue,
type: "GET",
cache: false,
dataType: "json",
async: false,
success: function (data) {
var machineData = eval(data);
$('#MACHINECODE').combobox('loadData', machineData);
}
});
}
});
function Save() {
if (isValidate() == false) {
return false;
}
submitByButton("Save");
}
</script>
</asp:Content>