public string DREGISTRARCHEQUERAS(E_CHEQUES CH, string cond, string id_chequera)
        {
            string res = "";

            try
            {
                if (con.State == ConnectionState.Closed)
                {
                    con.Open();
                }
                SqlCommand cmd = new SqlCommand("SP_MANTENIMIENTO_CHEQUERAS", con);
                cmd.CommandType = CommandType.StoredProcedure;
                cmd.Parameters.AddWithValue("@ID_CUENTA", CH.id_cuentasbancarias);
                cmd.Parameters.AddWithValue("@N_INICIAL", CH.n_inicial);
                cmd.Parameters.AddWithValue("@N_FINAL", CH.n_final);
                cmd.Parameters.AddWithValue("@F_EMISION", CH.f_emision);
                cmd.Parameters.AddWithValue("@F_VCTO", CH.f_vcto);
                cmd.Parameters.AddWithValue("@N_CORRELATIVO", CH.n_correlativo);
                cmd.Parameters.AddWithValue("@TIPO", CH.tipo);
                cmd.Parameters.AddWithValue("@ESTADO", CH.estado);
                cmd.Parameters.AddWithValue("@OBS", CH.obs);
                cmd.Parameters.AddWithValue("@USUARIO", CH.usuario);
                cmd.Parameters.AddWithValue("@CONDICION", cond);
                cmd.Parameters.AddWithValue("@ID_CHEQUERA", id_chequera);
                int a = cmd.ExecuteNonQuery();
                if (a > 0)
                {
                    res = "ok";
                }
            }
            catch (Exception ex)
            {
                System.Console.Write(ex.Message);
            }

            if (con.State == ConnectionState.Open)
            {
                con.Close();
            }
            return(res);
        }
        public DataTable DLLENARGRILLACHEQUERAS(E_CHEQUES CH)
        {
            DataTable dt = new DataTable();

            try
            {
                if (con.State == ConnectionState.Closed)
                {
                    con.Open();
                }
                SqlCommand cmd = new SqlCommand("SP_MANTENIMIENTO_CHEQUERAS", con);
                cmd.CommandType = CommandType.StoredProcedure;
                cmd.Parameters.AddWithValue("@ID_CUENTA", CH.id_cuentasbancarias);
                cmd.Parameters.AddWithValue("@N_INICIAL", CH.n_inicial);
                cmd.Parameters.AddWithValue("@N_FINAL", CH.n_final);
                cmd.Parameters.AddWithValue("@F_EMISION", CH.f_emision);
                cmd.Parameters.AddWithValue("@F_VCTO", CH.f_vcto);
                cmd.Parameters.AddWithValue("@N_CORRELATIVO", CH.n_correlativo);
                cmd.Parameters.AddWithValue("@TIPO", CH.tipo);
                cmd.Parameters.AddWithValue("@ESTADO", CH.estado);
                cmd.Parameters.AddWithValue("@OBS", CH.obs);
                cmd.Parameters.AddWithValue("@USUARIO", CH.usuario);
                cmd.Parameters.AddWithValue("@CONDICION", "1");
                cmd.Parameters.AddWithValue("@ID_CHEQUERA", "1004");
                int a = cmd.ExecuteNonQuery();

                SqlDataAdapter da = new SqlDataAdapter(cmd);

                da.Fill(dt);
            }
            catch (Exception ex)
            {
                System.Console.Write(ex.Message);
            }

            if (con.State == ConnectionState.Open)
            {
                con.Close();
            }
            return(dt);
        }
 public string NELIMINARCHEQUE(E_CHEQUES CHQ)
 {
     return(OBJTIPO_BIEN.DELIMINARCHEQUES(CHQ));
 }
 public string NACTUALIZARCHEQUE(E_CHEQUES CHQ, string id_cheque)
 {
     return(OBJTIPO_BIEN.DACTUALIZARCHEQUES(CHQ, id_cheque));
 }
 public string NREGISTRARCHEQUE(E_CHEQUES CHQ)
 {
     return(OBJTIPO_BIEN.DREGISTRARCHEQUES(CHQ));
 }
 public DataTable NLLENARGRILLACHEQUES(E_CHEQUES CH)
 {
     return(OBJTIPO_BIEN.DLLENARGRILLACHEQUES(CH));
 }
 public DataTable NLLENARGRILLACHEQUERAS(E_CHEQUES CHQ)
 {
     return(OBJLOGUEO.DLLENARGRILLACHEQUERAS(CHQ));
 }
 public string NREGISTRARCHEQUE(E_CHEQUES CHQ, string cond, string id_chequera)
 {
     return(OBJLOGUEO.DREGISTRARCHEQUERAS(CHQ, cond, id_chequera));
 }
示例#9
0
 public DataTable NLLENARGRILLACHEQUES(E_CHEQUES CH, string ESTADO)
 {
     return(OBJTIPO_BIEN.DLLENARGRILLACHEQUES(CH, ESTADO));
 }