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.
180 lines
7.2 KiB
180 lines
7.2 KiB
4 years ago
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
||
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.MD.Web.Models.WorkLocModel>" %>
|
||
|
|
||
|
<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.WORKCENTER_CODE) %>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.WORKCENTER_CODE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p => p.WORKCELL_CODE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.WORKCELL_CODE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p => p.WORKLOC_CODE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.WORKLOC_CODE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th align="right">
|
||
|
<%=Html.QV(p => p.WORKLOC_NAME)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.WORKLOC_NAME)%>
|
||
|
</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.FLGDEL)%>
|
||
|
<%=Html.HiddenFor(p => p.WORKCENTER_NAME)%>
|
||
|
<%=Html.HiddenFor(p => p.WORKCELL_NAME)%>
|
||
|
<%=Html.HiddenFor(p => p.CREATEDATE)%>
|
||
|
<%=Html.HiddenFor(p => p.CREATEUSER)%>
|
||
|
<%=Html.HiddenFor(p => p.UPDATEDATE)%>
|
||
|
<%=Html.HiddenFor(p => p.UPDATEUSER)%>
|
||
|
<%=Html.QPEnd() %>
|
||
|
<script type="text/javascript">
|
||
|
$(function () {
|
||
|
//修改时:赋值
|
||
|
var selectCode = $('#FACTORY_CODE').combobox('getValue');
|
||
|
if (selectCode != "") {
|
||
|
//获取下拉数据源
|
||
|
$('#WORKCENTER_CODE').combobox({
|
||
|
url: "/Dict/GetFactoryWorkCenterComboxSource?factoryCode=" + selectCode,
|
||
|
editable: 'false',
|
||
|
valueField: 'WORKCENTER_CODE',
|
||
|
textField: 'WORKCENTER_NAME'
|
||
|
});
|
||
|
//$('#WORKCENTER_CODE').combobox("setText", $('#WORKCENTER_NAME').val());
|
||
|
//工序赋值
|
||
|
var workCenterCode = $('#WORKCENTER_CODE').combobox('getValue');
|
||
|
if (workCenterCode != "") {
|
||
|
//获取下拉数据源
|
||
|
$('#WORKCELL_CODE').combobox({
|
||
|
url: "/Dict/GetFactoryWorkCellComboxSource?factoryCode=" + selectCode + "&workCenterCode=" + workCenterCode,
|
||
|
editable: 'false',
|
||
|
valueField: 'WORKCELL_CODE',
|
||
|
textField: 'WORKCELL_NAME'
|
||
|
});
|
||
|
//$('#WORKCELL_CODE').combobox("setText", $('#WORKCELL_NAME').val());
|
||
|
}
|
||
|
else {
|
||
|
$('#WORKCELL_CODE').combobox("setText", "");
|
||
|
}
|
||
|
}
|
||
|
else {
|
||
|
$('#WORKCENTER_CODE').combobox("setText", "");
|
||
|
}
|
||
|
//新增时:级联班组
|
||
|
var factoryCode = "";
|
||
|
$('#FACTORY_CODE').combobox({
|
||
|
onSelect: function () {
|
||
|
var factoryCode = $('#FACTORY_CODE').combobox('getValue');
|
||
|
if (factoryCode != "") {
|
||
|
//获取下拉数据源
|
||
|
$('#WORKCENTER_CODE').combobox({
|
||
|
url: "/Dict/GetFactoryWorkCenterComboxSource?factoryCode=" + factoryCode,
|
||
|
editable: 'false',
|
||
|
valueField: 'WORKCENTER_CODE',
|
||
|
textField: 'WORKCENTER_NAME'
|
||
|
});
|
||
|
$('#WORKCENTER_CODE').combobox("setText", "");
|
||
|
}
|
||
|
else {
|
||
|
//清空工序下拉框
|
||
|
var emptyData = [{ 'WORKCENTER_CODE': "", 'WORKCENTER_NAME': ""}];
|
||
|
$('#WORKCENTER_CODE').combobox("loadData", emptyData);
|
||
|
$('#WORKCENTER_CODE').combobox("select", "");
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
//工作中心
|
||
|
$('#WORKCENTER_CODE').combobox({
|
||
|
onSelect: function () {
|
||
|
var workCenterCode = $('#WORKCENTER_CODE').combobox('getValue');
|
||
|
if (workCenterCode != "") {
|
||
|
//获取下拉数据源
|
||
|
$('#WORKCELL_CODE').combobox({
|
||
|
url: "/Dict/GetFactoryWorkCellComboxSource?factoryCode=" + factoryCode + "&workCenterCode=" + workCenterCode,
|
||
|
editable: 'false',
|
||
|
valueField: 'WORKCELL_CODE',
|
||
|
textField: 'WORKCELL_NAME'
|
||
|
});
|
||
|
$('#WORKCELL_CODE').combobox("setValue", "");
|
||
|
}
|
||
|
else {
|
||
|
//清空工序下拉框
|
||
|
var emptyData = [{ 'WORKCELL_CODE': "", 'WORKCELL_NAME': ""}];
|
||
|
$('#WORKCELL_CODE').combobox("loadData", emptyData);
|
||
|
$('#WORKCELL_CODE').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>
|