Commit d6d659f1 by 陶然

优化

parent 1673fd53
......@@ -194,7 +194,7 @@ namespace Kivii.Finances.Seeyon.Extensions
//var settlementType = "code|MonthlySettlement";//默认月结
rtns.业务类型 = typeof(Entities.BillApply).FullName;
rtns.业务编号 = bizKvids;
rtns.单据编号 = apply.SerialNumber;
//rtns.单据编号 = apply.SerialNumber;
rtns.申请日期 = DateTime.Now.ToString("yyyy-MM-dd");
rtns.申请部门 = orgMember.orgDepartmentId;//KiviiContext.CurrentMember.DepartmentName;
rtns.申请人 = orgMember.id;//apply.OperatorName;
......@@ -226,7 +226,7 @@ namespace Kivii.Finances.Seeyon.Extensions
//var settlementType = "code|MonthlySettlement";//默认月结
rtns.业务类型 = typeof(Entities.BillApply).FullName;
rtns.业务编号 = bizKvids;
rtns.单据编号 = apply.SerialNumber;
//rtns.单据编号 = apply.SerialNumber;
rtns.申请日期 = DateTime.Now.ToString("yyyy-MM-dd");
rtns.申请部门 = orgMember.orgDepartmentId;//KiviiContext.CurrentMember.DepartmentName;
rtns.申请人 = orgMember.id;//apply.OperatorName;
......@@ -260,7 +260,7 @@ namespace Kivii.Finances.Seeyon.Extensions
//var settlementType = "code|MonthlySettlement";//默认月结
rtns.业务类型 = typeof(Entities.BillApply).FullName;
rtns.业务编号 = bizKvids;
rtns.单据编号 = apply.SerialNumber;
//rtns.单据编号 = apply.SerialNumber;
rtns.申请日期 = DateTime.Now.ToString("yyyy-MM-dd");
rtns.申请部门 = orgMember.orgDepartmentId;//KiviiContext.CurrentMember.DepartmentName;
rtns.申请人 = orgMember.id;//apply.OperatorName;
......@@ -292,7 +292,7 @@ namespace Kivii.Finances.Seeyon.Extensions
//var settlementType = "code|MonthlySettlement";//默认月结
rtns.业务类型 = typeof(Entities.BillApply).FullName;
rtns.业务编号 = bizKvids;
rtns.单据编号 = apply.SerialNumber;
//rtns.单据编号 = apply.SerialNumber;
rtns.申请日期 = DateTime.Now.ToString("yyyy-MM-dd");
rtns.申请部门 = orgMember.orgDepartmentId;//KiviiContext.CurrentMember.DepartmentName;
rtns.申请人 = orgMember.id;//apply.OperatorName;
......@@ -350,7 +350,7 @@ namespace Kivii.Finances.Seeyon.Extensions
//var settlementType = "code|MonthlySettlement";//默认月结
rtns.业务类型 = typeof(InvoiceOffsetApply).FullName;
rtns.业务编号 = bizKvids;
rtns.单据编号 = invoice.SerialNumber;
//rtns.单据编号 = invoice.SerialNumber;
rtns.申请日期 = DateTime.Now.ToString("yyyy-MM-dd");
rtns.申请部门 = orgMember.orgDepartmentId;//KiviiContext.CurrentMember.DepartmentName;
rtns.申请人 = orgMember.id;//apply.OperatorName;
......@@ -397,7 +397,7 @@ namespace Kivii.Finances.Seeyon.Extensions
//var settlementType = "code|MonthlySettlement";//默认月结
rtns.业务类型 = typeof(InvoiceRedFlushApply).FullName;
rtns.业务编号 = bizKvids;
rtns.单据编号 = invoice.SerialNumber;
//rtns.单据编号 = invoice.SerialNumber;
rtns.申请日期 = DateTime.Now.ToString("yyyy-MM-dd");
rtns.申请部门 = orgMember.orgDepartmentId;//KiviiContext.CurrentMember.DepartmentName;
rtns.申请人 = orgMember.id;//apply.OperatorName;
......
......@@ -349,7 +349,7 @@ namespace Kivii.Finances.Seeyon.Entities
var conn = KiviiContext.GetOpenedDbConnection<Invoice>();
var invoices = conn.SelectByIds<Invoice>(kvids);
invoices.ThrowIfNullOrEmpty("未找到发票信息!");
if (invoices.Exists(o=>o.BizKvid != Guid.Empty)) throw new Exception("当前发票已在申请中!");
if (invoices.Exists(o => o.BizKvid != Guid.Empty)) throw new Exception("当前发票已在申请中!");
if (invoices.Exists(o => o.OffsetKvid != Guid.Empty)) throw new Exception("当前发票已作废!");
var session = KiviiContext.Request.GetSession();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment