예제 #1
0
        //获取分娩记录
        public clsBornRecordManager[] m_GetPatientBornScheduleRecord(string p_InPatientID, DateTime p_dtmInPatientDate, DateTime p_dtmOpenDate)      //,string lngGetXMLTable)
        {
            //把病人信息xml转换为clsBornRecordManager类
            clsBornRecordManager[] objBornRecordManagerAr = null;

            clsBornScheduleService m_objBornScheduleService =
                (clsBornScheduleService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsBornScheduleService));

            try
            {
                DataTable dbResult = new DataTable();
                long      m_lngRes = m_objBornScheduleService.m_GetPatientBornScheduleRecord(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_InPatientID, p_dtmInPatientDate, p_dtmOpenDate, out dbResult);//
                if (m_lngRes > 0)
                {
                    if (dbResult != null & dbResult.Rows.Count > 0)
                    {
                        objBornRecordManagerAr = new clsBornRecordManager[dbResult.Rows.Count];
                        for (int j = 0; j < dbResult.Rows.Count; j++)
                        {
                            objBornRecordManagerAr[j] = new clsBornRecordManager();
                            objBornRecordManagerAr[j].m_strINPATIENTID    = dbResult.Rows[0]["INPATIENTID"].ToString();                    //病人ID
                            objBornRecordManagerAr[j].m_dtmINPATIENTDATE  = DateTime.Parse(dbResult.Rows[0]["INPATIENTDATE"].ToString());  //入院时间
                            objBornRecordManagerAr[j].m_dtmOPENDATE       = DateTime.Parse(dbResult.Rows[0]["OPENDATE"].ToString());       //打开时间
                            objBornRecordManagerAr[j].m_dtmCHILDBIRTHDATE = DateTime.Parse(dbResult.Rows[0]["CHILDBIRTHDATE"].ToString()); //分娩日期
                            objBornRecordManagerAr[j].m_dtmCREATEID       = dbResult.Rows[0]["CREATEID"].ToString();                       //创建用户ID
                            objBornRecordManagerAr[j].m_dtmMODIFYDATE     = DateTime.Parse(dbResult.Rows[0]["MODIFYDATE"].ToString());     //创建用户ID

                            objBornRecordManagerAr[j].m_strFIRSTPOINT   = dbResult.Rows[0]["FIRSTPOINT"].ToString();                       //第一点
                            objBornRecordManagerAr[j].m_strSECONDPOINT  = dbResult.Rows[0]["SECONDPOINT"].ToString();                      //第二点
                            objBornRecordManagerAr[j].m_strTHREEPOINT   = dbResult.Rows[0]["THREEPOINT"].ToString();                       //第三点
                            objBornRecordManagerAr[j].m_strFOUTPOINT    = dbResult.Rows[0]["FOUTPOINT"].ToString();                        //第四点
                            objBornRecordManagerAr[j].m_strPREGNANCYNUM = dbResult.Rows[0]["PREGNANCYNUM"].ToString();                     //孕产次
                            objBornRecordManagerAr[j].m_dtmFORECASTDATE = DateTime.Parse(dbResult.Rows[0]["FORECASTDATE"].ToString());     //预产期



                            for (int i = 0; i < dbResult.Rows.Count; i++)
                            {
                                clsBornScheduleEveryDay objBornScheduleEveryDay = new clsBornScheduleEveryDay(DateTime.Parse(dbResult.Rows[i]["OPENDATE"].ToString()));          //打开时间作为记录时间;

                                objBornScheduleEveryDay.m_arlBornScheduleEveryHourCol = m_arlChangeXmlToBornScheduleEveryHourCoL(dbResult.Rows[i]["VENTERPOINTXML"].ToString()); //宫口点转化为每小时画点集类
                                objBornScheduleEveryDay.m_arlCheckTimeCol             = m_arlChangeXmlToCheckTimeCoL(dbResult.Rows[i]["CHECKVENTERTIMEXML"].ToString());         //把检查时间集转化为clsCheckTimeCol集合
                                objBornScheduleEveryDay.m_arlBloodPressureCol         = m_arlChangeXmlToBloodPressureCoL(dbResult.Rows[i]["BLOODPRESSUREXML"].ToString());       //把检查时间集转化为clsCheckTimeCol集合
                                objBornScheduleEveryDay.m_arlEmbryoHeartCol           = m_arlChangeXmlToEmbryoHeartCoL(dbResult.Rows[i]["EMBRYOHEARTXML"].ToString());           //把胎心集转化为clsEmbryoHeartCol集合
                                objBornScheduleEveryDay.m_arlVenterScaleExtendCol     = m_arlChangeXmlToVenterScaleExtendCoL(dbResult.Rows[i]["VENTERSCALEXML"].ToString());     //把宫缩集转化为clsVenterScaleExtendCol集合
                                objBornScheduleEveryDay.m_arlExceptionNoteCol         = m_arlChangeXmlToExceptionNoteCol(dbResult.Rows[i]["EXCEPTIONNOTEXML"].ToString());       //把异常情况集转化为clsExceptionNoteCol集合
                                objBornScheduleEveryDay.m_arlDealNoteCol = m_arlChangeXmlToDealNoteCoL(dbResult.Rows[i]["DEALNOTEXML"].ToString());                              //把处理记录集转化为clsDealNoteCol集合
                                objBornScheduleEveryDay.m_arlSignNameCol = m_arlChangeXmlToSignNameCoL(dbResult.Rows[i]["SIGNXML"].ToString());                                  //把签名集转化为clsSignNameCol集合
                                objBornScheduleEveryDay.m_dtmRecordDate  = DateTime.Parse(dbResult.Rows[i]["OPENDATE"].ToString());                                              //每天的记录日期

                                objBornRecordManagerAr[j].m_arlBornScheduleEveryDay.Add(objBornScheduleEveryDay);
                            }
                        }
                    }
                }
            }
            finally
            {
                //m_objBornScheduleService.Dispose();
            }
            return(objBornRecordManagerAr);
        }
