Пример #1
0
        public int ActualizaParamSystem()
        {
            CargaParametroMat();
            RegCatParamSystem OpUp = new RegCatParamSystem(MatParam, db);

            return(OpUp.UpdateParamSystem());
        }
Пример #2
0
        public SqlDataAdapter ListarParamSystems()
        {
            CargaParametroMat();
            RegCatParamSystem OpLst = new RegCatParamSystem(db);

            return(OpLst.ListParamSystems());
        }
Пример #3
0
        public int AgregarParamSystem()
        {
            CargaParametroMat();
            RegCatParamSystem OpRadd = new RegCatParamSystem(MatParam, db);

            return(OpRadd.AddRegParamSystem());
        }
Пример #4
0
        public int EliminaParamSystem()
        {
            //CargaParametroMat();
            MatParam       = new object[1, 2];
            MatParam[0, 0] = "CodParametro"; MatParam[0, 1] = CodParametro;
            RegCatParamSystem OpDel = new RegCatParamSystem(MatParam, db);

            return(OpDel.DeleteParamSystem());
        }
Пример #5
0
        public DataTable CboParamSystem()
        {
            CargaParametroMat();
            RegCatParamSystem OpLst = new RegCatParamSystem(db);
            DataSet           Cbo   = new DataSet();

            OpLst.ComboParamSystem().Fill(Cbo);
            return(Cbo.Tables[0]);
        }
Пример #6
0
        public Object[] GetHora()
        {
            RegCatParamSystem OpEdit = new RegCatParamSystem(db);

            Datos = OpEdit.GetHora();
            DataSet Ds = new DataSet();

            Datos.Fill(Ds);

            object[] ObjA = Ds.Tables[0].Rows[0].ItemArray;

            return(ObjA);
        }
Пример #7
0
        public SqlDataAdapter BuscaParamSystem(string buscar)
        {
            /* MatParam = new object[4, 2];
             * MatParam[0, 0] = "CodParamSystem"; MatParam[0, 1] = buscar;
             * MatParam[1, 0] = "Descripcion"; MatParam[1, 1] = buscar;
             * MatParam[2, 0] = "Ubicacion"; MatParam[2, 1] = buscar;
             * MatParam[3, 0] = "Encargado"; MatParam[3, 1] = buscar;
             * RegCatParamSystem OpBsq = new RegCatParamSystem(MatParam);/
             */
            RegCatParamSystem OpBsq = new RegCatParamSystem(db);

            return(OpBsq.BuscaParamSystem(buscar));
        }
Пример #8
0
        public void EditarParamSystem()
        {
            MatParam       = new object[1, 2];
            MatParam[0, 0] = "CodParametro"; MatParam[0, 1] = CodParametro;
            RegCatParamSystem OpEdit = new RegCatParamSystem(MatParam, db);

            Datos = OpEdit.RegistroActivo();
            DataSet Ds = new DataSet();

            Datos.Fill(Ds);
            object[] ObjA = Ds.Tables[0].Rows[0].ItemArray;

            CodParametro = ObjA[0].ToString();
            Descripcion  = ObjA[1].ToString();
            ModUsa       = ObjA[2].ToString();
            Valor        = ObjA[3].ToString();
        }