Пример #1
0
        /// <summary>
        /// 获取配置信息
        /// </summary>
        /// <param name="p_blnConfig"></param>
        /// <param name="p_strSetID"></param>
        /// <returns></returns>
        public long m_lngGetCollocate(out bool p_blnConfig, string p_strSetID)
        {
            p_blnConfig = false;
            long lngRes = 0;

            try
            {
                lngRes = new clsDomainController_SampleGroupManage().m_lngGetCollocate(out p_blnConfig, p_strSetID);
                if (lngRes <= 0)
                {
                    return(-1);
                }
            }
            catch
            {
                lngRes      = 0;
                p_blnConfig = false;
            }
            return(lngRes);
        }
Пример #2
0
        /// <summary>
        /// 根据申请单Id获取检验样本组VO
        /// </summary>
        /// <param name="p_ApplicationID"></param>
        /// <param name="p_objSampleGroupVOArr"></param>
        /// <returns></returns>
        public long m_lngGetSampleRemark(string p_ApplicationID, out clsSampleGroup_VO[] p_objSampleGroupVOArr)
        {
            long lngRes = 0;

            p_objSampleGroupVOArr = null;
            try
            {
                lngRes = new clsDomainController_SampleGroupManage().m_lngGetSampleRemark(p_ApplicationID, out p_objSampleGroupVOArr);
                if (lngRes <= 0)
                {
                    return(-1);
                }
            }
            catch
            {
                lngRes = 0;
                p_objSampleGroupVOArr = null;
            }
            return(lngRes);
        }
Пример #3
0
        private clsAppSampleGroupCollection m_objGenerateAppSampleGroups()
        {
            m_objGenerateAppUnitItems();
            clsAppSampleGroupCollection objSampleGroups = new clsAppSampleGroupCollection();

            clsDomainController_SampleGroupManage objSampleGroupManage = new clsDomainController_SampleGroupManage();

            foreach (clsLIS_AppApplyUnit objAppUnit in m_objAppApplyUnits)
            {
                bool blnAppSampleGroupExist        = false;
                clsSampleGroup_VO objSampleGroupVO = null;
                long lngRes = objSampleGroupManage.m_lngGetSampleGoupVOByApplyUnitID(objAppUnit.m_StrApplyUnitID, out objSampleGroupVO);
                if (lngRes > 0 && objSampleGroupVO != null)
                {
//					objAppCheckItem.m_StrSampleGroupID = objSampleGroupVO.strSampleGroupID;
                    clsLIS_AppSampleGroup objAppSampleGroup = null;
                    foreach (clsLIS_AppSampleGroup obj in objSampleGroups)
                    {
                        if (obj.m_ObjSampleGroup.m_ObjDataVO.strSampleGroupID == objSampleGroupVO.strSampleGroupID)
                        {
                            objAppSampleGroup      = obj;
                            blnAppSampleGroupExist = true;
                            break;
                        }
                    }
                    if (!blnAppSampleGroupExist)
                    {
                        clsLIS_SampleGroup objSampleGroup = new clsLIS_SampleGroup();
                        objSampleGroup.m_ObjDataVO = objSampleGroupVO;
                        clsT_OPR_LIS_APP_SAMPLE_VO objAppSampleGroupVO = new clsT_OPR_LIS_APP_SAMPLE_VO();
                        clsLIS_AppSampleGroup      objAppSGroup        = new clsLIS_AppSampleGroup(objAppSampleGroupVO);
                        objAppSGroup.m_ObjSampleGroup   = objSampleGroup;
                        objAppSGroup.m_StrSampleGroupID = objSampleGroup.m_ObjDataVO.strSampleGroupID;
                        objSampleGroups.Add(objAppSGroup);
                        objAppSampleGroup = objAppSGroup;
                    }
                    System.Collections.ArrayList arlSU = new System.Collections.ArrayList();
                    if (objAppSampleGroup.m_ObjAppUnitArr != null)
                    {
                        arlSU.AddRange(objAppSampleGroup.m_ObjAppUnitArr);
                    }
                    arlSU.Add(objAppUnit);
                    objAppSampleGroup.m_ObjAppUnitArr = (clsLIS_AppApplyUnit[])arlSU.ToArray(typeof(clsLIS_AppApplyUnit));

                    for (int i = 0; i < objAppUnit.m_ObjItemArr.Length; i++)
                    {
                        bool blnItemExist = false;
                        foreach (clsLIS_AppCheckItem objAppItem in objAppSampleGroup.m_ObjAppCheckItems)
                        {
                            if (objAppItem.m_StrCheckItemID == objAppUnit.m_ObjItemArr[i].m_strCHECK_ITEM_ID_CHR)
                            {
                                blnItemExist = true;
                                break;
                            }
                        }
                        if (!blnItemExist)
                        {
                            clsT_OPR_LIS_APP_CHECK_ITEM_VO objAppItemVO    = new clsT_OPR_LIS_APP_CHECK_ITEM_VO();
                            clsLIS_AppCheckItem            objAppCheckItem = new clsLIS_AppCheckItem(objAppItemVO);

                            objAppCheckItem.m_StrCheckItemID               = objAppUnit.m_ObjItemArr[i].m_strCHECK_ITEM_ID_CHR;
                            objAppCheckItem.m_StrSampleGroupID             = objAppSampleGroup.m_StrSampleGroupID;
                            objAppCheckItem.m_ObjDataVO.m_strItemprice_mny = objAppUnit.m_ObjItemArr[i].m_strItemprice_mny;

                            objAppSampleGroup.m_ObjAppCheckItems.Add(objAppCheckItem);
                        }
                    }
                }
            }
            return(objSampleGroups);
        }