protected CMSCommentsList ReadScr() { CMSCommentsList objCMSCommentsList = null; try { objCMSCommentsList = new CMSCommentsList(); CMSComments objCMSComments = new CMSComments(); if (!String.IsNullOrEmpty(Request.QueryString.Get("JMChartID"))) { objCMSComments.RefID = KPIHlp.CVI64(Request.QueryString.Get("JMChartID")); if (!String.IsNullOrEmpty(Request.QueryString.Get("hdnJurisId"))) { objCMSComments.JurisID = KPIHlp.CVI32(Request.QueryString.Get("hdnJurisId")); } } if (objCMSComments.RefID.HasValue && objCMSComments.RefID.Value > 0) { usrMedCharting objusrMedCharting = (usrMedCharting)this.tabMedCharting.Tabs.FindTabFromKey("Chart").FindControl("usrMedCharting"); objCMSCommentsList = objusrMedCharting.ReadScr(ref objCMSComments); } } catch (Exception objKPIError) { ShowMsg(MsgType.Error, FrwkMsg.OP_FAIL, objKPIError); } return(objCMSCommentsList); }
public CMSCommentsList ReadScr(ref CMSComments objCMSComments) { CMSCommentsList objCMSCommentsList = null; try { String objText = KPIRadHuberActivityDetails.GetHtml(Telerik.Web.UI.EditorStripHtmlOptions.Comments); if (String.IsNullOrWhiteSpace(objText.Replace("\r", "").Replace("\n", "").Replace(" ", "").Replace("<p>", "").Replace("</p>", "").Trim())) { return(null); } if (KPIRadHuberActivityDetails.Content != "" && objCMSComments.RefID.HasValue && objCMSComments.RefID.Value > 0) { objCMSCommentsList = new CMSCommentsList(); if (!String.IsNullOrEmpty(((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnJurisId"))).Value) && KPIHlp.CVI32(hdnJurisId.Value) > 0) { JurisID = KPIHlp.CVI32(((HtmlInputHidden)(((BasePage)this.Page).FindControl("hdnJurisId"))).Value); } objCMSComments.CMSCommentsID = KPICounter.GetCounterID(State.sJurisID); objCMSComments.RefID = objCMSComments.RefID.Value; if (JurisID != null) { objCMSComments.JurisID = JurisID; } objCMSComments.RefType = (int)JMMChartingLogHistory.ChartingLogHistory; objCMSComments.IsActive = 1; objCMSComments.CommentDttm = System.DateTime.Now; objCMSComments.PFID = State.sPFID; objCMSComments.Comments = KPIRadHuberActivityDetails.GetHtml(Telerik.Web.UI.EditorStripHtmlOptions.Comments); KPIRadHuberActivityDetails.Content = ""; hdnHistory.Value = ""; objCMSCommentsList.Add(objCMSComments); } } catch (Exception objKPIError) { ((BasePage)this.Page).ShowMsg(MsgType.Error, FrwkMsg.OP_FAIL, objKPIError); } return(objCMSCommentsList); }
public void DetailInquiry(ref CMSComments objCMSComments) { try { if (KPIHlp.CVI64(Request.QueryString.Get("JMChartID")) != long.MinValue) { objCMSComments.RefID = KPIHlp.CVI64(Request.QueryString.Get("JMChartID")); if (!String.IsNullOrEmpty(Request.QueryString.Get("hdnJurisId"))) { objCMSComments.JurisID = KPIHlp.CVI32(Request.QueryString.Get("hdnJurisId")); } DataSet objDS = new DataSet(); objDS = new CMSCommentsBL().SelectActiveLog(ref objCMSComments); grdComments.DataSource = objDS; grdComments.DataBind(); } } catch { } }
public void Inquiry() { try { tabMedCharting.SelectedIndex = 1; CMSComments objCMSComments = new CMSComments(); if (!String.IsNullOrEmpty(Request.QueryString.Get("JMChartID"))) { objCMSComments.RefID = KPIHlp.CVI64(Request.QueryString.Get("JMChartID")); } if (objCMSComments.RefID.HasValue && objCMSComments.RefID.Value > 0) { usrMedChartingHistory objusrMedChartingHistory = (usrMedChartingHistory)this.tabMedCharting.Tabs.FindTabFromKey("ChartingLog").FindControl("usrMedChartingHistory"); objusrMedChartingHistory.DetailInquiry(ref objCMSComments); } } catch (Exception objKPIError) { ShowMsg(MsgType.Error, FrwkMsg.OP_FAIL, objKPIError); } }