Pārlūkot izejas kodu

【修改】缴费管理:导入功能优化,导入文件名称的参数新增;

西昌分支
dyy pirms 4 mēnešiem
vecāks
revīzija
1c4064aa70
3 mainītis faili ar 14 papildinājumiem un 14 dzēšanām
  1. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargeStuOrderController.cs
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargeStuYearItemController.cs
  3. +10
    -10
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargesStandardController.cs

+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargeStuOrderController.cs Parādīt failu

@@ -158,9 +158,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);


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargeStuYearItemController.cs Parādīt failu

@@ -148,9 +148,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);


+ 10
- 10
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FinaChargesStandardController.cs Parādīt failu

@@ -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);


Notiek ielāde…
Atcelt
Saglabāt