Exemple #1
0
        private void AddReport(ref List <clsT_OPR_LIS_APP_REPORT_VO> lstReports, string unitId)
        {
            ApplyUnitDetail   detail           = m_dicApplyUnitDetail[unitId];
            clsReportGroup_VO objReportGroupVO = detail.ReportGroup;

            bool   isExist       = false;
            string reportGroupId = objReportGroupVO.strReportGroupID;

            foreach (clsT_OPR_LIS_APP_REPORT_VO report in lstReports)
            {
                if (report.m_strREPORT_GROUP_ID_CHR == reportGroupId)
                {
                    isExist = true;
                    break;
                }
            }

            if (!isExist)
            {
                clsT_OPR_LIS_APP_REPORT_VO reportVO = new clsT_OPR_LIS_APP_REPORT_VO();
                reportVO.m_strREPORT_GROUP_ID_CHR = reportGroupId;
                //初始化状态
                reportVO.m_intSTATUS_INT = 1;
                lstReports.Add(reportVO);
            }
        }
Exemple #2
0
        private void AddSampleGroup(ref List <clsT_OPR_LIS_APP_SAMPLE_VO> lstSamples, string unitId)
        {
            ApplyUnitDetail   detail        = m_dicApplyUnitDetail[unitId];
            clsSampleGroup_VO sampleGroup   = detail.SampleGroup;
            string            sampleGroupId = sampleGroup.strSampleGroupID;

            clsT_OPR_LIS_APP_SAMPLE_VO sampleGroupVO = new clsT_OPR_LIS_APP_SAMPLE_VO();

            sampleGroupVO.m_strSAMPLE_GROUP_ID_CHR = sampleGroupId;

            bool isExist = false;

            foreach (clsT_OPR_LIS_APP_SAMPLE_VO sample in lstSamples)
            {
                if (sample.m_strSAMPLE_GROUP_ID_CHR == sampleGroupId)
                {
                    isExist = true;
                    break;
                }
            }

            if (!isExist)
            {
                sampleGroupVO.m_strREPORT_GROUP_ID_CHR = detail.ReportGroup.strReportGroupID;
                lstSamples.Add(sampleGroupVO);
            }
        }
Exemple #3
0
 private void AddUnitDetail(string unitId)
 {
     if (!m_dicApplyUnitDetail.ContainsKey(unitId))
     {
         m_dicApplyUnitDetail.Add(unitId, ApplyUnitDetail.GetApplyUnitDetail(unitId));
     }
 }
Exemple #4
0
        private void AddUnitItems(ref List <clsLisAppUnitItemVO> lstUnitItem, string unitId)
        {
            ApplyUnitDetail detail = m_dicApplyUnitDetail[unitId];

            clsCheckItem_VO[] arrCheckItem = detail.Items;
            for (int i = 0; i < arrCheckItem.Length; i++)
            {
                clsLisAppUnitItemVO item = new clsLisAppUnitItemVO();
                item.m_strAPPLY_UNIT_ID_CHR = unitId;
                item.m_strCHECK_ITEM_ID_CHR = arrCheckItem[i].m_strCheck_Item_ID;
                lstUnitItem.Add(item);
            }
        }
Exemple #5
0
        private void AddCheckItems(ref List <clsT_OPR_LIS_APP_CHECK_ITEM_VO> lstItems, string unitId)
        {
            ApplyUnitDetail detail = m_dicApplyUnitDetail[unitId];

            clsCheckItem_VO[] arrCheckItem = detail.Items;
            for (int i = 0; i < arrCheckItem.Length; i++)
            {
                clsT_OPR_LIS_APP_CHECK_ITEM_VO item = new clsT_OPR_LIS_APP_CHECK_ITEM_VO();
                item.m_strCHECK_ITEM_ID_CHR   = arrCheckItem[i].m_strCheck_Item_ID;
                item.m_strSAMPLE_GROUP_ID_CHR = detail.SampleGroup.strSampleGroupID;
                item.m_strREPORT_GROUP_ID_CHR = detail.ReportGroup.strReportGroupID;
                item.m_strItemprice_mny       = arrCheckItem[i].m_strItemprice_mny;

                lstItems.Add(item);
            }
        }