コード例 #1
0
ファイル: clsLisInterface.cs プロジェクト: ewin66/HIS
        private clsAppCollection InitNewApplication(clsLisApplMainVO p_objPatientInfo, clsTestApplyItme_VO[] p_objChargeInfoArr)
        {
            m_arrResults.Clear();

            string[] arrApplyUnitId = GetDifferentUnits(p_objChargeInfoArr);

            bool isUnValid = p_objPatientInfo == null || p_objChargeInfoArr == null || p_objChargeInfoArr.Length == 0 ||
                             arrApplyUnitId == null || arrApplyUnitId.Length == 0;

            if (isUnValid)
            {
                errorMessage = "病人信息为空或者申请单元ID为空!";
                return(null);
            }

            p_objPatientInfo.m_intPStatus_int = 1; //未发送的记录
            p_objPatientInfo.m_intForm_int    = 1;

            clsGeneratorCheckContent generatorCheckContent = new clsGeneratorCheckContent(arrApplyUnitId);
            clsAppCollection         appCollection         = generatorCheckContent.Apps;

            if (appCollection == null)
            {
                return(null);
            }
            return(appCollection);
        }
コード例 #2
0
ファイル: clsLisInterface.cs プロジェクト: ewin66/HIS
        /// <summary>
        /// 新建检验申请单
        /// </summary>
        /// <remarks> </remarks>
        /// <param name="p_objPatientInfo">患者基本信息</param>
        /// <param name="p_objChargeInfoArr">收费信息数组</param>
        /// <param name="p_blnSend">申请单是否发送</param>
        /// <returns>是否创建成功</returns>
        public bool m_mthNewApp(clsLisApplMainVO patientInfo, clsTestApplyItme_VO[] arrChargeInfo, bool isSended)
        {
            clsAppCollection appCollection = InitNewApplication(patientInfo, arrChargeInfo);

            if (appCollection == null)
            {
                return(false);
            }

            ArrayList separatedUnits = SeparateApplication(GetUnitId(appCollection));

            foreach (string[] arrUnit in separatedUnits)
            {
                CreateApplicationDB(patientInfo, arrChargeInfo, isSended, arrUnit);
            }

            return(true);
        }
コード例 #3
0
ファイル: clsLisInterface.cs プロジェクト: ewin66/HIS
        private static ArrayList GetUnitId(clsAppCollection appCollection)
        {
            ArrayList arrUnitIds = new ArrayList();//存放UnitID申请单元组
            int       appCount   = appCollection.Count;

            for (int i = 0; i < appCount; i++)
            {
                int      unitCount = appCollection[i].m_ObjAppApplyUnits.Count;
                string[] strUnits  = new string[unitCount];

                for (int j = 0; j < unitCount; j++)
                {
                    strUnits[j] = appCollection[i].m_ObjAppApplyUnits[j].m_StrApplyUnitID;
                }

                arrUnitIds.Add(strUnits);
            }
            return(arrUnitIds);
        }