public UnitMeasuresRowChangeEvent(UnitMeasuresRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void AddUnitMeasuresRow(UnitMeasuresRow row) { this.Rows.Add(row); }
public void RemoveUnitMeasuresRow(UnitMeasuresRow row) { this.Rows.Remove(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; }