Переглянути джерело

学籍异动管理,学籍移动审核添加查看按钮

新疆警官学校中职
ndbs 1 рік тому
джерело
коміт
0d026a879b
4 змінених файлів з 218 додано та 190 видалено
  1. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/CheckIndex.cshtml
  2. +18
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/CheckIndex.js
  3. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/FormView.cshtml
  4. +197
    -188
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Index.js

+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/CheckIndex.cshtml Переглянути файл

@@ -50,6 +50,7 @@
<a id="lr_check" class="btn btn-default"><i class="fa fa-lock"></i>&nbsp;审核</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-lock"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
<a id="lr_view" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</a>
</div>
</div>
</div>


+ 18
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/CheckIndex.js Переглянути файл

@@ -77,6 +77,24 @@ var bootstrap = function ($, learun) {
});
}
});
// 查看
$('#lr_view').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
if (keyValue.indexOf(',') != -1) {
learun.alert.warning("只能选择一条记录进行编辑!");
return;
}
learun.layerForm({
id: 'formview',
title: '查看',
url: top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/FormView?keyValue=' + keyValue,
width: 1000,
height: 600,
btn: null
});
}
});
},
initGird: function () {
$('#gridtable').lrAuthorizeJfGridLei({


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/FormView.cshtml Переглянути файл

@@ -96,8 +96,8 @@
<input id="CheckTime" type="text" class="form-control lr-input-wdatepicker" readonly="readonly" />
</div>
<div class="col-xs-12 lr-form-item" data-table="StuTransferInfo">
<div class="lr-form-item-title">审核意见</div>
<input id="Remark" type="text" class="form-control" readonly="readonly" />
<div class="lr-form-item-title">备注</div>
<textarea id="Remark" class="form-control" style="height: 100px;" readonly="readonly"></textarea>
</div>




+ 197
- 188
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuTransferInfo/Index.js Переглянути файл

@@ -105,6 +105,10 @@ var bootstrap = function ($, learun) {
$('#lr_view').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
if (keyValue.indexOf(',') != -1) {
learun.alert.warning("只能选择一条记录进行编辑!");
return;
}
learun.layerForm({
id: 'formview',
title: '查看',
@@ -121,24 +125,16 @@ var bootstrap = function ($, learun) {
url: top.$.rootUrl + '/EducationalAdministration/StuTransferInfo/GetPageList',
headData: [
{ label: '姓名', name: 'StuName', width: 100, align: "left" },
{ label: '学号', name: 'StuNo', width: 140, align: "left" },
//{ label: '性别', name: 'Gender', width: 200, align: "left" },
{ label: '身份证号', name: 'IdentityCardNo', width: 160, align: "left" },
{ label: '学号', name: 'StuNo', width: 160, align: "left" },
{
label: '异动类型', name: 'AnomalousType', width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'StuChangeType',
callback: function (_data) {
callback(_data.text);
}
});
label: "性别", name: "GenderNo", width: 80, align: "left",
formatter: function (cellvalue) {
return cellvalue == true ? "男" : "女";
}
},
{ label: '异动原因', name: 'ChangeReason', width: 300, align: "left" },
{ label: '身份证号', name: 'IdentityCardNo', width: 200, align: "left" },
{
label: '原班级', name: 'ClassNo', width: 100, align: "left",
label: '原班级', name: 'ClassNo', width: 150, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
@@ -151,7 +147,7 @@ var bootstrap = function ($, learun) {
}
},
{
label: '原专业', name: 'MajorNo', width: 100, align: "left",
label: '原专业', name: 'MajorNo', width: 150, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
@@ -163,22 +159,22 @@ var bootstrap = function ($, learun) {
});
}
},
//{
// 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: '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: 'Grade', width: 60, align: "left" },
{
label: '学制', name: 'EduSystem', width: 100, align: "left",
label: '学制', name: 'EduSystem', width: 200, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
@@ -189,179 +185,192 @@ var bootstrap = function ($, learun) {
});
}
},
//{
// label: '入班日期', name: 'LeaveDate', width: 100, align: "left",
// formatter: function (cellvalue) {
// return learun.formatDate(cellvalue, 'yyyy-MM-dd');
// }
//},
//{
// label: '离班日期', name: 'EnteDate', width: 100, align: "left",
// formatter: function (cellvalue) {
// return learun.formatDate(cellvalue, 'yyyy-MM-dd');
// }
//},
//{
// label: '现班级', name: 'NewClassNo', 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: 'NewMajorNo', 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: 'NewDeptNo', 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: 'NewGrade', width: 60, align: "left" },
//{
// label: '创建时间', name: 'CreateTime', width: 100, align: "left",
// formatter: function (cellvalue) {
// return learun.formatDate(cellvalue, 'yyyy-MM-dd');
// }
//},
//{
// label: '创建用户', name: 'CreateUserId', width: 200, align: "left",
// formatterAsync: function (callback, value, row, op, $cell) {
// learun.clientdata.getAsync('custmerData', {
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
// key: value,
// keyId: 'f_userid',
// callback: function (_data) {
// callback(_data['f_realname']);
// }
// });
// }
//},
//{
// label: '审核时间', name: 'CheckTime', width: 200, align: "left",
// formatter: function (cellvalue) {
// return learun.formatDate(cellvalue, 'yyyy-MM-dd');
// }
//},
//{
// label: '审核用户', name: 'CheckUserId', width: 200, align: "left",
// formatterAsync: function (callback, value, row, op, $cell) {
// learun.clientdata.getAsync('custmerData', {
// url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
// key: value,
// keyId: 'f_userid',
// callback: function (_data) {
// callback(_data['f_realname']);
// }
// });
// }
//},
{
label: '入班日期', name: 'LeaveDate', width: 100, align: "left",
formatter: function (cellvalue) {
return learun.formatDate(cellvalue, 'yyyy-MM-dd');
}
},
{
label: '离班日期', name: 'EnteDate', width: 100, align: "left",
formatter: function (cellvalue) {
return learun.formatDate(cellvalue, 'yyyy-MM-dd');
}
},
{
label: '现班级', name: 'NewClassNo', 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: 'NewMajorNo', 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: 'NewDeptNo', 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: 'NewGrade', width: 60, align: "left" },
{
label: '创建时间', name: 'CreateTime', width: 100, align: "left",
formatter: function (cellvalue) {
return learun.formatDate(cellvalue, 'yyyy-MM-dd');
}
},
{
label: '创建用户', name: 'CreateUserId', width: 200, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
key: value,
keyId: 'f_userid',
callback: function (_data) {
callback(_data['f_realname']);
}
});
}
},
{
label: '审核时间', name: 'CheckTime', width: 200, align: "left",
formatter: function (cellvalue) {
return learun.formatDate(cellvalue, 'yyyy-MM-dd');
}
},
{
label: '审核用户', name: 'CheckUserId', width: 200, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
key: value,
keyId: 'f_userid',
callback: function (_data) {
callback(_data['f_realname']);
}
});
}
},
{
label: '审核状态', name: 'F_EnabledMark', width: 80, align: "left",
label: '审核状态', name: 'F_EnabledMark', width: 200, align: "left",
formatter: function (cellvalue) {
return cellvalue == "1" ? "<span class=\"label label-success\">已生效</span>" : "<span class=\"label label-danger\">未生效</span>";
}
},
{
label: '是否保留学籍', name: 'StuStatus', width: 80, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'YesOrNoInt',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: '是否注销账号', name: 'F_WriteMark', width: 80, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'YesOrNoInt',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: '是否恢复学籍', name: 'RecoverStuStatus', width: 80, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'YesOrNoInt',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: '是否恢复账号', name: 'RecoverWriteMark', width: 80, align: "left",
label: '异动类型', name: 'AnomalousType', width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'YesOrNoInt',
code: 'StuChangeType',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: '修学年限', name: 'SuspensionPeriod', width: 200, align: "left" },
{
label: '休学开始时间', name: 'SuspensionBeginTime', width: 100, align: "left",
formatter: function (cellvalue) {
return learun.formatDate(cellvalue, 'yyyy-MM-dd');
}
},
{
label: '休学结束时间', name: 'SuspensionEndTime', width: 100, align: "left",
formatter: function (cellvalue) {
return learun.formatDate(cellvalue, 'yyyy-MM-dd');
}
},
{ label: '转学前学校', name: 'TransferSchool', width: 150, align: "left" },
{ label: '转学前学号', name: 'TransferStuNo', width: 100, align: "left" },
{
label: '出身日期', name: 'Birthday', width: 100, align: "left",
formatter: function (cellvalue) {
return learun.formatDate(cellvalue, 'yyyy-MM-dd');
}
},
{ label: '民族', name: 'NationalityNo', width: 80, align: "left" },
{ label: '省', name: 'Province', width: 100, align: "left" },
{ label: '市', name: 'City', width: 100, align: "left" },
{ label: '县/区', name: 'County', width: 100, align: "left" },
{ label: '联系电话', name: 'Mobile', width: 100, align: "left" },
{ label: '家庭地址', name: 'MailAddress', width: 200, align: "left" },
{ label: '转出学校', name: 'OutSchool', width: 100, align: "left" },
{ label: '备注', name: 'Remark', width: 500, align: "left" },
//{ label: '异动原因', name: 'ChangeReason', width: 300, align: "left" },
//{
// label: '是否保留学籍', name: 'StuStatus', width: 80, align: "left",
// formatterAsync: function (callback, value, row, op, $cell) {
// learun.clientdata.getAsync('dataItem', {
// key: value,
// code: 'YesOrNoInt',
// callback: function (_data) {
// callback(_data.text);
// }
// });
// }
//},
//{
// label: '是否注销账号', name: 'F_WriteMark', width: 80, align: "left",
// formatterAsync: function (callback, value, row, op, $cell) {
// learun.clientdata.getAsync('dataItem', {
// key: value,
// code: 'YesOrNoInt',
// callback: function (_data) {
// callback(_data.text);
// }
// });
// }
//},
//{
// label: '是否恢复学籍', name: 'RecoverStuStatus', width: 80, align: "left",
// formatterAsync: function (callback, value, row, op, $cell) {
// learun.clientdata.getAsync('dataItem', {
// key: value,
// code: 'YesOrNoInt',
// callback: function (_data) {
// callback(_data.text);
// }
// });
// }
//},
//{
// label: '是否恢复账号', name: 'RecoverWriteMark', width: 80, align: "left",
// formatterAsync: function (callback, value, row, op, $cell) {
// learun.clientdata.getAsync('dataItem', {
// key: value,
// code: 'YesOrNoInt',
// callback: function (_data) {
// callback(_data.text);
// }
// });
// }
//},
//{ label: '修学年限', name: 'SuspensionPeriod', width: 200, align: "left" },
//{
// label: '休学开始时间', name: 'SuspensionBeginTime', width: 100, align: "left",
// formatter: function (cellvalue) {
// return learun.formatDate(cellvalue, 'yyyy-MM-dd');
// }
//},
//{
// label: '休学结束时间', name: 'SuspensionEndTime', width: 100, align: "left",
// formatter: function (cellvalue) {
// return learun.formatDate(cellvalue, 'yyyy-MM-dd');
// }
//},
//{ label: '转学前学校', name: 'TransferSchool', width: 150, align: "left" },
//{ label: '转学前学号', name: 'TransferStuNo', width: 100, align: "left" },
//{
// label: '出身日期', name: 'Birthday', width: 100, align: "left",
// formatter: function (cellvalue) {
// return learun.formatDate(cellvalue, 'yyyy-MM-dd');
// }
//},
//{ label: '民族', name: 'NationalityNo', width: 80, align: "left" },
//{ label: '省', name: 'Province', width: 100, align: "left" },
//{ label: '市', name: 'City', width: 100, align: "left" },
//{ label: '县/区', name: 'County', width: 100, align: "left" },
//{ label: '联系电话', name: 'Mobile', width: 100, align: "left" },
//{ label: '家庭地址', name: 'MailAddress', width: 200, align: "left" },
//{ label: '转出学校', name: 'OutSchool', width: 100, align: "left" },
//{ label: '备注', name: 'Remark', width: 500, align: "left" },
],
mainId: 'ID',
isPage: true,


Завантаження…
Відмінити
Зберегти