/// <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); }
public static DataSet GetList([SearchParameterInfo("Descripcion")] string Descripcion ) { tfi_FuentesDeCambioDataset data = mz.erp.businessrules.tfi_FuentesDeCambio.GetList(Descripcion); return(( DataSet )data); }
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); }
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); }
public static tfi_FuentesDeCambioDataset GetList() { tfi_FuentesDeCambioDataset data = new tfi_FuentesDeCambioDataset(); return(( tfi_FuentesDeCambioDataset )GetList(data)); }
public static void Update(tfi_FuentesDeCambioDataset dataSet) { Update(dataSet.tfi_FuentesDeCambio); }