Exemplo n.º 1
0
        //-----------------------------------------------------------------------------------
        // Inserta Registros
        //-----------------------------------------------------------------------------------
        private void InsertaRegistro()
        {
            string Rta = string.Empty;

            MessageBox.Show("insertar");
            try
            {
                Rta = NMovimiento_Transferencia_Activo.Insertar(
                    this.txtMVPid_proceso.Text
                    , this.cboMVPtipo.Text
                    , this.txtMVPds_movimiento.Text
                    , this.dtpMVPfecha_movimiento.Text
                    , this.cboZONA1.Text
                    , this.txtORGds_zona.Text
                    , this.txtORGcrp.Text
                    , this.txtORGds_crp.Text
                    , this.cboAMB1.Text
                    , this.txtORGds_ambiente.Text
                    , this.cboPERNR1.Text
                    , this.txtORGds_persona.Text
                    , this.cboPERNR3.Text
                    , this.txtORGds_usuario.Text

                    , this.cboZONA2.Text
                    , this.txtDSTds_zona.Text
                    , this.txtDSTcrp.Text
                    , this.txtDSTds_crp.Text
                    , this.cboAMB2.Text
                    , this.txtDSTds_ambiente.Text
                    , this.cboPERNR2.Text
                    , this.txtDSTds_persona.Text
                    , this.cboPERNR4.Text
                    , this.txtDSTds_usuario.Text
                    , this.txtMVPobservaciones.Text

                    );
                // Rta = NMovimiento_Transferencia_Activo.Insertar(this.txtMVPid_proceso.Text, "1", "1", "1", "1", "1", "2", DateTime.Today.ToString(), "1", this.txtACFdescripcion.Text, DateTime.Today.ToString(), DateTime.Today.ToString(), "0", "0", "0.00", "0", "0", "0", "", "0", "", "", "", "", "", "", "0.00", "0.00", "", "", "1", "", "1", "", "", "", DateTime.Today.ToString(), "1", "", "1", "1", "1", DateTime.Today.ToString(), "1");

                if (Rta.Equals("OK"))
                {
                    this.MensajeOk("Regsitro Agregado Correctamente");
                }
                else
                {
                    this.MensajeError("Error al Insertar Registro :" + Rta);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + ex.StackTrace);
            }
        }