예제 #2
0
 public void  m_mthSetPrintInfo(clsPatient p_objPatient, clsBornRecordManager p_objBornRecordManager, clsBornScheduleEveryDay p_objBornScheduleEveryDay)
 {
 }
예제 #3
0
        //clsBornRecordManager  change into clsBornScheduleRecordInfo
        public clsBornScheduleRecordInfo m_objChangeBornScheduleToXml(clsBornRecordManager p_objBornRecordManager, int p_intPageIndex, string p_strINPATIENTID, DateTime p_dtINPATIENTDATE, DateTime p_dtOPENDATE, string p_strCREATEID, DateTime p_dtCHILDBIRTHDATE, DateTime p_dtFORECASTDATE, string p_strPREGNANCYNUM)
        {
            try
            {
                if (p_objBornRecordManager == null)
                {
                    return(null);
                }

                clsBornScheduleRecordInfo m_objBornScheduleRecordInfo = new clsBornScheduleRecordInfo();
                m_objBornScheduleRecordInfo.m_strINPATIENTID    = p_strINPATIENTID;
                m_objBornScheduleRecordInfo.m_dtmINPATIENTDATE  = p_dtINPATIENTDATE;
                m_objBornScheduleRecordInfo.m_dtmOPENDATE       = p_dtOPENDATE;
                m_objBornScheduleRecordInfo.m_strCREATEID       = p_strCREATEID;
                m_objBornScheduleRecordInfo.m_strFIRSTPOINT     = p_objBornRecordManager.m_strFIRSTPOINT;
                m_objBornScheduleRecordInfo.m_strSECONDPOINT    = p_objBornRecordManager.m_strSECONDPOINT;
                m_objBornScheduleRecordInfo.m_strTHREEPOINT     = p_objBornRecordManager.m_strTHREEPOINT;
                m_objBornScheduleRecordInfo.m_strFOUTPOINT      = p_objBornRecordManager.m_strFOUTPOINT;
                m_objBornScheduleRecordInfo.m_dtmMODIFYDATE     = System.DateTime.Now;
                m_objBornScheduleRecordInfo.m_dtmCHILDBIRTHDATE = p_dtCHILDBIRTHDATE;
                m_objBornScheduleRecordInfo.m_dtmFORECASTDATE   = p_dtFORECASTDATE;
                m_objBornScheduleRecordInfo.m_strPREGNANCYNUM   = p_strPREGNANCYNUM;

                clsBornScheduleEveryDay objBornScheduleEveryDay = (clsBornScheduleEveryDay)p_objBornRecordManager.m_arlBornScheduleEveryDay[p_intPageIndex];
                if (objBornScheduleEveryDay != null)
                {
                    clsBornScheduleEveryHourCol[] objclsBornScheduleEveryHourCol = new clsBornScheduleEveryHourCol[objBornScheduleEveryDay.m_arlBornScheduleEveryHourCol.Count];
                    for (int i = 0; i < objBornScheduleEveryDay.m_arlBornScheduleEveryHourCol.Count; i++)
                    {
                        objclsBornScheduleEveryHourCol[i] = (clsBornScheduleEveryHourCol)objBornScheduleEveryDay.m_arlBornScheduleEveryHourCol[i];
                    }


                    m_objBornScheduleRecordInfo.m_strVENTERPOINTXML = m_strMakeVenterPointXml(objclsBornScheduleEveryHourCol);

                    clsCheckTimeCol[] objCheckTimeCol = new clsCheckTimeCol[objBornScheduleEveryDay.m_arlCheckTimeCol.Count];
                    for (int i = 0; i < objBornScheduleEveryDay.m_arlCheckTimeCol.Count; i++)
                    {
                        objCheckTimeCol[i] = (clsCheckTimeCol)objBornScheduleEveryDay.m_arlCheckTimeCol[i];
                    }
                    m_objBornScheduleRecordInfo.m_strCHECKVENTERTIMEXML = m_strMakeCheckVenterTimeXML(objCheckTimeCol);

                    clsBloodPressureCol[] objBloodPressureCol = new clsBloodPressureCol[objBornScheduleEveryDay.m_arlBloodPressureCol.Count];
                    for (int i = 0; i < objBornScheduleEveryDay.m_arlBloodPressureCol.Count; i++)
                    {
                        objBloodPressureCol[i] = (clsBloodPressureCol)objBornScheduleEveryDay.m_arlBloodPressureCol[i];
                    }
                    m_objBornScheduleRecordInfo.m_strBLOODPRESSUREXML = m_strMakeBloodPressureXML(objBloodPressureCol);

                    clsEmbryoHeartCol[] objEmbryoHeartCol = new clsEmbryoHeartCol[objBornScheduleEveryDay.m_arlEmbryoHeartCol.Count];
                    for (int i = 0; i < objBornScheduleEveryDay.m_arlEmbryoHeartCol.Count; i++)
                    {
                        objEmbryoHeartCol[i] = (clsEmbryoHeartCol)objBornScheduleEveryDay.m_arlEmbryoHeartCol[i];
                    }
                    m_objBornScheduleRecordInfo.m_strEMBRYOHEARTXML = m_strMakeEmbryoHeartXML(objEmbryoHeartCol);

                    clsVenterScaleExtendCol[] objVenterScaleExtendCol = new clsVenterScaleExtendCol[objBornScheduleEveryDay.m_arlVenterScaleExtendCol.Count];
                    for (int i = 0; i < objBornScheduleEveryDay.m_arlVenterScaleExtendCol.Count; i++)
                    {
                        objVenterScaleExtendCol[i] = (clsVenterScaleExtendCol)objBornScheduleEveryDay.m_arlVenterScaleExtendCol[i];
                    }
                    m_objBornScheduleRecordInfo.m_strVENTERSCALEXML = m_strMakeVenterScaleExtendXML(objVenterScaleExtendCol);

                    clsExceptionNoteCol[] objExceptionNoteCol = new clsExceptionNoteCol[objBornScheduleEveryDay.m_arlExceptionNoteCol.Count];
                    for (int i = 0; i < objBornScheduleEveryDay.m_arlExceptionNoteCol.Count; i++)
                    {
                        objExceptionNoteCol[i] = (clsExceptionNoteCol)objBornScheduleEveryDay.m_arlExceptionNoteCol[i];
                    }
                    m_objBornScheduleRecordInfo.m_strEXCEPTIONNOTEXML = m_strMakeExceptionNoteXML(objExceptionNoteCol);

                    clsDealNoteCol[] objDealNoteCol = new clsDealNoteCol[objBornScheduleEveryDay.m_arlDealNoteCol.Count];
                    for (int i = 0; i < objBornScheduleEveryDay.m_arlDealNoteCol.Count; i++)
                    {
                        objDealNoteCol[i] = (clsDealNoteCol)objBornScheduleEveryDay.m_arlDealNoteCol[i];
                    }
                    m_objBornScheduleRecordInfo.m_strDEALNOTEXML = m_strMakeDealNoteXML(objDealNoteCol);

                    clsSignNameCol[] objSignNameCol = new clsSignNameCol[objBornScheduleEveryDay.m_arlSignNameCol.Count];
                    for (int i = 0; i < objBornScheduleEveryDay.m_arlSignNameCol.Count; i++)
                    {
                        objSignNameCol[i] = (clsSignNameCol)objBornScheduleEveryDay.m_arlSignNameCol[i];
                    }
                    m_objBornScheduleRecordInfo.m_strSIGNXML = m_strMakeSignNameXML(objSignNameCol);

                    return(m_objBornScheduleRecordInfo);
                }
                else
                {
                    return(null);
                }
            }
            catch (Exception ex)
            {
                ex.ToString();
                return(null);
            }
        }