コード例 #1
0
 private void InitDataBindings()
 {
     gridEX1.SetDataBinding(_uiController.Items, null);
     BindingController.Bind(mzComboSearchTransporte, "DataValue", _uiController, "IdTransporte");
     BindingController.Bind(mzComboSearchPersona, "DataValue", _uiController, "IdPersona");
     BindingController.Bind(descripcion, "Text", _uiController, "Descripcion");
 }
コード例 #2
0
 private void InitDataBindings()
 {
     BindingController.Bind(mzCEMonedasOrigen, "Value", _uiController, "IdMonedaOrigen");
     BindingController.Bind(mzCEMonedasDestino, "Value", _uiController, "IdMonedaDestino");
     BindingController.Bind(mzCEFuentesDeCambio, "Value", _uiController, "IdFuenteDeCambio");
     uneCotizacion.DataBindings.Add("Value", _uiController, "Cotizacion");
 }
コード例 #3
0
 private void mzComboEditorPChequeBusqueda_ValueChanged(object sender, EventArgs e)
 {
     if (this.mzComboEditorPChequeBusqueda.Value != null)
     {
         //Carga todos los datos abajo, pone enabled=true el contenedor
         this.ultraExplorerBar1.Groups["Datoschequera"].Container.Enabled = true;
         _uiController.IdChequera = Convert.ToString(mzComboEditorPChequeBusqueda.Value);
         _uiController.CargarDatos();
         this.mzComboEditorBanco.ValueChanged  -= new EventHandler(mzComboEditorBanco_ValueChanged);
         this.mzComboEditorCuenta.ValueChanged -= new EventHandler(mzComboEditorCuenta_ValueChanged);
         this.mzComboEditorBanco.Value          = _uiController.IdBanco;
         this.mzComboEditorCuenta.FillFromDataSource(_uiController.CuentasBancarias, _uiController.KeyValueCuenta, _uiController.KeyListCuenta, 100, _uiController.KeyListCuenta);
         mzComboEditorCuenta.Value = _uiController.IdCuenta;
         BindingController.Bind(this.nroChequera, "Value", _uiController, "Chequera");
         BindingController.Bind(this.primerCheque, "Value", _uiController, "PrimerCheque");
         BindingController.Bind(this.ultimoCheque, "Value", _uiController, "UltimoCheque");
         this.mzComboEditorBanco.ValueChanged  += new EventHandler(mzComboEditorBanco_ValueChanged);
         this.mzComboEditorCuenta.ValueChanged += new EventHandler(mzComboEditorCuenta_ValueChanged);
         //Pongo  todos los controlles enabled, porq solo puede modificar la fecha de cierre
         this.mzComboEditorBanco.Enabled  = false;
         this.mzComboEditorCuenta.Enabled = false;
         this.nroChequera.Enabled         = false;
         this.primerCheque.Enabled        = false;
         this.ultimoCheque.Enabled        = false;
         this.txtFechaCierre.Visible      = true;
         this.lfechaCierre.Visible        = true;
     }
 }
コード例 #4
0
 private void InitDataBindings()
 {
     BindingController.Bind(mzCEResponsable, "Value", _uiController, "IdResponsable");
     BindingController.Bind(mzCEInstanciasCaja, "Value", _uiController, "IdInstanciaCaja");
     gridEXValores.SetDataBinding(_uiController.Valores, null);
     gridEX1.SetDataBinding(_uiController.Comprobantes, null);
 }
コード例 #5
0
        private void InitDataBindings()
        {
            BindingController.Bind(txtClaveAnt, "Text", _uiController, "ClaveAnterior");
            BindingController.Bind(txtClaveNue1, "Text", _uiController, "ClaveNueva1");
            BindingController.Bind(txtClaveNue2, "Text", _uiController, "ClaveNueva2");
            BindingController.Bind(mzCmbUsuarios, "Value", _uiController, "IdUsuario");


            this.toolBarStandar.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBarStandar_ButtonClick);
        }
コード例 #6
0
 private void InitDataBindings()
 {
     ultraMENumero.DataBindings.Add("InputMask", _uiController, "Mascara");
     mzCEResponsableEmision.DataBindings.Add("Value", _uiController, "ResponsableDeEmision");
     BindingController.Bind(mzCETipoComprobante, "Value", _uiController, "KeyValueTiposDeComprobantes");
     ultraMENumero.DataBindings.Add("Text", _uiController, "NumeroComprobante");
     cldFechaComprobante.DataBindings.Add("Value", _uiController, "Fecha");
     uneTotal.DataBindings.Add("Value", _uiController, "Total");
     mzCmbCuenta.DataBindings.Add("DataValue", _uiController, "CodigoCuenta");
     BindingController.Bind(uTEObservaciones, "Value", _uiController, "Observaciones");
 }
