Пример #1
0
 private void MenusSelectionPage_Load(object sender, EventArgs e)
 {
     PageLayoutMaker.SetBasePageLayout(this);
     PageLayoutMaker.CreateQuitButton(this);
     PageLayoutMaker.CreateLogoutUserButton(this);
     PageLayoutMaker.CreateHeader(this, DBConnection.loadImage(1), user);
 }
Пример #2
0
 private void newclient_Load(object sender, EventArgs e)
 {
     PageLayoutMaker.SetBasePageLayout(this);
     PageLayoutMaker.CreateQuitButton(this);
     PageLayoutMaker.CreateReturnToClientSelectionButton(this);
     PageLayoutMaker.CreateHeader(this, DBConnection.loadImage(1), user);
 }
 private void CommandOverviewPage_Load(object sender, EventArgs e)
 {
     PageLayoutMaker.SetBasePageLayout(this);
     FillTableLayoutCommand();
     PageLayoutMaker.CreateQuitButton(this);
     PageLayoutMaker.CreateReturnToMenusButton(this);
     PageLayoutMaker.CreateHeader(this, DBConnection.loadImage(1), user);
 }
Пример #4
0
 private void Planning_Load(object sender, EventArgs e)
 {
     PageLayoutMaker.SetBasePageLayout(this);
     FillDataGridView();
     PageLayoutMaker.CreateQuitButton(this);
     PageLayoutMaker.CreateReturnToMenusButton(this);
     PageLayoutMaker.CreateHeader(this, DBConnection.loadImage(1), user);
 }
Пример #5
0
 private void StockDetail_Load(object sender, EventArgs e)
 {
     PageLayoutMaker.SetBasePageLayout(this);
     FillDataGridViewExternalOrder();
     PageLayoutMaker.CreateQuitButton(this);
     PageLayoutMaker.CreateReturnToStockButton(this);
     PageLayoutMaker.CreateHeader(this, DBConnection.loadImage(1), user);
 }
Пример #6
0
 private void Catalog_Load(object sender, EventArgs e)
 {
     PageLayoutMaker.SetBasePageLayout(this);
     FillTableLayout();
     PageLayoutMaker.CreateQuitButton(this);
     PageLayoutMaker.CreateReturnToMenusButton(this);
     PageLayoutMaker.CreateHeader(this, DBConnection.loadImage(1), user, client);
 }
Пример #7
0
 private void EditStock_Load(object sender, EventArgs e)
 {
     PageLayoutMaker.SetBasePageLayout(this);
     PageLayoutMaker.CreateQuitButton(this);
     PageLayoutMaker.CreateReturnToStockDetailButton(this);
     PageLayoutMaker.CreateHeader(this, DBConnection.loadImage(1), user);
     this.labelCurrentStockValue.Text  = stockInfo.stock.ToString();
     numericUpDownNewStock.Value       = stockInfo.stock;
     labelMinimumRequiredValue.Text    = stockInfo.minimum.ToString();
     numericUpDownNewRequirement.Value = stockInfo.minimum;
 }
 private void Client_indentification_Load(object sender, EventArgs e)
 {
     PageLayoutMaker.SetBasePageLayout(this);
     PageLayoutMaker.CreateHeader(this, DBConnection.loadImage(1), user, client);
     PageLayoutMaker.CreateQuitButton(this);
     PageLayoutMaker.CreateReturnToCatalogButton(this);
     clientList = DBConnection.SelectRegisteredClient();
     for (int i = 0; i < clientList.Count; i++)
     {
         //comboBoxClientSelection.Items.Add("(" + clientList[i].id + ") " + clientList[i].name + " - " + clientList[i].address);
         comboBoxClientSelection.Items.Add(clientList[i]);
     }
 }
Пример #9
0
 private void Order_Load(object sender, EventArgs e)
 {
     PageLayoutMaker.SetBasePageLayout(this);
     PageLayoutMaker.CreateHeader(this, DBConnection.loadImage(1), user, client);
     PageLayoutMaker.CreateQuitButton(this);
     PageLayoutMaker.CreateReturnToCatalogButton(this);
     label_name.Text = bicycle.name;
     for (int i = 0; i < bicycle.availableColors.Count; i++)
     {
         comboBoxColor.Items.Add(bicycle.availableColors[i]);
     }
     for (int i = 0; i < bicycle.availableSizes.Count; i++)
     {
         comboBoxSize.Items.Add(bicycle.availableSizes[i]);
     }
 }
        private void StockDetailAddOrder_Load(object sender, EventArgs e)
        {
            PageLayoutMaker.SetBasePageLayout(this);
            PageLayoutMaker.CreateQuitButton(this);
            PageLayoutMaker.CreateReturnToStockDetailButton(this);
            PageLayoutMaker.CreateHeader(this, DBConnection.loadImage(1), user);
            StockProviderInfo = DBConnection.selectAllProvider();

            for (int i = 0; i < StockProviderInfo.Rows.Count; i++)
            {
                comboBoxProvider.Items.Add(StockProviderInfo.Rows[i]["name"]);
            }
            if (comboBoxProvider.Items.Count > 0)
            {
                comboBoxProvider.SelectedItem = comboBoxProvider.Items[0];
            }
        }
Пример #11
0
        private void PlanningPopUp_Load(object sender, EventArgs e)
        {
            PageLayoutMaker.SetBasePageLayout(this);
            PageLayoutMaker.CreateQuitButton(this);
            //PageLayoutMaker.CreateLogoutUserButton(this);
            PageLayoutMaker.CreateHeader(this, DBConnection.loadImage(1), user);
            labelTitleName.Text = "Command N° " + task.orderId.ToString() + ": " + task.bikeName;
            labelSize.Text      = task.bikeSize;
            labelColor.Text     = task.bikeColor;
            labelBikeName.Text  = task.bikeName;

            if (task.state == "In Production")
            {
                radioButtonInProduction.Checked = true;
            }
            else if (task.state == "Done")
            {
                canUpdateStock                  = false;
                radioButtonDone.Checked         = true;
                radioButtonInProduction.Enabled = false;
                radioButtonDone.Enabled         = false;
                radioButtonDelay.Enabled        = false;
                radioButtonToDo.Enabled         = false;
            }
            else if (task.state == "Delay")
            {
                radioButtonDelay.Checked = true;
            }
            else
            {
                radioButtonToDo.Checked = true;
                task.state = "To Do";
            }

            for (int i = 0; i < userTable.Rows.Count; i++)
            {
                if ((int)userTable.Rows[i]["jobTitle"] == 1)
                {
                    comboBoxMechanic.Items.Add(userTable.Rows[i]["userName"]);
                }
            }
        }
Пример #12
0
 private void Home_page_Load(object sender, EventArgs e)
 {
     PageLayoutMaker.SetBasePageLayout(this);
     CreateLayout();
 }
Пример #13
0
 private void Login_staff_Load(object sender, EventArgs e)
 {
     PageLayoutMaker.SetBasePageLayout(this);
     PageLayoutMaker.CreateQuitButton(this);
     PageLayoutMaker.CreateHeader(this, DBConnection.loadImage(1));
 }