コード例 #1
0
        /// <summary>
        /// Envia los cambios del tfi_FuentesDeCambioDataset a la base de datos.
        /// </summary>
        public static void Update(tfi_FuentesDeCambioDataset dataSet)
        {
            ApplicationAssert.Check(dataSet != null, "El argumento dataSet no debe ser nulo.", ApplicationAssert.LineNumber);
            ApplicationAssert.Check(dataSet.tfi_FuentesDeCambio.Rows.Count > 0, "La tabla dataSet.tfi_FuentesDeCambioDataTable debe poseer alguna fila.", ApplicationAssert.LineNumber);

            mz.erp.dataaccess.tfi_FuentesDeCambio.Update(dataSet);
        }
コード例 #2
0
        public static DataSet GetList([SearchParameterInfo("Descripcion")] string Descripcion
                                      )
        {
            tfi_FuentesDeCambioDataset data = mz.erp.businessrules.tfi_FuentesDeCambio.GetList(Descripcion);

            return(( DataSet )data);
        }
コード例 #3
0
        public static tfi_FuentesDeCambioDataset GetList(string Descripcion)
        {
            tfi_FuentesDeCambioDataset data = new tfi_FuentesDeCambioDataset();

            SqlDataAdapter adapter = new SqlDataAdapter();

            adapter.TableMappings.Add("Table", "tfi_FuentesDeCambio");

            SqlCommand cmd = new SqlCommand("Pr_tfi_FuentesDeCambio_Search", dbhelper.Connection.GetConnection());

            cmd.CommandType = CommandType.StoredProcedure;

            cmd.Parameters.Add(new SqlParameter("@Descripcion", SqlDbType.VarChar));
            cmd.Parameters["@Descripcion"].Value = Descripcion;
            adapter.SelectCommand = cmd;

            adapter.Fill(data);

            return(data);
        }
コード例 #4
0
        public static tfi_FuentesDeCambioDataset.tfi_FuentesDeCambioRow GetByPk(string IdFuenteDeCamibo)
        {
            tfi_FuentesDeCambioDataset data = new tfi_FuentesDeCambioDataset();

            SqlCommand cmd = new SqlCommand("Pr_tfi_FuentesDeCambio_GetByPk", dbhelper.Connection.GetConnection());

            cmd.CommandType = CommandType.StoredProcedure;

            cmd.Parameters.Add(new SqlParameter("@IdFuenteDeCambio", SqlDbType.VarChar));
            cmd.Parameters["@IdFuenteDeCambio"].Value = IdFuenteDeCamibo;

            SqlDataAdapter adapter = new SqlDataAdapter(cmd);

            adapter.TableMappings.Add("Table", "tfi_FuentesDeCambio");

            adapter.Fill(data);

            if (data.tfi_FuentesDeCambio.Rows.Count == 1)
            {
                return((tfi_FuentesDeCambioDataset.tfi_FuentesDeCambioRow)data.tfi_FuentesDeCambio.Rows[0]);
            }

            return(null);
        }
コード例 #5
0
        public static tfi_FuentesDeCambioDataset GetList()
        {
            tfi_FuentesDeCambioDataset data = new tfi_FuentesDeCambioDataset();

            return(( tfi_FuentesDeCambioDataset )GetList(data));
        }
コード例 #6
0
 public static void Update(tfi_FuentesDeCambioDataset dataSet)
 {
     Update(dataSet.tfi_FuentesDeCambio);
 }