Commit 7b81c72b by 陶然

优化

parent 284f70bd
......@@ -37,12 +37,12 @@ namespace Kivii.Finances.Seeyon.Extensions
{
var apply = applys[0];
var bizKvids = applys.ConvertAll(o => o.Kvid);
var strBizKvids = JsonSerializer.SerializeToString(bizKvids);
//var strBizKvids = JsonSerializer.SerializeToString(bizKvids);
var amount = applys.Sum(o => o.Amount);
var rtns = new Form_InvoiceApply();
//var settlementType = "code|MonthlySettlement";//默认月结
rtns.业务类型 = typeof(BillApply).FullName;
rtns.业务编号 = strBizKvids;
rtns.业务编号 = bizKvids;
rtns.单据编号 = apply.SerialNumber;
rtns.日期 = DateTime.Now.ToString("yyyy-MM-dd");
rtns.所属部门 = KiviiContext.CurrentMember.DepartmentName;
......@@ -61,10 +61,12 @@ namespace Kivii.Finances.Seeyon.Extensions
public static Form_InvoiceApply ConvertToForm(this InvoiceApply apply)
{
var bizKvids = new List<Guid>();
bizKvids.Add(apply.Kvid);
var rtns = new Form_InvoiceApply();
//var settlementType = "code|MonthlySettlement";//默认月结
rtns.业务类型 = typeof(BillApply).FullName;
rtns.业务编号 = apply.Kvid.ToString();
rtns.业务编号 = bizKvids;
rtns.单据编号 = apply.SerialNumber;
rtns.日期 = DateTime.Now.ToString("yyyy-MM-dd");
rtns.所属部门 = KiviiContext.CurrentMember.DepartmentName;
......
......@@ -235,7 +235,7 @@ namespace Kivii.Finances.Seeyon.Entities
/// <summary>
/// 唯一编号,BizKvid
/// </summary>
public string 业务编号 { get; set; }
public List<Guid> 业务编号 { get; set; }
/// <summary>
/// 业务类型,BizType
......
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