public void Update(POVendorInvoiceInfo entity) { DataCommand command = DataCommandManager.GetDataCommand("UpdatePOVendorInvoice"); command.SetParameterValue(entity); command.ExecuteNonQuery(); }
public void Update(POVendorInvoiceInfo entity) { poVendorDA.Update(entity); createLog.CreateOperationLog(GetMessageString("POVendorInvoice_Log_Update", ServiceContext.Current.UserSysNo, entity.SysNo) , BizLogType.PO_Vendor_Invoice_Update , entity.SysNo.Value , entity.CompanyCode); }
public POVendorInvoiceInfo Create(POVendorInvoiceInfo entity) { DataCommand command = DataCommandManager.GetDataCommand("InsertPOVendorInvoice"); command.SetParameterValue(entity); entity.SysNo = Convert.ToInt32(command.ExecuteScalar()); return(entity); }
public POVendorInvoiceInfo Create(POVendorInvoiceInfo input) { POVendorInvoiceInfo entity = poVendorDA.Create(input); createLog.CreateOperationLog(GetMessageString("POVendorInvoice_Log_Create", ServiceContext.Current.UserSysNo, entity.SysNo) , BizLogType.PO_Vendor_Invoice_Add , entity.SysNo.Value , entity.CompanyCode); return(entity); }
public void UnAudit(int sysNo) { POVendorInvoiceInfo poVendor = poVendorDA.GetPOVendorInvoiceBySysNo(sysNo); if (poVendor == null) { ThrowBizException("POVendorInvoice_InvoiceNotFound", sysNo); } if (poVendor.Status != InvoiceStatus.Audited) { ThrowBizException("POVendorInvoice_UnAudit_StatusNotMatchAudited"); } poVendorDA.UpdateStatus(sysNo, InvoiceStatus.Origin); createLog.CreateOperationLog(GetMessageString("POVendorInvoice_Log_UnAudit", ServiceContext.Current.UserSysNo, sysNo) , BizLogType.PO_Vendor_Invoice_Update , sysNo , poVendor.CompanyCode); }
public void UpdatePOVendorInvoice(POVendorInvoiceInfo entity) { ObjectFactory <POVendorInvoiceAppService> .Instance.Update(entity); }
public void CreatePOVendorInvoice(POVendorInvoiceInfo input) { ObjectFactory <POVendorInvoiceAppService> .Instance.Create(input); }