コード例 #1
0
        private void ConfigureInterface()
        {
            this.Text             = _uiController.LeyendaFormulario;
            tbbAnterior.Enabled   = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();
            tbbSeparator5.Enabled = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();
            tbbAnterior.Text      = _uiController.TextoBotonAnterior;
            tbbSiguiente.Text     = _uiController.TextoBotonSiguiente;
            gridManagerView1.Configure("ProcesoConsultarPersonas", "ConsultarPersonas", gridEx, this.Text);
            this.KeyPreview = true;

            gridEx.RecordNavigator = true;
        }
コード例 #2
0
        private void ConfigureInterface()
        {
            tbbAnterior.Enabled  = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();
            tbbSeparator.Enabled = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();

            if (!_uiController.EsAlta())
            {
                _uiController.LeyendaFormulario = "Modificación de Variables";
            }
            this.Text       = _uiController.LeyendaFormulario;
            labelTarea.Text = _uiController.LeyendaFormulario;

            tbbAnterior.Text  = _uiController.TextoBotonAnterior;
            tbbSiguiente.Text = _uiController.TextoBotonSiguiente;

            gridManagerView1.Configure(_uiController.GetProcessManager().GetProcessName(), _uiController.GetTaskName(), gridEX1, this.Text);

            btnModificar.Visible   = !_uiController.EsAlta();
            btnAgregar.Visible     = _uiController.EsAlta();
            txtDescripcion.Enabled = _uiController.EsAlta();
            txtTipo.Enabled        = _uiController.EsAlta();
            txtIdVariable.Enabled  = _uiController.EsAlta() || !_uiController.ModificacionSimple;

            btnEliminarDeBD.Visible = !_uiController.EsAlta();
            KeyPreview = true;
        }
コード例 #3
0
        private void ConfigureInterface()
        {
            this.Text             = _uiController.LeyendaFormulario;
            tbbAnterior.Enabled   = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();
            tbbSeparator5.Enabled = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();
            tbbAnterior.Text      = _uiController.TextoBotonAnterior;
            tbbSiguiente.Text     = _uiController.TextoBotonSiguiente;

            gridManagerView1.Configure(_uiController.ProcessName, _uiController.GetTaskName(), gridEx, this.Text);

            mzComboProceso.Enabled = _uiController.ByProceso;
            mzComboTarea.Enabled   = _uiController.ByTarea;
            mzComboProceso.FillFromDataSource(_uiController.Procesos, _uiController.KeyValueProcesos, _uiController.KeyListProcesos, 100, _uiController.KeyListProcesos);
            mzComboTarea.FillFromDataSource(_uiController.Tareas, _uiController.KeyValueTareas, _uiController.KeyListTareas, 100, _uiController.KeyListTareas);
            string    _contextosDeBusqueda        = _uiController.ContextosDeBusqueda;
            string    _contextosDeBusquedaDefault = _uiController.ContextosDeBusquedaDefault;
            ArrayList aux = new ArrayList();

            aux.AddRange(mz.erp.systemframework.Util.Parse(_contextosDeBusqueda, ","));
            cboContextoDeBusqueda.Items.AddRange(aux.ToArray());
            cboContextoDeBusqueda.SelectedItem = (string)_contextosDeBusquedaDefault;
            txtIdVariable.Focus();
            btnEliminar.Enabled = false;
            KeyPreview          = true;
        }
コード例 #4
0
		private void ConfigureInterface()
		{						
			this.Text = _uiController.LeyendaFormulario;
			this.lblTarea.Text = _uiController.LeyendaFormulario;
			gridManagerView1.Configure(_uiController.GetProcessManager().GetProcessName(), _uiController.GetTaskName(), gridResultado, this.Text);
			this.KeyPreview = true;
		}
