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

96 lines
3.0 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Stocktaking.CountSheetModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
盘点详细信息
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.Stocktaking.CountSheetModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<%=Html.Hidden("fileName") %>
<%=Html.HiddenFor(p =>p.PLANID) %>
<script language="javascript" type="text/javascript">
//导出
function Export() {
// debugger;
var ids = getSelectKey();
document.getElementById("selectKey").value = ids;
var PLANID = document.getElementById('PLANID').value;
submitByButton("ExportExcel?PID=" + PLANID);
// $.get("/Stocktaking/ExportExcel?PID=" + PLANID, $("form").serializeArray(), function (data) {
// debugger;
// submitByButton("/Stocktaking/ExportFile?FileName=" + data);
// });
}
//查询
function Search() {
if (parseDate($("#STARTCREATEDATE").val()) > parseDate($("#ENDCREATEDATE").val())) {
alert("开始时间不能大于结束时间!");
return;
}
List(1)
}
$(function () { List(1); });
//添加
function Add() {
openAppWindow1('信息添加', 'Edit', '950', '680');
}
//修改
function Update() {
var ids = getSelectKey();
if (ids == "") {
MSI("提示", "请选择修改记录。");
return;
}
if (ids.indexOf(":") > 0) {
MSI("提示", "每次只能修改一条记录。");
return;
}
document.getElementById("selectKey").value = ids;
openAppWindow1('修改', 'Edit?PID=' + ids, '950', '680');
}
//删除
function Delete() {
var ids = getSelectKey();
if (ids == "") {
MSI("错误", "至少选择一条记录");
}
else {
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.QTButtonBack("close", "List", "parent.closeAppWindow1();return false;")%>
<%=Html.QTButton("export", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "Export()", (s, f) => { return true; })%>
</td>
</tr>
</table>
</asp:Content>