/// <summary> /// Envia los cambios del tpu_ComprobantesDeCompraConfirmacionDePreciosDataset a la base de datos. /// </summary> public static void Update(tpu_ComprobantesDeCompraConfirmacionDePreciosDataset dataSet) { ApplicationAssert.Check(dataSet != null, "El argumento dataSet no debe ser nulo.", ApplicationAssert.LineNumber); ApplicationAssert.Check(dataSet.tpu_ComprobantesDeCompraConfirmacionDePrecios.Rows.Count > 0, "La tabla dataSet.tpu_ComprobantesDeCompraConfirmacionDePreciosDataTable debe poseer alguna fila.", ApplicationAssert.LineNumber); mz.erp.dataaccess.tpu_ComprobantesDeCompraConfirmacionDePrecios.Update(dataSet); }
public static tpu_ComprobantesDeCompraConfirmacionDePreciosDataset GetList(string IdComprobante, string IdComprobanteFactura, string IdProveedor, string IdAutorizacion, string IdTipoDeComprobante, string Estado, string NumeroFactura, string IdResponsable, string Observaciones) { tpu_ComprobantesDeCompraConfirmacionDePreciosDataset data = new tpu_ComprobantesDeCompraConfirmacionDePreciosDataset(); SqlDataAdapter adapter = new SqlDataAdapter(); adapter.TableMappings.Add("Table", "tpu_ComprobantesDeCompraConfirmacionDePrecios"); SqlCommand cmd = new SqlCommand("Pr_tpu_ComprobantesDeCompraConfirmacionDePrecios_Search", dbhelper.Connection.GetConnection()); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add(new SqlParameter("@IdComprobante", SqlDbType.VarChar)); cmd.Parameters["@IdComprobante"].Value = IdComprobante; cmd.Parameters.Add(new SqlParameter("@IdComprobanteFactura", SqlDbType.VarChar)); cmd.Parameters["@IdComprobanteFactura"].Value = IdComprobanteFactura; cmd.Parameters.Add(new SqlParameter("@IdProveedor", SqlDbType.VarChar)); cmd.Parameters["@IdProveedor"].Value = IdProveedor; cmd.Parameters.Add(new SqlParameter("@IdAutorizacion", SqlDbType.VarChar)); cmd.Parameters["@IdAutorizacion"].Value = IdAutorizacion; cmd.Parameters.Add(new SqlParameter("@IdTipoDeComprobante", SqlDbType.VarChar)); cmd.Parameters["@IdTipoDeComprobante"].Value = IdTipoDeComprobante; cmd.Parameters.Add(new SqlParameter("@Estado", SqlDbType.VarChar)); cmd.Parameters["@Estado"].Value = Estado; cmd.Parameters.Add(new SqlParameter("@NumeroFactura", SqlDbType.VarChar)); cmd.Parameters["@NumeroFactura"].Value = NumeroFactura; cmd.Parameters.Add(new SqlParameter("@IdResponsable", SqlDbType.VarChar)); cmd.Parameters["@IdResponsable"].Value = IdResponsable; cmd.Parameters.Add(new SqlParameter("@Observaciones", SqlDbType.VarChar)); cmd.Parameters["@Observaciones"].Value = Observaciones; adapter.SelectCommand = cmd; adapter.Fill(data); return(data); }
public static tpu_ComprobantesDeCompraConfirmacionDePreciosDataset.tpu_ComprobantesDeCompraConfirmacionDePreciosRow GetByPk(string IdComprobante) { tpu_ComprobantesDeCompraConfirmacionDePreciosDataset data = new tpu_ComprobantesDeCompraConfirmacionDePreciosDataset(); SqlCommand cmd = new SqlCommand("Pr_tpu_ComprobantesDeCompraConfirmacionDePrecios_GetByPk", dbhelper.Connection.GetConnection()); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add(new SqlParameter("@IdComprobante", SqlDbType.VarChar)); cmd.Parameters["@IdComprobante"].Value = IdComprobante; SqlDataAdapter adapter = new SqlDataAdapter(cmd); adapter.TableMappings.Add("Table", "tpu_ComprobantesDeCompraConfirmacionDePrecios"); adapter.Fill(data); if (data.tpu_ComprobantesDeCompraConfirmacionDePrecios.Rows.Count == 1) { return((tpu_ComprobantesDeCompraConfirmacionDePreciosDataset.tpu_ComprobantesDeCompraConfirmacionDePreciosRow)data.tpu_ComprobantesDeCompraConfirmacionDePrecios.Rows[0]); } return(null); }
public static tpu_ComprobantesDeCompraConfirmacionDePreciosDataset GetList() { tpu_ComprobantesDeCompraConfirmacionDePreciosDataset data = new tpu_ComprobantesDeCompraConfirmacionDePreciosDataset(); return(( tpu_ComprobantesDeCompraConfirmacionDePreciosDataset )GetList(data)); }
public static void Update(tpu_ComprobantesDeCompraConfirmacionDePreciosDataset dataSet) { Update(dataSet.tpu_ComprobantesDeCompraConfirmacionDePrecios); }