29 lines
790 B
C#
29 lines
790 B
C#
using System;
|
|
using WX.CRM.BLL.Wx;
|
|
using WX.CRM.Common;
|
|
using WX.CRM.DataSynFactory.Templates;
|
|
|
|
namespace WX.CRM.DataSynFactory.Cmd
|
|
{
|
|
public class Client_CloseOrder_IMP : Interfaces.IDataImportSvr<Client_CloseOrder>
|
|
{
|
|
private WX_SZZYORDER_BL _order = new WX_SZZYORDER_BL();
|
|
public bool GenerateBusinessOne(Client_CloseOrder t)
|
|
{
|
|
try
|
|
{
|
|
var order = _order.Get(p => p.ORDERID == t.OrderId);
|
|
order.ORDERSTATUS = t.OrderStatus;
|
|
order.ORDERSTATUSNAME = t.OrderStatusName;
|
|
|
|
return _order.Update(order);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogHelper.Error(ex.ToString());
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|