Esempio n. 1
0
        private void InitializeFields()
        {
            dtpDateStart.Value = DateTime.Now;
            dtpRegular.Value   = DateTime.Now.AddMonths(6);

            cmbSchedule.DataSource    = clsSchedule.DSLSchedule();
            cmbSchedule.ValueMember   = "pvalue";
            cmbSchedule.DisplayMember = "ptext";

            cmbGender.DataSource    = Employee.DSLGender();
            cmbGender.ValueMember   = "pvalue";
            cmbGender.DisplayMember = "ptext";

            cmbCivilStatus.DataSource    = Employee.DSLCivilStatus();
            cmbCivilStatus.ValueMember   = "pvalue";
            cmbCivilStatus.DisplayMember = "ptext";

            cmbEmploymentStatus.DataSource    = clsEmploymentStatus.DSLEmploymentStatus();
            cmbEmploymentStatus.ValueMember   = "pvalue";
            cmbEmploymentStatus.DisplayMember = "ptext";

            cmbJGCode.DataSource    = JobGrade.DSLJGCode();
            cmbJGCode.DisplayMember = "ptext";
            cmbJGCode.ValueMember   = "pvalue";

            cmbDivision.DataSource    = Division.GetDSL();
            cmbDivision.DisplayMember = "ptext";
            cmbDivision.ValueMember   = "pvalue";

            cmbGroup.DataSource    = Group.GetDSL();
            cmbGroup.DisplayMember = "ptext";
            cmbGroup.ValueMember   = "pvalue";

            cmbDepartment.DataSource    = Department.GetDSL();
            cmbDepartment.DisplayMember = "ptext";
            cmbDepartment.ValueMember   = "pvalue";

            cmbRC.DataSource    = clsRC.GetDdlDs();
            cmbRC.DisplayMember = "ptext";
            cmbRC.ValueMember   = "pvalue";

            cmbCompany.DataSource    = clsCompany.GetDSL();
            cmbCompany.DisplayMember = "ptext";
            cmbCompany.ValueMember   = "pvalue";

            cmbEmployeeType.DataSource    = clsEmployeeType.DSLEmployeeType();
            cmbEmployeeType.DisplayMember = "ptext";
            cmbEmployeeType.ValueMember   = "pvalue";

            this.BindRecruitmentSourceList();
        }
Esempio n. 2
0
 private void BindJGCode()
 {
     cmbJGCode.DataSource    = JobGrade.DSLJGCode();
     cmbJGCode.DisplayMember = "ptext";
     cmbJGCode.ValueMember   = "pvalue";
 }