@@ -314,13 +314,13 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
if (string.IsNullOrEmpty(student.PhotoUrl)) | if (string.IsNullOrEmpty(student.PhotoUrl)) | ||||
{ | { | ||||
student.PhotoUrl = Guid.NewGuid().ToString(); | student.PhotoUrl = Guid.NewGuid().ToString(); | ||||
stuEnrollIBLL.SaveEntity(student.StuId,student); | |||||
stuEnrollIBLL.SaveEntity(student.StuId, student); | |||||
} | } | ||||
var annexEntity = annexesFileIBLL.GetEntityByFolderId(student.PhotoUrl); | var annexEntity = annexesFileIBLL.GetEntityByFolderId(student.PhotoUrl); | ||||
if (annexEntity == null) | if (annexEntity == null) | ||||
{ | { | ||||
annexEntity=new AnnexesFileEntity(); | |||||
annexEntity = new AnnexesFileEntity(); | |||||
annexEntity.Create(); | annexEntity.Create(); | ||||
annexEntity.F_Id = Guid.NewGuid().ToString(); | annexEntity.F_Id = Guid.NewGuid().ToString(); | ||||
} | } | ||||
@@ -344,11 +344,11 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
public ActionResult GetYearListByClass() | public ActionResult GetYearListByClass() | ||||
{ | { | ||||
var classList = classInfoIBLL.GetAllClass().ToList(); | var classList = classInfoIBLL.GetAllClass().ToList(); | ||||
var result = classList.GroupBy(a => a.Grade).Select(m=>m.Key).ToList(); | |||||
List<object> list=new List<object>(); | |||||
var result = classList.GroupBy(a => a.Grade).Select(m => m.Key).ToList(); | |||||
List<object> list = new List<object>(); | |||||
foreach (var item in result) | foreach (var item in result) | ||||
{ | { | ||||
list.Add(new{year=item}); | |||||
list.Add(new { year = item }); | |||||
} | } | ||||
return Success(list); | return Success(list); | ||||
@@ -375,9 +375,9 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
[HttpPost] | [HttpPost] | ||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult GetCheckInStatistics(string DeptNo, string MajorNo, string ClassNo) | |||||
public ActionResult GetCheckInStatistics(string MajorNo, string ClassNo) | |||||
{ | { | ||||
var result = stuEnrollIBLL.GetCheckInStatistics(DeptNo, MajorNo, ClassNo); | |||||
var result = stuEnrollIBLL.GetCheckInStatistics(MajorNo, ClassNo); | |||||
return Success(result); | return Success(result); | ||||
} | } | ||||
@@ -385,18 +385,18 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
[HttpPost] | [HttpPost] | ||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult GetHelpStatistics(string DeptNo, string MajorNo, string ClassNo) | |||||
public ActionResult GetHelpStatistics(string MajorNo, string ClassNo) | |||||
{ | { | ||||
var result = stuEnrollIBLL.GetHelpStatistics(DeptNo, MajorNo, ClassNo); | |||||
var result = stuEnrollIBLL.GetHelpStatistics(MajorNo, ClassNo); | |||||
return Success(result); | return Success(result); | ||||
} | } | ||||
[HttpPost] | [HttpPost] | ||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult GetMilitaryStatistics(string DeptNo, string MajorNo, string ClassNo) | |||||
public ActionResult GetMilitaryStatistics(string MajorNo, string ClassNo) | |||||
{ | { | ||||
var result = stuEnrollIBLL.GetMilitaryStatistics(DeptNo, MajorNo, ClassNo); | |||||
var result = stuEnrollIBLL.GetMilitaryStatistics(MajorNo, ClassNo); | |||||
return Success(result); | return Success(result); | ||||
} | } | ||||
@@ -519,13 +519,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
return Success("分配成功!"); | return Success("分配成功!"); | ||||
} | } | ||||
[HttpPost] | |||||
[AjaxOnly] | |||||
public ActionResult SyncDept() | |||||
{ | |||||
stuEnrollIBLL.SyncDept(); | |||||
return Success("同步成功"); | |||||
} | |||||
[HttpPost] | [HttpPost] | ||||
[AjaxOnly] | [AjaxOnly] | ||||
public ActionResult SyncMajor() | public ActionResult SyncMajor() | ||||
@@ -57,13 +57,6 @@ | |||||
<div class="lr-layout-tool"> | <div class="lr-layout-tool"> | ||||
<div class="lr-layout-tool-left"> | <div class="lr-layout-tool-left"> | ||||
<div class="lr-layout-tool-item"> | |||||
<div style="width:200px;" class="lr-form-item"> | |||||
<div class="lr-form-item-title">系部</div> | |||||
<div id="DeptNo"></div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | <div class="lr-layout-tool-item"> | ||||
<div style="width:200px;" class="lr-form-item"> | <div style="width:200px;" class="lr-form-item"> | ||||
<div class="lr-form-item-title">专业</div> | <div class="lr-form-item-title">专业</div> | ||||
@@ -88,13 +81,6 @@ | |||||
</div> | </div> | ||||
<!--<div class="lr-layout-tool-right"> | <!--<div class="lr-layout-tool-right"> | ||||
<div class="lr-layout-tool-item"> | |||||
<div style="width:200px;" class="lr-form-item"> | |||||
<div class="lr-form-item-title">系部</div> | |||||
<div id="DeptNo"></div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | <div class="lr-layout-tool-item"> | ||||
<div style="width:200px;" class="lr-form-item"> | <div style="width:200px;" class="lr-form-item"> | ||||
<div class="lr-form-item-title">专业</div> | <div class="lr-form-item-title">专业</div> | ||||
@@ -116,13 +102,6 @@ | |||||
</div> | </div> | ||||
<div class="distribute"> | <div class="distribute"> | ||||
<div class="lr-layout-tool-left"> | <div class="lr-layout-tool-left"> | ||||
<div class="lr-layout-tool-item"> | |||||
<div style="width:200px;" class="lr-form-item"> | |||||
<div class="lr-form-item-title">系部</div> | |||||
<div id="DeptNoAll"></div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | <div class="lr-layout-tool-item"> | ||||
<div style="width:200px;" class="lr-form-item"> | <div style="width:200px;" class="lr-form-item"> | ||||
<div class="lr-form-item-title">专业</div> | <div class="lr-form-item-title">专业</div> | ||||
@@ -25,29 +25,6 @@ var bootstrap = function ($, learun) { | |||||
}, 220, 400); | }, 220, 400); | ||||
$('#DeptNo').lrselect({ | |||||
allowSearch: true, | |||||
value: "deptno", | |||||
text: "deptname", | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
} | |||||
}); | |||||
$('#MajorNo').lrselect({ | $('#MajorNo').lrselect({ | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | ||||
@@ -57,29 +34,6 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
$('#DeptNoAll').lrselect({ | |||||
allowSearch: true, | |||||
value: "deptno", | |||||
text: "deptname", | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#MajorNoAll').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#MajorNoAll').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
} | |||||
}); | |||||
$('#MajorNoAll').lrselect({ | $('#MajorNoAll').lrselect({ | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | ||||
@@ -111,18 +65,10 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
//$('#MajorNo').on("click", | |||||
// function () { | |||||
// var data = $('#DeptNo').lrselectGet(); | |||||
// if (!data) { | |||||
// learun.alert.error('请先选择系'); | |||||
// } | |||||
// }); | |||||
//$('#ClassNo').on("click", | //$('#ClassNo').on("click", | ||||
// function () { | // function () { | ||||
// var data1 = $('#DeptNo').lrselectGet(); | |||||
// var data2 = $('#MajorNo').lrselectGet(); | // var data2 = $('#MajorNo').lrselectGet(); | ||||
// if (!data1 || !data2) { | |||||
// if (!data2) { | |||||
// learun.alert.error('请先选择系和专业'); | // learun.alert.error('请先选择系和专业'); | ||||
// } | // } | ||||
// }); | // }); | ||||
@@ -299,12 +245,10 @@ var bootstrap = function ($, learun) { | |||||
}; | }; | ||||
getParam = function () { | getParam = function () { | ||||
var deptNo = $("#DeptNo").lrselectGet(); | |||||
var majorNo = $("#MajorNo").lrselectGet(); | var majorNo = $("#MajorNo").lrselectGet(); | ||||
var IdCard = $("#IDCard").val(); | var IdCard = $("#IDCard").val(); | ||||
var isAllocation = $("#isAllocation").find('input:checked').val(); | var isAllocation = $("#isAllocation").find('input:checked').val(); | ||||
var param = { | var param = { | ||||
DeptNo: deptNo, | |||||
MajorNo: majorNo, | MajorNo: majorNo, | ||||
IDCard: IdCard, | IDCard: IdCard, | ||||
IsAllocation: isAllocation | IsAllocation: isAllocation | ||||
@@ -17,13 +17,6 @@ | |||||
<div class="lr-layout-tool"> | <div class="lr-layout-tool"> | ||||
<div class="lr-layout-tool-left"> | <div class="lr-layout-tool-left"> | ||||
<div class="lr-layout-tool-item"> | |||||
<div style="width:200px;" class="lr-form-item"> | |||||
<div class="lr-form-item-title">系部<font face="宋体">*</font></div> | |||||
<div id="DeptNo"></div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | <div class="lr-layout-tool-item"> | ||||
<div style="width:200px;" class="lr-form-item"> | <div style="width:200px;" class="lr-form-item"> | ||||
<div class="lr-form-item-title">专业<font face="宋体">*</font></div> | <div class="lr-form-item-title">专业<font face="宋体">*</font></div> | ||||
@@ -24,28 +24,6 @@ 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').lrselect({ | |||||
allowSearch: true, | |||||
value: "deptno", | |||||
text: "deptname", | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
} | |||||
}); | |||||
$('#MajorNo').lrselect({ | $('#MajorNo').lrselect({ | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | ||||
@@ -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> | ||||
@@ -24,29 +24,7 @@ var bootstrap = function ($, learun) { | |||||
value:"year", | value:"year", | ||||
text:"year", | text:"year", | ||||
}) | }) | ||||
$('#DeptNo').lrselect({ | |||||
allowSearch: true, | |||||
value: "deptno", | |||||
text: "deptname", | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
} | |||||
}); | |||||
$('#MajorNo').lrselect({ | $('#MajorNo').lrselect({ | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | ||||
@@ -318,13 +296,11 @@ var bootstrap = function ($, learun) { | |||||
page.search(); | page.search(); | ||||
}, | }, | ||||
refreshMoney: function () { | refreshMoney: function () { | ||||
var deptNo = $("#DeptNo").lrselectGet(); | |||||
var majorNo = $("#MajorNo").lrselectGet(); | var majorNo = $("#MajorNo").lrselectGet(); | ||||
var classNo = $("#ClassNo").lrselectGet(); | var classNo = $("#ClassNo").lrselectGet(); | ||||
$.post( | $.post( | ||||
top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetCheckInStatistics', | top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetCheckInStatistics', | ||||
{ | { | ||||
DeptNo: deptNo, | |||||
MajorNo: majorNo, | MajorNo: majorNo, | ||||
ClassNo: classNo | ClassNo: classNo | ||||
}, | }, | ||||
@@ -143,10 +143,6 @@ | |||||
<div class="lr-form-item-title">录取方式<font face="宋体">*</font></div> | <div class="lr-form-item-title">录取方式<font face="宋体">*</font></div> | ||||
<div id="Admissions" class="form-control" isvalid="yes" checkexpession="NotNull"></div> | <div id="Admissions" class="form-control" isvalid="yes" checkexpession="NotNull"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-4 lr-form-item" data-table="StuEnroll"> | |||||
<div class="lr-form-item-title">系部</div> | |||||
<div id="DeptNo" class="form-control"></div> | |||||
</div> | |||||
<div class="col-xs-4 lr-form-item" data-table="StuEnroll"> | <div class="col-xs-4 lr-form-item" data-table="StuEnroll"> | ||||
<div class="lr-form-item-title">专业</div> | <div class="lr-form-item-title">专业</div> | ||||
@@ -24,28 +24,6 @@ var bootstrap = function ($, learun) { | |||||
$('#Nationals').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); | $('#Nationals').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); | ||||
//政治面貌 | //政治面貌 | ||||
$('#Political').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | $('#Political').lrDataSourceSelect({ code: 'BCdPartyFace', value: 'partyfaceno', text: 'partyface' }); | ||||
$('#DeptNo').lrselect({ | |||||
allowSearch: true, | |||||
value: "deptno", | |||||
text: "deptname", | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
} | |||||
}); | |||||
$('#MajorNo').lrselect({ | $('#MajorNo').lrselect({ | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | ||||
@@ -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> | ||||
@@ -22,29 +22,6 @@ var bootstrap = function ($, learun) { | |||||
value:"year", | value:"year", | ||||
text:"year", | text:"year", | ||||
}) | }) | ||||
$('#DeptNo').lrselect({ | |||||
allowSearch: true, | |||||
value: "deptno", | |||||
text: "deptname", | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
} | |||||
}); | |||||
$('#MajorNo').lrselect({ | $('#MajorNo').lrselect({ | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | ||||
@@ -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> | ||||
@@ -22,29 +22,6 @@ var bootstrap = function ($, learun) { | |||||
value:"year", | value:"year", | ||||
text:"year", | text:"year", | ||||
}) | }) | ||||
$('#DeptNo').lrselect({ | |||||
allowSearch: true, | |||||
value: "deptno", | |||||
text: "deptname", | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
} | |||||
}); | |||||
$('#MajorNo').lrselect({ | $('#MajorNo').lrselect({ | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | ||||
@@ -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> | ||||
@@ -22,29 +22,7 @@ var bootstrap = function ($, learun) { | |||||
value: "year", | value: "year", | ||||
text: "year", | text: "year", | ||||
}) | }) | ||||
$('#DeptNo').lrselect({ | |||||
allowSearch: true, | |||||
value: "deptno", | |||||
text: "deptname", | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
} | |||||
}); | |||||
$('#MajorNo').lrselect({ | $('#MajorNo').lrselect({ | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | ||||
@@ -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> | ||||
@@ -27,28 +27,6 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}); | }); | ||||
$('#DeptNo').lrselect({ | |||||
allowSearch: true, | |||||
value: "deptno", | |||||
text: "deptname", | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
} | |||||
}); | |||||
$('#MajorNo').lrselect({ | $('#MajorNo').lrselect({ | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | ||||
@@ -170,9 +148,7 @@ var bootstrap = function ($, learun) { | |||||
// 同步系部 | // 同步系部 | ||||
$('#lr_syn').on('click', function () { | $('#lr_syn').on('click', function () { | ||||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuEnroll/SyncDept', function () { | |||||
refreshGirdData(); | |||||
}); | |||||
}); | }); | ||||
// 同步专业 | // 同步专业 | ||||
$('#lr_synmajor').on('click', function () { | $('#lr_synmajor').on('click', function () { | ||||
@@ -300,18 +276,6 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}, | }, | ||||
{ label: "姓名", name: "StuName", width: 100, align: "left" }, | { label: "姓名", name: "StuName", 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) { | label: "专业", name: "MajorNo", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { | ||||
learun.clientdata.getAsync('custmerData', { | learun.clientdata.getAsync('custmerData', { | ||||
@@ -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> | ||||
@@ -24,29 +24,6 @@ var bootstrap = function ($, learun) { | |||||
value:"year", | value:"year", | ||||
text:"year", | text:"year", | ||||
}) | }) | ||||
$('#DeptNo').lrselect({ | |||||
allowSearch: true, | |||||
value: "deptno", | |||||
text: "deptname", | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
} | |||||
}); | |||||
$('#MajorNo').lrselect({ | $('#MajorNo').lrselect({ | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | ||||
@@ -349,13 +326,11 @@ var bootstrap = function ($, learun) { | |||||
page.search(); | page.search(); | ||||
}, | }, | ||||
refreshMoney: function () { | refreshMoney: function () { | ||||
var deptNo = $("#DeptNo").lrselectGet(); | |||||
var majorNo = $("#MajorNo").lrselectGet(); | var majorNo = $("#MajorNo").lrselectGet(); | ||||
var classNo = $("#ClassNo").lrselectGet(); | var classNo = $("#ClassNo").lrselectGet(); | ||||
$.post( | $.post( | ||||
top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetHelpStatistics', | top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetHelpStatistics', | ||||
{ | { | ||||
DeptNo: deptNo, | |||||
MajorNo: majorNo, | MajorNo: majorNo, | ||||
ClassNo: classNo | ClassNo: classNo | ||||
}, | }, | ||||
@@ -83,10 +83,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> | ||||
@@ -151,7 +147,6 @@ | |||||
name: "薛礼根", | name: "薛礼根", | ||||
id: "14060219930602****", | id: "14060219930602****", | ||||
type: "汉族", | type: "汉族", | ||||
system: "数学系", | |||||
major: "数学与应用数学", | major: "数学与应用数学", | ||||
class: "1301", | class: "1301", | ||||
bookPay: { | bookPay: { | ||||
@@ -182,7 +177,6 @@ | |||||
data.major = res.data.majorName; | data.major = res.data.majorName; | ||||
data.type = $("#gridtable").jfGridValue('Nationals'); | data.type = $("#gridtable").jfGridValue('Nationals'); | ||||
data.class = res.data.className; | data.class = res.data.className; | ||||
data.system = res.data.deptName; | |||||
data.teacher = res.data.teacherName; | data.teacher = res.data.teacherName; | ||||
data.teacherPhone = res.data.teacherMobile; | data.teacherPhone = res.data.teacherMobile; | ||||
var chagerItemList = ''; | var chagerItemList = ''; | ||||
@@ -212,8 +206,8 @@ | |||||
'<tr>' + | '<tr>' + | ||||
'<td>民族</td>' + | '<td>民族</td>' + | ||||
'<td colspan="2">' + data.type + '</td>' + | '<td colspan="2">' + data.type + '</td>' + | ||||
'<td>系部</td>' + | |||||
'<td colspan="2">' + data.system + '</td>' + | |||||
'<td></td>' + | |||||
'<td colspan="2"></td>' + | |||||
'</tr>' + | '</tr>' + | ||||
'<tr>' + | '<tr>' + | ||||
'<td>专业</td>' + | '<td>专业</td>' + | ||||
@@ -23,29 +23,6 @@ var bootstrap = function ($, learun) { | |||||
value: "year", | value: "year", | ||||
text: "year", | text: "year", | ||||
}) | }) | ||||
$('#DeptNo').lrselect({ | |||||
allowSearch: true, | |||||
value: "deptno", | |||||
text: "deptname", | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
} | |||||
}); | |||||
$('#MajorNo').lrselect({ | $('#MajorNo').lrselect({ | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | ||||
@@ -10,11 +10,7 @@ | |||||
<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> | ||||
</div> | </div> | ||||
@@ -19,33 +19,11 @@ var bootstrap = function ($, learun) { | |||||
}, 380, 400); | }, 380, 400); | ||||
$("#IsMug").lrDataItemSelect({ code: "jyYewOrNot" }); | $("#IsMug").lrDataItemSelect({ code: "jyYewOrNot" }); | ||||
$('#Year').lrselect({ | $('#Year').lrselect({ | ||||
url:top.$.rootUrl+'/EducationalAdministration/StuEnroll/GetYearListByClass', | |||||
value:"year", | |||||
text:"year", | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetYearListByClass', | |||||
value: "year", | |||||
text: "year", | |||||
}) | }) | ||||
$('#DeptNo').lrselect({ | |||||
allowSearch: true, | |||||
value: "deptno", | |||||
text: "deptname", | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
} | |||||
}); | |||||
$('#MajorNo').lrselect({ | $('#MajorNo').lrselect({ | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | ||||
@@ -104,7 +82,7 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
//关联照片 | //关联照片 | ||||
$("#lr_realationPhoto").on('click', function() { | |||||
$("#lr_realationPhoto").on('click', function () { | |||||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuEnroll/RealationPhoto', {}, function () { | learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuEnroll/RealationPhoto', {}, function () { | ||||
refreshGirdData(); | refreshGirdData(); | ||||
}); | }); | ||||
@@ -197,7 +175,7 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ label: "出生年月", name: "Birthday", width: 100, align: "left", formatter: function (val) { return val.substring(0, 10); } }, | |||||
{ label: "出生年月", name: "Birthday", width: 100, align: "left", formatter: function (val) { return val != null && val != "" ? val.substring(0, 10) : ""; } }, | |||||
{ label: "身份证", name: "IDCard", width: 100, align: "left" }, | { label: "身份证", name: "IDCard", width: 100, align: "left" }, | ||||
{ | { | ||||
label: "政治面貌", name: "Political", width: 100, align: "left", | label: "政治面貌", name: "Political", width: 100, align: "left", | ||||
@@ -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> | ||||
@@ -24,29 +24,6 @@ var bootstrap = function ($, learun) { | |||||
value:"year", | value:"year", | ||||
text:"year", | text:"year", | ||||
}) | }) | ||||
$('#DeptNo').lrselect({ | |||||
allowSearch: true, | |||||
value: "deptno", | |||||
text: "deptname", | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
} | |||||
}); | |||||
$('#MajorNo').lrselect({ | $('#MajorNo').lrselect({ | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | ||||
@@ -327,13 +304,11 @@ var bootstrap = function ($, learun) { | |||||
page.search(); | page.search(); | ||||
}, | }, | ||||
refreshMoney: function () { | refreshMoney: function () { | ||||
var deptNo = $("#DeptNo").lrselectGet(); | |||||
var majorNo = $("#MajorNo").lrselectGet(); | var majorNo = $("#MajorNo").lrselectGet(); | ||||
var classNo = $("#ClassNo").lrselectGet(); | var classNo = $("#ClassNo").lrselectGet(); | ||||
$.post( | $.post( | ||||
top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetMilitaryStatistics', | top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetMilitaryStatistics', | ||||
{ | { | ||||
DeptNo: deptNo, | |||||
MajorNo: majorNo, | MajorNo: majorNo, | ||||
ClassNo: classNo | ClassNo: classNo | ||||
}, | }, | ||||
@@ -64,19 +64,10 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}); | }); | ||||
//$('#MajorNo').on("click", | |||||
// function () { | |||||
// var data = $('#DeptNo').lrselectGet(); | |||||
// if (!data) { | |||||
// learun.alert.error('请先选择系'); | |||||
// } | |||||
// }); | |||||
//$('#ClassNo').on("click", | //$('#ClassNo').on("click", | ||||
// function () { | // function () { | ||||
// var data1 = $('#DeptNo').lrselectGet(); | |||||
// var data2 = $('#MajorNo').lrselectGet(); | // var data2 = $('#MajorNo').lrselectGet(); | ||||
// if (!data1 || !data2) { | |||||
// if (!data2) { | |||||
// learun.alert.error('请先选择系和专业'); | // learun.alert.error('请先选择系和专业'); | ||||
// } | // } | ||||
// }); | // }); | ||||
@@ -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> | ||||
@@ -24,29 +24,6 @@ var bootstrap = function ($, learun) { | |||||
value:"year", | value:"year", | ||||
text:"year", | text:"year", | ||||
}) | }) | ||||
$('#DeptNo').lrselect({ | |||||
allowSearch: true, | |||||
value: "deptno", | |||||
text: "deptname", | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
} | |||||
}); | |||||
$('#MajorNo').lrselect({ | $('#MajorNo').lrselect({ | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | ||||
@@ -403,13 +380,11 @@ var bootstrap = function ($, learun) { | |||||
page.search(); | page.search(); | ||||
}, | }, | ||||
refreshMoney: function () { | refreshMoney: function () { | ||||
var deptNo = $("#DeptNo").lrselectGet(); | |||||
var majorNo = $("#MajorNo").lrselectGet(); | var majorNo = $("#MajorNo").lrselectGet(); | ||||
var classNo = $("#ClassNo").lrselectGet(); | var classNo = $("#ClassNo").lrselectGet(); | ||||
$.post( | $.post( | ||||
top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetMilitaryStatistics', | top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetMilitaryStatistics', | ||||
{ | { | ||||
DeptNo: deptNo, | |||||
MajorNo: majorNo, | MajorNo: majorNo, | ||||
ClassNo: classNo | ClassNo: classNo | ||||
}, | }, | ||||
@@ -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> | ||||
@@ -24,29 +24,6 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
$('#Admissions').lrDataItemSelect({ code: 'enrollType' }); | $('#Admissions').lrDataItemSelect({ code: 'enrollType' }); | ||||
$('#DeptNo').lrselect({ | |||||
allowSearch: true, | |||||
value: "deptno", | |||||
text: "deptname", | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
} | |||||
}); | |||||
$('#MajorNo').lrselect({ | $('#MajorNo').lrselect({ | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | ||||
@@ -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> | ||||
@@ -26,29 +26,7 @@ var bootstrap = function ($, learun) { | |||||
learun.alert.error('读取错误!未检测到身份证或设备连接错误,请调整身份证位置并重新读取,多次未读取到身份证信息则可能是身份证芯片已损坏!'); | learun.alert.error('读取错误!未检测到身份证或设备连接错误,请调整身份证位置并重新读取,多次未读取到身份证信息则可能是身份证芯片已损坏!'); | ||||
} | } | ||||
}); | }); | ||||
$('#DeptNo').lrselect({ | |||||
allowSearch: true, | |||||
value: "deptno", | |||||
text: "deptname", | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', | |||||
select: function (item) { | |||||
if (item) { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } | |||||
}); | |||||
} else { | |||||
$('#MajorNo').lrselectRefresh({ | |||||
allowSearch: true, | |||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | |||||
param: { strWhere: "1=1 AND CheckMark=1" } | |||||
}); | |||||
} | |||||
} | |||||
}); | |||||
$('#MajorNo').lrselect({ | $('#MajorNo').lrselect({ | ||||
allowSearch: true, | allowSearch: true, | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', | ||||
@@ -146,9 +124,7 @@ var bootstrap = function ($, learun) { | |||||
// 同步系部 | // 同步系部 | ||||
$('#lr_syn').on('click', function () { | $('#lr_syn').on('click', function () { | ||||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuEnroll/SyncDept', function () { | |||||
refreshGirdData(); | |||||
}); | |||||
}); | }); | ||||
// 打印 | // 打印 | ||||
$('#lr_print').on('click', function () { | $('#lr_print').on('click', function () { | ||||
@@ -152,11 +152,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
} | } | ||||
public object GetCheckInStatistics(string DeptNo, string MajorNo, string ClassNo) | |||||
public object GetCheckInStatistics(string MajorNo, string ClassNo) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
return stuEnrollService.GetCheckInStatistics(DeptNo, MajorNo, ClassNo); | |||||
return stuEnrollService.GetCheckInStatistics(MajorNo, ClassNo); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -170,11 +170,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
} | } | ||||
} | } | ||||
} | } | ||||
public object GetHelpStatistics(string DeptNo, string MajorNo, string ClassNo) | |||||
public object GetHelpStatistics(string MajorNo, string ClassNo) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
return stuEnrollService.GetHelpStatistics(DeptNo, MajorNo, ClassNo); | |||||
return stuEnrollService.GetHelpStatistics(MajorNo, ClassNo); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -188,11 +188,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
} | } | ||||
} | } | ||||
} | } | ||||
public object GetMilitaryStatistics(string DeptNo, string MajorNo, string ClassNo) | |||||
public object GetMilitaryStatistics(string MajorNo, string ClassNo) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
return stuEnrollService.GetMilitaryStatistics(DeptNo, MajorNo, ClassNo); | |||||
return stuEnrollService.GetMilitaryStatistics(MajorNo, ClassNo); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -432,25 +432,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
} | } | ||||
} | } | ||||
} | } | ||||
public void SyncDept() | |||||
{ | |||||
try | |||||
{ | |||||
stuEnrollService.SyncDept(); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
public void SyncMajor() | public void SyncMajor() | ||||
{ | { | ||||
try | try | ||||
@@ -381,11 +381,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
[Column("ENROLLGRADE")] | [Column("ENROLLGRADE")] | ||||
public string EnrollGrade { get; set; } | public string EnrollGrade { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// 系部 | |||||
/// </summary> | |||||
[Column("DEPTNO")] | |||||
public string DeptNo { get; set; } | |||||
/// <summary> | |||||
/// 应收金额 | /// 应收金额 | ||||
/// </summary> | /// </summary> | ||||
[Column("PAYAMOUNT")] | [Column("PAYAMOUNT")] | ||||
@@ -56,7 +56,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
(bool, string) Report(string stuId, bool status); | (bool, string) Report(string stuId, bool status); | ||||
(bool, string) Sign(string stuId, bool status); | (bool, string) Sign(string stuId, bool status); | ||||
void SyncDept(); | |||||
void SyncMajor(); | void SyncMajor(); | ||||
(bool, string) Stay(string stuId, bool status, bool payAfter); | (bool, string) Stay(string stuId, bool status, bool payAfter); | ||||
void AllStay(); | void AllStay(); | ||||
@@ -79,9 +78,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
(bool, string) GetClothSize(string stuId, bool status); | (bool, string) GetClothSize(string stuId, bool status); | ||||
(bool, string) GetArticles(string stuId, bool status); | (bool, string) GetArticles(string stuId, bool status); | ||||
object GetStuInfo(string stuId); | object GetStuInfo(string stuId); | ||||
object GetCheckInStatistics(string DeptNo, string MajorNo, string ClassNo); | |||||
object GetHelpStatistics(string DeptNo, string MajorNo, string ClassNo); | |||||
object GetMilitaryStatistics(string DeptNo, string MajorNo, string ClassNo); | |||||
object GetCheckInStatistics(string MajorNo, string ClassNo); | |||||
object GetHelpStatistics(string MajorNo, string ClassNo); | |||||
object GetMilitaryStatistics(string MajorNo, string ClassNo); | |||||
void GetMoney(); | void GetMoney(); | ||||
void RelationPhoto(); | void RelationPhoto(); | ||||
void Synchronization(); | void Synchronization(); | ||||
@@ -95,7 +95,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
t.StuStatusNo, | t.StuStatusNo, | ||||
t.PayAmount, | t.PayAmount, | ||||
t.ActualPayAmount, | t.ActualPayAmount, | ||||
t.DeptNo, | |||||
t.Grade, | t.Grade, | ||||
t.THROUGHPROJECT, | t.THROUGHPROJECT, | ||||
t.Status | t.Status | ||||
@@ -131,11 +130,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
dp.Add("Admissions", queryParam["Admissions"].ToString() , DbType.String); | dp.Add("Admissions", queryParam["Admissions"].ToString() , DbType.String); | ||||
strSql.Append(" AND t.Admissions = @Admissions "); | strSql.Append(" AND t.Admissions = @Admissions "); | ||||
} | } | ||||
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); | ||||
@@ -373,7 +367,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
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, | ||||
@@ -545,9 +538,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
var stuEnroll = this.BaseRepository("CollegeMIS").FindEntity<StuEnrollEntity>(a => a.StuId == stuId); | var stuEnroll = this.BaseRepository("CollegeMIS").FindEntity<StuEnrollEntity>(a => a.StuId == stuId); | ||||
var majorInfo = this.BaseRepository("CollegeMIS").FindEntity<CdMajorEntity>(a => a.MajorNo == stuEnroll.MajorNo); | var majorInfo = this.BaseRepository("CollegeMIS").FindEntity<CdMajorEntity>(a => a.MajorNo == stuEnroll.MajorNo); | ||||
var deptNo = majorInfo?.DeptNo; | |||||
var majorName = majorInfo?.MajorName; | var majorName = majorInfo?.MajorName; | ||||
var deptName = this.BaseRepository("CollegeMIS").FindEntity<CdDeptEntity>(a => a.DeptNo == deptNo)?.DeptName; | |||||
var classInfo = this.BaseRepository("CollegeMIS").FindEntity<ClassInfoEntity>(a => a.ClassNo == stuEnroll.ClassNo); | var classInfo = this.BaseRepository("CollegeMIS").FindEntity<ClassInfoEntity>(a => a.ClassNo == stuEnroll.ClassNo); | ||||
var teacherInfo = new EmpInfoEntity(); | var teacherInfo = new EmpInfoEntity(); | ||||
var yearAndSemester = Common.GetSemesterAndYear(); | var yearAndSemester = Common.GetSemesterAndYear(); | ||||
@@ -615,7 +606,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
return new | return new | ||||
{ | { | ||||
deptName, | |||||
majorName, | majorName, | ||||
className = classInfo?.ClassName, | className = classInfo?.ClassName, | ||||
teacherName = teacherInfo?.EmpName, | teacherName = teacherInfo?.EmpName, | ||||
@@ -645,12 +635,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
public string standerdName { get; set; } | public string standerdName { get; set; } | ||||
} | } | ||||
internal object GetCheckInStatistics(string DeptNo, string MajorNo, string ClassNo) | |||||
internal object GetCheckInStatistics(string MajorNo, string ClassNo) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
var data = this.BaseRepository("CollegeMIS").FindList<StuEnrollEntity>() | var data = this.BaseRepository("CollegeMIS").FindList<StuEnrollEntity>() | ||||
.Where(a => string.IsNullOrEmpty(DeptNo) || a.DeptNo == DeptNo) | |||||
.Where(a => string.IsNullOrEmpty(MajorNo) || a.MajorNo == MajorNo) | .Where(a => string.IsNullOrEmpty(MajorNo) || a.MajorNo == MajorNo) | ||||
.Where(a => string.IsNullOrEmpty(ClassNo) || a.ClassNo == ClassNo) | .Where(a => string.IsNullOrEmpty(ClassNo) || a.ClassNo == ClassNo) | ||||
@@ -672,12 +661,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
} | } | ||||
} | } | ||||
internal object GetHelpStatistics(string DeptNo, string MajorNo, string ClassNo) | |||||
internal object GetHelpStatistics(string MajorNo, string ClassNo) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
var data = this.BaseRepository("CollegeMIS").FindList<StuEnrollEntity>() | var data = this.BaseRepository("CollegeMIS").FindList<StuEnrollEntity>() | ||||
.Where(a => string.IsNullOrEmpty(DeptNo) || a.DeptNo == DeptNo) | |||||
.Where(a => string.IsNullOrEmpty(MajorNo) || a.MajorNo == MajorNo) | .Where(a => string.IsNullOrEmpty(MajorNo) || a.MajorNo == MajorNo) | ||||
.Where(a => string.IsNullOrEmpty(ClassNo) || a.ClassNo == ClassNo) | .Where(a => string.IsNullOrEmpty(ClassNo) || a.ClassNo == ClassNo) | ||||
@@ -699,12 +687,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
} | } | ||||
} | } | ||||
internal object GetMilitaryStatistics(string DeptNo, string MajorNo, string ClassNo) | |||||
internal object GetMilitaryStatistics(string MajorNo, string ClassNo) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
var data = this.BaseRepository("CollegeMIS").FindList<StuEnrollEntity>() | var data = this.BaseRepository("CollegeMIS").FindList<StuEnrollEntity>() | ||||
.Where(a => string.IsNullOrEmpty(DeptNo) || a.DeptNo == DeptNo) | |||||
.Where(a => string.IsNullOrEmpty(MajorNo) || a.MajorNo == MajorNo) | .Where(a => string.IsNullOrEmpty(MajorNo) || a.MajorNo == MajorNo) | ||||
.Where(a => string.IsNullOrEmpty(ClassNo) || a.ClassNo == ClassNo) | .Where(a => string.IsNullOrEmpty(ClassNo) || a.ClassNo == ClassNo) | ||||
@@ -814,11 +801,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
dp.Add("IDCard", "%" + queryParam["IDCard"].ToString() + "%", DbType.String); | dp.Add("IDCard", "%" + queryParam["IDCard"].ToString() + "%", DbType.String); | ||||
strSql.Append(" AND t.IDCard Like @IDCard "); | strSql.Append(" AND t.IDCard Like @IDCard "); | ||||
} | } | ||||
if (!queryParam["DeptNo"].IsEmpty()) | |||||
{ | |||||
dp.Add("DeptNo", queryParam["DeptNo"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.DeptNo = @DeptNo "); | |||||
} | |||||
if (!queryParam["Admissions"].IsEmpty()) | if (!queryParam["Admissions"].IsEmpty()) | ||||
{ | { | ||||
dp.Add("Admissions", queryParam["Admissions"].ToString(), DbType.String); | dp.Add("Admissions", queryParam["Admissions"].ToString(), DbType.String); | ||||
@@ -1880,7 +1862,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
StuNo = newStudent.StuNo, | StuNo = newStudent.StuNo, | ||||
Birthday = newStudent.Birthday, | Birthday = newStudent.Birthday, | ||||
ClassNo = newStudent.ClassNo, | ClassNo = newStudent.ClassNo, | ||||
DeptNo = newStudent.DeptNo, | |||||
MajorNo = newStudent.MajorNo, | MajorNo = newStudent.MajorNo, | ||||
MajorDetailName = newStudent.MajorName, | MajorDetailName = newStudent.MajorName, | ||||
IdentityCardNo = newStudent.IDCard, | IdentityCardNo = newStudent.IDCard, | ||||
@@ -2049,34 +2030,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
} | } | ||||
public void SyncDept() | |||||
{ | |||||
try | |||||
{ | |||||
var data = this.BaseRepository("CollegeMIS").FindList<StuEnrollEntity>().ToList(); | |||||
var majorList = this.BaseRepository("CollegeMIS").FindList<CdMajorEntity>().ToList(); | |||||
foreach (var item in data) | |||||
{ | |||||
var deptNo = majorList.FirstOrDefault(a => a.MajorNo == item.MajorNo)?.DeptNo; | |||||
item.DeptNo = deptNo; | |||||
this.BaseRepository("CollegeMIS").Update(item); | |||||
} | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
public void SyncMajor() | public void SyncMajor() | ||||
{ | { | ||||
try | try | ||||