コード例 #1
0
 public ProductRow AddProductRow(
             string Name, 
             string SmallName, 
             decimal PriceManufact, 
             UnitRow parentUnitRowByFK_Product_Unit, 
             PackingRow parentPackingRowByFK_Product_Packing, 
             StorageConditionRow parentStorageConditionRowByFK_Product_StorageCondition, 
             SubstanceRow parentSubstanceRowByFK_Product_Substance, 
             FarmGroupLevel2Row parentFarmGroupLevel2RowByFK_Product_FarmGroupLevel2, 
             bool IsRecept, 
             bool IsOneRecept, 
             bool IsHide, 
             short MinDivisor, 
             bool IsNDS, 
             int OldKol, 
             int OldKod, 
             string OldName, 
             string Note, 
             string AuthorCreate, 
             string AuthorLastModif, 
             System.DateTime DateLastModif, 
             System.DateTime DateCreate, 
             byte[] RowVersion) {
     ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
     rowProductRow.ItemArray = new object[] {
             null,
             Name,
             SmallName,
             PriceManufact,
             parentUnitRowByFK_Product_Unit[0],
             parentPackingRowByFK_Product_Packing[0],
             parentStorageConditionRowByFK_Product_StorageCondition[0],
             parentSubstanceRowByFK_Product_Substance[0],
             parentFarmGroupLevel2RowByFK_Product_FarmGroupLevel2[0],
             IsRecept,
             IsOneRecept,
             IsHide,
             MinDivisor,
             IsNDS,
             OldKol,
             OldKod,
             OldName,
             Note,
             AuthorCreate,
             AuthorLastModif,
             DateLastModif,
             DateCreate,
             RowVersion};
     this.Rows.Add(rowProductRow);
     return rowProductRow;
 }
コード例 #2
0
 public void RemoveSubstanceRow(SubstanceRow row) {
     this.Rows.Remove(row);
 }
コード例 #3
0
 public SubstanceRowChangeEvent(SubstanceRow row, System.Data.DataRowAction action) {
     this.eventRow = row;
     this.eventAction = action;
 }
コード例 #4
0
 public void AddSubstanceRow(SubstanceRow row) {
     this.Rows.Add(row);
 }