/// <summary>
 /// 从数据库初始化打印内容。如果没有记录,打印空报表。(当从数据库读取时要调用.)
 /// </summary>
 public void m_mthInitPrintContent()
 {
     m_blnWantInit = false;//
     if (m_objPrintInfo == null)
     {
         clsPublicFunction.ShowInformationMessageBox("调用m_mthInitPrintContent之前请首先调用m_mthSetPrintInfo函数");
         return;
     }
     if (m_objPrintInfo.m_strInPatentID == "" || m_objPrintInfo.m_dtmOpenDate == DateTime.MinValue)
     {
         m_objRecordContent = null;
     }
     else
     {
         m_objRecordsDomain = new clsDiseaseTrackDomain(enmDiseaseTrackType.FuqiangOperationyes_xj);
         clsTrackRecordContent objContent = new clsTrackRecordContent();
         long lngRes = m_objRecordsDomain.m_lngGetRecordContent(m_objPrintInfo.m_strInPatentID, m_objPrintInfo.m_dtmInPatientDate.ToString("yyyy-MM-dd HH:mm:ss"), m_objPrintInfo.m_dtmOpenDate.ToString("yyyy-MM-dd HH:mm:ss"), out objContent);
         if (lngRes <= 0)
         {
             return;
         }
         m_objRecordContent = (clsFuqiangOperationyesContent_xj)objContent;
     }
     //if (m_objRecordContent != null)
     //    m_objRecordContent.m_dtmOutHospitalDate = m_dtmOutDate;
     //设置表单内容到打印中
     m_objPrintInfo.m_objRecordContent = m_objRecordContent;
     m_mthSetPrintValue();//无论有否打印数据,即使在打印空白表时,此行也必须执行.
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 打印 1 初始化打印内容
        /// 打印从数据库读取得内容
        /// </summary>
        public void m_mthInitPrintContent()
        {
            this.m_blnWantInit = false;
            if (this.m_objPrintInfo == null)
            {
                clsPublicFunction.ShowInformationMessageBox("在执行m_mthInitPrintContent之前请先执行m_mthSetPrintInfo函数");
                return;
            }

            clsDiseaseTrackDomain m_objRecordsDomain = new clsDiseaseTrackDomain(enmDiseaseTrackType.EMR_VaginalExamination);

            //if (!string.IsNullOrEmpty(this.m_objPrintInfo.m_strInPatentID) && this.m_objPrintInfo.m_dtmOpenDate != DateTime.MinValue)
            if (!string.IsNullOrEmpty(this.m_objPrintInfo.m_strInPatentID))
            {
                clsTrackRecordContent objContent = new clsTrackRecordContent();
                //从数据库读取打印所需数据
                long lngRes = m_objRecordsDomain.m_lngGetRecordContent(this.m_objPrintInfo.m_strInPatentID, this.m_objPrintInfo.m_dtmInPatientDate.ToString("yyyy-MM-dd HH:mm:ss"), this.m_objPrintInfo.m_dtmOpenDate.ToString("yyyy-MM-dd HH:mm:ss"), out objContent);

                if (lngRes <= 0)
                {
                    return;
                }
                this.m_objPrintInfo.m_objRecordContent = objContent as clsEMR_VaginalExaminationValue;
            }
            //m_objRecordsDomain = null;
            //设置表单内容到打印中
            this.m_mthSetPrintContent(this.m_objPrintInfo.m_objRecordContent, this.m_objPrintInfo.m_dtmFirstPrintDate);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 从数据库初始化打印内容。如果没有记录,打印空报表。(当从数据库读取时要调用.)
 /// </summary>
 public void m_mthInitPrintContent()
 {
     m_blnWantInit = false;//
     if (m_objPrintInfo == null)
     {
         clsPublicFunction.ShowInformationMessageBox("调用m_mthInitPrintContent之前请首先调用m_mthSetPrintInfo函数");
         return;
     }
     if (m_objPrintInfo.m_strInPatentID == "" || m_objPrintInfo.m_dtmOpenDate == DateTime.MinValue)
     {
         m_objRecordContent = null;
     }
     else
     {
         //m_objRecordsDomain = new clsDiseaseTrackDomain(new com.digitalwave.DiseaseTrackService.clsDeathCaseDiscussService());
         m_objRecordsDomain = new clsDiseaseTrackDomain(enmDiseaseTrackType.DeathCaseDiscuss);
         clsTrackRecordContent objContent = new clsTrackRecordContent();
         long lngRes = m_objRecordsDomain.m_lngGetRecordContent(m_objPrintInfo.m_strInPatentID, m_objPrintInfo.m_dtmInPatientDate.ToString("yyyy-MM-dd HH:mm:ss"), m_objPrintInfo.m_dtmOpenDate.ToString("yyyy-MM-dd HH:mm:ss"), out objContent);
         if (lngRes <= 0)
         {
             return;
         }
         m_objRecordContent = (clsDeadCaseDiscussRecord_VO)objContent;
     }
     //设置表单内容到打印中
     m_objPrintInfo.m_objRecordContent = m_objRecordContent;
     m_mthSetPrintValue();//无论有否打印数据,即使在打印空白表时,此行也必须执行.
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 结束打印
 /// </summary>
 /// <param name="p_objPrintArg"></param>
 public void m_mthEndPrint(object p_objPrintArg)
 {
     this.m_mthEndPrintSub((PrintEventArgs)p_objPrintArg);
     if (!this.m_blnIsFromDataSource || string.IsNullOrEmpty(this.m_objPrintInfo.m_strInPatentID))
     {
         return;
     }
     //如果打印成功,查找有无需要更新的时间,如果有,更新时间。
     if (!((PrintEventArgs)p_objPrintArg).Cancel && this.m_objPrintInfo.m_blnIsFirstPrint)
     {
         clsDiseaseTrackDomain m_objRecordsDomain = new clsDiseaseTrackDomain(enmDiseaseTrackType.EMR_VaginalExamination);
         m_objRecordsDomain.m_lngUpdateFirstPrintDate(this.m_objPrintInfo.m_strInPatentID,
                                                      this.m_objPrintInfo.m_dtmInPatientDate.ToString("yyyy-MM-dd HH:mm:ss"),
                                                      this.m_objPrintInfo.m_dtmOpenDate.ToString("yyyy-MM-dd HH:mm:ss"),
                                                      this.m_objPrintInfo.m_dtmFirstPrintDate);
     }
 }