Ejemplo n.º 1
0
 protected void GridViewFineGrain_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     GridViewFineGrain.PageIndex  = e.NewPageIndex;
     GridViewFineGrain.DataSource = ViewState["UpdatePanelFineGrain"];
     GridViewFineGrain.DataBind();
     UpdatePanelFineGrain.Update();
 }
Ejemplo n.º 2
0
        protected void Update_FineGrainModal()
        {
            long   recordID = Convert.ToInt64(ViewState["GridViewRecordsSelected"]);
            Record record   = recordBLL.GetRecord(recordID);

            modalLabelFineGrainRecordTitle.Text = record.title;

            if (record.status == 0)
            {
                LinkButtonStatusDisable.CssClass = ("btn disabled");
                LinkButtonStatusEnable.CssClass  = ("btn btn-success");
            }
            else if (record.status == 1)
            {
                LinkButtonStatusDisable.CssClass = ("btn btn-danger");
                LinkButtonStatusEnable.CssClass  = ("btn disabled");
            }

            string termAllowed = TextboxSearchFineGrainAllow.Text.Trim().ToLower();
            List <Classes.Entity.Therapist> therapistCurrent = patientBLL.GetCurrentTherapistsFineGrain(termAllowed, recordID);

            GridViewFineGrain.DataSource = therapistCurrent;
            GridViewFineGrain.DataBind();

            ViewState["UpdatePanelFineGrain"] = therapistCurrent;

            UpdatePanelFineGrain.Update();
        }
Ejemplo n.º 3
0
        protected void LinkButtonFineGrainAllow_Click(object sender, EventArgs e)
        {
            string termAllowed = TextboxSearchFineGrainAllow.Text.Trim().ToLower();
            List <Classes.Entity.Therapist> therapistsAllowed = patientBLL.GetCurrentTherapists(termAllowed);

            GridViewFineGrain.DataSource = therapistsAllowed;
            GridViewFineGrain.DataBind();

            UpdatePanelFineGrain.Update();
        }