private void btnAgregarMov_Click(object sender, RoutedEventArgs e)
        {
            int            idrol          = objControlador.RetornarIdRol(cbRol.SelectedValue.ToString());
            int            idtipo         = objControlador.RetornarIdTipo(cbTipo.SelectedValue.ToString());
            frmMovimientos objMovimientos = new frmMovimientos(txtNoEmpleado.Text, txtNombre.Text, Convert.ToInt32(txtNoEmpleado.Text), idrol, idtipo);

            objMovimientos.ShowDialog();
        }
Exemple #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.frmMovimientos1 = ((abcCompleto.frmMovimientos)(target));

            #line 5 "..\..\frmMovimientos.xaml"
                this.frmMovimientos1.KeyDown += new System.Windows.Input.KeyEventHandler(this.frmMovimientos1_KeyDown);

            #line default
            #line hidden
                return;

            case 2:
                this.GridControles = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.txtCantidad = ((System.Windows.Controls.TextBox)(target));

            #line 10 "..\..\frmMovimientos.xaml"
                this.txtCantidad.KeyDown += new System.Windows.Input.KeyEventHandler(this.txtCantidad_KeyDown);

            #line default
            #line hidden

            #line 10 "..\..\frmMovimientos.xaml"
                this.txtCantidad.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.txtCantidad_PreviewKeyDown);

            #line default
            #line hidden
                return;

            case 4:
                this.dtFecha = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 5:
                this.txtNumeroEmp = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.txtNombre = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.GridControles2 = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.cbRol = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 9:
                this.cbTipo = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 10:
                this.btnSubir = ((System.Windows.Controls.Button)(target));

            #line 43 "..\..\frmMovimientos.xaml"
                this.btnSubir.Click += new System.Windows.RoutedEventHandler(this.btnSubir_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.btnBajar = ((System.Windows.Controls.Button)(target));

            #line 44 "..\..\frmMovimientos.xaml"
                this.btnBajar.Click += new System.Windows.RoutedEventHandler(this.btnBajar_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.btnGuardar = ((System.Windows.Controls.Button)(target));

            #line 45 "..\..\frmMovimientos.xaml"
                this.btnGuardar.Click += new System.Windows.RoutedEventHandler(this.btnGuardar_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.btnModificar = ((System.Windows.Controls.Button)(target));

            #line 46 "..\..\frmMovimientos.xaml"
                this.btnModificar.Click += new System.Windows.RoutedEventHandler(this.btnModificar_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.btnSalir = ((System.Windows.Controls.Button)(target));

            #line 47 "..\..\frmMovimientos.xaml"
                this.btnSalir.Click += new System.Windows.RoutedEventHandler(this.btnSalir_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }