예제 #1
0
 private void CatDataGridView_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1)
     {
         edit = 1;
         DataGridViewRow row = CatDataGridView.Rows[e.RowIndex];
         catID = Convert.ToInt32(row.Cells["catIDGV"].Value.ToString());
         categoryNameTxt.Text    = row.Cells["NameGV"].Value.ToString();
         isActiveCB.SelectedItem = row.Cells["StatusGV"].Value.ToString();
         MainClass.disable(LeftPanel);
     }
 }
예제 #2
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1)
     {
         edit = 1;
         DataGridViewRow row = dataGridView1.Rows[e.RowIndex];
         catID                  = Convert.ToInt32(row.Cells["catIDGV"].Value.ToString());
         catTXT.Text            = row.Cells["NameGV"].Value.ToString();
         isativeDD.SelectedItem = row.Cells["statusGV"].Value.ToString();
         MainClass.disable(leftPanel);
     }
 }
예제 #3
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1 && e.ColumnIndex != -1)
     {
         edit = 1;
         DataGridViewRow row = dataGridView1.Rows[e.RowIndex];
         prodID                   = Convert.ToInt32(row.Cells["proIDGV"].Value.ToString());
         proTXT.Text              = row.Cells["proGV"].Value.ToString();
         barcodeTXT.Text          = row.Cells["barcodeGV"].Value.ToString();
         expiryPicker.Value       = Convert.ToDateTime(row.Cells["expiryGV"].Value.ToString());
         priceTXT.Text            = row.Cells["priceGV"].Value.ToString();
         categoryCB.SelectedValue = row.Cells["catGV"].Value.ToString();
         MainClass.disable(leftPanel);
     }
 }
예제 #4
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1)
     {
         edit = 1;
         DataGridViewRow row = dataGridView1.Rows[e.RowIndex];
         SupplierID = Convert.ToInt32(row.Cells["suppIDGV"].Value.ToString());
         supplierCompanyTxt.Text = row.Cells["companyGV"].Value.ToString();
         personNameTxt.Text      = row.Cells["personGV"].Value.ToString();
         Phone1Txt.Text          = row.Cells["phone1GV"].Value.ToString();
         phone2Txt.Text          = row.Cells["phone2GV"].Value.ToString();
         adderssTxt.Text         = row.Cells["addressGV"].Value.ToString();
         statusDD.SelectedItem   = row.Cells["statusGV"].Value.ToString();
         MainClass.disable(leftPanel);
     }
 }
예제 #5
0
파일: Users.cs 프로젝트: ArshMohiuddin/IMS
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1)
     {
         edit = 1;
         DataGridViewRow row = dataGridView1.Rows[e.RowIndex];
         userID                = Convert.ToInt32(row.Cells["userIDGV"].Value.ToString());
         nameTxt.Text          = row.Cells["NameGV"].Value.ToString();
         userNameTxt.Text      = row.Cells["UsernameGV"].Value.ToString();
         pwdTxt.Text           = row.Cells["PassGV"].Value.ToString();
         phoneTxt.Text         = row.Cells["PhoneGV"].Value.ToString();
         emailTxt.Text         = row.Cells["EmailGV"].Value.ToString();
         statusCb.SelectedItem = row.Cells["StatusGV"].Value.ToString();
         MainClass.disable(LeftPanel);
     }
 }
예제 #6
0
 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1 && e.ColumnIndex != -1)
     {
         edit = 1;
         DataGridViewRow row = dataGridView1.Rows[e.RowIndex];
         proID           = Convert.ToInt32(row.Cells["proIDGV"].Value.ToString());
         proNameTxt.Text = row.Cells["proNameGV"].Value.ToString();
         barCodeTxt.Text = row.Cells["barcodeGV"].Value.ToString();
         if (row.Cells["expiryGV"].FormattedValue.ToString() == string.Empty)
         {
             ExpiryPicker.Value = DateTime.Now;
         }
         else
         {
             ExpiryPicker.Value = Convert.ToDateTime(row.Cells["expiryGV"].Value.ToString());
         }
         PriceTxt.Text      = row.Cells["priceGV"].Value.ToString();
         CatDD.SelectedItem = row.Cells["catGV"].Value.ToString();
         MainClass.disable(LeftPanel);
     }
 }
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1 && e.ColumnIndex != -1)
     {
         edit = 1;
         DataGridViewRow row = dataGridView1.Rows[e.RowIndex];
         prodId      = Convert.ToInt32(row.Cells["proidGV"].Value.ToString());
         proTxt.Text = row.Cells["productGV"].Value.ToString();
         barTxt.Text = row.Cells["barGV"].Value.ToString();
         if (row.Cells["expiryGV"].FormattedValue.ToString() == "")
         {
             expireTxt.Value = DateTime.Now;
         }
         else
         {
             expireTxt.Value = DateTime.ParseExact(row.Cells["expiryGV"].Value.ToString(), "dd-MM-yyyy", CultureInfo.InvariantCulture);
         }
         // expireTxt.Value = Convert.ToDateTime(row.Cells["expiryGV"].Value.ToString());
         priceTxt.Text = row.Cells["priceGV"].Value.ToString();
         categoryCombo.SelectedValue = row.Cells["catidGV"].Value.ToString();
         MainClass.disable(leftPanel);
     }
 }
예제 #8
0
 private void categories_Load(object sender, EventArgs e)
 {
     MainClass.disable(leftPanel);
 }
예제 #9
0
파일: Users.cs 프로젝트: ArshMohiuddin/IMS
 private void Users_Load(object sender, EventArgs e)
 {
     MainClass.disable(LeftPanel);
 }
예제 #10
0
 private void Product_Load(object sender, EventArgs e)
 {
     MainClass.disable(LeftPanel);
     r.getList("st_getCategoriesDataList", CatDD, "Category", "ID");
 }