private void frmCompanyConfig_Load(object sender, EventArgs e) { MyCom = new CommonOperations(Program.AccountStatic.LoggingAsLocal); Myaccount = new AccountCreation(Program.AccountStatic.LoggingAsLocal); panel1.Top = (this.Height - panel1.Height) / 2; panel1.Left = (this.Width - panel1.Width) / 2; Myaccount.LoadSupplier(dgvList); DataTable tb = MyCom.GetDataTableAccount("Select CurID from tblcurrency", "xx"); MyCom.LoadDatatoComboWithOutBind(txtCurrency, tb, "CurID", true); }
private void cmbPayFor_SelectedIndexChanged(object sender, EventArgs e) { string SelItem = MyCommon.GetSelectedID(cmbPayFor, true); cmbPayTo.Text = ""; switch (SelItem) { case "1": btnBrowse.Enabled = true; MyAccount.LoadSupplier(cmbPayTo); txtToAccount.Enabled = false; break; case "2": MyAccount.LoadCustomer(cmbPayTo); btnBrowse.Enabled = true; txtToAccount.Enabled = false; break; case "3": MyAccount.LoadEmployee(cmbPayTo); btnBrowse.Enabled = false; txtToAccount.Enabled = true; break; case "4": MyAccount.LoadSubContractors(cmbPayTo); btnBrowse.Enabled = false; txtToAccount.Enabled = true; break; case "5": MyAccount.LoadOther(cmbPayTo); btnBrowse.Enabled = false; txtToAccount.Enabled = true; break; default: break; } }
private void cmbPayFor_SelectedIndexChanged(object sender, EventArgs e) { string SelItem = MyCommon.GetSelectedID(cmbPayFor, true); cmbPayTo.Text = ""; switch (SelItem) { case "1": MyAccount.LoadSupplier(cmbPayTo); txtToAccount.Enabled = false; break; case "2": MyAccount.LoadCustomer(cmbPayTo); txtToAccount.Enabled = false; break; default: cmbPayTo.Enabled = false; txtToAccount.Enabled = true; break; } }
private void btnSupplier_CheckedChanged(object sender, EventArgs e) { Myaccount.LoadSupplier(dgvList); }