コード例 #7
0
        private void InitDataBindings()
        {
            BindingController.Bind(txtOpcionPadre, "Text", _uiController, "OpcionPadre");
            BindingController.Bind(txtOpcion, "Text", _uiController, "Opcion");
            BindingController.Bind(txtTitulo, "Text", _uiController, "Titulo");
            BindingController.Bind(gridPerfiles, "Text", _uiController, "Titulo");
            this.toolBarStandar.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBarStandar_ButtonClick);

            gridPerfiles.DataBindings.Clear();
            gridPerfiles.SetDataBinding(_uiController.Perfiles, null);
        }
コード例 #8
0
        private void InitDataBindings()
        {
            BindingController.Bind(mzComboCajasOrigen, "Value", _uiController, "KeyValueCajaOrigen");
            BindingController.Bind(mzComboCajasDestino, "Value", _uiController, "KeyValueCajaDestino");
            BindingController.Bind(lblRespOrigen, "Text", _uiController, "ResponsableCajaOrigen");
            BindingController.Bind(lblRespDestino, "Text", _uiController, "ResponsableCajaDestino");
            BindingController.Bind(uneTotal, "Value", _uiController, "TotalATransferir");


            //BindingController.Bind(gridValoresATransferir,"get_DataSource", _uiController,"ValoresATransferir");
        }
コード例 #9
0
 private void InitDataBindings()
 {
     //mzCmbProductos.DataBindings.Add("DataValue", _uiController, "Codigo");
     //BindingController.Bind( mzCmbProductos,"DataValue", _uiController, "Codigo");
     //udteDesde.DataBindings.Add("Value", _uiController, "FechaDesde");
     //udteHasta.DataBindings.Add("Value", _uiController, "FechaHasta");
     BindingController.Bind(udteDesde, "Value", _uiController, "FechaDesde");
     BindingController.Bind(udteHasta, "Value", _uiController, "FechaHasta");
     BindingController.Bind(chkPorLineas, "Checked", _uiController, "ByJerarquia1");
     BindingController.Bind(chkPorMarcas, "Checked", _uiController, "ByJerarquia2");
     BindingController.Bind(chkPorFechas, "Checked", _uiController, "ByFechas");
     mzProductosControl.AddObjectListener((IObserver)_uiController);
 }
コード例 #10
0
 private void InitDataBindings()
 {
     BindingController.Bind(_uiController, "Codigo", ueCodigo, "Text");
     BindingController.Bind(_uiController, "CodigoSecundario", ueCodigoBarras, "Text");
     BindingController.Bind(_uiController, "Descripcion", ueDescripcion, "Text");
     BindingController.Bind(_uiController, "DescripcionCorta", ueDescripcionCorta, "Text");
     BindingController.Bind(_uiController, "DescripcionLarga", ueDescripcionLarga, "Text");
     BindingController.Bind(_uiController, "Observaciones", ueObservaciones, "Text");
     BindingController.Bind(_uiController, "Activo", chActivo, "Checked");
     BindingController.Bind(_uiController, "ObligaCodigoBarras", chkObligaCodigoBarras, "Checked");
     BindingController.Bind(_uiController, "ObligaNumeroDeSerie", chkObligaNumeroDeSerie, "Checked");
     BindingController.Bind(cmbTipo, "Value", _uiController, "IdTipoDeProducto");
 }
コード例 #11
0
        private void InitDataBindings()
        {
            BindingController.Bind(mzCmbTiposDeAjuste, "Value", _uiController, "IdTipoDeAjuste");
            BindingController.Bind(uTEObservaciones, "Text", _uiController, "Observaciones");
            //this.mzCmbTiposDeAjuste.DataBindings.Add("Value", _uiController, "IdTipoDeAjuste");
            this.mzCmbDepositos.DataBindings.Add("Value", _uiController, "IdDeposito");
            this.mzCmbSecciones.DataBindings.Add("Value", _uiController, "IdSeccion");
            this.mzProductosControl1.AddObjectListener((IObserver)_uiController);

            this.gridProductos.SetDataBinding(null, null);
            this.gridProductos.SetDataBinding(_uiController.Items, null);
            this.gridProductos.Refresh();
            this.gridProductos.Refetch();
        }
