소스 검색

【修改】工资条管理:导入;

新疆体育高职分支
dyy 6 달 전
부모
커밋
a81f9e265e
3개의 변경된 파일34개의 추가작업 그리고 5개의 파일을 삭제
  1. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Index.js
  2. +31
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/ExcelImportController.cs
  3. +0
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj

+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/WageSchedule/Index.js 파일 보기

@@ -158,8 +158,8 @@ var bootstrap = function ($, learun) {
width: 600,
height: 400,
btn: null,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
end: function () {
refreshGirdData();
}
});
});
@@ -195,7 +195,7 @@ var bootstrap = function ($, learun) {
{ label: '职业年金', name: 'OccupationalAnnuities', width: 70, align: "left", statistics: true },
{ label: '失业保险金', name: 'UnemploymentInsurance', width: 70, align: "left", statistics: true },
{ label: '其它扣款2', name: 'OtherOne', width: 70, align: "left", statistics: true },
{ label: '基本代扣合计', name: 'DeductionsSubtotal', width: 70, align: "left", statistics: true },
{ label: '基本代扣合计', name: 'DeductionsSubtotal', width: 100, align: "left", statistics: true },
{ label: '单位扣款1', name: 'TenPercent', width: 70, align: "left", statistics: true },
{ label: '单位扣款2', name: 'GirlStaffSanitation', width: 70, align: "left", statistics: true },
{ label: '单位扣款3', name: 'TeacherAndTown', width: 70, align: "center", statistics: true },


+ 31
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/ExcelImportController.cs 파일 보기

@@ -24,6 +24,7 @@ namespace Learun.Application.Web.Areas.LR_SystemModule.Controllers
private AnnexesFileIBLL annexesFileIBLL = new AnnexesFileBLL();
private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL();
private Ass_FixAssetsIBLL ass_FixAssetsIBLL = new Ass_FixAssetsBLL();
private WageScheduleIBLL wageScheduleIBLL = new WageScheduleBLL();

#region 视图功能
/// <summary>
@@ -354,6 +355,36 @@ namespace Learun.Application.Web.Areas.LR_SystemModule.Controllers
}
}

/// <summary>
/// 工资条导入
/// </summary>
/// <param name="templateId">模板Id</param>
/// <param name="fileId">文件主键</param>
/// <param name="chunks">分片数</param>
/// <param name="ext">文件扩展名</param>
/// <returns></returns>
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult SalarySheetImport(string fileId, int chunks, string ext)
{
UserInfo userInfo = LoginUserInfo.Get();
string path = annexesFileIBLL.SaveAnnexes(fileId, fileId + "." + ext, chunks, userInfo);
if (!string.IsNullOrEmpty(path))
{
DataTable dt = ExcelHelper.ExcelImport(path);
string res = wageScheduleIBLL.SalarySheelImport(dt, fileId);
var data = new
{
Success = res.Split('|')[0],
Fail = res.Split('|')[1]
};
return JsonResult(data);
}
else
{
return Fail("导入数据失败!");
}
}
/// <summary>
/// 下载文件(导入文件未被导入的数据)
/// </summary>


+ 0
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj 파일 보기

@@ -1124,7 +1124,6 @@
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\ImportForm.js" />
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\Index.js" />
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\IndexMy.js" />
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\IndexPrint.js" />
<Content Include="Areas\EducationalAdministration\Views\YKTStateMent\AnalysisByMonthForStudent.js" />
<Content Include="Areas\EducationalAdministration\Views\YKTStateMent\ManageIndexTeacher.js" />
<Content Include="Areas\EducationalAdministration\Views\YKTStateMent\IndexForTeacher.js" />
@@ -8435,7 +8434,6 @@
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\ImportForm.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\IndexMy.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\IndexPrint.cshtml" />
<Content Include="Content\excel\SalarySheetImport.xls" />
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />


불러오는 중...
취소
저장