@@ -60,7 +60,7 @@ var bootstrap = function ($, learun) { | |||||
function (val) { | function (val) { | ||||
var majorNo = ''; | var majorNo = ''; | ||||
if (val) { | if (val) { | ||||
majorNo = val.MajorNo; | |||||
majorNo = val.majorno; | |||||
} | } | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | ||||
@@ -63,7 +63,7 @@ var bootstrap = function ($, learun) { | |||||
function (val) { | function (val) { | ||||
var majorNo = ''; | var majorNo = ''; | ||||
if (val) { | if (val) { | ||||
majorNo = val.MajorNo; | |||||
majorNo = val.majorno; | |||||
} | } | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | ||||
@@ -60,7 +60,7 @@ var bootstrap = function ($, learun) { | |||||
function (val) { | function (val) { | ||||
var majorNo = ''; | var majorNo = ''; | ||||
if (val) { | if (val) { | ||||
majorNo = val.MajorNo; | |||||
majorNo = val.majorno; | |||||
} | } | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | ||||
@@ -63,7 +63,7 @@ var bootstrap = function ($, learun) { | |||||
function (val) { | function (val) { | ||||
var majorNo = ''; | var majorNo = ''; | ||||
if (val) { | if (val) { | ||||
majorNo = val.MajorNo; | |||||
majorNo = val.majorno; | |||||
} | } | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | ||||
@@ -28,7 +28,7 @@ var bootstrap = function ($, learun) { | |||||
function (val) { | function (val) { | ||||
var majorNo = ''; | var majorNo = ''; | ||||
if (val) { | if (val) { | ||||
majorNo = val.MajorNo; | |||||
majorNo = val.majorno; | |||||
} | } | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | ||||
@@ -28,7 +28,7 @@ var bootstrap = function ($, learun) { | |||||
function (val) { | function (val) { | ||||
var majorNo = ''; | var majorNo = ''; | ||||
if (val) { | if (val) { | ||||
majorNo = val.MajorNo; | |||||
majorNo = val.majorno; | |||||
} | } | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | ||||
@@ -78,7 +78,7 @@ var bootstrap = function ($, learun) { | |||||
function (val) { | function (val) { | ||||
var majorNo = ''; | var majorNo = ''; | ||||
if (val) { | if (val) { | ||||
majorNo = val.MajorNo; | |||||
majorNo = val.majorno; | |||||
} | } | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | ||||
@@ -87,7 +87,7 @@ var bootstrap = function ($, learun) { | |||||
function (val) { | function (val) { | ||||
var majorNo = ''; | var majorNo = ''; | ||||
if (val) { | if (val) { | ||||
majorNo = val.MajorNo; | |||||
majorNo = val.majorno; | |||||
} | } | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | ||||
@@ -64,7 +64,7 @@ var bootstrap = function ($, learun) { | |||||
function (val) { | function (val) { | ||||
var majorNo = ''; | var majorNo = ''; | ||||
if (val) { | if (val) { | ||||
majorNo = val.MajorNo; | |||||
majorNo = val.majorno; | |||||
} | } | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | ||||
@@ -64,7 +64,7 @@ var bootstrap = function ($, learun) { | |||||
function (val) { | function (val) { | ||||
var majorNo = ''; | var majorNo = ''; | ||||
if (val) { | if (val) { | ||||
majorNo = val.MajorNo; | |||||
majorNo = val.majorno; | |||||
} | } | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | ||||
@@ -16,7 +16,6 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
$('#PStuNo').lrDataSourceSelect({ code: 'StuInfoBasic',value: 'stuno',text: 'stuname' }); | $('#PStuNo').lrDataSourceSelect({ code: 'StuInfoBasic',value: 'stuno',text: 'stuname' }); | ||||
$('#PDeptNo').lrDataSourceSelect({ code: 'CdDeptInfo',value: 'deptno',text: 'deptname' }); | |||||
$('#PMajorNo').lrDataSourceSelect({ code: 'CdMajorInfo',value: 'majorno',text: 'majorname' }); | $('#PMajorNo').lrDataSourceSelect({ code: 'CdMajorInfo',value: 'majorno',text: 'majorname' }); | ||||
$('#PClassNo').lrDataSourceSelect({ code: 'bjsj',value: 'classno',text: 'classname' }); | $('#PClassNo').lrDataSourceSelect({ code: 'bjsj',value: 'classno',text: 'classname' }); | ||||
$('#PEmpNo').lrDataSourceSelect({ code: 'Psychology',value: 'f_account',text: 'f_realname' }); | $('#PEmpNo').lrDataSourceSelect({ code: 'Psychology',value: 'f_account',text: 'f_realname' }); | ||||
@@ -13,10 +13,6 @@ | |||||
<div class="lr-layout-tool-item"> | <div class="lr-layout-tool-item"> | ||||
<div id="multiple_condition_query"> | <div id="multiple_condition_query"> | ||||
<div class="lr-query-formcontent"> | <div class="lr-query-formcontent"> | ||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">系</div> | |||||
<div id="PDeptNo"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">专业</div> | <div class="lr-form-item-title">专业</div> | ||||
<div id="PMajorNo"></div> | <div id="PMajorNo"></div> | ||||
@@ -45,25 +45,12 @@ var bootstrap = function ($, learun) { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | ||||
page.search(queryJson); | page.search(queryJson); | ||||
}, 250, 400); | }, 250, 400); | ||||
$('#PDeptNo').lrDataSourceSelect({ | |||||
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { | |||||
var deptno = ""; | |||||
if (val) { | |||||
deptno = val.deptno; | |||||
} | |||||
$('#PMajorNo').lrselectRefresh({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, | |||||
text: "MajorName", | |||||
value: "MajorNo" | |||||
}) | |||||
} | |||||
}); | |||||
$('#PMajorNo').lrDataSourceSelect({ | $('#PMajorNo').lrDataSourceSelect({ | ||||
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: | code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: | ||||
function (val) { | function (val) { | ||||
var majorNo = ''; | var majorNo = ''; | ||||
if (val) { | if (val) { | ||||
majorNo = val.MajorNo; | |||||
majorNo = val.majorno; | |||||
} | } | ||||
$('#PClassNo').lrselectRefresh({ | $('#PClassNo').lrselectRefresh({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | ||||
@@ -168,19 +155,6 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ | |||||
label: "系", name: "PDeptNo", 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: "PMajorNo", width: 100, align: "left", | label: "专业", name: "PMajorNo", width: 100, align: "left", | ||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
@@ -3,10 +3,6 @@ | |||||
Layout = "~/Views/Shared/_Form.cshtml"; | Layout = "~/Views/Shared/_Form.cshtml"; | ||||
} | } | ||||
<div class="lr-form-wrap"> | <div class="lr-form-wrap"> | ||||
<div class="col-xs-12 lr-form-item" data-table="APStuHealthRecords" > | |||||
<div class="lr-form-item-title">系</div> | |||||
<div id="DeptNo" ></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="APStuHealthRecords" > | <div class="col-xs-12 lr-form-item" data-table="APStuHealthRecords" > | ||||
<div class="lr-form-item-title">专业</div> | <div class="lr-form-item-title">专业</div> | ||||
<div id="MajorNo" ></div> | <div id="MajorNo" ></div> | ||||
@@ -15,25 +15,12 @@ var bootstrap = function ($, learun) { | |||||
page.initData(); | page.initData(); | ||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
$('#DeptNo').lrDataSourceSelect({ | |||||
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { | |||||
var deptno = ""; | |||||
if (val) { | |||||
deptno = val.deptno; | |||||
} | |||||
$('#MajorNo').lrselectRefresh({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, | |||||
text: "MajorName", | |||||
value: "MajorNo" | |||||
}) | |||||
} | |||||
}); | |||||
$('#MajorNo').lrDataSourceSelect({ | $('#MajorNo').lrDataSourceSelect({ | ||||
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: | code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: | ||||
function (val) { | function (val) { | ||||
var majorNo = ''; | var majorNo = ''; | ||||
if (val) { | if (val) { | ||||
majorNo = val.MajorNo; | |||||
majorNo = val.majorno; | |||||
} | } | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | ||||
@@ -10,10 +10,6 @@ | |||||
<div class="lr-layout-tool-item"> | <div class="lr-layout-tool-item"> | ||||
<div id="multiple_condition_query"> | <div id="multiple_condition_query"> | ||||
<div class="lr-query-formcontent"> | <div class="lr-query-formcontent"> | ||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">系</div> | |||||
<div id="DeptNo"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">专业</div> | <div class="lr-form-item-title">专业</div> | ||||
<div id="MajorNo"></div> | <div id="MajorNo"></div> | ||||
@@ -16,25 +16,12 @@ var bootstrap = function ($, learun) { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | ||||
page.search(queryJson); | page.search(queryJson); | ||||
}, 220, 400); | }, 220, 400); | ||||
$('#DeptNo').lrDataSourceSelect({ | |||||
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { | |||||
var deptno = ""; | |||||
if (val) { | |||||
deptno = val.deptno; | |||||
} | |||||
$('#MajorNo').lrselectRefresh({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, | |||||
text: "MajorName", | |||||
value: "MajorNo" | |||||
}) | |||||
} | |||||
}); | |||||
$('#MajorNo').lrDataSourceSelect({ | $('#MajorNo').lrDataSourceSelect({ | ||||
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: | code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: | ||||
function (val) { | function (val) { | ||||
var majorNo = ''; | var majorNo = ''; | ||||
if (val) { | if (val) { | ||||
majorNo = val.MajorNo; | |||||
majorNo = val.majorno; | |||||
} | } | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | ||||
@@ -63,7 +50,7 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
// 新增 | // 新增 | ||||
$('#lr_add').on('click', function () { | $('#lr_add').on('click', function () { | ||||
learun.layerForm({ | |||||
learun.layerForm({ | |||||
id: 'form', | id: 'form', | ||||
title: '新增', | title: '新增', | ||||
url: top.$.rootUrl + '/LogisticsManagement/APStuHealthRecords/Form', | url: top.$.rootUrl + '/LogisticsManagement/APStuHealthRecords/Form', | ||||
@@ -94,9 +81,9 @@ var bootstrap = function ($, learun) { | |||||
$('#lr_delete').on('click', function () { | $('#lr_delete').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('ID'); | var keyValue = $('#gridtable').jfGridValue('ID'); | ||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||||
if (res) { | if (res) { | ||||
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/APStuHealthRecords/DeleteForm', { keyValue: keyValue}, function () { | |||||
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/APStuHealthRecords/DeleteForm', { keyValue: keyValue }, function () { | |||||
refreshGirdData(); | refreshGirdData(); | ||||
}); | }); | ||||
} | } | ||||
@@ -109,61 +96,56 @@ var bootstrap = function ($, learun) { | |||||
$('#gridtable').lrAuthorizeJfGrid({ | $('#gridtable').lrAuthorizeJfGrid({ | ||||
url: top.$.rootUrl + '/LogisticsManagement/APStuHealthRecords/GetPageList', | url: top.$.rootUrl + '/LogisticsManagement/APStuHealthRecords/GetPageList', | ||||
headData: [ | headData: [ | ||||
{ 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: "Stuno", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op,$cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'StuInfoBasic', | |||||
key: value, | |||||
keyId: 'stuno', | |||||
callback: function (_data) { | |||||
callback(_data['stuname']); | |||||
} | |||||
}); | |||||
}}, | |||||
{ | |||||
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: "Stuno", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'StuInfoBasic', | |||||
key: value, | |||||
keyId: 'stuno', | |||||
callback: function (_data) { | |||||
callback(_data['stuname']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ label: "描述", name: "Remark", width: 100, align: "left"}, | |||||
{ label: "描述", name: "Remark", width: 100, align: "left" }, | |||||
], | ], | ||||
mainId:'ID', | |||||
mainId: 'ID', | |||||
isPage: true | isPage: true | ||||
}); | }); | ||||
page.search(); | page.search(); | ||||
}, | }, | ||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function () { | refreshGirdData = function () { | ||||
@@ -236,19 +236,6 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ | |||||
label: "系", name: "Dept", 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: "Major", width: 100, align: "left", | label: "专业", name: "Major", width: 100, align: "left", | ||||
formatterAsync: function (callback, value, row, op, $cell) { | formatterAsync: function (callback, value, row, op, $cell) { | ||||
@@ -33,7 +33,7 @@ var bootstrap = function ($, learun) { | |||||
function (val) { | function (val) { | ||||
var majorNo = ''; | var majorNo = ''; | ||||
if (val) { | if (val) { | ||||
majorNo = val.MajorNo; | |||||
majorNo = val.majorno; | |||||
} | } | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | ||||
@@ -63,7 +63,7 @@ var bootstrap = function ($, learun) { | |||||
function (val) { | function (val) { | ||||
var majorNo = ''; | var majorNo = ''; | ||||
if (val) { | if (val) { | ||||
majorNo = val.MajorNo; | |||||
majorNo = val.majorno; | |||||
} | } | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | ||||
@@ -15,61 +15,14 @@ var bootstrap = function ($, learun) { | |||||
page.initData(); | page.initData(); | ||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
$('#YearNo').lrselect({ | |||||
placeholder: "请选择学年", | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | |||||
value: 'value', | |||||
text: 'text' | |||||
}); | |||||
$('#DeptNo').lrDataSourceSelect({ | |||||
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { | |||||
var deptno = ""; | |||||
if (val) { | |||||
deptno = val.deptno; | |||||
} | |||||
$('#MajorNo').lrselectRefresh({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, | |||||
text: "MajorName", | |||||
value: "MajorNo" | |||||
}) | |||||
} | |||||
}); | |||||
$('#MajorNo').lrDataSourceSelect({ | |||||
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: | |||||
function (val) { | |||||
var majorNo = ''; | |||||
if (val) { | |||||
majorNo = val.MajorNo; | |||||
} | |||||
$('#ClassNo').lrselectRefresh({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | |||||
text: "ClassName", | |||||
value: "ClassNo" | |||||
}) | |||||
} | |||||
}); | |||||
$('#ClassNo').lrDataSourceSelect({ | |||||
code: 'bjsj', value: 'classno', text: 'classname', select: function (val) { | |||||
var classNo = ''; | |||||
if (val) { | |||||
classNo = val.ClassNo; | |||||
} | |||||
$('#StuNo').lrselectRefresh({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetStuInfoByClassNo?classNo=' + classNo, | |||||
text: "StuName", | |||||
value: "StuNo" | |||||
}) | |||||
} | |||||
}); | |||||
$('#StuNo').lrDataSourceSelect({ code: 'StuInfoBasic', value: 'stuno', text: 'stuname' }); | |||||
}, | }, | ||||
initData: function () { | initData: function () { | ||||
if (!!keyValue) { | if (!!keyValue) { | ||||
$.lrSetForm(top.$.rootUrl + '/LogisticsManagement/MSRIntentionManagement/GetFormData?keyValue=' + keyValue, function (data) { | $.lrSetForm(top.$.rootUrl + '/LogisticsManagement/MSRIntentionManagement/GetFormData?keyValue=' + keyValue, function (data) { | ||||
for (var id in data) { | for (var id in data) { | ||||
if (!!data[id].length && data[id].length > 0) { | if (!!data[id].length && data[id].length > 0) { | ||||
$('#' + id ).jfGridSet('refreshdata', data[id]); | |||||
$('#' + id).jfGridSet('refreshdata', data[id]); | |||||
} | } | ||||
else { | else { | ||||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | $('[data-table="' + id + '"]').lrSetFormData(data[id]); | ||||
@@ -10,10 +10,6 @@ | |||||
<div class="lr-layout-tool-item"> | <div class="lr-layout-tool-item"> | ||||
<div id="multiple_condition_query"> | <div id="multiple_condition_query"> | ||||
<div class="lr-query-formcontent"> | <div class="lr-query-formcontent"> | ||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">系</div> | |||||
<div id="DeptNo"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">专业</div> | <div class="lr-form-item-title">专业</div> | ||||
<div id="MajorNo"></div> | <div id="MajorNo"></div> | ||||
@@ -16,32 +16,19 @@ var bootstrap = function ($, learun) { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | ||||
page.search(queryJson); | page.search(queryJson); | ||||
}, 220, 400); | }, 220, 400); | ||||
$('#YearNo').lrselect({ | |||||
$('#YearNo').lrselect({ | |||||
placeholder: "请选择学年", | placeholder: "请选择学年", | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | ||||
value: 'value', | value: 'value', | ||||
text: 'text' | text: 'text' | ||||
}); | }); | ||||
$('#DeptNo').lrDataSourceSelect({ | |||||
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { | |||||
var deptno = ""; | |||||
if (val) { | |||||
deptno = val.deptno; | |||||
} | |||||
$('#MajorNo').lrselectRefresh({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, | |||||
text: "MajorName", | |||||
value: "MajorNo" | |||||
}) | |||||
} | |||||
}); | |||||
$('#MajorNo').lrDataSourceSelect({ | $('#MajorNo').lrDataSourceSelect({ | ||||
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: | code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: | ||||
function (val) { | function (val) { | ||||
var majorNo = ''; | var majorNo = ''; | ||||
if (val) { | if (val) { | ||||
majorNo = val.MajorNo; | |||||
majorNo = val.majorno; | |||||
} | } | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | ||||
@@ -63,14 +50,14 @@ var bootstrap = function ($, learun) { | |||||
}) | }) | ||||
} | } | ||||
}); | }); | ||||
$('#StuNo').lrDataSourceSelect({ code: 'StuInfoBasic', value: 'stuno', text: 'stuname' }); | |||||
$('#StuNo').lrDataSourceSelect({ code: 'StuInfoBasic', value: 'stuno', text: 'stuname' }); | |||||
// 刷新 | // 刷新 | ||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | location.reload(); | ||||
}); | }); | ||||
// 新增 | // 新增 | ||||
$('#lr_add').on('click', function () { | $('#lr_add').on('click', function () { | ||||
learun.layerForm({ | |||||
learun.layerForm({ | |||||
id: 'form', | id: 'form', | ||||
title: '新增', | title: '新增', | ||||
url: top.$.rootUrl + '/LogisticsManagement/MSRIntentionManagement/Form', | url: top.$.rootUrl + '/LogisticsManagement/MSRIntentionManagement/Form', | ||||
@@ -101,9 +88,9 @@ var bootstrap = function ($, learun) { | |||||
$('#lr_delete').on('click', function () { | $('#lr_delete').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('ID'); | var keyValue = $('#gridtable').jfGridValue('ID'); | ||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||||
if (res) { | if (res) { | ||||
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/MSRIntentionManagement/DeleteForm', { keyValue: keyValue}, function () { | |||||
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/MSRIntentionManagement/DeleteForm', { keyValue: keyValue }, function () { | |||||
refreshGirdData(); | refreshGirdData(); | ||||
}); | }); | ||||
} | } | ||||
@@ -116,64 +103,59 @@ var bootstrap = function ($, learun) { | |||||
$('#gridtable').lrAuthorizeJfGrid({ | $('#gridtable').lrAuthorizeJfGrid({ | ||||
url: top.$.rootUrl + '/LogisticsManagement/MSRIntentionManagement/GetPageList', | url: top.$.rootUrl + '/LogisticsManagement/MSRIntentionManagement/GetPageList', | ||||
headData: [ | headData: [ | ||||
{ 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: 'deptname', | |||||
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: "StuNo", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op,$cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'StuInfoBasic', | |||||
key: value, | |||||
keyId: 'stuno', | |||||
callback: function (_data) { | |||||
callback(_data['stuname']); | |||||
} | |||||
}); | |||||
}}, | |||||
{ label: "联系方式", name: "Mobile", width: 100, align: "left"}, | |||||
{ label: "年龄", name: "Age", width: 100, align: "left"}, | |||||
{ label: "身高", name: "High", width: 100, align: "left"}, | |||||
{ label: "体重", name: "Weight", width: 100, align: "left"}, | |||||
{ label: "视力", name: "Vision", width: 100, align: "left"}, | |||||
{ | |||||
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: "StuNo", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'StuInfoBasic', | |||||
key: value, | |||||
keyId: 'stuno', | |||||
callback: function (_data) { | |||||
callback(_data['stuname']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ label: "联系方式", name: "Mobile", width: 100, align: "left" }, | |||||
{ label: "年龄", name: "Age", width: 100, align: "left" }, | |||||
{ label: "身高", name: "High", width: 100, align: "left" }, | |||||
{ label: "体重", name: "Weight", width: 100, align: "left" }, | |||||
{ label: "视力", name: "Vision", width: 100, align: "left" }, | |||||
], | ], | ||||
mainId:'ID', | |||||
mainId: 'ID', | |||||
isPage: true | isPage: true | ||||
}); | }); | ||||
page.search(); | page.search(); | ||||
}, | }, | ||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function () { | refreshGirdData = function () { | ||||
@@ -15,61 +15,13 @@ var bootstrap = function ($, learun) { | |||||
page.initData(); | page.initData(); | ||||
}, | }, | ||||
bind: function () { | bind: function () { | ||||
$('#YearNo').lrselect({ | |||||
placeholder: "请选择学年", | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | |||||
value: 'value', | |||||
text: 'text' | |||||
}); | |||||
$('#DeptNo').lrDataSourceSelect({ | |||||
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { | |||||
var deptno = ""; | |||||
if (val) { | |||||
deptno = val.deptno; | |||||
} | |||||
$('#MajorNo').lrselectRefresh({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, | |||||
text: "MajorName", | |||||
value: "MajorNo" | |||||
}) | |||||
} | |||||
}); | |||||
$('#MajorNo').lrDataSourceSelect({ | |||||
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: | |||||
function (val) { | |||||
var majorNo = ''; | |||||
if (val) { | |||||
majorNo = val.MajorNo; | |||||
} | |||||
$('#ClassNo').lrselectRefresh({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | |||||
text: "ClassName", | |||||
value: "ClassNo" | |||||
}) | |||||
} | |||||
}); | |||||
$('#ClassNo').lrDataSourceSelect({ | |||||
code: 'bjsj', value: 'classno', text: 'classname', select: function (val) { | |||||
var classNo = ''; | |||||
if (val) { | |||||
classNo = val.ClassNo; | |||||
} | |||||
$('#StuNo').lrselectRefresh({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetStuInfoByClassNo?classNo=' + classNo, | |||||
text: "StuName", | |||||
value: "StuNo" | |||||
}) | |||||
} | |||||
}); | |||||
$('#StuNo').lrDataSourceSelect({ code: 'StuInfoBasic', value: 'stuno', text: 'stuname' }); | |||||
}, | }, | ||||
initData: function () { | initData: function () { | ||||
if (!!keyValue) { | if (!!keyValue) { | ||||
$.lrSetForm(top.$.rootUrl + '/LogisticsManagement/MSRMilitaryRecord/GetFormData?keyValue=' + keyValue, function (data) { | $.lrSetForm(top.$.rootUrl + '/LogisticsManagement/MSRMilitaryRecord/GetFormData?keyValue=' + keyValue, function (data) { | ||||
for (var id in data) { | for (var id in data) { | ||||
if (!!data[id].length && data[id].length > 0) { | if (!!data[id].length && data[id].length > 0) { | ||||
$('#' + id ).jfGridSet('refreshdata', data[id]); | |||||
$('#' + id).jfGridSet('refreshdata', data[id]); | |||||
} | } | ||||
else { | else { | ||||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | $('[data-table="' + id + '"]').lrSetFormData(data[id]); | ||||
@@ -10,10 +10,6 @@ | |||||
<div class="lr-layout-tool-item"> | <div class="lr-layout-tool-item"> | ||||
<div id="multiple_condition_query"> | <div id="multiple_condition_query"> | ||||
<div class="lr-query-formcontent"> | <div class="lr-query-formcontent"> | ||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">系部</div> | |||||
<div id="DeptNo"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">专业</div> | <div class="lr-form-item-title">专业</div> | ||||
<div id="MajorNo"></div> | <div id="MajorNo"></div> | ||||
@@ -23,25 +23,12 @@ var bootstrap = function ($, learun) { | |||||
value: 'value', | value: 'value', | ||||
text: 'text' | text: 'text' | ||||
}); | }); | ||||
$('#DeptNo').lrDataSourceSelect({ | |||||
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { | |||||
var deptno = ""; | |||||
if (val) { | |||||
deptno = val.deptno; | |||||
} | |||||
$('#MajorNo').lrselectRefresh({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, | |||||
text: "MajorName", | |||||
value: "MajorNo" | |||||
}) | |||||
} | |||||
}); | |||||
$('#MajorNo').lrDataSourceSelect({ | $('#MajorNo').lrDataSourceSelect({ | ||||
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: | code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: | ||||
function (val) { | function (val) { | ||||
var majorNo = ''; | var majorNo = ''; | ||||
if (val) { | if (val) { | ||||
majorNo = val.MajorNo; | |||||
majorNo = val.majorno; | |||||
} | } | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | ||||
@@ -63,14 +50,14 @@ var bootstrap = function ($, learun) { | |||||
}) | }) | ||||
} | } | ||||
}); | }); | ||||
$('#StuNo').lrDataSourceSelect({ code: 'StuInfoBasic', value: 'stuno', text: 'stuname' }); | |||||
$('#StuNo').lrDataSourceSelect({ code: 'StuInfoBasic', value: 'stuno', text: 'stuname' }); | |||||
// 刷新 | // 刷新 | ||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | location.reload(); | ||||
}); | }); | ||||
// 新增 | // 新增 | ||||
$('#lr_add').on('click', function () { | $('#lr_add').on('click', function () { | ||||
learun.layerForm({ | |||||
learun.layerForm({ | |||||
id: 'form', | id: 'form', | ||||
title: '新增', | title: '新增', | ||||
url: top.$.rootUrl + '/LogisticsManagement/MSRMilitaryRecord/Form', | url: top.$.rootUrl + '/LogisticsManagement/MSRMilitaryRecord/Form', | ||||
@@ -101,9 +88,9 @@ var bootstrap = function ($, learun) { | |||||
$('#lr_delete').on('click', function () { | $('#lr_delete').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('ID'); | var keyValue = $('#gridtable').jfGridValue('ID'); | ||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||||
if (res) { | if (res) { | ||||
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/MSRMilitaryRecord/DeleteForm', { keyValue: keyValue}, function () { | |||||
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/MSRMilitaryRecord/DeleteForm', { keyValue: keyValue }, function () { | |||||
refreshGirdData(); | refreshGirdData(); | ||||
}); | }); | ||||
} | } | ||||
@@ -116,61 +103,56 @@ var bootstrap = function ($, learun) { | |||||
$('#gridtable').lrAuthorizeJfGrid({ | $('#gridtable').lrAuthorizeJfGrid({ | ||||
url: top.$.rootUrl + '/LogisticsManagement/MSRMilitaryRecord/GetPageList', | url: top.$.rootUrl + '/LogisticsManagement/MSRMilitaryRecord/GetPageList', | ||||
headData: [ | headData: [ | ||||
{ 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: "StuNo", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op,$cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'StuInfoBasic', | |||||
key: value, | |||||
keyId: 'stuno', | |||||
callback: function (_data) { | |||||
callback(_data['stuname']); | |||||
} | |||||
}); | |||||
}}, | |||||
{ label: "参军记录", name: "Record", width: 100, align: "left"}, | |||||
{ label: "备注", name: "Remark", width: 100, align: "left"}, | |||||
{ | |||||
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: "StuNo", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'StuInfoBasic', | |||||
key: value, | |||||
keyId: 'stuno', | |||||
callback: function (_data) { | |||||
callback(_data['stuname']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ label: "参军记录", name: "Record", width: 100, align: "left" }, | |||||
{ label: "备注", name: "Remark", width: 100, align: "left" }, | |||||
], | ], | ||||
mainId:'ID', | |||||
mainId: 'ID', | |||||
isPage: true | isPage: true | ||||
}); | }); | ||||
page.search(); | page.search(); | ||||
}, | }, | ||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function () { | refreshGirdData = function () { | ||||
@@ -14,10 +14,6 @@ | |||||
<div class="lr-form-item-title">学年</div> | <div class="lr-form-item-title">学年</div> | ||||
<div id="YearNo"></div> | <div id="YearNo"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">系部</div> | |||||
<div id="DeptNo"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">专业</div> | <div class="lr-form-item-title">专业</div> | ||||
<div id="MajorNo"></div> | <div id="MajorNo"></div> | ||||
@@ -23,25 +23,12 @@ var bootstrap = function ($, learun) { | |||||
value: 'value', | value: 'value', | ||||
text: 'text' | text: 'text' | ||||
}); | }); | ||||
$('#DeptNo').lrDataSourceSelect({ | |||||
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { | |||||
var deptno = ""; | |||||
if (val) { | |||||
deptno = val.deptno; | |||||
} | |||||
$('#MajorNo').lrselectRefresh({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, | |||||
text: "MajorName", | |||||
value: "MajorNo" | |||||
}) | |||||
} | |||||
}); | |||||
$('#MajorNo').lrDataSourceSelect({ | $('#MajorNo').lrDataSourceSelect({ | ||||
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: | code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: | ||||
function (val) { | function (val) { | ||||
var majorNo = ''; | var majorNo = ''; | ||||
if (val) { | if (val) { | ||||
majorNo = val.MajorNo; | |||||
majorNo = val.majorno; | |||||
} | } | ||||
$('#ClassNo').lrselectRefresh({ | $('#ClassNo').lrselectRefresh({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + majorNo, | ||||
@@ -70,7 +57,7 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
// 新增 | // 新增 | ||||
$('#lr_add').on('click', function () { | $('#lr_add').on('click', function () { | ||||
learun.layerForm({ | |||||
learun.layerForm({ | |||||
id: 'form', | id: 'form', | ||||
title: '新增', | title: '新增', | ||||
url: top.$.rootUrl + '/LogisticsManagement/MSRMilitaryServiceRegistration/Form', | url: top.$.rootUrl + '/LogisticsManagement/MSRMilitaryServiceRegistration/Form', | ||||
@@ -101,9 +88,9 @@ var bootstrap = function ($, learun) { | |||||
$('#lr_delete').on('click', function () { | $('#lr_delete').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('ID'); | var keyValue = $('#gridtable').jfGridValue('ID'); | ||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||||
learun.layerConfirm('是否确认删除该项!', function (res) { | |||||
if (res) { | if (res) { | ||||
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/MSRMilitaryServiceRegistration/DeleteForm', { keyValue: keyValue}, function () { | |||||
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/MSRMilitaryServiceRegistration/DeleteForm', { keyValue: keyValue }, function () { | |||||
refreshGirdData(); | refreshGirdData(); | ||||
}); | }); | ||||
} | } | ||||
@@ -116,42 +103,36 @@ var bootstrap = function ($, learun) { | |||||
$('#gridtable').lrAuthorizeJfGrid({ | $('#gridtable').lrAuthorizeJfGrid({ | ||||
url: top.$.rootUrl + '/LogisticsManagement/MSRMilitaryServiceRegistration/GetPageList', | url: top.$.rootUrl + '/LogisticsManagement/MSRMilitaryServiceRegistration/GetPageList', | ||||
headData: [ | headData: [ | ||||
{ label: "学年", name: "YearNo", 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: "StuNo", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op,$cell) { | |||||
{ label: "学年", name: "YearNo", width: 100, align: "left" }, | |||||
{ | |||||
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: "StuNo", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'StuInfoBasic', | url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'StuInfoBasic', | ||||
key: value, | key: value, | ||||
@@ -160,18 +141,19 @@ var bootstrap = function ($, learun) { | |||||
callback(_data['stuname']); | callback(_data['stuname']); | ||||
} | } | ||||
}); | }); | ||||
}}, | |||||
{ label: "截图上传", name: "Screenshot", width: 100, align: "left"}, | |||||
{ label: "备注", name: "Remark", width: 100, align: "left"}, | |||||
} | |||||
}, | |||||
{ label: "截图上传", name: "Screenshot", width: 100, align: "left" }, | |||||
{ label: "备注", name: "Remark", width: 100, align: "left" }, | |||||
], | ], | ||||
mainId:'ID', | |||||
mainId: 'ID', | |||||
isPage: true | isPage: true | ||||
}); | }); | ||||
page.search(); | page.search(); | ||||
}, | }, | ||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function () { | refreshGirdData = function () { | ||||
@@ -25,11 +25,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
[Column("PSTUNO")] | [Column("PSTUNO")] | ||||
public string PStuNo { get; set; } | public string PStuNo { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// 系 | |||||
/// </summary> | |||||
[Column("PDEPTNO")] | |||||
public string PDeptNo { get; set; } | |||||
/// <summary> | |||||
/// 专业 | /// 专业 | ||||
/// </summary> | /// </summary> | ||||
[Column("PMAJORNO")] | [Column("PMAJORNO")] | ||||
@@ -34,7 +34,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
strSql.Append(@" | strSql.Append(@" | ||||
t.PID, | t.PID, | ||||
t.PStuNo, | t.PStuNo, | ||||
t.PDeptNo, | |||||
t.PMajorNo, | t.PMajorNo, | ||||
t.PClassNo, | t.PClassNo, | ||||
t.PTime, | t.PTime, | ||||
@@ -53,11 +52,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime); | dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime); | ||||
strSql.Append(" AND ( t.PTime >= @startTime AND t.PTime <= @endTime ) "); | strSql.Append(" AND ( t.PTime >= @startTime AND t.PTime <= @endTime ) "); | ||||
} | } | ||||
if (!queryParam["PDeptNo"].IsEmpty()) | |||||
{ | |||||
dp.Add("PDeptNo", queryParam["PDeptNo"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.PDeptNo = @PDeptNo "); | |||||
} | |||||
if (!queryParam["PMajorNo"].IsEmpty()) | if (!queryParam["PMajorNo"].IsEmpty()) | ||||
{ | { | ||||
dp.Add("PMajorNo", queryParam["PMajorNo"].ToString(), DbType.String); | dp.Add("PMajorNo", queryParam["PMajorNo"].ToString(), DbType.String); | ||||
@@ -195,7 +189,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
var userEntity = this.BaseRepository("CollegeMIS") | var userEntity = this.BaseRepository("CollegeMIS") | ||||
.FindEntity<StuInfoBasicEntity>(a => a.StuNo == loginUser.account); | .FindEntity<StuInfoBasicEntity>(a => a.StuNo == loginUser.account); | ||||
entity.PStuNo = userEntity?.StuNo; | entity.PStuNo = userEntity?.StuNo; | ||||
entity.PDeptNo = userEntity?.DeptNo; | |||||
entity.PMajorNo = userEntity?.MajorNo; | entity.PMajorNo = userEntity?.MajorNo; | ||||
entity.PClassNo = userEntity?.ClassNo; | entity.PClassNo = userEntity?.ClassNo; | ||||
@@ -20,11 +20,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
[Column("ID")] | [Column("ID")] | ||||
public string ID { get; set; } | public string ID { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// 系 | |||||
/// </summary> | |||||
[Column("DEPTNO")] | |||||
public string DeptNo { get; set; } | |||||
/// <summary> | |||||
/// 专业 | /// 专业 | ||||
/// </summary> | /// </summary> | ||||
[Column("MAJORNO")] | [Column("MAJORNO")] | ||||
@@ -32,7 +32,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
strSql.Append("SELECT "); | strSql.Append("SELECT "); | ||||
strSql.Append(@" | strSql.Append(@" | ||||
t.ID, | t.ID, | ||||
t.DeptNo, | |||||
t.MajorNo, | t.MajorNo, | ||||
t.ClassNo, | t.ClassNo, | ||||
t.Stuno, | t.Stuno, | ||||
@@ -43,11 +42,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
var queryParam = queryJson.ToJObject(); | var queryParam = queryJson.ToJObject(); | ||||
// 虚拟参数 | // 虚拟参数 | ||||
var dp = new DynamicParameters(new { }); | var dp = new DynamicParameters(new { }); | ||||
if (!queryParam["DeptNo"].IsEmpty()) | |||||
{ | |||||
dp.Add("DeptNo",queryParam["DeptNo"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.DeptNo = @DeptNo "); | |||||
} | |||||
if (!queryParam["MajorNo"].IsEmpty()) | if (!queryParam["MajorNo"].IsEmpty()) | ||||
{ | { | ||||
dp.Add("MajorNo",queryParam["MajorNo"].ToString(), DbType.String); | dp.Add("MajorNo",queryParam["MajorNo"].ToString(), DbType.String); | ||||
@@ -85,11 +85,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
[Column("CAMPUS")] | [Column("CAMPUS")] | ||||
public string Campus { get; set; } | public string Campus { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// 系 | |||||
/// </summary> | |||||
[Column("DEPT")] | |||||
public string Dept { get; set; } | |||||
/// <summary> | |||||
/// 专业 | /// 专业 | ||||
/// </summary> | /// </summary> | ||||
[Column("MAJOR")] | [Column("MAJOR")] | ||||
@@ -37,7 +37,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
t.Name, | t.Name, | ||||
t.Address, | t.Address, | ||||
t.Campus, | t.Campus, | ||||
t.Dept, | |||||
t.BuildType, | t.BuildType, | ||||
t.Major, | t.Major, | ||||
t.Class, | t.Class, | ||||
@@ -74,11 +73,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
dp.Add("Campus", "%" + queryParam["Campus"].ToString() + "%", DbType.String); | dp.Add("Campus", "%" + queryParam["Campus"].ToString() + "%", DbType.String); | ||||
strSql.Append(" AND t.Campus Like @Campus "); | strSql.Append(" AND t.Campus Like @Campus "); | ||||
} | } | ||||
if (!queryParam["Dept"].IsEmpty()) | |||||
{ | |||||
dp.Add("Dept", "%" + queryParam["Dept"].ToString() + "%", DbType.String); | |||||
strSql.Append(" AND t.Dept Like @Dept "); | |||||
} | |||||
if (!queryParam["Class"].IsEmpty()) | if (!queryParam["Class"].IsEmpty()) | ||||
{ | { | ||||
dp.Add("Class", "%" + queryParam["Class"].ToString() + "%", DbType.String); | dp.Add("Class", "%" + queryParam["Class"].ToString() + "%", DbType.String); | ||||
@@ -849,7 +843,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
Campus = dormitory.Campus, | Campus = dormitory.Campus, | ||||
CreateBy = currentUser.realName, | CreateBy = currentUser.realName, | ||||
CreateTime = DateTime.Now, | CreateTime = DateTime.Now, | ||||
Dept = dormitory.Dept, | |||||
Class = dormitory.Class, | Class = dormitory.Class, | ||||
Functionary = dormitory.Functionary, | Functionary = dormitory.Functionary, | ||||
Major = dormitory.Major, | Major = dormitory.Major, | ||||
@@ -876,7 +869,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
Campus = dormitory.Campus, | Campus = dormitory.Campus, | ||||
CreateBy = currentUser.realName, | CreateBy = currentUser.realName, | ||||
CreateTime = DateTime.Now, | CreateTime = DateTime.Now, | ||||
Dept = dormitory.Dept, | |||||
Class = dormitory.Class, | Class = dormitory.Class, | ||||
Functionary = dormitory.Functionary, | Functionary = dormitory.Functionary, | ||||
Major = dormitory.Major, | Major = dormitory.Major, | ||||
@@ -903,7 +895,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
Campus = dormitory.Campus, | Campus = dormitory.Campus, | ||||
CreateBy = currentUser.realName, | CreateBy = currentUser.realName, | ||||
CreateTime = DateTime.Now, | CreateTime = DateTime.Now, | ||||
Dept = dormitory.Dept, | |||||
Class = dormitory.Class, | Class = dormitory.Class, | ||||
Functionary = dormitory.Functionary, | Functionary = dormitory.Functionary, | ||||
Major = dormitory.Major, | Major = dormitory.Major, | ||||
@@ -932,7 +923,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
Campus = dormitory.Campus, | Campus = dormitory.Campus, | ||||
CreateBy = currentUser.realName, | CreateBy = currentUser.realName, | ||||
CreateTime = DateTime.Now, | CreateTime = DateTime.Now, | ||||
Dept = dormitory.Dept, | |||||
Class = dormitory.Class, | Class = dormitory.Class, | ||||
Functionary = dormitory.Functionary, | Functionary = dormitory.Functionary, | ||||
Major = dormitory.Major, | Major = dormitory.Major, | ||||
@@ -1261,7 +1251,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
foreach (var childItem in childList) | foreach (var childItem in childList) | ||||
{ | { | ||||
childItem.Campus = entity.Campus; | childItem.Campus = entity.Campus; | ||||
childItem.Dept = entity.Dept; | |||||
childItem.Major = entity.Major; | childItem.Major = entity.Major; | ||||
childItem.Class = entity.Class; | childItem.Class = entity.Class; | ||||
childItem.Sex = entity.Sex; | childItem.Sex = entity.Sex; | ||||
@@ -20,11 +20,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
[Column("ID")] | [Column("ID")] | ||||
public string ID { get; set; } | public string ID { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// 系 | |||||
/// </summary> | |||||
[Column("DEPTNO")] | |||||
public string DeptNo { get; set; } | |||||
/// <summary> | |||||
/// 专业 | /// 专业 | ||||
/// </summary> | /// </summary> | ||||
[Column("MAJORNO")] | [Column("MAJORNO")] | ||||
@@ -33,7 +33,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
strSql.Append("SELECT "); | strSql.Append("SELECT "); | ||||
strSql.Append(@" | strSql.Append(@" | ||||
t.ID, | t.ID, | ||||
t.DeptNo, | |||||
t.MajorNo, | t.MajorNo, | ||||
t.ClassNo, | t.ClassNo, | ||||
t.StuNo, | t.StuNo, | ||||
@@ -48,11 +47,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
var queryParam = queryJson.ToJObject(); | var queryParam = queryJson.ToJObject(); | ||||
// 虚拟参数 | // 虚拟参数 | ||||
var dp = new DynamicParameters(new { }); | var dp = new DynamicParameters(new { }); | ||||
if (!queryParam["DeptNo"].IsEmpty()) | |||||
{ | |||||
dp.Add("DeptNo",queryParam["DeptNo"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.DeptNo = @DeptNo "); | |||||
} | |||||
if (!queryParam["MajorNo"].IsEmpty()) | if (!queryParam["MajorNo"].IsEmpty()) | ||||
{ | { | ||||
dp.Add("MajorNo",queryParam["MajorNo"].ToString(), DbType.String); | dp.Add("MajorNo",queryParam["MajorNo"].ToString(), DbType.String); | ||||
@@ -157,7 +151,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
var userEntity = this.BaseRepository("CollegeMIS") | var userEntity = this.BaseRepository("CollegeMIS") | ||||
.FindEntity<StuInfoBasicEntity>(a => a.StuNo == loginUser.account); | .FindEntity<StuInfoBasicEntity>(a => a.StuNo == loginUser.account); | ||||
entity.StuNo = userEntity?.StuNo; | entity.StuNo = userEntity?.StuNo; | ||||
entity.DeptNo = userEntity?.DeptNo; | |||||
entity.MajorNo = userEntity?.MajorNo; | entity.MajorNo = userEntity?.MajorNo; | ||||
entity.ClassNo = userEntity?.ClassNo; | entity.ClassNo = userEntity?.ClassNo; | ||||
entity.Create(); | entity.Create(); | ||||
@@ -20,11 +20,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
[Column("ID")] | [Column("ID")] | ||||
public string ID { get; set; } | public string ID { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// 系 | |||||
/// </summary> | |||||
[Column("DEPTNO")] | |||||
public string DeptNo { get; set; } | |||||
/// <summary> | |||||
/// 专业 | /// 专业 | ||||
/// </summary> | /// </summary> | ||||
[Column("MAJORNO")] | [Column("MAJORNO")] | ||||
@@ -33,7 +33,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
strSql.Append("SELECT "); | strSql.Append("SELECT "); | ||||
strSql.Append(@" | strSql.Append(@" | ||||
t.ID, | t.ID, | ||||
t.DeptNo, | |||||
t.MajorNo, | t.MajorNo, | ||||
t.ClassNo, | t.ClassNo, | ||||
t.StuNo, | t.StuNo, | ||||
@@ -45,11 +44,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
var queryParam = queryJson.ToJObject(); | var queryParam = queryJson.ToJObject(); | ||||
// 虚拟参数 | // 虚拟参数 | ||||
var dp = new DynamicParameters(new { }); | var dp = new DynamicParameters(new { }); | ||||
if (!queryParam["DeptNo"].IsEmpty()) | |||||
{ | |||||
dp.Add("DeptNo",queryParam["DeptNo"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.DeptNo = @DeptNo "); | |||||
} | |||||
if (!queryParam["MajorNo"].IsEmpty()) | if (!queryParam["MajorNo"].IsEmpty()) | ||||
{ | { | ||||
dp.Add("MajorNo",queryParam["MajorNo"].ToString(), DbType.String); | dp.Add("MajorNo",queryParam["MajorNo"].ToString(), DbType.String); | ||||
@@ -153,7 +147,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
var userEntity = this.BaseRepository("CollegeMIS") | var userEntity = this.BaseRepository("CollegeMIS") | ||||
.FindEntity<StuInfoBasicEntity>(a => a.StuNo == loginUser.account); | .FindEntity<StuInfoBasicEntity>(a => a.StuNo == loginUser.account); | ||||
entity.StuNo = userEntity?.StuNo; | entity.StuNo = userEntity?.StuNo; | ||||
entity.DeptNo = userEntity?.DeptNo; | |||||
entity.MajorNo = userEntity?.MajorNo; | entity.MajorNo = userEntity?.MajorNo; | ||||
entity.ClassNo = userEntity?.ClassNo; | entity.ClassNo = userEntity?.ClassNo; | ||||
entity.Create(); | entity.Create(); | ||||
@@ -20,11 +20,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
[Column("ID")] | [Column("ID")] | ||||
public string ID { get; set; } | public string ID { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// 系 | |||||
/// </summary> | |||||
[Column("DEPTNO")] | |||||
public string DeptNo { get; set; } | |||||
/// <summary> | |||||
/// 专业 | /// 专业 | ||||
/// </summary> | /// </summary> | ||||
[Column("MAJORNO")] | [Column("MAJORNO")] | ||||
@@ -33,7 +33,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
strSql.Append("SELECT "); | strSql.Append("SELECT "); | ||||
strSql.Append(@" | strSql.Append(@" | ||||
t.ID, | t.ID, | ||||
t.DeptNo, | |||||
t.MajorNo, | t.MajorNo, | ||||
t.ClassNo, | t.ClassNo, | ||||
t.StuNo, | t.StuNo, | ||||
@@ -51,11 +50,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
dp.Add("YearNo", "%" + queryParam["YearNo"].ToString() + "%", DbType.String); | dp.Add("YearNo", "%" + queryParam["YearNo"].ToString() + "%", DbType.String); | ||||
strSql.Append(" AND t.YearNo Like @YearNo "); | strSql.Append(" AND t.YearNo Like @YearNo "); | ||||
} | } | ||||
if (!queryParam["DeptNo"].IsEmpty()) | |||||
{ | |||||
dp.Add("DeptNo",queryParam["DeptNo"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.DeptNo = @DeptNo "); | |||||
} | |||||
if (!queryParam["MajorNo"].IsEmpty()) | if (!queryParam["MajorNo"].IsEmpty()) | ||||
{ | { | ||||
dp.Add("MajorNo",queryParam["MajorNo"].ToString(), DbType.String); | dp.Add("MajorNo",queryParam["MajorNo"].ToString(), DbType.String); | ||||
@@ -160,7 +154,6 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
.FindEntity<StuInfoBasicEntity>(a => a.StuNo == loginUser.account); | .FindEntity<StuInfoBasicEntity>(a => a.StuNo == loginUser.account); | ||||
var aa = Common.GetSemesterAndYear(); | var aa = Common.GetSemesterAndYear(); | ||||
entity.StuNo = userEntity?.StuNo; | entity.StuNo = userEntity?.StuNo; | ||||
entity.DeptNo = userEntity?.DeptNo; | |||||
entity.MajorNo = userEntity?.MajorNo; | entity.MajorNo = userEntity?.MajorNo; | ||||
entity.ClassNo = userEntity?.ClassNo; | entity.ClassNo = userEntity?.ClassNo; | ||||
entity.YearNo = aa.AcademicYearShort; | entity.YearNo = aa.AcademicYearShort; | ||||