示例#1
0
        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);
        }
示例#2
0
        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("&nbsp;", "").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);
        }
示例#3
0
 protected bool Save()
 {
     try
     {
         CMSCommentsList objCMSCommentsList = ReadScr();
         if (objCMSCommentsList != null)
         {
             CMSCommentsBL objCMSCommentsBL = new CMSCommentsBL();
             objCMSCommentsBL.Manage(objCMSCommentsList);
             Inquiry();
         }
     }
     catch (Exception objKPIError)
     {
         ShowMsg(MsgType.Error, FrwkMsg.OP_FAIL, objKPIError);
     }
     return(true);
 }