Exemplo n.º 1
0
        public void Update(int InvoiceAuditID, int?InvoiceNumber, int?OrderNumber, int?DepartmentID, DateTime?InvoiceDate, int?Customer, int?InvoiceCurrencyID, string Description, decimal?ExchangeRate, string Notes, DateTime?PaymentDueDate, int?InvoiceRaisedBy, DateTime?InvoiceRaised, decimal?InsuranceValue, string Contact, decimal?OriginalProfitMargin, DateTime?OriginalProfitDate, DateTime?AddedToTable, int?AddedBy, byte[] Ts)
        {
            InvoiceTableAudit item = new InvoiceTableAudit();

            item.MarkOld();
            item.IsLoaded = true;

            item.InvoiceAuditID = InvoiceAuditID;

            item.InvoiceNumber = InvoiceNumber;

            item.OrderNumber = OrderNumber;

            item.DepartmentID = DepartmentID;

            item.InvoiceDate = InvoiceDate;

            item.Customer = Customer;

            item.InvoiceCurrencyID = InvoiceCurrencyID;

            item.Description = Description;

            item.ExchangeRate = ExchangeRate;

            item.Notes = Notes;

            item.PaymentDueDate = PaymentDueDate;

            item.InvoiceRaisedBy = InvoiceRaisedBy;

            item.InvoiceRaised = InvoiceRaised;

            item.InsuranceValue = InsuranceValue;

            item.Contact = Contact;

            item.OriginalProfitMargin = OriginalProfitMargin;

            item.OriginalProfitDate = OriginalProfitDate;

            item.AddedToTable = AddedToTable;

            item.AddedBy = AddedBy;

            item.Ts = Ts;

            item.Save(UserName);
        }
Exemplo n.º 2
0
 public bool Destroy(object InvoiceAuditID)
 {
     return(InvoiceTableAudit.Destroy(InvoiceAuditID) == 1);
 }
Exemplo n.º 3
0
 public bool Delete(object InvoiceAuditID)
 {
     return(InvoiceTableAudit.Delete(InvoiceAuditID) == 1);
 }