12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgStudentPrintTimesList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.UserID);
- });
- return d;
- }
- function StudentPrintTimes_Excel() {
- $(document.forms[0]).submit();
- }
- function StudentPrintTimes_BatchUpdate() {
- $("#BatchModifydiv").css("display", "inline-block");
- }
- function StudentPrintTimes_BatchUpdateSubmit() {
- var d = validChoose();
- if (d.length == 0) {
- $.messager.alert("系统信息", "请选择您要批量修改的信息。");
- return;
- }
- $.messager.confirm("系统提示", "您确定要批量修改选择的信息吗?", function (r) {
- if (r) {
- var formValue = $("#Times_NumberBox").val();
- if (formValue == "") {
- $.messager.alert("系统信息", "已打印次数不能为空。");
- return;
- } else if (isNaN(formValue)) {
- $.messager.alert("系统信息", "已打印次数请填写数字。");
- return;
- }
- var url = $("#formBatchModify").attr("action");
- $.postWithLoading(url, { userIDs: d.join(','), times: formValue }, EMISFunction.FormSuccess, 'json');
- $("#BatchModifydiv").css("display", "none");
- }
- });
- }
- function StudentPrintTimes_BatchUpdateClose() {
- $("#BatchModifydiv").css("display", "none");
- }
- function reload() {
- $("#dgStudentPrintTimesList").cmsXDataTable("load", $.getDataGridParams("dgStudentPrintTimesList"));
- }
- function queryStandard() {
- try {
- var collegeID = $("#cgbCollege").combogridX("getValue");
- var yearID = $("#ddlYear").combobox("getValue");
- var jsonString = "({'QueryParamsDatas':'";
- if (collegeID != "" && collegeID != nonSelect) {
- jsonString += "CollegeDropdown|*|" + collegeID + "|@|";
- }
- if (yearID != nonSelect) {
- jsonString += "DictionaryGrade|*|" + yearID + "|@|";
- }
- jsonString += "'})";
- $("#cbgStandard").combogridX("reload", eval(jsonString));
- } catch (e) {
- }
- }
- function queryClass() {
- try {
- var collegeID = $("#cgbCollege").combogridX("getValue");
- var yearID = $("#ddlYear").combobox("getValue");
- var standardID = $("#cbgStandard").combogridX("getValue");
- var jsonString = "({'QueryParamsDatas':'";
- if (collegeID != "" && collegeID != nonSelect) {
- jsonString += "CollegeDropdown|*|" + collegeID + "|@|";
- }
- if (yearID != nonSelect) {
- jsonString += "DictionaryGrade|*|" + yearID + "|@|";
- }
- if (standardID != "" && standardID != nonSelect) {
- jsonString += "DictionaryStandard|*|" + standardID + "|@|";
- }
- jsonString += "'})";
- $("#cbgClassmajor").combogridX("reload", eval(jsonString));
- } catch (e) {
- }
- }
|