protected void Page_Load(object sender, EventArgs e) { //if(!IsPostBack) { if (Session["userid"] != null) { HickChatEngine ce = new HickChatEngine(); uid.Value = Convert.ToString(Session["userid"]); uname.Value = Convert.ToString(Session["username"]); long userid = Convert.ToInt64(Session["userid"]); string usertype = Convert.ToString(Session["UserType"]); //PhyName = Convert.ToString(Session["username"]); PhyName = Convert.ToString(Session["name"]); List<ConsentedUsers> list = ce.GetConsentedUsers(userid, 0, 1, 200, usertype); gdconditions.DataSource = list; gdconditions.DataBind(); } } }
private void UpdateFlag(string refpatid, string patid, string fileExt) { HickChatEngine sc = new HickChatEngine(); long patientId = 0; long.TryParse(patid, out patientId); long refpatientId = 0; long.TryParse(refpatid, out refpatientId); if (patientId > 0) { sc.UpdateConsented(patientId, fileExt); } if (refpatientId > 0) { UpdateConsentedInBridge(refpatientId); //to update isconsented in bridge } }