ComplianceServer/oldcode/WX.CRM.DataSynFactory/Cmd/Client_HandGift_IMP.cs

43 lines
1.3 KiB
C#

using System;
using WX.CRM.BLL.Wx;
using WX.CRM.Common;
using WX.CRM.DataSynFactory.Templates;
using WX.CRM.Model.Entity;
namespace WX.CRM.DataSynFactory.Cmd
{
public class Client_HandGift_IMP : Interfaces.IDataImportSvr<Client_HandGift>
{
public bool GenerateBusinessOne(Client_HandGift t)
{
try
{
WX_SZZYORDER_HANDGIFT_BL bl = new WX_SZZYORDER_HANDGIFT_BL();
ValidationErrors errors = new ValidationErrors();
WX_SZZYORDER_HANDGIFT model = new WX_SZZYORDER_HANDGIFT()
{
ORDERID = t.orderid,
MAINORDERID = t.mainorderid,
ORDERSTATUS = t.orderstatus,
OPENUSER = t.openuser,
OPTIME = t.optime,
OTIME = t.otime,
SZZYORDERID = t.szzyorderid,
CHECKMEMO = t.checkmemo,
CLOSEMEMO = t.closememo,
CLOSEUSER = t.closeuser,
CLOSETIME = t.closetime
};
var result = bl.UpdateCheckStatus(model, ref errors);
return result;
}
catch (Exception ex)
{
LogHelper.Error(ex.ToString());
return false;
}
}
}
}