Exemplo n.º 1
0
        /// <summary>
        /// 从数据库初始化打印内容。如果没有记录,打印空报表。(当从数据库读取时要调用.)
        /// </summary>
        public void m_mthInitPrintContent()
        {
            if (m_objPatient == null)
            {
                //				clsPublicFunction.ShowInformationMessageBox("调用m_mthInitPrintContent之前请首先调用m_mthSetPrintInfo函数");
                return;
            }
            if (m_objPatient.m_StrInPatientID == "" || m_objPatient.m_DtmSelectedInDate == DateTime.MinValue)
            {
                m_objValues = null;
            }
            else
            {
                m_objRecordsDomain = new clsRecordsDomain(enmRecordsType.EMR_IntBloodSugarWatch);

                long lngRes = m_objRecordsDomain.m_lngGetPrintInfo(m_strRegisterId, 1, out m_objPrintInfo.m_objTransDataArr, out m_objPrintInfo.m_dtmFirstPrintDateArr, out m_objPrintInfo.m_blnIsFirstPrintArr);
                if (lngRes <= 0)
                {
                    return;
                }

                //clsEMR_intbloodsugarwatchMainServ m_objServ = new clsEMR_intbloodsugarwatchMainServ();
                //long lngRes = m_objServ.m_lngGetTransDataInfoArrWithServ(m_objPatient.m_StrInPatientID,1, out m_objValues);
                ////m_objServ.Dispose();
                //if (lngRes <= 0 || m_objValues == null)
                //    return;
                //m_objDomain = new clsMiniBooldSugarChkDomin();
                //long lngRes = m_objDomain.m_lngGetRecoedByInPatient(m_objPatient.m_StrInPatientID, m_objPatient.m_DtmSelectedInDate, out m_objValues);
                //if (lngRes <= 0 || m_objValues == null)
                //    return;
            }
            m_mthSetPrintContent(m_objPrintInfo.m_objTransDataArr, m_objPrintInfo.m_dtmFirstPrintDateArr);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 从数据库初始化打印内容。如果没有记录,打印空报表。(当从数据库读取时要调用.)
        /// </summary>
        public void m_mthInitPrintContent()
        {
            if (m_objPrintInfo == null)
            {
                MDIParent.ShowInformationMessageBox("调用m_mthInitPrintContent之前请首先调用m_mthSetPrintInfo函数");
                return;
            }
            if (m_objPrintInfo.m_strInPatentID == "")
            {
                return;
            }
            m_objRecordsDomain = new clsRecordsDomain(enmRecordsType.GeneralNurseRecord);

            long lngRes = m_objRecordsDomain.m_lngGetPrintInfo(m_objPrintInfo.m_strInPatentID, m_objPrintInfo.m_dtmInPatientDate.ToString("yyyy-MM-dd HH:mm:ss"), out m_objPrintInfo.m_objTransDataArr, out m_objPrintInfo.m_dtmFirstPrintDateArr, out m_objPrintInfo.m_blnIsFirstPrintArr);

            if (lngRes <= 0)
            {
                return;
            }

            //按记录时间(CreateDate)排序
            m_mthSortTransData(ref m_objPrintInfo.m_objTransDataArr);
            //设置表单内容到打印中
            m_mthSetPrintContent(m_objPrintInfo.m_objTransDataArr, m_objPrintInfo.m_dtmFirstPrintDateArr);
            m_objPrintInfo.m_objPrintDataArr = m_objPrintDataArr;
            m_blnWantInit = false;
        }