Exemplo n.º 1
0
        private clsLISAppResults GetApplicationResult(clsLisApplMainVO patientInfo, string[] strUnits)
        {
            clsLISAppResults objResult = new clsLISAppResults();

            objResult.m_StrApplicationID       = patientInfo.m_strAPPLICATION_ID;
            objResult.m_strSampleTypeID        = patientInfo.m_strSampleTypeID;
            objResult.m_strSampleTypeName      = patientInfo.m_strSampleType;
            objResult.m_StrAppCheckContentDesc = patientInfo.m_strCheckContent;

            int applyUnitCount = strUnits.Length;

            objResult.m_ObjApplyUnitIDArr = new string[applyUnitCount];

            List <string> lstOrderId = new List <string>();

            for (int i = 0; i < applyUnitCount; i++)
            {
                objResult.m_ObjApplyUnitIDArr[i] = strUnits[i];
                string[] arrOrder = m_unitOrder.GetValues(strUnits[i]);
                if (arrOrder != null && arrOrder.Length > 0)
                {
                    lstOrderId.AddRange(arrOrder);
                }
            }

            objResult.m_arrOrderId = lstOrderId.ToArray();
            return(objResult);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取申请的结果
        /// </summary>
        /// <param name="objApp">申请单VO</param>
        /// <param name="arlChargeIDs">数组</param>
        /// <returns></returns>
        private clsLISAppResults GetApplicationResult(clsLIS_App application, ArrayList arrChargeId)
        {
            clsLISAppResults objResult = new clsLISAppResults();

            objResult.m_StrApplicationID       = application.m_ObjDataVO.m_strAPPLICATION_ID;
            objResult.m_strSampleTypeID        = application.m_ObjDataVO.m_strSampleTypeID;
            objResult.m_strSampleTypeName      = application.m_ObjDataVO.m_strSampleType;
            objResult.m_StrAppCheckContentDesc = application.m_ObjDataVO.m_strCheckContent;

            int applyUnitCount = application.m_ObjAppApplyUnits.Count;

            objResult.m_ObjApplyUnitIDArr = new string[applyUnitCount];

            List <string> lstOrderId = new List <string>();

            for (int i = 0; i < applyUnitCount; i++)
            {
                objResult.m_ObjApplyUnitIDArr[i] = application.m_ObjAppApplyUnits[i].m_ObjDataVO.m_strAPPLY_UNIT_ID_CHR;
                string[] arrOrder = m_unitOrder.GetValues(application.m_ObjAppApplyUnits[i].m_ObjDataVO.m_strAPPLY_UNIT_ID_CHR);
                lstOrderId.AddRange(arrOrder);
            }

            objResult.m_arrOrderId   = lstOrderId.ToArray();
            objResult.m_strChargeIDs = (string[])arrChargeId.ToArray(typeof(string));
            return(objResult);
        }