示例#1
0
 protected void RefreshGrid(bool rebind)
 {
     RadGrid1.DataSource = CntLainsaSci.GetEmpresas(uex, ctx);
     if (rebind)
     {
         RadGrid1.Rebind();
     }
 }
示例#2
0
        protected void rdcEmpresa_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            if (e.Text == "")
            {
                return;
            }
            RadComboBox combo = (RadComboBox)sender;

            combo.Items.Clear();
            foreach (Empresa emp in CntLainsaSci.GetEmpresas(e.Text, usuario, ctx))
            {
                combo.Items.Add(new RadComboBoxItem(emp.Nombre, emp.EmpresaId.ToString()));
            }
        }
示例#3
0
 protected void CargarEmpresas(Empresa e)
 {
     rdcEmpresa.Items.Clear();
     foreach (Empresa e1 in CntLainsaSci.GetEmpresas(usuario, ctx))
     {
         rdcEmpresa.Items.Add(new RadComboBoxItem(e1.Nombre, e1.EmpresaId.ToString()));
     }
     rdcEmpresa.Items.Add(new RadComboBoxItem(" ", ""));
     rdcEmpresa.SelectedValue = "";
     if (e != null)
     {
         rdcEmpresa.SelectedValue = e.EmpresaId.ToString();
     }
 }
示例#4
0
 protected void RefreshGrid(bool rebind)
 {
     if (usuario != null)
     {
         RadGrid1.DataSource = CntLainsaSci.GetEmpresas(usuario, ctx);
     }
     else
     {
         RadGrid1.DataSource = CntLainsaSci.GetEmpresas(ctx);
     }
     if (rebind)
     {
         RadGrid1.Rebind();
     }
 }
示例#5
0
 protected void CargaComboEmpresa()
 {
     rdcEmpresa.Items.Clear();
     if (usuario == null)
     {
         return;
     }
     foreach (Empresa emp in CntLainsaSci.GetEmpresas(usuario, ctx))
     {
         rdcEmpresa.Items.Add(new RadComboBoxItem(emp.Nombre, emp.EmpresaId.ToString()));
     }
     if (rdcEmpresa.Items.Count > 0)
     {
         rdcEmpresa.Items[0].Selected = true;
         empresa = CntLainsaSci.GetEmpresa(int.Parse(rdcEmpresa.SelectedValue), ctx);
     }
     //rcbEmpresa.Text = "";
 }
示例#6
0
 protected void CargaComboEmpresa(Usuario usu)
 {
     rcbEmpresa.Items.Clear();
     if (usu == null)
     {
         return;
     }
     foreach (Empresa emp in CntLainsaSci.GetEmpresas(usu, ctx))
     {
         rcbEmpresa.Items.Add(new RadComboBoxItem(emp.Nombre, emp.EmpresaId.ToString()));
     }
     if (rcbEmpresa.Items.Count > 0)
     {
         rcbEmpresa.Items[0].Selected = true;
         Empresa empresa = CntLainsaSci.GetEmpresa(int.Parse(rcbEmpresa.SelectedValue), ctx);
         CargaInstalaciones(empresa);
         CargarTiposDispositivo(empresa);
     }
     //rcbEmpresa.Text = "";
 }