// 删除记录。
        public long m_lngDeleteRecord(clsAYQBabyAssessmentContent_EspRecord p_objRecordContent, out clsPreModifyInfo p_objModifyInfo)
        {
            //参数判断

            clsAYQBabyAssessmenEspRecordService objServ =
                (clsAYQBabyAssessmenEspRecordService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsAYQBabyAssessmenEspRecordService));

            long m_lngRes = 0;

            try
            {
                m_lngRes = objServ.m_lngDeleteRecord(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_objRecordContent, out p_objModifyInfo);
            }
            finally
            {
                //objServ.Dispose();
            }
            return(m_lngRes);
        }
Esempio n. 2
0
        // 设置打印内容。
        private void m_mthSetPrintContent(clsAYQBabyAssessmentContent_EspRecord p_objContent, clsAYQBabyAssessmentContent[] p_objCircsContentArr, DateTime p_dtmFirstPrintDate)
        {
            m_objPrintLineContext = new com.digitalwave.Utility.Controls.clsPrintContext(
                new com.digitalwave.Utility.Controls.clsPrintLineBase[] {
                new clsPrintRecordHeader(),
                new clsPrintCircsRecordContent(),
                new clsPrintEspRecordContent()
            });
            m_objPrintLineContext.m_ObjPrintSign = new com.digitalwave.Utility.Controls.clsPrintRecordSign();

            object[] objData = new Object[3];
            objData[0] = p_objContent;
            objData[1] = m_objPrintInfo;
            objData[2] = p_objCircsContentArr;

            //设置打印信息,就是Set Value进去
            m_objPrintLineContext.m_ObjPrintLineInfo = objData;
            //将数据库拿出来的FirstPrintDate赋给每个打印行里面的m_DtmFirstPrintTime,在父类里做了
            m_objPrintLineContext.m_DtmFirstPrintTime = p_dtmFirstPrintDate;
        }
        // 作废重做记录。
        public long m_lngReAddNewRecord(clsInPatientCaseHistoryContent m_objDelRecord,
                                        clsAYQBabyAssessmentContent_EspRecord m_objAddNewRecord,
                                        out clsPreModifyInfo p_objModifyInfo)
        {
            //参数判断
            p_objModifyInfo = null;

            clsAYQBabyAssessmenEspRecordService objServ =
                (clsAYQBabyAssessmenEspRecordService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsAYQBabyAssessmenEspRecordService));

            long m_lngRes = 0;

            try
            {
                m_lngRes = objServ.m_lngReAddNewRecord(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, m_objDelRecord, m_objAddNewRecord, out p_objModifyInfo);
            }
            finally
            {
                //objServ.Dispose();
            }
            return(m_lngRes);
        }
        // 修改记录。
        public long m_lngModifyRecord(clsAYQBabyAssessmentContent_EspRecord p_objOldRecordContent,
                                      clsAYQBabyAssessmentContent_EspRecord p_objNewRecordContent, clsPictureBoxValue[] p_objPicValueArr,
                                      string p_strDiseaseID,
                                      out clsPreModifyInfo p_objModifyInfo)
        {
            //参数判断
            p_objModifyInfo = null;

            clsAYQBabyAssessmenEspRecordService objServ =
                (clsAYQBabyAssessmenEspRecordService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsAYQBabyAssessmenEspRecordService));

            long m_lngRes = 0;

            try
            {
                m_lngRes = objServ.m_lngModifyRecord(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_objOldRecordContent, p_objNewRecordContent, p_objPicValueArr, p_strDiseaseID, clsSystemContext.s_ObjCurrentContext.m_ObjDepartment.m_StrDeptID, out p_objModifyInfo);
            }
            finally
            {
                //objServ.Dispose();
            }
            return(m_lngRes);
        }
        // 获取指定已经被删除记录的内容。
        public long m_lngGetDeleteRecordContent(string p_strInPatientID,
                                                string p_strInPatientDate,
                                                string p_strOpenRecordTime,
                                                out clsAYQBabyAssessmentContent_EspRecord p_objRecordContent)
        {
            p_objRecordContent = null;
            iCareData.clsBaseCaseHistoryInfo objRecordContent = null;

            clsAYQBabyAssessmenEspRecordService objServ =
                (clsAYQBabyAssessmenEspRecordService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsAYQBabyAssessmenEspRecordService));

            long m_lngRes = 0;

            try
            {
                m_lngRes           = objServ.m_lngGetDeleteRecordContent(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, p_strInPatientDate, p_strOpenRecordTime, out objRecordContent);
                p_objRecordContent = (clsAYQBabyAssessmentContent_EspRecord)objRecordContent;
            }
            finally
            {
                //objServ.Dispose();
            }
            return(m_lngRes);
        }