コード例 #1
0
        /// <summary>
        /// 把选择时间记录内容重新整理为完全正确的内容。
        /// </summary>
        /// <param name="p_objRecordContent"></param>
        protected override void m_mthReAddNewRecord(clsTrackRecordContent p_objRecordContent)
        {
            //把选择时间记录内容重新整理为完全正确的内容,由子窗体重载实现。
            clsLargeConsultationContent objContent = (clsLargeConsultationContent)p_objRecordContent;

            //把表单值赋值到界面,由子窗体重载实现

            m_txtAddress.Text        = objContent.m_strAddress_Right;
            m_txtAttendee.Text       = objContent.m_strAttendeeName_Right;
            m_txtDiscussContent.Text = objContent.m_strDiscussContent_Right;

            //记录签名
            if (objContent.objSignerArr != null)
            {
                m_mthAddSignToListView(lsvSign, objContent.objSignerArr);
                m_mthAddSignToListView(lsvCompere, objContent.objSignerArr);
            }
        }
コード例 #2
0
        protected override void m_mthSetDeletedGUIFromContent(clsTrackRecordContent p_objContent)
        {
            if (p_objContent == null)
            {
                return;
            }
            clsLargeConsultationContent objContent = (clsLargeConsultationContent)p_objContent;

            //把表单值赋值到界面,由子窗体重载实现
            m_txtAddress.Text        = objContent.m_strAddress_Right;
            m_txtAttendee.Text       = objContent.m_strAttendeeName_Right;
            m_txtDiscussContent.Text = objContent.m_strDiscussContent_Right;

            //记录签名
            if (objContent.objSignerArr != null)
            {
                m_mthAddSignToListView(lsvSign, objContent.objSignerArr);
                m_mthAddSignToListView(lsvCompere, objContent.objSignerArr);
            }
        }
コード例 #3
0
        /// <summary>
        /// 把特殊记录的值显示到界面上。
        /// </summary>
        /// <param name="p_objContent"></param>
        protected override void m_mthSetGUIFromContent(clsTrackRecordContent p_objContent)
        {
            if (p_objContent == null)
            {
                return;
            }
            clsLargeConsultationContent objContent = (clsLargeConsultationContent)p_objContent;

            //把表单值赋值到界面,由子窗体重载实现
            m_txtAddress.m_mthSetNewText(objContent.m_strAddress, objContent.m_strAddressXML);
            m_txtAttendee.m_mthSetNewText(objContent.m_strAttendeeName, objContent.m_strAttendeeNameXml);
            m_txtDiscussContent.m_mthSetNewText(objContent.m_strDiscussContent, objContent.m_strDiscussContentXML);
            m_dtmCreatedDate      = objContent.m_dtmCreateDate;
            m_dtpCreateDate.Value = objContent.m_dtmRecordDate;
            #region 签名集合
            //记录签名
            if (objContent.objSignerArr != null)
            {
                m_mthAddSignToListView(lsvSign, objContent.objSignerArr);
                m_mthAddSignToListView(lsvCompere, objContent.objSignerArr);
            }
            #endregion 签名
        }
コード例 #4
0
        /// <summary>
        /// 从界面获取特殊记录的值。如果界面值出错,返回null。
        /// </summary>
        /// <returns></returns>
        protected override clsTrackRecordContent m_objGetContentFromGUI()
        {
            //界面参数校验
            int intSignCount = lsvSign.Items.Count;
            int intCompere   = lsvCompere.Items.Count;

            //int intAttend=lsvAttend.Items.Count;
            if (m_objCurrentPatient == null)
            {
                return(null);
            }
            if (intSignCount == 0)
            {
                clsPublicFunction.ShowInformationMessageBox("请至少一个记录员签名!");
                m_cmdEmployeeSign.Focus();
                return(null);
            }

            if (intCompere == 0)
            {
                clsPublicFunction.ShowInformationMessageBox("请主持人签名!");
                m_cmdCompere.Focus();
                return(null);
            }
            if (m_txtAttendee.Text.Trim() == string.Empty)
            {
                clsPublicFunction.ShowInformationMessageBox("请至少一个参加人员签名!");
                m_txtAttendee.Focus();
                return(null);
            }
            //从界面获取表单值
            clsLargeConsultationContent objContent = new clsLargeConsultationContent();

            //获取lsvsign签名
            //objContent.objSignerArr=new clsEmrSigns_VO[intSignCount+intCompere];
            strUserIDList   = "";
            strUserNameList = "";
            m_mthGetSignArr(new Control[] { lsvSign, lsvCompere }, ref objContent.objSignerArr, ref strUserIDList, ref strUserNameList);
            objContent.m_strRecordUserID = strUserIDList;
            objContent.m_strModifyUserID = strUserIDList;

            //设置Richtextbox的modifyuserID 和modifyuserName
            m_mthSetRichTextBoxAttribInControlWithIDandName(this);

            #region 是否可以无痕迹修改
            if (chkModifyWithoutMatk.Checked)
            {
                objContent.m_intMarkStatus = 0;
            }
            else
            {
                objContent.m_intMarkStatus = 1;
            }
            #endregion

            objContent.m_strAddress_Right = m_txtAddress.m_strGetRightText();
            objContent.m_strAddress       = m_txtAddress.Text;
            objContent.m_strAddressXML    = m_txtAddress.m_strGetXmlText();

            objContent.m_strDiscussContent_Right = m_txtDiscussContent.m_strGetRightText();
            objContent.m_strDiscussContent       = m_txtDiscussContent.Text;
            objContent.m_strDiscussContentXML    = m_txtDiscussContent.m_strGetXmlText();

            objContent.m_strAttendeeName_Right = m_txtAttendee.m_strGetRightText();
            objContent.m_strAttendeeName       = m_txtAttendee.Text;
            objContent.m_strAttendeeNameXml    = m_txtAttendee.m_strGetXmlText();

            return(objContent);
        }