public FullSemCoreController(MainFormView _form)
 {
     connection    = DBData.GetDBConnection();
     ControlFormMF = _form;
 }
Beispiel #2
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();
        }
Beispiel #3
0
        public About(MainFormView _mf)
        {
            InitializeComponent();

            controlMainForm = _mf;
        }
Beispiel #4
0
 public LoggerController(MainFormView _mf)
 {
     connection          = DBData.GetDBConnection();
     controlMainFormView = _mf;
 }