public static ISalesItem CreateSalesItem(tbl_Sai item) { ISalesItem salesItem = SalesFactory.createNewSalesItem(item.Sai_, item.SaiNumber, item.SaiSah_, item.SaiPrd_, item.Saivat, item.Saidiscount); return(salesItem); }
public static tbl_Sai CreateSalesItem(ISalesItem item) { tbl_Sai sai = new tbl_Sai(); sai.SaiNumber = item.SaiNumber; sai.SaiPrd_ = item.SaiPrdId; sai.Saidiscount = item.SaiDiscount; sai.SaiSah_ = item.SaiSahId; sai.Saivat = item.Saivat; return(sai); }
public static void DeleteSalesItem(ISalesItem item) { MerpDatabase().tbl_Sai.DeleteObject(LoadSalesItemByPrimaryKey(item.SaiId)); }
public static void AddPosition(ISalesItem item) { MerpDatabase().tbl_Sai.AddObject(CreateSalesItem(item)); MerpDatabase().SaveChanges(); }
public static tbl_Sai CreateSalesItem(ISalesItem item) { tbl_Sai sai = new tbl_Sai(); sai.SaiNumber = item.SaiNumber; sai.SaiPrd_ = item.SaiPrdId; sai.Saidiscount = item.SaiDiscount; sai.SaiSah_ = item.SaiSahId; sai.Saivat = item.Saivat; return sai; }
public SalesItemTaxDecorator(ISalesItem salesItem, ITax salesTax) { this._decoratedSalesItem = salesItem; this._salesTax = salesTax; }
public void DeleteSalesPosition(ISalesItem item) { Service.DeleteSalesPosition(item); }
public void AddSalesPosition(ISalesItem item) { Service.AddSalesPosition(item); }
public void DeleteSalesPosition(ISalesItem item) { QuattroDataFactory.DeleteSalesItem(item); }
public static void DeleteSalesItem(ISalesItem item) { MerpDatabase().tbl_Sai.DeleteObject(LoadSalesItemByPrimaryKey(item.SaiId)); }
public void AddSalesItem(ISalesItem salesItem) { _salesItems.Add(salesItem); }
public void DeleteSalesPosition(ISalesItem item) { QuattroDataFactory.DeleteSalesItem(item); }
public void AddSalesPosition(ISalesItem item) { QuattroDataFactory.AddPosition(item); }
public SalesItemTaxDecorator(ISalesItem salesItem, ITax salesTax) { this._decoratedSalesItem = salesItem; this._salesTax = salesTax; }
public void AddItem(ISalesItem item) { this._items.Add(item); }
public static void AddPosition(ISalesItem item) { MerpDatabase().tbl_Sai.AddObject(CreateSalesItem(item)); MerpDatabase().SaveChanges(); }
public void AddItem(ISalesItem item) { this._items.Add(item); }
public void AddSalesPosition(ISalesItem item) { QuattroDataFactory.AddPosition(item); }