示例#1
0
 private void frmStudentEnquiry_Load(object sender, EventArgs e)
 {
     Connection.FillComboBox(valcmbclass, "select distinct classcode,classname, ClassOrder from tbl_classmaster order by ClassOrder");
     Connection.FillCombo(ref strmtongue, "select distinct m_tongue from tbl_student where Datalength(m_tongue)>0");
     strstdcategory.SelectedIndex = 0;
     strcmbsex.SelectedIndex      = 0;
     c.GetMdiParent(this).ToggleSaveButton(true);
     c.GetMdiParent(this).TogglePrintButton(true);
 }
示例#2
0
 public void btnnew_Click(object sender, EventArgs e)
 {
     txtQuality.Clear();
     cmbField.SelectedIndex = 0;
     add_edit = true;
     c.cleartext(this);
     c.GetMdiParent(this).DisableAllEditMenuButtons();
     txtQuality.Focus();
 }
示例#3
0
 private void frmCashPayment_Load(object sender, EventArgs e)
 {
     c.GetMdiParent(this).EnableAllEditMenuButtons();
     c.getconnstr();
     c.FillcomboBox("select BHM_DESH, BHM_COD from tbl_LedgerAcc  where GRP_COD not in (1)   order by BHM_DESH", "BHM_DESH", "BHM_COD", ref valcmbaccountgroup);
     enableData();
     SqlConnection con = c.myconn;
 }
示例#4
0
 private void frmBankReceipt_Load(object sender, EventArgs e)
 {
     c.GetMdiParent(this).EnableAllEditMenuButtons();
     c.getconnstr();
     //m.FillcomboBox("select * from tbl_LedgerAcc where BHM_COD in('140','587','588') order by BHM_DESH", "BHM_DESH", "BHM_COD", ref valcmbbank);
     c.FillcomboBox("select * from tbl_LedgerAcc where GRP_COD in (2) order by BHM_DESH", "BHM_DESH", "GRP_COD", ref valcmbbank);
     c.FillcomboBox("select * from tbl_LedgerAcc where GRP_COD NOT in(1)  order by BHM_DESH", "BHM_DESH", "GRP_COD", ref valcmbaccountgroup);
     enableData();
     SqlConnection con = c.myconn;
 }
示例#5
0
文件: Journal.cs 项目: dreamzedu/csms
 public void btnnew_Click(object sender, EventArgs e)
 {
     add_edit = true;
     c.cleartext(this);
     c.GetMdiParent(this).DisableAllEditMenuButtons();
     DisableControl();
     dtp.Focus();
 }
示例#6
0
 private void frmAddAttendance_Load(object sender, EventArgs e)
 {
     c1.GetMdiParent(this).ToggleSaveButton(true);
     this.GetEmployeeList();
     if (Convert.ToBoolean(Connection.GetAttributeObjectFromXMLFile("SystemSetting", "AttendanceMachine")))
     {
         btnMonthAttendance.Visible = btnShowAttendance.Visible = true;
         btnMonthAttendance.Text    = "Save Attendance Month Of " + System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(txtAttandanceDate.Value.Month);
         //DataSet dsMachineAttendance = Connection.GetDataSetFromXMLFile("SystemSetting");
     }
     else
     {
         btnMonthAttendance.Visible = btnShowAttendance.Visible = false;
         dataGridView1.Rows.Clear();
     }
 }
示例#7
0
 private void frmNewEmployee_Load(object sender, EventArgs e)
 {
     try
     {
         img      = imgemployee.Image;
         imgClear = img;
         c.getconnstr();
         DataSet dsEmpType = Connection.GetDataSet("SELECT EmpTypeId, Detail, allowleaves FROM  tbl_EmployeeType");
         if (dsEmpType != null)
         {
             cmbEmpType.DataSource    = dsEmpType.Tables[0];
             cmbEmpType.DisplayMember = "Detail";
             cmbEmpType.ValueMember   = "EmpTypeId";
             cmbEmpType.Text          = "-Select-";
         }
         txtEmployeeNo.Text = Connection.NewCode("EMP");
         EnabledFalseAllControl();
         Connection.SetUserLevelAuth(c.GetMdiParent(this));
     }
     catch (Exception ex)
     {
     }
 }
示例#8
0
 private void FrmVaccent_Load(object sender, EventArgs e)
 {
     c.getconnstr();
     c.FillcomboBox("select hostelcode,hostelname from tbl_hostel order by hostelname", "hostelname", "hostelcode", ref valcmbclass);
     c.GetMdiParent(this).ToggleSaveButton(true);
 }