private void SALES_RETURN_Load(object sender, EventArgs e) { try { CodingSourceClass.disable_reset(left_panel); edit_button.Enabled = false; delete_button.Enabled = false; LoadSalesReturn(); SQL_TASKS.LoadList("st_getSHOPS", shop_comboBox_salesreturn, "ID", "Name"); base.delete_button.Text = "CANNOT DELETE"; base.delete_button.Enabled = false; base.edit_button.Text = "CANNOT EDIT"; base.edit_button.Enabled = false; } catch (Exception ex) { CodingSourceClass.ShowMsg(ex.Message, "Error"); CodingSourceClass.disable_reset(left_panel); enable_crud_buttons(); } }
private void PAYMENT_Load(object sender, EventArgs e) { try { edit_button.Enabled = false; LoadPayments(); SQL_TASKS.LoadList("st_getSHOPS", shop_comboBox_payments, "ID", "Name"); cheque_no_textBox.Visible = false; cheque_no_label.Visible = false; bank_and_branch_label.Visible = false; bank_and_branch_textBox.Visible = false; clearing_date_label.Visible = false; clearing_date_dateTimePicker.Visible = false; base.edit_button.Text = "CANNOT EDIT"; CodingSourceClass.disable_reset(left_panel); } catch (Exception ex) { CodingSourceClass.ShowMsg(ex.Message, "Error"); CodingSourceClass.disable_reset(left_panel); enable_crud_buttons(); } }
private void sales_invoice_comboBox_payments_Enter(object sender, EventArgs e) { if (customer_comboBox_payments.SelectedIndex != -1) { sales_invoice_comboBox_payments.DataSource = null; SQL_TASKS.LoadList("st_getsSALESINVOICEwrtCUSTOMER", sales_invoice_comboBox_payments, "ID", "BillNo", "@id", Convert.ToInt32(customer_comboBox_payments.SelectedValue)); } }
private void customer_comboBox_payments_Enter(object sender, EventArgs e) { if (shop_comboBox_payments.SelectedIndex != -1) { customer_comboBox_payments.DataSource = null; SQL_TASKS.LoadList("st_getCUSTOMERSwrtSHOPS", customer_comboBox_payments, "Customer ID", "Customer Name", "@id", Convert.ToInt32(shop_comboBox_payments.SelectedValue)); } }
private void customers_Load(object sender, EventArgs e) { SQL_TASKS.LoadList("st_getSHOPS", shops_comboBox_customers, "ID", "Name"); CodingSourceClass.disable_reset(left_panel); enable_crud_buttons(); LoadCustomers(); }
private void USERS_Load(object sender, EventArgs e) { LoadUsers(); SQL_TASKS.LoadList("st_getROLESdata", roles_comboBox, "ID", "Role"); enable_crud_buttons(); CodingSourceClass.disable_reset(left_panel); }
private void shops_Load(object sender, EventArgs e) { SQL_TASKS.LoadList("st_getVENDORSdata", vendors_comboBox_shops, "ID", "Vendor Name"); SQL_TASKS.LoadList("st_getUSERSwrtMANAGERS", managers_comboBox_shops, "ID", "Name"); CodingSourceClass.enable_reset(left_panel); enable_crud_buttons(); LoadShops(); }
private void SALES_INVOICE_Load(object sender, EventArgs e) { try { base.edit_button.Enabled = false; base.edit_button.Text = "CANNOT EDIT"; LoadSalesInvoice(); SQL_TASKS.LoadList("st_getSHOPS", shops_comboBox_sales_invoice, "ID", "Name"); CodingSourceClass.disable_reset(left_panel); } catch (Exception ex) { CodingSourceClass.ShowMsg(ex.Message, "Error"); } }
private void customer_ledger_Load(object sender, EventArgs e) { SQL_TASKS.LoadList("st_getSHOPS", shop_comboBox_ledger, "ID", "Name"); }