コード例 #5
0
        private void ConfigureInterface()
        {
            this.Text           = _uiController.LeyendaFormulario;
            lblTarea.Text       = _uiController.LeyendaFormulario;
            tbbAnterior.Enabled = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();
            tbbAnterior.Text    = _uiController.TextoBotonAnterior;
            tbbSiguiente.Text   = _uiController.TextoBotonSiguiente;

            mzProductosControl1.SetProcess(_uiController.GetProcessManager().GetProcessName(), _uiController.GetTaskName(), "");

            //mzCEProductos.WidthSearchForm = 800;
            //mzCEProductos.LayoutData = _uiController.LayoutProductos;

            this.hierarchicalSearchControl1.Build_UI("PRODUCTOS", _uiController.AllowMultipleSelect);
            gridManagerView1.Configure(_uiController.GetProcessManager().GetProcessName(), _uiController.GetTaskName(), gridResultado, this.Text);

            /*if(_uiController.AllowGridConfiguration)
             *      btnConfGrilla.Visible = true;
             * else
             *      btnConfGrilla.Visible = false;*/

            mz.erp.ui.forms.classes.ContainerManager.UpdateSize(this.ContainerJerarquias, hierarchicalSearchControl1);

            KeyPreview = true;
        }
コード例 #6
0
 private void ConfigureInterface()
 {
     //Toma los valores definidos en la bd
     this.tbbAnterior.Text    = _uiController.TextoBotonAnterior;
     this.tbbAnterior.Enabled = false;
     this.tbbSiguiente.Text   = _uiController.TextoBotonSiguiente;
     this.labelLeyenda.Text   = _uiController.Leyenda;
     this.Text = _uiController.Leyenda;
     //Otras configurations
     gridManagerView1.Configure(_uiController.GetProcessName(), _uiController.GetTaskName(), this.Name, gridResultado, this.Text);
     gridResultado.AllowEdit = Janus.Windows.GridEX.InheritableBoolean.False;
 }
コード例 #7
0
        private void ConfigureInterface()
        {
            this.Text            = _uiController.LeyendaFormulario;
            tbbAnterior.Enabled  = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();
            tbbSeparator.Enabled = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();
            gridManagerView1.Configure(_uiController.GetProcessManager().GetProcessName(), _uiController.GetTaskName(), gridResultado, this.Text);
            lbTarea.Text      = _uiController.LeyendaFormulario;
            tbbSiguiente.Text = _uiController.TextoBotonSiguiente;
            tbbAnterior.Text  = _uiController.TextoBotonAnterior;
            //this.gridResultado.AutomaticSort = true;

            mzCmbCuenta.Init(_uiController.GetProcessManager().GetProcessName(), _uiController.GetTaskName());
            mzCmbCuenta.Enabled              = true;
            mzCmbCuenta.EnableCtaCte         = true;
            mzCmbCuenta.AllowEditClientePaso = false;
            mzCmbCuenta.SearchObjectListener = this;

            this.KeyPreview = true;

            /*rbFechaEmision.Checked = _uiController.PorFechaEmision;
             * rbFechaVencimiento.Checked = _uiController.PorFechaVencimiento;
             * rbFechaRecepcionMercaderia.Checked = _uiController.PorFechaRecepcionMercaderia;
             *
             *
             * foreach( Infragistics.Win.UltraWinExplorerBar.UltraExplorerBarGroup group in this.ultraExplorerBar1.Groups)
             * {
             *      group.Visible = false;
             *      if (group.Container != null)
             *              group.Container.Enabled = false;
             * }
             * if(!_uiController.ContenedoresVisibles.Equals(string.Empty))
             * {
             *      ArrayList cont = mz.erp.systemframework.Util.Parse(_uiController.ContenedoresVisibles, ",");
             *      foreach(string grupo in cont)
             *      {
             *              this.ultraExplorerBar1.Groups[grupo].Visible = true;
             *      }
             *      _allowShowDetails = cont.Contains("Detalles");
             * }
             *
             * if(!_uiController.ContenedoresHabilitados.Equals(string.Empty))
             * {
             *      ArrayList cont = mz.erp.systemframework.Util.Parse(_uiController.ContenedoresHabilitados, ",");
             *      foreach(string grupo in cont)
             *      {
             *              if (this.ultraExplorerBar1.Groups[grupo].Container != null)
             *                      this.ultraExplorerBar1.Groups[grupo].Container.Enabled = true;
             *      }
             * }
             * tbbSeparadorImprimir.Visible = _uiController.VisualizaBotonImprimir;
             */
        }
