|
@@ -160,7 +160,7 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers |
|
|
/// <returns></returns> |
|
|
/// <returns></returns> |
|
|
[HttpGet] |
|
|
[HttpGet] |
|
|
[AjaxOnly] |
|
|
[AjaxOnly] |
|
|
public ActionResult GetFormData(string majorNo, string syear,string grade) |
|
|
|
|
|
|
|
|
public ActionResult GetFormData(string majorNo, string syear, string grade) |
|
|
{ |
|
|
{ |
|
|
var FinaChargesStandardData = finaChargesStandardIBLL.GetFinaChargesStandardListByMajorNo(majorNo, syear, grade); |
|
|
var FinaChargesStandardData = finaChargesStandardIBLL.GetFinaChargesStandardListByMajorNo(majorNo, syear, grade); |
|
|
var jsonData = new |
|
|
var jsonData = new |
|
@@ -199,7 +199,7 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers |
|
|
{ |
|
|
{ |
|
|
var FinaChargesStandardData = finaChargesStandardIBLL.GetFinaChargesStandardListByMajorNo(majorNo, syear, grade); |
|
|
var FinaChargesStandardData = finaChargesStandardIBLL.GetFinaChargesStandardListByMajorNo(majorNo, syear, grade); |
|
|
|
|
|
|
|
|
var hasStandardData = FinaChargesStandardData.Where(x => x.ChargeStandardID !=""); |
|
|
|
|
|
|
|
|
var hasStandardData = FinaChargesStandardData.Where(x => x.ChargeStandardID != ""); |
|
|
var nohasStandardData = FinaChargesStandardData.Except(hasStandardData); |
|
|
var nohasStandardData = FinaChargesStandardData.Except(hasStandardData); |
|
|
|
|
|
|
|
|
var hasStandardResult = hasStandardData.Select(x => new |
|
|
var hasStandardResult = hasStandardData.Select(x => new |
|
@@ -241,10 +241,10 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers |
|
|
} |
|
|
} |
|
|
[HttpPost] |
|
|
[HttpPost] |
|
|
[AjaxOnly] |
|
|
[AjaxOnly] |
|
|
public ActionResult Lock(string deptno, string majorNo, string syear, string grade,string ChargeStandardID) |
|
|
|
|
|
|
|
|
public ActionResult Lock(string deptno, string majorNo, string syear, string grade, string ChargeStandardID) |
|
|
{ |
|
|
{ |
|
|
finaChargesStandardIBLL.Lock(deptno, majorNo, syear, grade, ChargeStandardID); |
|
|
|
|
|
return Success_FinaCharge("审核成功!", "收费标准设置", OperationType.Lock, ChargeStandardID,"专业"+majorNo+"年度"+syear+"年级"+grade); |
|
|
|
|
|
|
|
|
finaChargesStandardIBLL.Lock(deptno, majorNo, syear, grade, ChargeStandardID); |
|
|
|
|
|
return Success_FinaCharge("审核成功!", "收费标准设置", OperationType.Lock, ChargeStandardID, "专业" + majorNo + "年度" + syear + "年级" + grade); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[HttpPost] |
|
|
[HttpPost] |
|
@@ -261,12 +261,12 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers |
|
|
/// <returns></returns> |
|
|
/// <returns></returns> |
|
|
[HttpPost] |
|
|
[HttpPost] |
|
|
[AjaxOnly] |
|
|
[AjaxOnly] |
|
|
public ActionResult SaveForm(string deptno,string majorNo, string syear, string grade, string strEntity) |
|
|
|
|
|
|
|
|
public ActionResult SaveForm(string deptno, string majorNo, string syear, string grade, string strEntity) |
|
|
{ |
|
|
{ |
|
|
var aa = strEntity.ToObject<List<FinaChargesStandardEntity>>(); |
|
|
var aa = strEntity.ToObject<List<FinaChargesStandardEntity>>(); |
|
|
var aaa = aa.Where(x => x.Standard.HasValue && x.Standard.Value > 0).ToList(); |
|
|
var aaa = aa.Where(x => x.Standard.HasValue && x.Standard.Value > 0).ToList(); |
|
|
finaChargesStandardIBLL.SaveFinaChargesStandardList(deptno,majorNo, syear, grade, aaa); |
|
|
|
|
|
return Success_FinaCharge("保存成功!", "收费标准设置", OperationType.Update, majorNo, "专业" + majorNo + "年度" + syear + "年级" + grade+aaa.ToJson()); |
|
|
|
|
|
|
|
|
finaChargesStandardIBLL.SaveFinaChargesStandardList(deptno, majorNo, syear, grade, aaa); |
|
|
|
|
|
return Success_FinaCharge("保存成功!", "收费标准设置", OperationType.Update, majorNo, "专业" + majorNo + "年度" + syear + "年级" + grade + aaa.ToJson()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary> |
|
|
/// <summary> |
|
@@ -311,9 +311,9 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers |
|
|
/// <returns></returns> |
|
|
/// <returns></returns> |
|
|
[HttpPost] |
|
|
[HttpPost] |
|
|
[ValidateAntiForgeryToken] |
|
|
[ValidateAntiForgeryToken] |
|
|
public ActionResult ExecuteImportExcel(string fileGuid, int chunks, string queryJson) |
|
|
|
|
|
|
|
|
public ActionResult ExecuteImportExcel(string fileGuid, string fileName, int chunks, string queryJson) |
|
|
{ |
|
|
{ |
|
|
string path = annexesFileIBLL.SaveAnnexes(fileGuid, fileGuid, chunks, LoginUserInfo.Get()); |
|
|
|
|
|
|
|
|
string path = annexesFileIBLL.SaveAnnexes(fileGuid, fileName, chunks, LoginUserInfo.Get()); |
|
|
if (!string.IsNullOrEmpty(path)) |
|
|
if (!string.IsNullOrEmpty(path)) |
|
|
{ |
|
|
{ |
|
|
DataTable dt = ExcelHelper.ExcelImport(path); |
|
|
DataTable dt = ExcelHelper.ExcelImport(path); |
|
|