public CompaniesRowChangeEvent(CompaniesRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public OrdersRow AddOrdersRow( string OrderNo, string OrderType, double OrderValue, System.DateTime OrderDate, double PaidValue, double OutstandingValue, System.DateTime RequiredDate, double DeliveryCost, string DeliveryNumber, int PaymentType, double PaymentValue, string Remarks, CompaniesRow parentCompaniesRowByFK_Orders_Companies, string CompanyCode, string CompanyName, CurrenciesRow parentCurrenciesRowByFK_Orders_Currencies, string CurrencyCode, string CurrencyName, OrdersRow parentOrdersRowByFK_Orders_Parent, string ParentNo, System.DateTime ParentDate, double ParentValue, int WarehouseID, string WarehouseCode, string WarehouseName) { OrdersRow rowOrdersRow = ((OrdersRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, OrderNo, OrderType, OrderValue, OrderDate, PaidValue, OutstandingValue, RequiredDate, DeliveryCost, DeliveryNumber, PaymentType, PaymentValue, Remarks, null, CompanyCode, CompanyName, null, CurrencyCode, CurrencyName, null, ParentNo, ParentDate, ParentValue, WarehouseID, WarehouseCode, WarehouseName}; if ((parentCompaniesRowByFK_Orders_Companies != null)) { columnValuesArray[13] = parentCompaniesRowByFK_Orders_Companies[0]; } if ((parentCurrenciesRowByFK_Orders_Currencies != null)) { columnValuesArray[16] = parentCurrenciesRowByFK_Orders_Currencies[0]; } if ((parentOrdersRowByFK_Orders_Parent != null)) { columnValuesArray[19] = parentOrdersRowByFK_Orders_Parent[0]; } rowOrdersRow.ItemArray = columnValuesArray; this.Rows.Add(rowOrdersRow); return rowOrdersRow; }
public void RemoveCompaniesRow(CompaniesRow row) { this.Rows.Remove(row); }
public void AddCompaniesRow(CompaniesRow row) { this.Rows.Add(row); }
public ItemsRow AddItemsRow( string Code, string Name, string Specification, string VendorCode, string BrandName, string BrandType, string Dimension, double BasePrice, double SellingPrice, double QuantityMax, double QuantityMin, double QuantityCarton, UnitMeasuresRow parentUnitMeasuresRowByFK_Items_UnitMeasures, string MeasureCode, string MeasureName, ItemCategoriesRow parentItemCategoriesRowByFK_Items_Categories, string CategoryCode, string CategoryName, CompaniesRow parentCompaniesRowByFK_Items_Companies, string CompanyCode, string CompanyName, bool Inventoried, bool Active, System.DateTime ExpiredDate, int ExpiryInDays) { ItemsRow rowItemsRow = ((ItemsRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, Code, Name, Specification, VendorCode, BrandName, BrandType, Dimension, BasePrice, SellingPrice, QuantityMax, QuantityMin, QuantityCarton, null, MeasureCode, MeasureName, null, CategoryCode, CategoryName, null, CompanyCode, CompanyName, Inventoried, Active, ExpiredDate, ExpiryInDays}; if ((parentUnitMeasuresRowByFK_Items_UnitMeasures != null)) { columnValuesArray[13] = parentUnitMeasuresRowByFK_Items_UnitMeasures[0]; } if ((parentItemCategoriesRowByFK_Items_Categories != null)) { columnValuesArray[16] = parentItemCategoriesRowByFK_Items_Categories[0]; } if ((parentCompaniesRowByFK_Items_Companies != null)) { columnValuesArray[19] = parentCompaniesRowByFK_Items_Companies[0]; } rowItemsRow.ItemArray = columnValuesArray; this.Rows.Add(rowItemsRow); return rowItemsRow; }