コード例 #1
0
 private void radioJobTitle_CheckedChanged(object sender, EventArgs e)
 {
     if (radioJobTitle.Checked == true)
     {
         comboFilter.DataSource    = classJob.GET_ALL_JOB();
         comboFilter.DisplayMember = "jobTit";
         comboFilter.ValueMember   = "JobTitId";
     }
     else
     {
     }
 }
コード例 #2
0
 //بداية العمليات
 private void CombosDataSource()
 {
     //comboJobStat
     comboJobStat.DataSource    = classEmployee.GET_ALL_EMP_STAT();
     comboJobStat.DisplayMember = "EmpStatTit";
     comboJobStat.ValueMember   = "EmpStatId";
     //comboDepType
     comboDepType.DataSource    = classDepartment.GET_ALL_DEP_TYPE();
     comboDepType.DisplayMember = "DepTypeName";
     comboDepType.ValueMember   = "DepTypeId";
     //comboDir
     comboDir.DataSource    = classDir.GET_ALL_DIR();
     comboDir.DisplayMember = "dirName";
     comboDir.ValueMember   = "DirId";
     //comboDep
     comboDep.DataSource    = classDepartment.GET_ALL_DEPARTMENT();
     comboDep.DisplayMember = "DepName";
     comboDep.ValueMember   = "DepId";
     //comboJob
     comboJob.DataSource    = classJob.GET_ALL_JOB();
     comboJob.DisplayMember = "jobTit";
     comboJob.ValueMember   = "JobTitId";
 }
コード例 #3
0
 public void SetDataSourceJob()
 {
     BL.ClassJob Cjob = new BL.ClassJob();
     dataGridViewJob.DataSource = Cjob.GET_ALL_JOB();
 }