Esempio n. 1
0
 public CampaignTypesController(ReportAdvertisingUploadView _mf)
 {
     connection = DBData.GetDBConnection();
     controlAdvertisingUploadReportView = _mf;
 }
Esempio n. 2
0
 /* Конструктор */
 public KeywordCategoryController(SemCoreRebuildView _controlForm)
 {
     connection = DBData.GetDBConnection();
     controlFormSemCoreRebuildView = _controlForm;
 }
Esempio n. 3
0
 /* Конструктор */
 public KeywordCategoryController(SemCoreArchiveView _controlForm)
 {
     connection = DBData.GetDBConnection();
     controlSemCoreArchiveView = _controlForm;
 }
Esempio n. 4
0
        /* Конструктор */
        public LoggerView(MainFormView _mf, UserModel _um)
        {
            InitializeComponent();


            firstRun  = true;
            startDate = DateTime.Today;
            //endDate = DateTime.Now;
            endDate = DateTime.Today.AddHours(23).AddMinutes(59);

            asinFilter             = false;
            skuFilter              = false;
            productNameFilter      = false;
            creationUserNameFilter = false;

            productIdForFilter = creationUserIdForFilter = -1;
            asinForFilter      = skuForFilter = "Все";

            previousCountOfLogs = 0;
            connection          = DBData.GetDBConnection();
            mf        = _mf;
            userModel = _um;

            notifyIcon1.Visible = true;

            pList   = new List <ProductsModel> {
            };
            mpList  = new List <MarketplaceModel> {
            };
            logList = new List <LoggerModel> {
            };
            uList   = new List <UserModel> {
            };

            uniqueProductNames = new List <string> {
            };
            uniqueASINs        = new List <string> {
            };

            pController   = new ProductsController(this);
            mpController  = new MarketplaceController(this);
            logController = new LoggerController(this);
            lfController  = new LoginFormController(this);

            lb_StartDate.Text = startDate.ToString().Substring(0, 10);
            lb_EndDate.Text   = endDate.ToString().Substring(0, 10);
            label4.Text       = "С " + startDate.ToString().Substring(0, 10);
            label5.Text       = "По " + endDate.ToString().Substring(0, 10);


            mpController.GetMarketplaces();

            pController.GetProductsAllJOIN();
            Fill_CB_ByProducts();

            lfController.GetAllUsers();
            Fill_CB_ByUsers();

            logController.GetAllRecordsByDate(startDate, endDate);
            if (logList.Count > 0)
            {
                label6.Visible      = false;
                dgv_Log.Visible     = true;
                previousCountOfLogs = logList.Count;
                Draw_dgv_Logs();
            }

            timer1.Enabled = true;
            timer1.Start();
        }
Esempio n. 5
0
 /* Конструктор */
 public KeywordCategoryController(KeywordCategoryView _controlForm)
 {
     connection = DBData.GetDBConnection();
     controlFormKeywordCategoryView = _controlForm;
 }
Esempio n. 6
0
 public SemCoreArchiveController(SemCoreRebuildView _form)
 {
     connection = DBData.GetDBConnection();
     controlSemCoreRebuildView = _form;
 }
Esempio n. 7
0
 public FullSemCoreController(KeywordsAreExistedView _form)
 {
     connection = DBData.GetDBConnection();
     ControlFormKeywordsAreExisted = _form;
 }
Esempio n. 8
0
 /* Конструктор */
 public ProductTypesController(ProductsView _controlForm)
 {
     connection = DBData.GetDBConnection();
     controlFormProductsView = _controlForm;
 }
Esempio n. 9
0
 /* Конструктор */
 public ProductTypesController(SemCoreRebuildView _controlForm)
 {
     connection = DBData.GetDBConnection();
     controlFormSemCoreRebuildView = _controlForm;
 }
Esempio n. 10
0
 public AdvertisingController(ReportSessionsView _mf)
 {
     connection = DBData.GetDBConnection();
     controlReportSessionsView = _mf;
 }
Esempio n. 11
0
 /* Конструктор */
 public ProductTypesController(KeywordCategoryView _controlForm)
 {
     connection = DBData.GetDBConnection();
     controlKeywordCategoryView = _controlForm;
 }
Esempio n. 12
0
 public AdvertisingController(EveryDayReportsUpdate _mf)
 {
     connection = DBData.GetDBConnection();
     controlEveryDayReportsUpdate = _mf;
 }
Esempio n. 13
0
 public LoggerController(MainFormView _mf)
 {
     connection          = DBData.GetDBConnection();
     controlMainFormView = _mf;
 }
Esempio n. 14
0
 public LoggerController(LoggerAdd _mf)
 {
     connection           = DBData.GetDBConnection();
     controlFormLoggerAdd = _mf;
 }
Esempio n. 15
0
 public CampaignTypesController(ReportAdvertisingFilterView _mf)
 {
     connection = DBData.GetDBConnection();
     controlAdvertisingReportFilterView = _mf;
 }
Esempio n. 16
0
 /* Конструктор */
 public ProductTypesController(SemCoreArchiveView _controlForm)
 {
     connection = DBData.GetDBConnection();
     controlSemCoreArchiveView = _controlForm;
 }
Esempio n. 17
0
 public FullSemCoreController(MainFormView _form)
 {
     connection    = DBData.GetDBConnection();
     ControlFormMF = _form;
 }
Esempio n. 18
0
 public BusinessController(ReportBusinessFilterView _mf)
 {
     connection = DBData.GetDBConnection();
     controlReportBusinessFilterView = _mf;
 }
Esempio n. 19
0
 public SemCoreArchiveController(FullSemCoreView _form)
 {
     connection             = DBData.GetDBConnection();
     controlFullSemCoreView = _form;
 }
Esempio n. 20
0
 public BusinessController(EveryDayReportsUpdate _mf)
 {
     connection = DBData.GetDBConnection();
     controlEveryDayReportsUpdate = _mf;
 }