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

136 lines
4.4 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.FeedInManage.PouringRecorderModel>" %>
<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.QPEnd()%>
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.FeedInManage.PouringRecorderModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<script language="javascript" type="text/javascript">
$(function () {
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");
})
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=Html.QTButtonSearch("PouringRecorder", "List", "List(1)")%>
<%=Html.QTButtonUpdate("PouringRecorder", "Update", "Update()")%>
<%=Html.QTButtonDelete("PouringRecorder", "Delete", "Delete()")%>
</td>
</tr>
</table>
</asp:Content>