예제 #1
0
        /// <summary>
        /// 设置打印内容。
        /// </summary>
        /// <param name="p_objTransDataArr"></param>
        /// <param name="p_dtmFirstPrintDate"></param>
        private void m_mthSetPrintContent(clsTransDataInfo[] p_objTransDataArr,
                                          DateTime[] p_dtmFirstPrintDate)
        {
            int intBlankCount = 0;

            if (p_objTransDataArr == null || p_dtmFirstPrintDate == null || p_objTransDataArr.Length != p_dtmFirstPrintDate.Length)
            {
                MDIParent.ShowInformationMessageBox("打印数据有误!");
                return;
            }

            //根据不同的表单类型,获取对应的clsDiseaseTrackInfo
            clsDiseaseTrackInfo objTrackInfo = null;

            m_objPrintDataArr = new clsPrintData_GeneralNurseRecord[p_objTransDataArr.Length];
            System.Data.DataTable dtbBlankRecord = null;
            new clsDiseaseTrackAddBlankDomain().m_lngGetBlankRecordContent(m_objPrintInfo.m_strInPatentID, m_objPrintInfo.m_dtmInPatientDate, out dtbBlankRecord);
            for (int i = 0; i < p_objTransDataArr.Length; i++)
            {
                intBlankCount = 0;
                objTrackInfo  = new clsGeneralNurseRecordInfo();

                //设置clsDiseaseTrackInfo的内容
                objTrackInfo.m_ObjRecordContent = p_objTransDataArr[i].m_objRecordContent;

                m_objPrintDataArr[i] = new clsPrintData_GeneralNurseRecord();
                //根据 clsDiseaseTrackInfo 获得的文本和Xml
                m_objPrintDataArr[i].m_strCreateDate = objTrackInfo.m_ObjRecordContent.m_dtmCreateDate.ToString();
                m_objPrintDataArr[i].m_strContent    = objTrackInfo.m_strGetTrackText();
                m_objPrintDataArr[i].m_strContentXml = objTrackInfo.m_strGetTrackXml();

                string strSignText = objTrackInfo.m_strGetSignText();

                m_objPrintDataArr[i].m_strSign = strSignText;

                m_objPrintDataArr[i].m_dtmFirstPrintDate = p_dtmFirstPrintDate[i];
                //设置分页标志
                m_objPrintDataArr[i].m_strPagiNation = objTrackInfo.m_ObjRecordContent.m_StrPagination.ToString();
                if (dtbBlankRecord != null && dtbBlankRecord.Rows.Count > 0)
                {
                    foreach (System.Data.DataRow drtAdd in dtbBlankRecord.Rows)
                    {
                        if (DateTime.Parse(drtAdd[2].ToString()).ToString("yyyy-MM-dd HH:mm:ss") == objTrackInfo.m_ObjRecordContent.m_dtmOpenDate.ToString("yyyy-MM-dd HH:mm:ss"))
                        {
                            int intBlankLine = Int32.Parse(drtAdd[3].ToString());
                            intBlankCount = intBlankLine;
                            m_objPrintDataArr[i].m_intBlankCount = intBlankLine;
                            for (int j2 = 0; j2 < intBlankLine; j2++)
                            {
                                m_objPrintDataArr[i].m_strContent = "\n" + m_objPrintDataArr[i].m_strContent;
                            }
                            break;
                        }
                    }
                }
                m_arlBlockCount.Add(intBlankCount);                //保存每条记录实际空行数量
            }
        }
예제 #2
0
        /// <summary>
        /// 获取当前的特殊护理记录信息
        /// </summary>
        /// <returns></returns>
        public override clsDiseaseTrackInfo m_objGetDiseaseTrackInfo()
        {
            clsGeneralNurseRecordInfo objTrackInfo = new clsGeneralNurseRecordInfo();

            objTrackInfo.m_ObjRecordContent = m_objCurrentRecordContent;            //m_objGetContentFromGUI();
            objTrackInfo.m_DtmRecordTime    = m_dtpCreateDate.Value;
//			objTrackInfo.m_StrTitle ="一般护理记录";

            //设置m_dtmRecordTime
            if (objTrackInfo.m_ObjRecordContent != null)
            {
//				m_txtRecordTitle.Text=((clsGeneralNurseRecordRecordContent)m_objCurrentRecordContent).m_strRecordTitle;//objTrackInfo.m_StrTitle;
                m_dtpCreateDate.Value = objTrackInfo.m_ObjRecordContent.m_dtmCreateDate;
            }
            return(objTrackInfo);
        }