46 lines
1.5 KiB
C#
46 lines
1.5 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,
|
|
CONTRACTCTIME = t.contractctime,
|
|
CONTRACTSTATUS = t.contractstatus,
|
|
CONTRACTCODE = t.CONTRACTCODE,
|
|
ISFORCE=t.isforce
|
|
};
|
|
var result = bl.UpdateCheckStatus(model, ref errors);
|
|
return result;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogHelper.Error(ex.ToString());
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
} |