public DataOperation(List<Model.MigrationDataSet> mds, MainForm form) { this.mds = mds; this.connectionString = System.Configuration.ConfigurationSettings.AppSettings["MySqlConnectionString"]; prod = new Product(); pItem = new ProductItem(); pM = new PriceMaster(); iPrice = new ItemPrice(); categorySet = new ProductCategorySet(); pMap = new ProductMigrationMap(); _prodMgr = new ProductMgr(this.connectionString); _priceMgr = new PriceMasterMgr(this.connectionString); _prodItemMgr = new ProductItemMgr(this.connectionString); _itemPriceMgr = new ItemPriceMgr(this.connectionString); _vendorBrandMgr = new VendorBrandMgr(this.connectionString); _vendorMgr = new VendorMgr(this.connectionString); _pMap = new ProductMigrationMgr(this.connectionString); _productCategorySetMgr = new ProductCategorySetMgr(this.connectionString); _productNoticeSetMgr = new ProductNoticeSetMgr(this.connectionString); _productTagSetMgr = new ProductTagSetMgr(this.connectionString); _productPictureMgr = new ProductPictureMgr(this.connectionString); _proStatusHistoryMgr = new ProductStatusHistoryMgr(connectionString); _proSpecMgr = new ProductSpecMgr(connectionString); _siteMgr = new SiteMgr(connectionString); this.form = form; }
public static DataOperation CreateOperation(string operType, List<Model.MigrationDataSet> mds, MainForm form) { DataOperation dOper = null; switch (operType) { case "old": dOper = new BeginUpdate(mds, form); break; case "new": dOper = new BeginInsert(mds, form); break; case "199": dOper = new PriceInsert(mds, form); break; default: break; } return dOper; }
public BeginUpdate(List<Model.MigrationDataSet> mds, MainForm form) : base(mds, form) { }
public PriceInsert(List<Model.MigrationDataSet> mds, MainForm form) : base(mds, form) { }
public Combination(string connectionString, MainForm form) { this.strConn = connectionString; this.form = form; }