123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
- ComboGridOptions optCollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- OnSelect = "queryStandard",
- Name = "cgbCollege",
- ID = "cgbCollege",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions optStandard = new ComboGridOptions
- {
- TextField = "StandardName",
- ValueField = "StandardID",
- OnSelect = "queryClass",
- Name = "cbgStandard",
- ID = "cbgStandard",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
- },
- OnLoadSuccessFun = "queryClass",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions optClassmajor = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassmajorID",
- Name = "cbgClassmajor",
- ID = "cbgClassmajor",
- OnSelect = "reload",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
- },
- IsAutoLoad = false,
- OnLoadSuccessFun = "reload",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Classmajor/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/TerminatePrinter/StudentPrintTimes.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- }
- @Html.Position()
- <div class="p_SearchTitle">
- <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
- 查询条件
- </div>
- </div>
- <form id="formQuery" method="post" action="@Url.Content("~/StudentPrintTimes/Excel")">
- @Html.PositionCondition()
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">@(EMIS.Utility.RSL.Get("College")):</li>
- <li class="sv">
- @Html.ComboGrid(optCollege, new Dictionary<string, string> { { "data-condition", "dgStudentPrintTimesList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">年级:</li>
- <li class="sv">
- @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ddlYear", ID = "ddlYear", OnSelect = "queryStandard" }, new Dictionary<string, string> { { "data-condition", "dgStudentPrintTimesList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">专业:</li>
- <li class="sv">
- @Html.ComboGrid(optStandard, new Dictionary<string, string> { { "data-condition", "dgStudentPrintTimesList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">班级:</li>
- <li class="sv">
- @Html.ComboGrid(optClassmajor, new Dictionary<string, string> { { "data-condition", "dgStudentPrintTimesList" } })
- </li>
- </ul>
- </div>
- </div>
- </form>
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 学生打印次数
- </div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
- </div>
- <div class="search_keyword" id="BatchModifydiv">
- <div class="search_input">
- <form id="formBatchModify" method="post" action="@Url.Content("~/StudentPrintTimes/BatchUpdate").AddMenuParameter()">
- <ul>
- <li class="sn" style="padding-left: 5px;">批量修改:</li>
- <li class="sv">
- @Html.DropdownList(new DropdownListOptions() {
- BindType = DropdownListBindType.None,
- ItemList = new List<DropdownListItem> { new DropdownListItem { Text = "已打印次数", Value = "Times" } },
- Name = "ddlBatchModify",
- ID = "ddlBatchModify"
- })
- </li>
- <li class="sv" id="li_div">
- <div id='TimesNumberBox_div' class='divbatchmodify'>@Html.TextBox(new TextBoxOptions
- {
- ID = "Times_NumberBox",
- Name = "Times_NumberBox",
- TextBoxType = TextBoxType.Normal
- }, new Dictionary<string, string> { { "number", "true" } })
- </div>
- </li>
- <li class="sn" style="padding-left: 20px;">
- <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-confirm'" onclick="StudentPrintTimes_BatchUpdateSubmit();">确定</a> <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" onclick="StudentPrintTimes_BatchUpdateClose();">取消</a>
- </li>
- </ul>
- </form>
- </div>
- </div>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn { FieldName = "UserID" },
- new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.08 },
- new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="YearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
- new BoundFieldColumn { FieldName="StandardDesc", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="CollegeName", HeaderText=EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="Times", HeaderText="已打印次数", Align=AlignStyle.Center, Width=0.05 },
- new BoundFieldColumn { FieldName="ModifyTime", HeaderText="最新打印时间", Align=AlignStyle.Center, Width=0.1, Formatter = Formatter.LongDate }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/StudentPrintTimes/List"),
- ID = "dgStudentPrintTimesList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
|