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

163 lines
5.9 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.MD.Web.Models.ParameterConfigEntityModel>" %>
<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.FACTORY_CODE) %>
</th>
<td>
<%=Html.QC(p => p.FACTORY_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.MOLDNUMBER) %>
</th>
<td>
<%=Html.QC(p => p.MOLDNUMBER)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p=>p.COLUMNTYPE) %>
</th>
<td>
<%=Html.QC(p => p.COLUMNTYPE)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p=>p.COLUMNCODE) %>
</th>
<td >
<%=Html.QC(p => p.COLUMNCODE)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p=>p.CONNECTIONSTRING) %>
</th>
<td>
<%=Html.QC(p => p.CONNECTIONSTRING)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p=>p.DEALTYPE) %>
</th>
<td>
<%=Html.QC(p => p.DEALTYPE)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p=>p.PRODUCELINE) %>
</th>
<td>
<%=Html.QC(p => p.PRODUCELINE)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p=>p.TABLENAME) %>
</th>
<td>
<%=Html.QC(p => p.TABLENAME)%>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%=Html.HiddenFor(p => p.PID) %>
<%=Html.HiddenFor(p => p.MACHINENAME)%>
<%=Html.QPEnd() %>
<script type="text/javascript">
$(function () {
//修改时:赋值
var selectCode = $('#FACTORY_CODE').combobox('getValue');
if (selectCode != "") {
//获取下拉数据源
$('#MACHINECODDE').combobox({
url: "/Dict/GetFactoryMachineComboxSource?factoryCode=" + selectCode,
editable: 'false',
valueField: 'MACHINECODDE',
textField: 'MACHINENAME'
});
//$('#MACHINECODDE').combobox("setText", $('#MACHINENAME').val());
}
else {
$('#MACHINECODDE').combobox("setText", "");
}
//新增时:级联
$('#FACTORY_CODE').combobox({
onSelect: function () {
var selectCode = $('#FACTORY_CODE').combobox('getValue');
if (selectCode != "") {
//获取下拉数据源
$('#MACHINECODDE').combobox({
url: "/Dict/GetFactoryMachineComboxSource?factoryCode=" + selectCode,
editable: 'false',
valueField: 'MACHINECODDE',
textField: 'MACHINENAME'
});
$('#MACHINECODDE').combobox("setText", "");
}
else {
//清空工序下拉框
var emptyData = [{ 'MACHINECODDE': "", 'MACHINENAME': ""}];
$('#MACHINECODDE').combobox("loadData", emptyData);
$('#MACHINECODDE').combobox("select", "");
}
}
});
});
function Save() {
if (isValidate() == false) {
return false;
}
submitByButton("Save");
}
$(function () {
$('#FACTORY_CODE').combobox({
panelWidth: '350'
});
});
</script>
</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>
</asp:Content>