Пример #1
0
 public bool Delete(object SalesOrderID)
 {
     return(SalesOrderHeader.Delete(SalesOrderID) == 1);
 }
Пример #2
0
 public bool Destroy(object SalesOrderID)
 {
     return(SalesOrderHeader.Destroy(SalesOrderID) == 1);
 }
Пример #3
0
        public void Update(int SalesOrderID, byte RevisionNumber, DateTime OrderDate, DateTime DueDate, DateTime?ShipDate, byte Status, bool OnlineOrderFlag, string SalesOrderNumber, string PurchaseOrderNumber, string AccountNumber, int CustomerID, int ContactID, int?SalesPersonID, int?TerritoryID, int BillToAddressID, int ShipToAddressID, int ShipMethodID, int?CreditCardID, string CreditCardApprovalCode, int?CurrencyRateID, decimal SubTotal, decimal TaxAmt, decimal Freight, decimal TotalDue, string Comment, Guid Rowguid, DateTime ModifiedDate)
        {
            SalesOrderHeader item = new SalesOrderHeader();

            item.SalesOrderID = SalesOrderID;

            item.RevisionNumber = RevisionNumber;

            item.OrderDate = OrderDate;

            item.DueDate = DueDate;

            item.ShipDate = ShipDate;

            item.Status = Status;

            item.OnlineOrderFlag = OnlineOrderFlag;

            item.SalesOrderNumber = SalesOrderNumber;

            item.PurchaseOrderNumber = PurchaseOrderNumber;

            item.AccountNumber = AccountNumber;

            item.CustomerID = CustomerID;

            item.ContactID = ContactID;

            item.SalesPersonID = SalesPersonID;

            item.TerritoryID = TerritoryID;

            item.BillToAddressID = BillToAddressID;

            item.ShipToAddressID = ShipToAddressID;

            item.ShipMethodID = ShipMethodID;

            item.CreditCardID = CreditCardID;

            item.CreditCardApprovalCode = CreditCardApprovalCode;

            item.CurrencyRateID = CurrencyRateID;

            item.SubTotal = SubTotal;

            item.TaxAmt = TaxAmt;

            item.Freight = Freight;

            item.TotalDue = TotalDue;

            item.Comment = Comment;

            item.Rowguid = Rowguid;

            item.ModifiedDate = ModifiedDate;

            item.MarkOld();
            item.Save(UserName);
        }