<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShiJuanBiaoQianList.aspx.cs" Inherits="CY.WebForm.Pages.financial.ShiJuanBiaoQianList" %>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
<head runat="server">
|
<title>科目设置管理</title>
|
<uc:CMSHead ID="CMSHead1" runat="server" />
|
<script type="text/javascript">
|
///添加
|
function addModel(orderkeyid) {
|
top.Dialog.open({ URL: "/Pages/business/PlanOrderAdd.aspx?Keyid='0'&&orderkeyid=" + orderkeyid, Title: "新增计划订单", Width: 1100, Height: 900 });
|
}
|
|
//查看
|
function onView(keyid) {
|
top.Dialog.open({ URL: "/Pages/business/PlanOrderDetail.aspx?Keyid=" + keyid, Title: "查看计划订单", Width: 1100, Height: 900 });
|
}
|
|
//修改
|
function onEdit(keyid) {
|
top.Dialog.open({ URL: "/Pages/business/PlanOrderEdit.aspx?Keyid=" + keyid, Title: "修改计划订单", Width: 1100, Height: 900 });
|
}
|
|
//删除
|
function onDelete(keyid) {
|
top.Dialog.confirm("确定要删除该记录吗?", function () {
|
window.location = "/Pages/business/ShiJuanBiaoQianList.aspx?Keyid=" + keyid;
|
});
|
}
|
|
//查看
|
function checkSelFile() {
|
|
|
var oFile = document.getElementById('filesel');
|
if (oFile.value == "") {
|
alertMsg('没有选择文件');
|
return false;
|
|
}
|
//debugger;
|
//replaceParamVal("deleteKeyIds", "");
|
return true;
|
}
|
|
//批量删除
|
function onAllDelete() {
|
var deleteKeyIds = "";
|
$(":checkbox").each(
|
function () {
|
if ($(this).is(":checked")) {
|
deleteKeyIds += $(this).val() + ",";
|
}
|
}
|
)
|
if (deleteKeyIds == "") {
|
//top.Dialog.alert("请选择要删除的记录", function () {
|
//});
|
alertMsg("请选择要删除的记录");
|
return;
|
}
|
else {
|
deleteKeyIds = deleteKeyIds.substring(0, deleteKeyIds.length - 1);
|
|
top.Dialog.confirm("确定要删除所选记录吗?", function () {
|
window.submitUrl = "/Pages/business/ShiJuanBiaoQianList.aspx"; //设置当前页的提交路径
|
CallServer({ Target: "BatchDelete", ids: deleteKeyIds }, function (data, textStatus) {
|
if ('1' == data) {
|
ReLoad(); //刷新页面
|
} else {
|
alertMsg('-1' == data ? '操作过程中发生异常,请重新操作!' : '操作失败!');
|
|
}
|
});
|
});
|
}
|
}
|
|
//删除
|
function onDeles(orderid) {
|
var deleteKeyIds = "";
|
$(":checkbox").each(
|
function () {
|
if ($(this).is(":checked")) {
|
deleteKeyIds += $(this).val() + ",";
|
}
|
}
|
)
|
if (deleteKeyIds == "") {
|
//top.Dialog.alert("请选择要打印的记录", function () {
|
//});
|
alertMsg("请选择要打印的记录");
|
return;
|
}
|
|
deleteKeyIds = deleteKeyIds.substring(0, deleteKeyIds.length - 1);
|
top.Dialog.open({ URL: "/Pages/business/ShiJuanBiaoQianPrint.aspx?orderids=" + deleteKeyIds, Title: "批量打印送货单", Width: 1200, Height: 900 });
|
|
|
}
|
</script>
|
</head>
|
<body>
|
<form id="form1" runat="server">
|
<div id="scrollContent">
|
<div class="box1" paneltitle="功能面板" roller="false">
|
<table class="TableNewStyle">
|
<tr>
|
<td class="ali03">
|
导入日期:
|
</td>
|
<td style="width: 215px">
|
<input id="txtBeginData" type="text" runat="server" class='date w80px' maxlength='10' />-<input id="txtEndDate" type="text" runat="server" class='date w80px' maxlength='10' />
|
</td>
|
<td class="ali03 " style="padding-left: 20px">
|
编号:
|
</td>
|
<td>
|
<input id="txtBianhao" type="text" runat="server" />
|
</td>
|
<td class="ali03 " style="padding-left: 20px">
|
片区:
|
</td>
|
<td>
|
<input id="txtQuyu" type="text" runat="server" />
|
</td>
|
<td class="ali03 " style="padding-left: 20px">
|
学校:
|
</td>
|
<td>
|
<input id="txtXuexiao" type="text" runat="server" />
|
</td>
|
|
<td class="ali03 " style="padding-left: 20px">
|
年级:
|
</td>
|
<td>
|
<input id="txtNianji" type="text" runat="server" />
|
</td>
|
<td class="ali03 " style="padding-left: 20px">
|
科目:
|
</td>
|
<td>
|
<input id="txtKemu" type="text" runat="server" />
|
</td>
|
</tr>
|
<tr>
|
|
|
|
|
|
|
|
<td colspan="12">
|
<asp:Button ID="btn_Register" Text="查询" runat="server" OnClick="btn_Register_Click" />
|
<input type="hidden" id="HideKeyid" runat="server" />
|
</td>
|
|
</tr>
|
</table>
|
</div>
|
<div class="box_tool_min ">
|
<div class="center">
|
<div class="left">
|
<div class="right">
|
<div class="padding_top5 padding_left10">
|
<%--<a href="javascript:;" onclick="addModel( )" class="aaddModel" ><span class="icon_add">新增计划订单</span></a> --%>
|
<a href="javascript:;" onclick="onDeles()" ><span class="icon_edit" >批量打印</span></a>
|
<a href="javascript:;" onclick="onAllDelete()" ><span class="icon_delete">批量删除</span></a>
|
|
|
<a class="aaddModel" href="/images/jihuageshi/上传考试标签.xlsx"><span class="icon_arr1">上传模板</span></a>
|
<input type="file" id="filesel" name="__hetongFile" keepdefaultstyle="true" runat="server" text="请选择文件" />
|
<asp:Button ID="UpdateFileNew" Text="上传" runat="server" OnClick="btn_Submit_Click" OnClientClick="return checkSelFile()" />
|
|
|
<div class="clear">
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="clear">
|
</div>
|
</div>
|
<div>
|
<asp:Repeater ID="RepSubjeSetctList" runat="server">
|
<HeaderTemplate>
|
<table class="tableStyle ali02" useclick="false" usecheckbox="true" sortmode="true">
|
<tr>
|
<th width="25">
|
</th>
|
<th width="120">
|
导入日期
|
</th>
|
<th width="30" style="text-align: center">
|
编号
|
</th>
|
|
<th>
|
片区
|
</th>
|
<th>
|
学校
|
</th>
|
<th>
|
年级
|
</th>
|
<th>
|
科目
|
</th>
|
<th>
|
大
|
</th>
|
<th>
|
小
|
</th>
|
|
|
|
|
</tr>
|
</HeaderTemplate>
|
<ItemTemplate>
|
<tr>
|
<td>
|
<input type="checkbox" value='<%#Eval("Keyid")%>' />
|
</td>
|
<td>
|
<%#Eval("CreateTime","{0:yyyy-MM-dd}")%>
|
</td>
|
<td>
|
<%#Eval("Bianhao")%>
|
</td>
|
|
<td>
|
<%#Eval("Quyu")%>
|
</td>
|
<td>
|
<%#Eval("Xuexiao")%>
|
</td>
|
|
<td>
|
<%#Eval("Nianji")%>
|
</td>
|
<td>
|
<%#Eval("Kemu")%>
|
</td>
|
<td>
|
<%#Eval("Da")%>
|
</td>
|
<td>
|
<%#Eval("Xiao")%>
|
</td>
|
|
</tr>
|
</ItemTemplate>
|
<FooterTemplate>
|
</table>
|
</FooterTemplate>
|
</asp:Repeater>
|
<div id="page">
|
<uc:UCPager ID="UCPager1" runat="server" />
|
</div>
|
</div>
|
</div>
|
</form>
|
</body>
|
</html>
|