Beispiel #1
0
        public clsPatientList[] m_objGetPatientListArr(iCareData.clsRecordSearch_SearchInfo p_objSearchInfo)
        {
            DataTable dtResult;

            clsRecordSearchService m_objService =
                (clsRecordSearchService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsRecordSearchService));

            long lngRes = 0;

            try
            {
                lngRes = m_objService.m_lngGetPatientList(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_objSearchInfo, out dtResult);
            }
            finally
            {
                //m_objService.Dispose();
            }
            if (lngRes <= 0 || dtResult.Rows.Count == 0)
            {
                return(null);
            }

            clsPatientList [] objPatientListArr = new clsPatientList[dtResult.Rows.Count];
            DataRow           objRow            = null;

            for (int i = 0; i < dtResult.Rows.Count; i++)
            {
                objRow = dtResult.Rows[i];
                clsPatientList objPatientList = new clsPatientList();
                objPatientList.m_strInPatientNO    = objRow["INPATIENTID"].ToString();
                objPatientList.m_strInPatientDate  = objRow["INPATIENTDATE"].ToString();
                objPatientList.m_strOpenDate       = objRow["OPENDATE"].ToString();
                objPatientList.m_strFirstName      = objRow["FIRSTNAME"].ToString();
                objPatientList.m_strSex            = objRow["SEX"].ToString();
                objPatientList.m_strAge            = objRow["AGE"].ToString();
                objPatientList.m_strCreateDate     = objRow["CREATEDATE"].ToString();
                objPatientList.m_strCreateUserID   = objRow["CREATEUSERID"].ToString();
                objPatientList.m_strCreateUserName = objRow["CREATEUSERNAME"].ToString();
                objPatientListArr[i] = objPatientList;
            }

            return(objPatientListArr);
        }
Beispiel #2
0
        public override iCareData.clsRecordSearch_SearchInfo m_objBuildSearchInfo(iCare.RecordSearch.clsRecordSearchDomain.clsFormInfo p_objFormInfo, System.Collections.IEnumerator p_objConditionStatusEnumerator)
        {
            iCareData.clsRecordSearch_SearchInfo objSearchInfo = new iCareData.clsRecordSearch_SearchInfo();

            System.Text.StringBuilder sbdTemp = new System.Text.StringBuilder(" 1=1 ");

            while (p_objConditionStatusEnumerator.MoveNext())
            {
                RecordSearch.ConditionMaker.clsConditionMakerBase.clsConditionStatus objConditionStatus = p_objConditionStatusEnumerator.Current as RecordSearch.ConditionMaker.clsConditionMakerBase.clsConditionStatus;

                if (objConditionStatus == null)
                {
                    continue;
                }

                sbdTemp.Append(" and ");

                sbdTemp.Append(objConditionStatus.m_strConditionSQL);
            }

            objSearchInfo.m_strSQL = p_objFormInfo.m_strMainSearchInfo + " " + sbdTemp.ToString();

            return(objSearchInfo);
        }