コード例 #12
0
        //Fin Cristian

        private void InitDataBindings()
        {
            gridCajas.DataBindings.Clear();
            radioBSoloAbiertas.DataBindings.Clear();
            radioBSoloCerradas.DataBindings.Clear();
            radioBTodas.DataBindings.Clear();

            gridCajas.SetDataBinding(_uiController.FiltroCajas, null);
            radioBSoloAbiertas.DataBindings.Add("Checked", _uiController, "CheckSoloAbiertas");
            radioBSoloCerradas.DataBindings.Add("Checked", _uiController, "CheckSoloCerradas");
            radioBTodas.DataBindings.Add("Checked", _uiController, "CheckTodas");

            BindingController.Bind(dtFechaApertura, "Value", _uiController, "FechaApertura");
            BindingController.Bind(dtFechaCierre, "Value", _uiController, "FechaCierre");
            dtFechaApertura.DataBindings.Add("Enabled", _uiController, "AllowFechas");
            dtFechaCierre.DataBindings.Add("Enabled", _uiController, "AllowFechas");

            gridResultado.SetDataBinding(null, null);
            gridResultado.SetDataBinding(_uiController.Result, null);
        }
コード例 #13
0
        private void InitDataBindings()
        {
            gridSPs.SetDataBinding(_uiController.SPTable, null);
            txtOrden.DataBindings.Add("Text", _uiController, "ColumnOrder");
            txtTitulo.DataBindings.Add("Text", _uiController, "ColumnCaption");
            checkBox1.DataBindings.Add("Checked", _uiController, "ColumnVisible");
            txtAncho.DataBindings.Add("Text", _uiController, "ColumnWidth");
            comboAlineacion.DataBindings.Add("Text", _uiController, "ColumnAlignment");
            comboFormato.DataBindings.Add("Text", _uiController, "ColumnFormat");
            comboTipoColumna.DataBindings.Add("Text", _uiController, "ColumnEditType");
            comboTipoEdicion.DataBindings.Add("Text", _uiController, "ColumnType");
            gridEX1.SetDataBinding(_uiController.ColumnsProperties, null);
            txtGrilla.DataBindings.Add("Text", _uiController, "GridName");

            chkCombinar.DataBindings.Add("Checked", _uiController, "Merge");

            BindingController.Bind(mzCmbProcesos, "Value", _uiController, "IdProceso");
            BindingController.Bind(mzCmbTareas, "Value", _uiController, "IdTarea");
            BindingController.Bind(mzCmbPerfiles, "Value", _uiController, "IdPerfil");
        }
コード例 #14
0
        private void Init()
        {
            this.Text                = "Condiciones de venta para cliente";
            mzCmbCuenta.Enabled      = true;
            mzCmbCuenta.SearchObject = typeof(mz.erp.ui.forms.classes.tsa_Cuentas);
            BindingController.Bind(mzCmbCuenta, "DataValue", _uiController, "Codigo");

            gridCondicionesDeVenta.AllowEdit  = Janus.Windows.GridEX.InheritableBoolean.True;
            gridCondicionesDeVenta.LayoutData = mz.erp.ui.forms.classes.tsa_CuentasCondicionesDeVenta_TDCompTesoreria.GetLayoutAbmCuentasCondicionesDeVenta();

            _uiController.CodigoChanged += new EventHandler(_uiController_CodigoChanged);
            KeyPreview = true;
            KeyDownManager KeyDown = new KeyDownManager(this);


            //gridImpuestos.SetDataBinding(_cp.Impuestos,null);

            /*_uiController.OnShowForm +=new EventHandler(_uiController_OnShowForm);
             * _uiController.OnCloseForm +=new EventHandler(_uiController_OnCloseForm);
             * _uiController.OnChangeTimer +=new EventHandler(_uiController_OnChangeTimer);*/
        }
コード例 #15
0
 private void InitDataBindings()
 {
     BindingController.Bind(this.txtFechaDeposito, "Text", _uiController, "FechaDeposito");
     BindingController.Bind(this.NroBoleta, "Value", _uiController, "NroBoleta");
 }
コード例 #16
0
 private void InitDataBindings()
 {
     BindingController.Bind(mzCEFamiliaFormaDePago, "Value", _uiController, "Jerarquia");
     BindingController.Bind(mzCEComprobanteTesoreria, "Value", _uiController, "Jerarquia1");
 }
コード例 #17
0
 private void InitDataBindings()
 {
     BindingController.Bind(this.nroChequera, "Value", _uiController, "Chequera");
     BindingController.Bind(this.primerCheque, "Value", _uiController, "PrimerCheque");
     BindingController.Bind(this.ultimoCheque, "Value", _uiController, "UltimoCheque");
 }
コード例 #18
0
 private void _uiController_TotalATransferirChanged(object sender, EventArgs e)
 {
     BindingController.Clear(uneTotal, "Value", _uiController, "TotalATransferir");
     BindingController.Bind(uneTotal, "Value", _uiController, "TotalATransferir");
 }
コード例 #19
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
        }