Example #1
0
        public frmMiniBooldSugarChk()
        {
            //
            // Windows 窗体设计器支持所必需的
            //
            InitializeComponent();

            new clsSortTool().m_mthSetListViewSortable(m_lsvResult);
            m_objDomain = new clsMiniBooldSugarChkDomin();
            m_mthInit();
        }
        /// <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_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_mthSetPrintValue();//无论有否打印数据,即使在打印空白表时,此行也必须执行.
        }