示例#1
0
        /// <summary>
        /// 生成申请单元ID数组
        /// </summary>
        /// <param name="p_strApplyUnitsIDArr"></param>
        private void m_mthGenerateAppApplyUnits(string[] p_strApplyUnitsIDArr)
        {
            if (p_strApplyUnitsIDArr == null)
            {
                return;
            }
            clsDomainController_ApplyUnitManage objDomUnit = new clsDomainController_ApplyUnitManage();

            foreach (string str in p_strApplyUnitsIDArr)
            {
                clsApplUnit_VO objApplyUnitDataVO = null;
                long           lngRes             = objDomUnit.m_lngGetApplyUnitVOByApplyUnitID(str, out objApplyUnitDataVO);
                if (lngRes <= 0)
                {
                    MessageBox.Show("数据访问失败!请与管理员联系。");
                    m_objAppApplyUnits.Clear();
                    return;
                }
                if (objApplyUnitDataVO == null)
                {
                    MessageBox.Show("无效的申请单元ID!请与管理员联系。");
                    m_objAppApplyUnits.Clear();
                    return;
                }

                clsLIS_ApplyUnit objApplyUnit = new clsLIS_ApplyUnit();
                objApplyUnit.m_ObjDataVO = objApplyUnitDataVO;

                clsT_OPR_LIS_APP_APPLY_UNIT_VO objAppAppUnitVO = new clsT_OPR_LIS_APP_APPLY_UNIT_VO();
                clsLIS_AppApplyUnit            objAppApplyUnit = new clsLIS_AppApplyUnit(objAppAppUnitVO);
                objAppApplyUnit.m_ObjApplyUnit   = objApplyUnit;
                objAppApplyUnit.m_StrApplyUnitID = objApplyUnitDataVO.strApplUnitID;
                m_objAppApplyUnits.Add(objAppApplyUnit);
            }
        }
示例#2
0
        public void m_mthGetAppCheckInfo(string p_strAppID, out clsLISAppCheckInfoItem[] p_objItemArr)
        {
            long lngRes = 0;

            p_objItemArr = null;
            clsT_OPR_LIS_APP_APPLY_UNIT_VO[] objAppUnitVOArr = null;

            lngRes = new clsDomainController_ApplicationManage().m_lngGetAppApplyUnitVOByApplicationID(p_strAppID, out objAppUnitVOArr);

            if (lngRes > 0 && objAppUnitVOArr != null && objAppUnitVOArr.Length > 0)
            {
                p_objItemArr = new clsLISAppCheckInfoItem[objAppUnitVOArr.Length];
                for (int i = 0; i < objAppUnitVOArr.Length; i++)
                {
                    p_objItemArr[i] = new clsLISAppCheckInfoItem();
                    long           lngRes1   = 0;
                    clsApplUnit_VO objUintVO = null;
                    lngRes1 = new clsDomainController_ApplyUnitManage().m_lngGetApplyUnitVOByApplyUnitID(objAppUnitVOArr[i].m_strAPPLY_UNIT_ID_CHR, out objUintVO);
                    if (lngRes1 > 0 && objUintVO != null)
                    {
                        p_objItemArr[i].m_StrAppGroupName = objUintVO.strApplUnitName;
                        if (objUintVO.strIsNoFoodRequired == "1")
                        {
                            p_objItemArr[i].m_StrFood = "需要";
                        }
                        else if (objUintVO.strIsNoFoodRequired == "0")
                        {
                            p_objItemArr[i].m_StrFood = "不需要";
                        }
                        if (objUintVO.strIsPhysicsExamRequired == "1")
                        {
                            p_objItemArr[i].m_StrMedicalExam = "需要";
                        }
                        else if (objUintVO.strIsPhysicsExamRequired == "0")
                        {
                            p_objItemArr[i].m_StrMedicalExam = "不需要";
                        }
                        if (objUintVO.strIsReservationRequired == "1")
                        {
                            p_objItemArr[i].m_StrReservation = "需要";
                        }
                        else if (objUintVO.strIsReservationRequired == "0")
                        {
                            p_objItemArr[i].m_StrReservation = "不需要";
                        }
                    }
                    else
                    {
                        p_objItemArr[i].m_StrAppGroupName = "未知";
                    }
                }
            }
        }
