Exemple #1
0
        public void m_mthEndPrint(object p_objPrintArg)
        {
            if (m_blnIsFromDataSource == false || m_objPatient.m_StrEMRInPatientID == "")
            {
                return;
            }

            ArrayList arlRecordType = new ArrayList();
            ArrayList arlOpenDate   = new ArrayList();

            m_intRowCount         = 0;
            m_intCurrentPageIndex = 1;
            m_intPrintedCounts    = 0;
            //如果打印成功,查找有无需要更新的时间,如果有,更新时间。
            if (!((PrintEventArgs)p_objPrintArg).Cancel && m_blnIsFirstPrint != null)
            {
                int intUpdateIndex = -1;//若没有任何记录

                if (m_blnIsFirstPrint)
                {
                    //更新记录,只需使用新的首次打印时间作为有效的输入参数。


                    //存放记录类型
                    arlRecordType.Add(m_objPrintMainInfo.m_intFlag);
                    //存放记录的OpenDate
                    arlOpenDate.Add(m_objPrintMainInfo.m_objBaseInfo.m_dtmOpenDate);
                }
            }

            clsRecordsDomain m_objServ = new clsRecordsDomain(enmRecordsType.EMR_OXTIntravenousDrip);

            m_objServ.m_lngUpdateFirstPrintDate(m_objPatient.m_StrEMRInPatientID, m_objPatient.m_DtmSelectedInDate.ToString("yyyy-MM-dd HH:mm:ss"), (int[])arlRecordType.ToArray(typeof(int)), (DateTime[])arlOpenDate.ToArray(typeof(DateTime)), m_dtmFirstPrintDat);
        }