Esempio n. 1
0
        private void dgrUser_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            m_CurEmp.loadEmployee(Convert.ToInt32(dgrUser.CurrentRow.Cells["emplid"].Value));

            m_EmplID          = m_CurEmp.EmplID;
            txtNom.Text       = m_CurEmp.LName;
            txtPrenom.Text    = m_CurEmp.FName;
            txtEmail.Text     = m_CurEmp.Email;
            txtTelephone.Text = m_CurEmp.Phone;
            txtLogin.Text     = m_CurEmp.Login;

            if (m_CurEmp.FlagAsynchronous == (int)Pemployee.IEFlagAsychronous.IE_FA_Allowed)
            {
                chkAsynchrone.Checked = true;
            }
            else
            {
                chkAsynchrone.Checked = false;
            }

            cboGrade.SelectedValue = m_CurEmp.EmployeeTitleID;

            // load AIP config for this employee
            LoadGridAIP();

            // load AILE config for this employee
            LoadGridAILE();

            // load Calendar config for this employee
            LoadGridCalendar();
        }
Esempio n. 2
0
        private void FrmAIP_Load(object sender, EventArgs e)
        {
            m_EmployeeAIP = new Employeeaip();

            // load AIP criteria combobox
            Aipcriteria aip = new Aipcriteria();

            cboCritereAIP.DataSource    = aip.GetList().Tables[0];
            cboCritereAIP.DisplayMember = "aipcriteria";
            cboCritereAIP.ValueMember   = "aipcriteriaid";

            // get employee name for display
            Pemployee oPemployee = new Pemployee();

            oPemployee.loadEmployee(m_EmplID);

            txtEmploye.Text = oPemployee.LName + " " + oPemployee.FName;

            // check open mode
            if (OpenMode == (int)IEOpenMode.IE_OM_Edit || OpenMode == (int)IEOpenMode.IE_OM_View)
            {
                m_EmployeeAIP.loadEmployeeAIP(m_EmployeeAipID);

                txtDateDebut.Value = m_EmployeeAIP.StartDate;
                txtDateFin.Value   = m_EmployeeAIP.EndDate;
                txtMotif.Text      = m_EmployeeAIP.Motif;
                txtTaux.Text       = m_EmployeeAIP.Taux.ToString();
            }

            if (OpenMode == (int)IEOpenMode.IE_OM_Add)
            {
                cmdSauver.Text = "Ajouter";
                this.Text      = "Ajout d'une nouvelle configuration AIP";
            }
        }
Esempio n. 3
0
        private void FrmAILE_Load(object sender, EventArgs e)
        {
            m_EmployeeAILE = new Employeeaile();

            // load AILE criteria combobox
            Ailecriteria aile = new Ailecriteria();

            cboCritereAILE.DataSource    = aile.GetList().Tables[0];
            cboCritereAILE.DisplayMember = "ailecriteria";
            cboCritereAILE.ValueMember   = "ailecriteriaid";

            // load Combobox TEAM
            Pworkgroup pworkgrp = new Pworkgroup();

            cboEquipe.DataSource    = pworkgrp.GetListByType((int)Pworkgroup.IEType.IE_T_Team).Tables[0];
            cboEquipe.DisplayMember = "wkgname";
            cboEquipe.ValueMember   = "wkgid";

            // get employee name for display
            Pemployee oPemployee = new Pemployee();

            oPemployee.loadEmployee(m_EmplID);

            txtEmploye.Text = oPemployee.LName + " " + oPemployee.FName;

            // check open mode
            if (OpenMode == (int)IEOpenMode.IE_OM_Edit || OpenMode == (int)IEOpenMode.IE_OM_View)
            {
                m_EmployeeAILE.loadEmployeeAILE(m_EmployeeAileID);

                txtDateDebut.Value           = m_EmployeeAILE.StartDate;
                txtDateFin.Value             = m_EmployeeAILE.EndDate;
                txtMotif.Text                = m_EmployeeAILE.Motif;
                txtTaux.Text                 = m_EmployeeAILE.Taux.ToString();
                cboEquipe.SelectedValue      = m_EmployeeAILE.WkgID;
                cboCritereAILE.SelectedValue = m_EmployeeAILE.AileCriteriaID;
            }

            if (OpenMode == (int)IEOpenMode.IE_OM_Add)
            {
                cmdSauver.Text = "Ajouter";
                this.Text      = "Ajout d'une nouvelle configuration AILE";
            }
        }