Esempio n. 1
0
        public EveryDayReportsUpdate(MainFormView _mf)
        {
            InitializeComponent();
            mf = _mf;

            //path = @ConfigurationManager.AppSettings.Get("reportsPath");
            path           = "D:\\BonaFides - отчеты\\!test_tmp\\everyday";
            adv_path       = path + "\\Advertising";
            bus_path       = path + "\\Business-Reports";
            inventory_path = path + "\\Amazon-check-stock";
            orders_path    = path + "\\All-orders";



            updatedRowsCount = 0;

            advProductsList = new List <AdvertisingProductsModel> {
            };
            advBrandsList   = new List <AdvertisingBrandsModel> {
            };
            campTList       = new List <CampaignTypesModel> {
            };
            pList           = new List <ProductsModel> {
            };
            businessList    = new List <ReportBusinessModel> {
            };
            missedColumns   = new List <int> {
            };

            businessController = new BusinessController(this);
            campTController    = new CampaignTypesController(this);
            advertController   = new AdvertisingController(this);
            prodController     = new ProductsController(this);
            reportDataAnalyzer = new ReportDataAnalyzer(this);

            AP_campaignIdsList = new List <MapNameId> {
            };
            AB_campaignIdsList = new List <MapNameId> {
            };

            advProductsListOfErrors = new List <AdvertisingProductsModel> {
            };
            advBrandsListOfErrors   = new List <AdvertisingBrandsModel> {
            };

            UpdateDate = DateTime.Today;
            StartDate  = DateTime.Today;
            EndDate    = DateTime.Today.AddHours(23).AddMinutes(59);

            mpList = new List <Marketplace> {
                new Marketplace(1, "PowerDeWise (USA)", "pdw usa"), new Marketplace(2, "PowerDeWise (CA)", "pdw ca"), new Marketplace(3, "PowerDeWise (AU)", "pdw au"), new Marketplace(4, "PowerDeWise (MX)", "pdw mx"), new Marketplace(5, "LetIt.Beer (USA)", "letit beer usa"), new Marketplace(6, "LetIt.Beer (CA)", "letit beer ca"), new Marketplace(7, "PowerDeWise (JP)", "pdw jp"), new Marketplace(8, "Others", "others")
            };

            prodController.GetProductsAllJOIN();
        }
Esempio n. 2
0
        /* Главный конструктор */
        public ReportAdvertisingUploadView(MainFormView _mf)
        {
            InitializeComponent();
            mf = _mf;

            UpdateDate = DateTime.Today;
            StartDate  = DateTime.Today;
            EndDate    = DateTime.Today.AddHours(23).AddMinutes(59);

            advProductsList          = new List <AdvertisingProductsModel> {
            };
            advProductsListForUpdate = new List <AdvertisingProductsModel> {
            };
            summaryAdvProductsList   = new List <AdvertisingProductsModel> {
            };
            mpList    = new List <MarketplaceModel> {
            };
            pList     = new List <ProductsModel> {
            };
            datesList = new List <DateTime> {
            };

            mpController     = new MarketplaceController(this);
            advertController = new AdvertisingController(this);
            prodController   = new ProductsController(this);

            AP_campaignIdsList = new List <MapNameId> {
            };
            AB_campaignIdsList = new List <MapNameId> {
            };

            advProductsListOfErrors = new List <AdvertisingProductsModel> {
            };

            mpController.GetMarketplaces();

            advertController.GetAP_CampaignIds();
            advertController.GetAB_CampaignIds();
        }