示例#3
0
        public void m_mthGetApplUnitByCheckCategory()
        {
            if (m_objViewer.m_cboCheckCategory.Items.Count <= 0)
            {
                return;
            }
            m_objViewer.m_lsvApplUnitList.Items.Clear();
            long lngRes = 0;

            clsApplUnit_VO[]                    objApplUnitArr      = null;
            clsLisStatGroupUnit_VO[]            objStatGroupUnitArr = null;
            clsDomainController_ApplyUnitManage objApplUnitManage   = new clsDomainController_ApplyUnitManage();

            lngRes = objApplUnitManage.m_lngGetApplUnitByCheckCategory(m_objViewer.m_cboCheckCategory.SelectedValue.ToString().Trim(),
                                                                       out objApplUnitArr);
            if (lngRes > 0 && objApplUnitArr != null)
            {
                lngRes = m_objManage.m_lngGetAllStatGroupUnitInfo(out objStatGroupUnitArr);
                if (lngRes > 0)
                {
                    for (int i = 0; i < objApplUnitArr.Length; i++)
                    {
                        bool blnHas = false;
                        if (objStatGroupUnitArr != null)
                        {
                            for (int j = 0; j < objStatGroupUnitArr.Length; j++)
                            {
                                if (objApplUnitArr[i].strApplUnitID == objStatGroupUnitArr[j].m_strAPPLY_UNIT_ID_CHR)
                                {
                                    blnHas = true;
                                }
                            }
                        }
                        if (!blnHas)
                        {
                            ListViewItem objlsvItem = new ListViewItem();
                            objlsvItem.Text = objApplUnitArr[i].strApplUnitID;
                            objlsvItem.SubItems.Add(objApplUnitArr[i].strApplUnitName);
                            objlsvItem.Tag = objApplUnitArr[i];
                            m_objViewer.m_lsvApplUnitList.Items.Add(objlsvItem);
                        }
                    }
                }
            }
        }
示例#4
0
        private void m_objGenerateAppUnitItems()
        {
            clsDomainController_ApplyUnitManage objApplyUnitManage = new clsDomainController_ApplyUnitManage();

            System.Collections.ArrayList arlUnitItems = new System.Collections.ArrayList();
            foreach (clsLIS_AppApplyUnit objAppApplyUnit in this.m_objAppApplyUnits)
            {
                arlUnitItems.Clear();

                clsCheckItem_VO[] objCheckItemVOArr = null;
                long lngRet = objApplyUnitManage.m_lngGetCheckItemByApplUnitID(objAppApplyUnit.m_ObjDataVO.m_strAPPLY_UNIT_ID_CHR, out objCheckItemVOArr);
                if (lngRet > 0 && objCheckItemVOArr != null && objCheckItemVOArr.Length > 0)
                {
                    for (int i = 0; i < objCheckItemVOArr.Length; i++)
                    {
//						clsLisDeviceCheckItem_VO objDevItem = null;
//						new clsDomainController_LisDeviceManage().m_lngGetDeviceCheckItemInfoByCheckItemID(
//							objCheckItemVOArr[i].m_strCheck_Item_ID.Trim(),out objDevItem);

//						if(objDevItem != null)
//						{
//							objCheckItem.m_StrDeviceItemName = objDevItem.strDeviceCheckItemName.Trim();
//						}


                        clsLisAppUnitItemVO objUnitItem = new clsLisAppUnitItemVO();
                        objUnitItem.m_strAPPLY_UNIT_ID_CHR = objAppApplyUnit.m_StrApplyUnitID;
                        objUnitItem.m_strCHECK_ITEM_ID_CHR = objCheckItemVOArr[i].m_strCheck_Item_ID;
                        objUnitItem.m_strItemprice_mny     = objCheckItemVOArr[i].m_strItemprice_mny;

                        arlUnitItems.Add(objUnitItem);
                    }
                    objAppApplyUnit.m_ObjItemArr = (clsLisAppUnitItemVO[])arlUnitItems.ToArray(typeof(clsLisAppUnitItemVO));
                }
            }
        }