コード例 #8
0
 private void ConfigureInterface()
 {
     this.Text            = _uiController.LeyendaFormulario;
     tbbAnterior.Enabled  = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();
     tbbSeparator.Enabled = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();
     gridManagerView1.Configure(_uiController.GetProcessManager().GetProcessName(), _uiController.GetTaskName(), gridResultado, this.Text);
     lbTarea.Text      = _uiController.LeyendaFormulario;
     tbbSiguiente.Text = _uiController.TextoBotonSiguiente;
     tbbAnterior.Text  = _uiController.TextoBotonAnterior;
     mzCmb.Init();
     mzCmb.SearchObjectListener = this;
     mzCmb.EnableCtaCte         = _uiController.EnabledButtonCuentaCtaCte;
     KeyPreview = true;
 }
コード例 #9
0
        private void ConfigureInterface()
        {
            Text            = _uiController.LeyendaFormulario;
            labelTarea.Text = _uiController.LeyendaFormulario;

            gridTiposDeComprobantes.LayoutData        = _uiController.GetLayoutTiposDeComprobantes();
            gridTiposDeComprobantes.GroupByBoxVisible = false;
            gridTiposDeComprobantes.AllowColumnDrag   = false;
            gridTiposDeComprobantes.AllowEdit         = Janus.Windows.GridEX.InheritableBoolean.False;

            gridManagerView1.Configure(_uiController.GetProcessManager().GetProcessName(), _uiController.GetTaskName(), this.Name, gridTiposDeComprobantes, this.Text);
            gridManagerView1.Enabled = true;
            KeyPreview = true;
            mz.erp.ui.forms.classes.ContainerManager.CollapseContainers(ultraExplorerBar1, _uiController.GetProcessName(), _uiController.GetTaskName());
        }
コード例 #10
0
        private void ConfigureInterface()
        {
            tbbAnterior.Enabled  = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();
            tbbSeparator.Enabled = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();

            this.Text       = _uiController.LeyendaFormulario;
            labelTarea.Text = _uiController.LeyendaFormulario;

            tbbAnterior.Text  = _uiController.TextoBotonAnterior;
            tbbSiguiente.Text = _uiController.TextoBotonSiguiente;

            gridManagerView1.Configure(_uiController.GetProcessManager().GetProcessName(), _uiController.GetTaskName(), gridEX1, this.Text);

            mzCEInstanciasCaja.Enabled = _uiController.AllowEditCaja();
            mzCTipoBillete.Enabled     = false;
        }
コード例 #11
0
        private void ConfigureInterface()
        {
            this.Text = _uiController.LeyendaFormulario;
            //tbbAnterior.Enabled = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();
            //tbbSeparator.Enabled = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();
            //gridEX1.LayoutData = _uiController.GetLayout();
            gridEX1.AllowEdit = Janus.Windows.GridEX.InheritableBoolean.True;
            //CallGridManager();
            gridManagerView1.Configure(_uiController.GetProcessManager().GetProcessName(), _uiController.GetTaskName(), gridEX1, this.Text);
            this.Detalles.Text = "Ver Cta.Cte.";
            labelTarea.Text    = _uiController.LeyendaFormulario;

            this.ultraExplorerBar1.Groups["Jerarquia"].Text = _uiController.TextoSolapaJerarquias;
            this.hierarchicalSearchControlClientes.Build_UI(_uiController.KeyHierarchicalSearchControl, _uiController.AllowMultipleSelect);
            KeyPreview = true;
        }
