@@ -158,8 +158,8 @@ var bootstrap = function ($, learun) { | |||||
width: 600, | width: 600, | ||||
height: 400, | height: 400, | ||||
btn: null, | 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: 'OccupationalAnnuities', width: 70, align: "left", statistics: true }, | ||||
{ label: '失业保险金', name: 'UnemploymentInsurance', 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: '其它扣款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: '单位扣款1', name: 'TenPercent', width: 70, align: "left", statistics: true }, | ||||
{ label: '单位扣款2', name: 'GirlStaffSanitation', 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 }, | { label: '单位扣款3', name: 'TeacherAndTown', width: 70, align: "center", statistics: true }, | ||||
@@ -24,6 +24,7 @@ namespace Learun.Application.Web.Areas.LR_SystemModule.Controllers | |||||
private AnnexesFileIBLL annexesFileIBLL = new AnnexesFileBLL(); | private AnnexesFileIBLL annexesFileIBLL = new AnnexesFileBLL(); | ||||
private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL(); | private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL(); | ||||
private Ass_FixAssetsIBLL ass_FixAssetsIBLL = new Ass_FixAssetsBLL(); | private Ass_FixAssetsIBLL ass_FixAssetsIBLL = new Ass_FixAssetsBLL(); | ||||
private WageScheduleIBLL wageScheduleIBLL = new WageScheduleBLL(); | |||||
#region 视图功能 | #region 视图功能 | ||||
/// <summary> | /// <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> | ||||
/// 下载文件(导入文件未被导入的数据) | /// 下载文件(导入文件未被导入的数据) | ||||
/// </summary> | /// </summary> | ||||
@@ -1124,7 +1124,6 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\ImportForm.js" /> | <Content Include="Areas\EducationalAdministration\Views\WageSchedule\ImportForm.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\Index.js" /> | <Content Include="Areas\EducationalAdministration\Views\WageSchedule\Index.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\IndexMy.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\AnalysisByMonthForStudent.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\YKTStateMent\ManageIndexTeacher.js" /> | <Content Include="Areas\EducationalAdministration\Views\YKTStateMent\ManageIndexTeacher.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\YKTStateMent\IndexForTeacher.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\ImportForm.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\Index.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\WageSchedule\Index.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\IndexMy.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\WageSchedule\IndexMy.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\WageSchedule\IndexPrint.cshtml" /> | |||||
<Content Include="Content\excel\SalarySheetImport.xls" /> | <Content Include="Content\excel\SalarySheetImport.xls" /> | ||||
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | <None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | ||||
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | <None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | ||||