private void Refresh(object sender, EventArgs e)
 {
     gridEX1.SetDataBinding(null, null);
     gridEX1.SetDataBinding(_uiController.TablaResultado, null);
     if (gridManagerView1.AllowExportExcel || gridManagerView1.AllowSortByAgregateColumn)
     {
         gridManagerView1.SetTable(_uiController.TablaResultado);
     }
 }
 private void ubBuscar_Click(object sender, System.EventArgs e)
 {
     this.DumpControlsToSearch();
     System.Data.DataTable table = _uiController.Search();
     gridResultado.DataSource = table;
     gridManagerView1.SetTable(table);
     if (gridResultado.RecordCount > 0)
     {
         gridResultado.Row = 0;
     }
 }
 private void ExecuteQuery()
 {
     this.Cursor = Cursors.WaitCursor;
     Util.MoveFocus(this.ultraExplorerBarContainerControl1);
     gridCajas.UpdateData();
     _uiController.RefreshData();
     gridResultado.SetDataBinding(null, null);
     gridResultado.SetDataBinding(_uiController.Result, null);
     if (gridManagerView1.AllowExportExcel || gridManagerView1.AllowSortByAgregateColumn)
     {
         gridManagerView1.SetTable(_uiController.Result);
     }
     this.Cursor = Cursors.Default;
 }
Beispiel #4
0
 private void SearchNow()
 {
     this.Cursor             = Cursors.WaitCursor;
     _uiController.Nombre    = txtNombre.Text;
     _uiController.Telefonos = txtTelefonos.Text;
     _uiController.Email     = txtEmail.Text;
     _uiController.ByActivo  = chkHabilitarActivo.Checked;
     _uiController.Activo    = chkActivo.Checked;
     System.Data.DataView view = _uiController.SearchNow();
     gridEx.DataSource = view;
     if (gridManagerView1.AllowExportExcel || gridManagerView1.AllowSortByAgregateColumn)
     {
         gridManagerView1.SetTable(view.Table);
     }
     this.Cursor = Cursors.Default;
 }
 private void RefreshData(object sender, EventArgs e)
 {
     gridResultado.SetDataBinding(null, null);
     gridResultado.SetDataBinding(_uiController.Result, null);
     if (gridManagerView1.AllowGroupCollapse)
     {
         this.gridResultado.CollapseGroups();
     }
     else
     if (gridResultado.RootTable.Groups.Count > 0)
     {
         gridResultado.RootTable.Groups[0].Expand();
     }
     if (gridManagerView1.AllowExportExcel || gridManagerView1.AllowSortByAgregateColumn)
     {
         gridManagerView1.SetTable(_uiController.Result);
     }
 }
Beispiel #6
0
		protected void RefreshData()
		{
			Util.MoveFocus(this.ContainerFiltro);
			if(IsValidPeriodo())
			{
				this.Cursor = Cursors.WaitCursor;
				gridResultado.Focus();
				this.DumpControls();	
				//German 20090420
				System.Data.DataTable table = _uiController.RefreshData();
				gridResultado.DataSource = table;
                gridManagerView1.SetTable(table);
				//Fin German 20090420
				if(gridResultado.RecordCount > 0)
				{
					gridResultado.Row = 0;
				}
				this.Cursor = Cursors.Default;
			}
			else MessageBox.Show("El Período a consultar en inválido", "Período Inválido", System.Windows.Forms.MessageBoxButtons.OK);
		}