Esempio n. 1
0
        public void LoadByID(int itmID)
        {
            ClearForm();

            moTitle.Load(itmID);
            LoadObjectToScreen();
            mbItemChanged = false;
        }
Esempio n. 2
0
        private void LoadObjectToScreen()
        {
            CBEmployeeTitle et = new CBEmployeeTitle();

            txtNumber.Text = moEmp.Number;
            txtName.Text   = moEmp.Name;
            txtAbbrev.Text = moEmp.Abbrev;

            et.Load(moEmp.EmpTitleID);
            cboTitle.Text = et.Name;

            chkIsProjMngr.Checked = moEmp.IsProjectManager;
            chkIsRelMngr.Checked  = moEmp.IsRelManager; //******************************Added 7/13/2015

            numMinHrs.Value       = moEmp.MinHrs;
            numMaxReg.Value       = moEmp.MaxRegHrs;
            numMaxAll.Value       = moEmp.MaxAllHrs;
            chkActive.Checked     = moEmp.IsActive;
            chkContractor.Checked = moEmp.Contractor;
            cmbLocation.Text      = moEmp.OfficeLocation;
            cmbType.Text          = moEmp.EngineerType;

            LoadEmpDeptBox();
        }