Esempio n. 1
0
        public static tsy_AfipTiposDeDocumentosRelacionadosDataset.tsy_AfipTiposDeDocumentosRelacionadosRow GetByPk(string Codigo, string IdTipoDeDocumento)
        {
            tsy_AfipTiposDeDocumentosRelacionadosDataset data = new tsy_AfipTiposDeDocumentosRelacionadosDataset();

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

            cmd.CommandType = CommandType.StoredProcedure;

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

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

            SqlDataAdapter adapter = new SqlDataAdapter(cmd);

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

            adapter.Fill(data);

            if (data.tsy_AfipTiposDeDocumentosRelacionados.Rows.Count == 1)
            {
                return((tsy_AfipTiposDeDocumentosRelacionadosDataset.tsy_AfipTiposDeDocumentosRelacionadosRow)data.tsy_AfipTiposDeDocumentosRelacionados.Rows[0]);
            }

            return(null);
        }
Esempio n. 2
0
        public static tsy_AfipTiposDeDocumentosRelacionadosDataset GetList(string Codigo, string IdTipoDeDocumento)
        {
            tsy_AfipTiposDeDocumentosRelacionadosDataset data = new tsy_AfipTiposDeDocumentosRelacionadosDataset();

            SqlDataAdapter adapter = new SqlDataAdapter();

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

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

            cmd.CommandType = CommandType.StoredProcedure;

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

            adapter.Fill(data);

            return(data);
        }
Esempio n. 3
0
        public static tsy_AfipTiposDeDocumentosRelacionadosDataset GetList()
        {
            tsy_AfipTiposDeDocumentosRelacionadosDataset data = new tsy_AfipTiposDeDocumentosRelacionadosDataset();

            return((tsy_AfipTiposDeDocumentosRelacionadosDataset)GetList(data));
        }
Esempio n. 4
0
 public static void Update(tsy_AfipTiposDeDocumentosRelacionadosDataset dataSet)
 {
     Update(dataSet.tsy_AfipTiposDeDocumentosRelacionados);
 }