コード例 #12
0
        private void ConfigureInterface()
        {
            tbbAnterior.Enabled  = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();
            tbbSeparator.Enabled = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();

            this.Text       = _uiController.LeyendaFormulario;
            labelTarea.Text = _uiController.LeyendaFormulario;

            tbbAnterior.Text  = _uiController.TextoBotonAnterior;
            tbbSiguiente.Text = _uiController.TextoBotonSiguiente;

            gridManagerView1.Configure(_uiController.GetProcessManager().GetProcessName(), _uiController.GetTaskName(), gridResultado, this.Text);

            mzProductosControl1.SetProcess(_uiController.GetProcessManager().GetProcessName(), _uiController.GetTaskName(), "");
            this.hierarchicalSearchControl1.Build_UI("PRODUCTOS", _uiController.AllowMultipleSelect);
            mz.erp.ui.forms.classes.ContainerManager.UpdateSize(this.ultraExplorerBarContainerControl2, hierarchicalSearchControl1);

            KeyPreview = true;
        }
コード例 #13
0
        private void ConfigureInterface()
        {
            this.Text            = _uiController.LeyendaFormulario();
            this.labelTarea.Text = _uiController.LeyendaFormulario();
            //Cristian Tarea 0000064 20110317
            switch (_uiController.GetProcessManager().GetProcessName())
            {
            case "ProcesoSoporteModificarComprobantesPagoGeneral":
                this.label1.Text       = "Nuevo Número de Comprobante";
                txtNumeroModif.Visible = true;
                break;

            case "ProcesoSoporteModificarComprobantesVentas":
                this.label1.Text = "Nuevo Tipo de Comprobante";
                mzCEComprobanteDestino.Visible = true;
                break;
            }
            //Fin Cristian
            gridManagerView1.Configure(_uiController.GetProcessManager().GetProcessName(), _uiController.GetTaskName(), gridResultado, this.Text);
        }
コード例 #14
0
        private void ConfigureInterface()
        {
            tbbAnterior.Enabled  = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();
            tbbSeparator.Enabled = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();

            this.Text       = _uiController.LeyendaFormulario;
            labelTarea.Text = _uiController.LeyendaFormulario;

            tbbAnterior.Text  = _uiController.TextoBotonAnterior;
            tbbSiguiente.Text = _uiController.TextoBotonSiguiente;

            radioBSoloCerradas.Enabled = _uiController.PermiteConsultarHistorico;
            radioBTodas.Enabled        = _uiController.PermiteConsultarHistorico;

            gridCajas.LayoutData = _uiController.LayoutFiltroCajas;

            gridManagerView1.Configure(_uiController.GetProcessManager().GetProcessName(), _uiController.GetTaskName(), gridResultado, this.Text);

            tbbGuardar.Enabled   = _uiController.HabilitaAuditadoSupervisor || _uiController.HabilitaAuditadoGerente;
            tbbSiguiente.Enabled = _uiController.HabilitaAuditadoSupervisor || _uiController.HabilitaAuditadoGerente;
        }
