Exemplo n.º 1
0
        private void byASINToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ChooseProduct cp = new ChooseProduct(this, "asin");

            cp.Show();
            this.Visible = false;
        }
Exemplo n.º 2
0
 static void GenerateRules()
 {
     foreach (string slip in orders)
     {
         ShoppingCart.GetInstance().AddProduct(ChooseProduct.GetProduct(slip));
     }
 }
Exemplo n.º 3
0
        /* Конструктор для работы с ASIN */
        public PnL(string _asin, ChooseProduct _cp)
        {
            InitializeComponent();
            connection = DBData.GetDBConnection();

            start               = DateTime.Today;
            end                 = DateTime.Today;
            tb_DateStart.Text   = start.ToString().Substring(0, 10);
            tb_DateEnd.Text     = end.ToString().Substring(0, 10);
            btn_ChooseDate.Text = btn_ChooseDate.Text = start.ToString().Substring(0, 10) + " - " + end.ToString().Substring(0, 10);

            byASIN    = true;
            ASIN      = _asin;
            cp        = _cp;
            this.Text = this.Text + " - ASIN: " + ASIN;
            DrawTableColumns();
        }
Exemplo n.º 4
0
        private bool showByMonths = false; //отображение по месяцам

        /* Конструктор для работы с SKU */
        public PnL(ChooseProduct _cp, string _sku)
        {
            InitializeComponent();
            connection = DBData.GetDBConnection();

            start               = DateTime.Today;
            end                 = DateTime.Today;
            tb_DateStart.Text   = start.ToString().Substring(0, 10);
            tb_DateEnd.Text     = end.ToString().Substring(0, 10);
            btn_ChooseDate.Text = btn_ChooseDate.Text = start.ToString().Substring(0, 10) + " - " + end.ToString().Substring(0, 10);

            bySKU     = true;
            SKU       = _sku;
            cp        = _cp;
            this.Text = this.Text + " - SKU: " + SKU;
            DrawTableColumns();
        }