Beispiel #1
0
        void VerRegistro(int n_IdRegistro)
        {
            booAgregando = true;

            CN_est_localsetup objRegistros = new CN_est_localsetup(STU_SISTEMA);

            objRegistros.STU_SISTEMA = STU_SISTEMA;

            objRegistros.TraerRegistro(n_IdRegistro);
            if (objRegistros.b_OcurrioError == false)
            {
                BE_Registro = objRegistros.e_Local;

                CboLocal.SelectedValue = BE_Registro.n_idloc;

                if (BE_Registro.n_idtipcob == 1)
                {
                    OptTipCob1.Checked = true;
                }
                if (BE_Registro.n_idtipcob == 2)
                {
                    OptTipCob2.Checked = true;
                }
                if (BE_Registro.n_idtipcob == 3)
                {
                    OptTipCob3.Checked = true;
                }
                TxtFac.Text                = BE_Registro.c_numserfac;
                TxtBol.Text                = BE_Registro.c_numserbol;
                TxtTik.Text                = BE_Registro.c_numsertik;
                TxtTol.Text                = BE_Registro.n_tolmin.ToString();
                CboDocDef.SelectedValue    = BE_Registro.n_iddocdef;
                CboSerCobAdi.SelectedValue = BE_Registro.n_idserhor;

                DataTable dtRes  = new DataTable();
                DataTable dtRes1 = new DataTable();
                dtRes = funDatos.DataTableFiltrar(dtSer, "n_idpla = " + Convert.ToInt16(CboLocal.SelectedValue) + "");
                funDatos.ComboBoxCargarDataTable(CboSerDef, dtRes, "n_id", "c_des");
                CboSerDef.SelectedValue = BE_Registro.n_idserdef;

                dtRes1 = funDatos.DataTableFiltrar(dtSer, "n_idpla = " + Convert.ToInt16(CboLocal.SelectedValue) + "");
                funDatos.ComboBoxCargarDataTable(CboSerCobAdi, dtRes1, "n_id", "c_des");
                CboSerCobAdi.SelectedValue = BE_Registro.n_idserhor;

                if (BE_Registro.n_vispre == 1)
                {
                    ChkVisPre.Checked = false;
                }
                if (BE_Registro.n_vispre == 2)
                {
                    ChkVisPre.Checked = true;
                }
            }
            objRegistros = null;
        }
Beispiel #2
0
        public bool Insertar(BE_EST_LOCALSETUP e_Local)
        {
            bool booOk = false;

            booOk          = miFun.Insertar(e_Local);
            b_OcurrioError = miFun.b_OcurrioError;
            c_ErrorMensaje = miFun.c_ErrorMensaje;
            n_ErrorNumber  = miFun.n_ErrorNumber;

            return(booOk);
        }
Beispiel #3
0
        public bool Insertar(BE_EST_LOCALSETUP e_Local)
        {
            CD_est_localsetup miFun = new CD_est_localsetup();
            bool booOk = false;

            miFun.mysConec = mysConec;
            booOk          = miFun.Insertar(e_Local);

            b_OcurrioError = miFun.b_OcurrioError;
            c_ErrorMensaje = miFun.c_ErrorMensaje;
            n_ErrorNumber  = miFun.n_ErrorNumber;

            return(booOk);
        }
Beispiel #4
0
        public bool Actualizar(BE_EST_LOCALSETUP e_local)
        {
            bool       booOk      = false;
            DatosMySql xMiFuncion = new DatosMySql();

            booOk = xMiFuncion.StoreEjecutar("est_localsetup_actualizar", e_local, mysConec, null);

            if (booOk == false)
            {
                b_OcurrioError = xMiFuncion.booOcurrioError;
                c_ErrorMensaje = xMiFuncion.StrErrorMensaje;
                n_ErrorNumber  = xMiFuncion.IntErrorNumber;
            }

            return(booOk);
        }