Пример #1
0
        public SysParentescoCollection FetchByQuery(Query qry)
        {
            SysParentescoCollection coll = new SysParentescoCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Пример #2
0
        public SysParentescoCollection FetchAll()
        {
            SysParentescoCollection coll = new SysParentescoCollection();
            Query qry = new Query(SysParentesco.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Пример #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int id = Convert.ToInt32(Request.QueryString["id"]);
                DalSic.SysPaciente pac = new DalSic.SysPaciente(id);

                lblApellido.Text         = pac.Apellido;
                lblNombre.Text           = pac.Nombre;
                lblDocumento.Text        = Convert.ToString(pac.NumeroDocumento);
                hlParentesco.NavigateUrl = string.Format("ParentescoEdit.aspx?id={0}", pac.IdPaciente);

                SysParentescoCollection p = new DalSic.SysParentescoCollection().Where("idPaciente", pac.IdPaciente);
                gvParentesco.DataSource = p.OrderByAsc("TipoParentesco").Load();
                gvParentesco.DataBind();
            }
        }
Пример #4
0
        public SysParentescoCollection FetchByID(object IdParentesco)
        {
            SysParentescoCollection coll = new SysParentescoCollection().Where("idParentesco", IdParentesco).Load();

            return(coll);
        }