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

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.FeedInManage.InJectionRecorderModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
注塑投料记录列表
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPSeach(100,true) %>
<table id="condiTable">
<tr>
<th align="right">
<%=Html.QV(p => p.MATERIALCODETXT)%>
</th>
<td>
<%=Html.QC(p => p.MATERIALCODETXT)%>
</td>
<th align="right">
<%=Html.QV(p=>p.MATERIALNAME) %>
</th>
<td>
<%=Html.QC(p => p.MATERIALNAME)%>
</td>
<th align="right">
<%=Html.QV(p => p.MATERIALTYPE)%>
</th>
<td>
<%=Html.QC(p => p.MATERIALTYPE)%>
</td>
<th align="right">
<%=Html.QV(p => p.MATERIALBATCH)%>
</th>
<td>
<%=Html.QC(p => p.MATERIALBATCH)%>
</td>
</tr>
<tr>
<th>
<%=Html.QV(p => p.PRODUCESHIFTTCODE)%>
</th>
<td>
<%=Html.QC(p => p.PRODUCESHIFTTCODE)%>
</td>
<th>
<%=Html.QV(p => p.MACHINECODDE)%>
</th>
<td>
<%=Html.QC(p => p.MACHINECODDE)%>
</td>
<th>
<%=Html.QV(p => p.CreateDateStart)%>
</th>
<td>
<%=Html.QC(p => p.CreateDateStart)%>
</td>
<th>
<%=Html.QV(p => p.CreateDateEnd)%>
</th>
<td>
<%=Html.QC(p => p.CreateDateEnd)%>
</td>
</tr>
</table>
<div style="left: 1px; position: relative;">
</div>
<%=Html.HiddenFor(p=>p.PROCESSTYPE)%>
<%=Html.QPEnd()%>
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.FeedInManage.InJectionRecorderModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<script language="javascript" type="text/javascript">
$(function () {
var attriute = "3";
//获取物料下拉数据源
$('#MATERIALTYPE').combobox({
url: "/Dict/GetMaterialClassByAttributeComboxSource?attribute=" + attriute,
editable: 'false',
valueField: 'MATERIAL_TYPE_CODE',
textField: 'MATERIAL_TYPE_NAME'
});
$('#MATERIALTYPE').combobox("setValue", "");
var type = "INJECT";
//获取设备MACHINE下拉数据源
$('#MACHINECODDE').combobox({
url: "/Dict/GetMachineForOrder?ordertype=" + type,
editable: 'false',
valueField: 'MACHINECODDE',
textField: 'MACHINENAME'
});
$('#MACHINECODDE').combobox("setValue", "");
List(1);
});
//标记()的记录为红色
// $('#QDateGrid').datagrid({
// rowStyler: function (index, row) {
// if (row.USEDWEIGHTSUM == 0) {
// return 'color:red;';
// }
// }
// });
//修改
function Update() {
var ids = getSelectKey();
if (ids == "") {
MSI("提示", "请选择修改记录。");
return;
}
if (ids.indexOf(":") > 0) {
MSI("提示", "每次只能修改一条记录。");
return;
}
var USEDWEIGHTSUM = $('#QDateGrid').datagrid('getSelections')[0].USEDWEIGHTSUM;
if (USEDWEIGHTSUM != 0) {
MSI("提示", "该零件已使用,不能修改!");
return;
}
document.getElementById("selectKey").value = ids;
openAppWindow1('注塑投料记录修改', 'Edit?PID=' + ids, '350', '360');
}
//删除
function Delete() {
var ids = getSelectKey();
if (ids == "") {
MSI("错误", "至少选择一条记录");
}
var USEDWEIGHTSUM = $('#QDateGrid').datagrid('getSelections')[0].USEDWEIGHTSUM;
if (USEDWEIGHTSUM != 0) {
MSI("提示", "该零件已使用,不能删除!");
return;
}
document.getElementById("selectKey").value = ids;
MSQ("提示", "确定要删除选中的记录吗?", function () {
submitByButton("Delete");
})
}
$(function () {
$('#MACHINECODDE').combobox({
panelWidth: '200'
});
});
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=Html.QTButtonSearch("InJectionRecorder", "List", " List(1)")%>
<%=Html.QTButtonUpdate("InJectionRecorder", "Update", "Update()")%>
<%=Html.QTButtonDelete("InJectionRecorder", "Delete", "Delete()")%>
</td>
</tr>
</table>
</asp:Content>