<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Stocktaking.StocktakingSearchModel>" %> <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 不合格品记录查询 </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <%=Html.QPSeach(80,true) %> <table id="condiTable"> <tr> <th align="right"> <%=Html.QV(p => p.PLAN_NO)%> </th> <td> <%=Html.QC(p => p.PLAN_NO)%> </td> <th align="right"> <%=Html.QV(p => p.PLAN_STATE)%> </th> <td> <%=Html.QC(p => p.PLAN_STATE)%> </td> <th align="right"> <%=Html.QV(p => p.PLANTIMESTART)%> </th> <td> <%=Html.QC(p => p.PLANTIMESTART)%> </td> <th align="right"> <%=Html.QV(p => p.PLANTIMEEND)%> </th> <td> <%=Html.QC(p => p.PLANTIMEEND)%> </td> </tr> </table> <%=Html.QPEnd()%> <%=Html.QPList() %> <%=Html.QDateGrid<QMAPP.FJC.Web.Models.Stocktaking.StocktakingSearchModel>(Model)%> <%=Html.QPEnd() %> <%=Html.Hidden("selectKey")%> <%=Html.Hidden("fileName") %> <script language="javascript" type="text/javascript"> //查询 function Search() { if (parseDate($("#STARTCREATEDATE").val()) > parseDate($("#ENDCREATEDATE").val())) { alert("开始时间不能大于结束时间!"); return; } List(1) } $(function () { List(1); }); //添加 function Add() { openAppWindow1('信息添加', 'Edit', '650', '480'); } //盘点明细查询查当前计划手持信息 function PanDetail() { var ids = getSelectKey(); if (ids == "") { MSI("提示", "请选择盘点计划信息。"); return; } if (ids.indexOf(":") > 0) { MSI("提示", "每次只能查询一条信息。"); return; } document.getElementById("selectKey").value = ids; openAppWindow1('盘点明细', 'PanDetail?PID=' + ids, '650', '480'); } //盘点对比结果查询 function PanResultDetail() { var ids = getSelectKey(); if (ids == "") { MSI("提示", "请选盘点计划。"); return; } if (ids.indexOf(":") > 0) { MSI("提示", "每次只能查询一条信息。"); return; } document.getElementById("selectKey").value = ids; openAppWindow1('盘点对比明细', 'PanCompareResultDetail?PID=' + ids, '650', '480'); } //盘点完成 function CompleteCompare() { var ids = getSelectKey(); if (ids == "") { MSI("错误", "至少选择一条记录"); } else { document.getElementById("selectKey").value = ids; MSQ("提示", "确定要完成盘点计划吗?", function () { submitByButton("CompleteCompare"); }) } } //修改 function Update() { var ids = getSelectKey(); if (ids == "") { MSI("提示", "请选择修改记录。"); return; } if (ids.indexOf(":") > 0) { MSI("提示", "每次只能修改一条记录。"); return; } document.getElementById("selectKey").value = ids; openAppWindow1('修改', 'Edit?PID=' + ids, '650', '480'); } //删除 function Delete() { var ids = getSelectKey(); if (ids == "") { MSI("错误", "至少选择一条记录"); } else { document.getElementById("selectKey").value = ids; MSQ("提示", "确定要删除选中的记录吗?", function () { submitByButton("Delete"); }) } } //盘点比对 function PanCompare() { var ids = getSelectKey(); if (ids == "") { MSI("错误", "至少选择一条记录"); } else { document.getElementById("selectKey").value = ids; MSQ("提示", "确定要进行盘点对比吗?", function () { submitByButton("detailCompareResult"); }) } } </script> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server"> <table cellpadding="0" cellspacing="0"> <tr> <td align="center"> <%=Html.QTButtonSearch("StocktakingManage", "List", "Search()", QMAPP.Common.Web.SystemLimit.isLimt)%> <%=Html.QTButtonAdd("StocktakingManage", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%> <%=Html.QTButtonUpdate("StocktakingManage", "Edit", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%> <%=Html.QTButtonDelete("StocktakingManage", "Delete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%> <%=Html.QTButton("PanDetail", "PanDetail", QMFrameWork.WebUI.IconCls.detail, "PanDetail()", QMAPP.Common.Web.SystemLimit.isLimt)%> <%=Html.QTButton("PanCompare", "PanCompare", QMFrameWork.WebUI.IconCls.edit, "PanCompare()", QMAPP.Common.Web.SystemLimit.isLimt)%> <%=Html.QTButton("CompareResult", "CompareResult", QMFrameWork.WebUI.IconCls.edit, "PanResultDetail()", QMAPP.Common.Web.SystemLimit.isLimt)%> <%=Html.QTButton("CompleteCompare", "CompleteCompare", QMFrameWork.WebUI.IconCls.ok, "CompleteCompare()", QMAPP.Common.Web.SystemLimit.isLimt)%> </td> </tr> </table> </asp:Content>