Procházet zdrojové kódy

提交转专业页面

新疆警官学校中职
libo před 1 rokem
rodič
revize
1a59234c46
2 změnil soubory, kde provedl 208 přidání a 15 odebrání
  1. +27
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.cshtml
  2. +181
    -13
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.js

+ 27
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.cshtml Zobrazit soubor

@@ -4,7 +4,7 @@
}
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-wrap lr-layout-wrap-notitle " style="overflow-y:scroll;-webkit-scrollbar-track-piece{width:1px;background-color:#fff;}">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
@@ -45,6 +45,12 @@
</div>
</div>
</div>

@*<div class="lr-layout-tool-item">
<div class="lr-query-btn" style="padding:0 10px;" id="listitem">
点击
</div>
</div>*@
</div>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">
@@ -52,8 +58,27 @@
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
<div class="lr-layout-body" style="height:50%;" id="gridtable"></div>

<div class="lr-layout-body" style="height:40%;border-top: 1px solid #ccc;margin-top:50px;" id="selgridtab"></div>


<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">系部</div>
<div id="DeptNo"></div>
</div>
</div>
</div>

</div>




</div>
</div>
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.js")

+ 181
- 13
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/MajorIndex.js Zobrazit soubor

@@ -1,5 +1,7 @@
var refreshGirdData;
var StuId;
var tempdatra = new Array();
var list = [];
var bootstrap = function ($, learun) {
"use strict";
var page = {
@@ -143,7 +145,159 @@ var bootstrap = function ($, learun) {
});
}
});
$('#selgridtab').jfGrid({
headData: [
//{
// label: "审核状态", name: "CheckMark", width: 80, align: "center",
// formatter: function (cellvalue) {
// return cellvalue == "1" ? "<span class=\"label label-success\">已审核</span>" : "<span class=\"label label-danger\">未审核</span>";
// }
//},
{ label: "学生编号", name: "StuNo", width: 100, align: "left", ishide: true, },
{ label: "学籍号", name: "StuCode", width: 100, align: "left", ishide: true, },
{ label: "学号", name: "ProvinceCode", width: 100, align: "left" },
{ label: "姓名", name: "StuName", width: 100, align: "left" },
{
label: "性别", name: "GenderNo", width: 80, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "男" : "女";
}
},
{
label: "出生日期", name: "Birthday", width: 100, align: "left", ishide: true,
formatter: function (value) {
return learun.formatDate(value, 'yyyy-MM-dd');
}
},
{ label: "身份证号", name: "IdentityCardNo", width: 100, align: "left" },
{
label: "民族", name: "NationalityNo", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'National',
callback: function (_data) {
callback(_data.text);
}
});
}
},
//{
// label: "政治面貌", name: "PartyFaceNo", width: 100, align: "left",
// formatterAsync: function (callback, value, row, op, $cell) {
// learun.clientdata.getAsync('dataItem', {
// key: value,
// code: 'PolityStatus',
// callback: function (_data) {
// callback(_data.text);
// }
// });
// }
//},
{ label: "年级", name: "Grade", width: 100, align: "left" },
{
label: "系所", name: "DeptNo", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo',
key: value,
keyId: 'deptno',
callback: function (_data) {
callback(_data['deptname']);
}
});
}
},
{
label: "专业", name: "MajorNo", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
key: value,
keyId: 'majorno',
callback: function (_data) {
callback(_data['majorname']);
}
});
}
},
{
label: "班级", name: "ClassNo", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
key: value,
keyId: 'classno',
callback: function (_data) {
callback(_data['classname']);
}
});
}
},
{
label: "学制", name: "EduSystem", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'EduSystem',
callback: function (_data) {
callback(_data.text);
}
});
}
},
//{
// label: "身体状态", name: "HealthStatus", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
// learun.clientdata.getAsync('dataItem', {
// key: value,
// code: 'QRCodeHealthStatus',
// callback: function (_data) {
// callback(_data.text);
// }
// });
// }
//},
//{
// label: "学习形式", name: "StudyModality", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
// learun.clientdata.getAsync('dataItem', {
// key: value,
// code: 'StudyModality',
// callback: function (_data) {
// callback(_data.text);
// }
// });
// }
//},
//{ label: "报到日期", name: "RegisterDate", width: 100, align: "left" },
//{ label: "入学方式", name: "EntranceWay", width: 100, align: "left" },
//{ label: "入学年月", name: "EntranceDate", width: 100, align: "left" },
//{ label: "余额", name: "Balance", width: 100, align: "left" },
{ label: "家庭地址", name: "MailAddress", width: 100, align: "left" },
{ label: "联系电话", name: "mobile", width: 100, align: "left" },
{ label: "户口所在地", name: "FatherUnit", width: 100, align: "left" },
{ label: "档案所在地", name: "MatherUnit", width: 100, align: "left" },
{
label: "操作", name: "Delete", width: 100, align: "center",
formatter: function (callback,cellvalue, row, op, $cell) {
var $div = $('<div></div>');
var $hbtn = $('<span class="label label-info" style="cursor: pointer;margin-right:8px;"> 移除</span>');
$hbtn.on('click', function () {
tempdatra.map((item, index) => {
if (item.StuNo == cellvalue.StuNo) {
tempdatra.splice(index,1)
}
});
//console.log(tempdatra)
$('#selgridtab').jfGridSet('refreshdata', tempdatra);

});
$div.append($hbtn);
return $div;
}
},
],
mainId: 'AAIId',
});
},
// 初始化列表
initGird: function () {
@@ -537,19 +691,30 @@ var bootstrap = function ($, learun) {
isPage: true,
rows: 100,
isMultiselect: true,
//onSelectRow: function (rowdata) {
// if (rowdata.CheckMark == "1") {
// $("#check").hide();
// $("#uncheck").show();
// $("#lr_edit").hide();
// $("#lr_delete").hide();
// } else {
// $("#uncheck").hide();
// $("#check").show();
// $("#lr_edit").show();
// $("#lr_delete").show();
// }
//}
onSelectRow: function (rowdata) {
var selectedRow = $('#gridtable').jfGridGet('rowdata');
if (list.length < 1) {
list = selectedRow
} else {
// 合并两个数组
list = list.concat(selectedRow)
// 去重
let temp = {}
list = list.reduce((prev, curv) => {
// 若临时对象中有一模一样的item,则什么都不做
if (temp[curv.StuNo]) { }
else {
temp[curv.StuNo] = true
prev.push(curv)
}
return prev
}, [])
//console.log('resources', list)
}
console.log(list)
tempdatra = list
$('#selgridtab').jfGridSet('refreshdata', tempdatra);
}

});
page.search();
@@ -564,3 +729,6 @@ var bootstrap = function ($, learun) {
};
page.init();
}
function delbtn() {
console.log('111111')
}

Načítá se…
Zrušit
Uložit