예제 #1
0
        private void LoadCurrentSociete()
        {
            Societe s = SocieteBLL.ReturnSociete();

            if (s != null ? s.Id > 0 : false)
            {
                cbox_societe.SelectedText = s.Name;
                societe        = s;
                txt_name.Text  = s.Name;
                txt_group.Text = s.Groupe != null ? s.Groupe.Libelle : "";
                LoadAgence(s);
            }
        }
예제 #2
0
        public void LoadPointeuse()
        {
            if (Constantes.POINTEUSES.Count < 1)
            {
                Societe s = SocieteBLL.ReturnSociete();
                Constantes.POINTEUSES = PointeuseBLL.List("select * from yvs_pointeuse where societe = " + s.Id + " order by adresse_ip");
            }
            dgv_pointeuse.Rows.Clear();
            ObjectThread o = new ObjectThread(dgv_pointeuse);

            foreach (Pointeuse p in Constantes.POINTEUSES)
            {
                o.WriteDataGridView(new object[] { p.Id, p.Ip, p.Emplacement, p.Type });
            }
        }
예제 #3
0
        private void LoadCurrentSociete()
        {
            Societe s = SocieteBLL.ReturnSociete();

            if (s != null ? s.Id > 0 : false)
            {
                cbox_societe.SelectedText = s.Name;
                societe                  = s;
                txt_name.Text            = s.Name;
                txt_adresse.Text         = s.AdresseIp;
                cbox_type_connexion.Text = s.TypeConnexion;
                txt_users.Text           = s.Users;
                txt_domain.Text          = s.Domain;
                txt_password.Text        = s.Password;
                txt_port.Value           = s.Port;
            }
        }