コード例 #15
0
        private void Build_UI()
        {
            /* Silvina 20120416 - Tarea 0000277 */
            utility.Util.LoadImages(toolBarStandar, imglStandar);
            /* Fin Silvina 20120416 - Tarea 0000277 */

            /* Silvina 20100614 - Tarea 37 */

            //this.gridComprobantesEntrega.LayoutData = _uiController.LayoutGridComprobantesEntrega;
            //this.gridPreComprobantes.LayoutData= _uiController.LayoutGridComprobantesEntrega;
            gridManagerView1.Configure(_uiController.GetProcessManager().GetProcessName(), _uiController.GetTaskName(), gridComprobantesEntrega, this.Text);
            gridManagerView2.Configure(_uiController.GetProcessManager().GetProcessName(), _uiController.GetTaskName(), gridPreComprobantes, this.Text);

            /* Fin Silvina */

            this.KeyPreview        = true;
            this.tbbAnterior.Text  = _uiController.TextoBotonPrevio;
            tbbAnterior.Enabled    = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();
            tbbSeparator.Enabled   = !_uiController.IsFirstTask() && !_uiController.IsFlushedState();
            tbbSiguiente.Enabled   = !_uiController.IsLastTask() && !_uiController.IsFlushedState();
            this.tbbSiguiente.Text = _uiController.TextoBotonSiguiente;
            this.Text = _uiController.LeyendaFormulario;
            this.toolBarStandar.ButtonClick               += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBarStandar_ButtonClick);
            _uiController.OnControllerChanged             += new System.EventHandler(this.ListenerControllerChanges);
            this.gridComprobantesEntrega.SelectionChanged += new EventHandler(gridComprobantesEntrega_SelectionChanged);
            this.gridPreComprobantes.SelectionChanged     += new EventHandler(gridPreComprobantes_SelectionChanged);
            BindingController.Bind(uccFechaDesde, "Value", _uiController, "FechaDesde");
            BindingController.Bind(uccFechaHasta, "Value", _uiController, "FechaHasta");
            _uiController.RefreshData();
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmConsultas_KeyDown);
            //if(_uiController.VerHTML && _uiController.MetodoVisualizacionHTML.Equals("PORDEMANDA"))
            //{
            this.gridComprobantesEntrega.ContextMenu = this.contextMenu1;
            this.gridPreComprobantes.ContextMenu     = this.contextMenu2;
            this.Detalles.Click  += new EventHandler(Detalles_Click);
            this.menuItem1.Click += new EventHandler(menuItem1_Click);
            //}
            if (_uiController.AllowMultipleSelect)
            {
                gridComprobantesEntrega.SelectionMode = Janus.Windows.GridEX.SelectionMode.MultipleSelection;
            }

            else
            {
                gridComprobantesEntrega.SelectionMode = Janus.Windows.GridEX.SelectionMode.SingleSelection;
            }

            foreach (Infragistics.Win.UltraWinExplorerBar.UltraExplorerBarGroup group in this.ultraExplorerBar1.Groups)
            {
                group.Visible = false;
            }
            if (!_uiController.ContenedoresVisibles.Equals(string.Empty))
            {
                ArrayList cont = mz.erp.systemframework.Util.Parse(_uiController.ContenedoresVisibles, ",");
                foreach (string grupo in cont)
                {
                    this.ultraExplorerBar1.Groups[grupo].Visible = true;
                }
            }
            uccFechaDesde.Enabled = _uiController.AllowEditarFechas;
            uccFechaHasta.Enabled = _uiController.AllowEditarFechas;

            KeyPreview = true;
            KeyDownManager KeyDown = new KeyDownManager(this);

            mz.erp.ui.forms.classes.ContainerManager.CollapseContainers(ultraExplorerBar1, _uiController.GetProcessName(), _uiController.GetTaskName());

            //Cristian Tarea 0000050 20110310
            this.uccFechaDesde.ValueChanged += new EventHandler(FechaDesde_ValueChanged);
            //Fin Cristian
            //Cristian Tarea 0000146 20110725
            this.uccFechaHasta.ValueChanged += new EventHandler(uccFechaHasta_ValueChanged);
            //Fin Cristian 20110725

            //German 20120413 - Tarea 0000247
            mzCmbCuenta.Init(_uiController.GetProcessManager().GetProcessName(), _uiController.GetTaskName());
            mzCmbCuenta.Enabled              = true;
            mzCmbCuenta.EnableCtaCte         = false;
            mzCmbCuenta.AllowEditClientePaso = false;
            mzCmbCuenta.DataValue            = _uiController.CodigoCuenta;
            mzCmbCuenta.ValueChanged        += new System.EventHandler(this.Componentes_Changes);
            //Fin German 20120413 - Tarea 0000247
        }