public void m_mthAddApplUnit() { if (m_objViewer.m_lsvApplUnitList.Items.Count <= 0) { return; } for (int i = 0; i < m_objViewer.m_lsvApplUnitList.Items.Count; i++) { if (m_objViewer.m_lsvApplUnitList.Items[i].Checked) { clsApplUnit_VO objApplUnit = (clsApplUnit_VO)m_objViewer.m_lsvApplUnitList.Items[i].Tag; for (int j = 0; j < m_objViewer.m_lsvStatApplUnitList.Items.Count; j++) { if (objApplUnit.strApplUnitID == ((clsApplUnit_VO)m_objViewer.m_lsvStatApplUnitList.Items[j].Tag).strApplUnitID) { MessageBox.Show("申请单元<" + objApplUnit.strApplUnitName + ">已被添加!"); return; } } ListViewItem objlsvItem = new ListViewItem(); objlsvItem.Text = objApplUnit.strApplUnitID; objlsvItem.SubItems.Add(objApplUnit.strApplUnitName); objlsvItem.Tag = objApplUnit; m_objViewer.m_lsvStatApplUnitList.Items.Add(objlsvItem); } } }
/// <summary> /// 形成申请单的申请单元【2】 /// </summary> /// <param name="p_strApplyUnitsIDArr"></param> private void m_mthGenerateAppApplyUnits(string[] arrApplyUnits) { if (arrApplyUnits == null || arrApplyUnits.Length == 0) { return; } foreach (string unitId in arrApplyUnits) { clsApplUnit_VO applyUnitVO = null; long lngRes = clsApplyUnitSmp.s_obj.m_lngGetApplyUnitVO(unitId, out applyUnitVO); if (lngRes == 0 || applyUnitVO == null) { m_objAppApplyUnits.Clear(); return; } clsLIS_ApplyUnit objApplyUnit = new clsLIS_ApplyUnit(); objApplyUnit.m_ObjDataVO = applyUnitVO; 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 = applyUnitVO.strApplUnitID; m_objAppApplyUnits.Add(objAppApplyUnit); } }
/// <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); } }
public ApplyUnitDetail(string unitId, clsApplUnit_VO applyUnit, clsSampleGroup_VO sampleGroup, clsReportGroup_VO reportGroup, clsCheckItem_VO[] items) { this.unitId = unitId; this.applyUnit = applyUnit; this.sampleGroup = sampleGroup; this.reportGroup = reportGroup; this.items = items; }
public long m_lngAddApplUnitAndDetail(ref clsApplUnit_VO objApplUnitVO, ref clsApplUnitDetail_VO[] objApplUnitDetailVOList) { long lngRes = 0; com.digitalwave.iCare.middletier.LIS.clsApplyUnitSvc objApplyUnitSvc = (com.digitalwave.iCare.middletier.LIS.clsApplyUnitSvc) com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.LIS.clsApplyUnitSvc)); lngRes = objApplyUnitSvc.m_lngAddApplUnitAndDetail(objPrincipal, ref objApplUnitVO, ref objApplUnitDetailVOList); // objApplyUnitSvc.Disposed(); return(lngRes); }
public long m_lngSetApplyUnit(clsApplUnit_VO p_objApplyUnit, ArrayList p_arlAddDetail, ArrayList p_arlRemoveDetail) { long lngRes = 0; com.digitalwave.iCare.middletier.LIS.clsApplyUnitSvc objSvc = (com.digitalwave.iCare.middletier.LIS.clsApplyUnitSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType( typeof(com.digitalwave.iCare.middletier.LIS.clsApplyUnitSvc)); lngRes = objSvc.m_lngSetApplyUnit(objPrincipal, p_objApplyUnit, p_arlAddDetail, p_arlRemoveDetail); // clsApplyUnitSvc.Dispose(); return(lngRes); }
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 = "未知"; } } } }
/// <summary> /// 根据申请单元ID得到申请单元VO /// </summary> /// <param name="p_strApplyUnitID"></param> /// <param name="p_objApplUnit"></param> /// <returns></returns> public long m_lngGetApplyUnitVOByApplyUnitID(string p_strApplyUnitID, out clsApplUnit_VO p_objApplUnit) { long lngRes = 0; p_objApplUnit = null; com.digitalwave.iCare.middletier.LIS.clsQueryApplyUnitSvc objSvc = (com.digitalwave.iCare.middletier.LIS.clsQueryApplyUnitSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType( typeof(com.digitalwave.iCare.middletier.LIS.clsQueryApplyUnitSvc)); lngRes = objSvc.m_lngGetApplyUnitVOByApplyUnitID(objPrincipal, p_strApplyUnitID, out p_objApplUnit); // clsApplyUnitSvc.Dispose(); return(lngRes); }
public long m_lngGetApplUnitByCheckCategory(System.Security.Principal.IPrincipal p_objPrincipal, string p_strCheckCategory, out clsApplUnit_VO[] p_objResultArr) { long lngRes = 0; p_objResultArr = null; clsPrivilegeHandleService objPrivilege = new clsPrivilegeHandleService(); lngRes = objPrivilege.m_lngCheckCallPrivilege(p_objPrincipal, "com.digitalwave.iCare.middletier.LIS.clsApplyUnitSvc", "m_lngGetAllApplUnit"); if (lngRes < 0) { return(-1); } string strSQL = @"select apply_unit_id_chr, apply_unit_name_vchr, other_name_vchr, py_code_chr, assist_code01_chr, wb_code_chr, assist_code02_chr, check_category_id_chr, is_no_food_required_chr, is_physical_exam_required_chr, is_reservation_required_chr, price_num, cost_num, sample_type_id_chr, summary_vchr, outer_check_flag_num, reporthour, SamplingInstr from t_aid_lis_apply_unit where CHECK_CATEGORY_ID_CHR = '" + p_strCheckCategory + @"' ORDER BY apply_unit_id_chr"; DataTable dtbApplUnit = null; try { com.digitalwave.iCare.middletier.HRPService.clsHRPTableService objHRPSvc = new clsHRPTableService(); lngRes = objHRPSvc.lngGetDataTableWithoutParameters(strSQL, ref dtbApplUnit); objHRPSvc.Dispose(); if (lngRes > 0 && dtbApplUnit != null) { if (dtbApplUnit.Rows.Count > 0) { p_objResultArr = new clsApplUnit_VO[dtbApplUnit.Rows.Count]; for (int i = 0; i < dtbApplUnit.Rows.Count; i++) { p_objResultArr[i] = new clsApplUnit_VO(); ConstructApplUnitVO(dtbApplUnit.Rows[i], ref p_objResultArr[i]); } } } } catch (Exception objEx) { com.digitalwave.Utility.clsLogText objLogger = new clsLogText(); bool blnRes = objLogger.LogError(objEx); } return(lngRes); }
/// <summary> /// 根据申请单元Id获取申请单元VO /// </summary> /// <param name="unitId">申请单元Id</param> /// <param name="objApplayUnit">申请单元VO</param> /// <returns></returns> public long m_lngGetApplyUnitVO(string unitId, out clsApplUnit_VO applayUnitVO) { long lngRes = 0; applayUnitVO = null; try { lngRes = objSvc.m_lngGetApplyUnitVOByApplyUnitID(objPrincipal, unitId, out applayUnitVO); } catch { lngRes = 0; } return(lngRes); }
public long m_lngGetApplyUnitVOByApplyUnitID(System.Security.Principal.IPrincipal p_objPrincipal, string p_strApplyUnitID, out clsApplUnit_VO p_objApplUnit) { long lngRes = 0; p_objApplUnit = null; clsPrivilegeHandleService objPrivilege = new clsPrivilegeHandleService(); lngRes = objPrivilege.m_lngCheckCallPrivilege(p_objPrincipal, "com.digitalwave.iCare.middletier.LIS.clsAppGroupSvc", "m_lngGetApplyUnitVOByApplyUnitID"); if (lngRes < 0) { return(-1); } string strSQL = @"select apply_unit_id_chr, apply_unit_name_vchr, other_name_vchr, py_code_chr, assist_code01_chr, wb_code_chr, assist_code02_chr, check_category_id_chr, is_no_food_required_chr, is_physical_exam_required_chr, is_reservation_required_chr, price_num, cost_num, sample_type_id_chr, summary_vchr, outer_check_flag_num, reporthour, SamplingInstr from t_aid_lis_apply_unit where apply_unit_id_chr = ?"; try { clsHRPTableService objHRPSvc = new clsHRPTableService(); DataTable dtbResult = null; IDataParameter[] objDPArr = null; objHRPSvc.CreateDatabaseParameter(1, out objDPArr); objDPArr[0].Value = p_strApplyUnitID; lngRes = 0; lngRes = objHRPSvc.lngGetDataTableWithParameters(strSQL, ref dtbResult, objDPArr); objHRPSvc.Dispose(); if (lngRes > 0 && dtbResult != null && dtbResult.Rows.Count != 0) { p_objApplUnit = new clsApplUnit_VO(); ConstructApplUnitVO(dtbResult.Rows[0], ref p_objApplUnit); } } catch (Exception objEx) { com.digitalwave.Utility.clsLogText objLogger = new clsLogText(); bool blnRes = objLogger.LogError(objEx); } return(lngRes); }
public static ApplyUnitDetail GetApplyUnitDetail(string unitId) { // new clsLogText().LogError(string.Format("申请单元ID为({0})!",unitId)); long lngRes = 0; string message; clsApplUnit_VO applyUnitVO = null; lngRes = clsApplyUnitSmp.s_obj.m_lngGetApplyUnitVO(unitId, out applyUnitVO); if (lngRes == 0 || applyUnitVO == null) { message = string.Format("申请单元ID为({0})的申请单元不存在或者为空!", unitId); throw new LisCreateApplyException(message); } string unitName = applyUnitVO.strApplUnitName; clsSampleGroup_VO sampleGroup = null; lngRes = clsSampleGroupSmp.s_obj.m_lngGetSampleGoupVO(unitId, out sampleGroup); if (lngRes == 0 || sampleGroup == null) { message = string.Format("申请单元ID为({0})({1})下的标本组不存在或者为空!", unitId, unitName); throw new LisCreateApplyException(message); } clsCheckItem_VO[] items = null; lngRes = clsCheckItemSmp.s_obj.m_lngGetCheckItem(unitId, out items); if (lngRes == 0 || items == null) { message = string.Format("申请单元ID为({0})({1})下的检验项目不存在或者为空!", unitId, unitName); throw new LisCreateApplyException(message); } clsReportGroup_VO reportGroup = null; lngRes = clsReportGroupSmp.s_obj.m_lngGetReportGoupVO(sampleGroup.strSampleGroupID, out reportGroup); if (lngRes == 0 || reportGroup == null) { message = string.Format("申请单元ID为({0})({1})下的报告组不存在或者为空!", unitId, unitName); throw new LisCreateApplyException(message); } return(new ApplyUnitDetail(unitId, applyUnitVO, sampleGroup, reportGroup, items)); }
public long m_lngGetApplUnitByUserGroupID(System.Security.Principal.IPrincipal p_objPrincipal, string strUserGroupID, out clsApplUnit_VO[] objApplUnitVOList) { long lngRes = 0; objApplUnitVOList = null; clsPrivilegeHandleService objPrivilege = new clsPrivilegeHandleService(); lngRes = objPrivilege.m_lngCheckCallPrivilege(p_objPrincipal, "com.digitalwave.iCare.middletier.LIS.clsCheckGroupSvc", "m_lngGetApplUnitByUserGroupID"); if (lngRes < 0) { return(-1); } string strSQL = @"SELECT t2.* FROM t_aid_lis_appuser_group_detail t1, t_aid_lis_apply_unit t2 WHERE t1.apply_unit_id_chr = t2.apply_unit_id_chr AND t1.user_group_id_chr = '" + strUserGroupID + "'"; DataTable dtbApplUnit = null; try { com.digitalwave.iCare.middletier.HRPService.clsHRPTableService objHRPSvc = new clsHRPTableService(); lngRes = objHRPSvc.lngGetDataTableWithoutParameters(strSQL, ref dtbApplUnit); if (lngRes > 0 && dtbApplUnit != null) { if (dtbApplUnit.Rows.Count > 0) { objApplUnitVOList = new clsApplUnit_VO[dtbApplUnit.Rows.Count]; for (int i = 0; i < dtbApplUnit.Rows.Count; i++) { objApplUnitVOList[i] = new clsApplUnit_VO(); ConstructApplUnitVO(dtbApplUnit.Rows[i], ref objApplUnitVOList[i]); } } } objHRPSvc.Dispose(); } catch (Exception objEx) { com.digitalwave.Utility.clsLogText objLogger = new clsLogText(); bool blnRes = objLogger.LogError(objEx); } return(lngRes); }
private void ConstructApplUnitVO(System.Data.DataRow objRow, ref clsApplUnit_VO objApplUnitVO) { objApplUnitVO.strApplUnitID = objRow["APPLY_UNIT_ID_CHR"].ToString().Trim(); objApplUnitVO.strApplUnitName = objRow["APPLY_UNIT_NAME_VCHR"].ToString().Trim(); objApplUnitVO.strOtherName = objRow["OTHER_NAME_VCHR"].ToString().Trim(); objApplUnitVO.strPYCode = objRow["PY_CODE_CHR"].ToString().Trim(); objApplUnitVO.strWBCode = objRow["WB_CODE_CHR"].ToString().Trim(); objApplUnitVO.strAssistCode01 = objRow["ASSIST_CODE01_CHR"].ToString().Trim(); objApplUnitVO.strAssistCode02 = objRow["ASSIST_CODE02_CHR"].ToString().Trim(); objApplUnitVO.strCheckCategoryID = objRow["CHECK_CATEGORY_ID_CHR"].ToString().Trim(); objApplUnitVO.strIsNoFoodRequired = objRow["IS_NO_FOOD_REQUIRED_CHR"].ToString().Trim(); objApplUnitVO.strIsPhysicsExamRequired = objRow["IS_PHYSICAL_EXAM_REQUIRED_CHR"].ToString().Trim(); objApplUnitVO.strIsReservationRequired = objRow["IS_RESERVATION_REQUIRED_CHR"].ToString().Trim(); objApplUnitVO.strSummary = objRow["SUMMARY_VCHR"].ToString().Trim(); objApplUnitVO.strOutCheckFlag = objRow["OUTER_CHECK_FLAG_NUM"].ToString().Trim(); objApplUnitVO.ReportHour = objRow["REPORTHOUR"] == DBNull.Value ? 0 : Convert.ToDecimal(objRow["REPORTHOUR"].ToString()); objApplUnitVO.SamplingInstr = objRow["SamplingInstr"].ToString(); }
private void m_mthGenerateAppUnitForAppUnitNode(TreeNode p_trnNode) { if (p_trnNode.Tag == null) { return; } if (p_trnNode.Tag.GetType().Name != typeof(clsApplUnit_VO).Name) { return; } clsApplUnit_VO objApplyUnitDataVO = (clsApplUnit_VO)p_trnNode.Tag; 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; string strUserGroupPath = m_strGenerateGroupPathString(p_trnNode); strUserGroupPath += objApplyUnitDataVO.strApplUnitID; objAppApplyUnit.m_StrUserGroupPath = strUserGroupPath; bool blnUnitExist = false; foreach (clsLIS_AppApplyUnit obj in m_objAppApplyUnits) { if (obj.m_StrApplyUnitID == objAppApplyUnit.m_StrApplyUnitID) { blnUnitExist = true; break; } } if (!blnUnitExist) { this.m_objAppApplyUnits.Add(objAppApplyUnit); } }
private void ConstructApplUnitVO(System.Data.DataRow objRow, ref clsApplUnit_VO objApplUnitVO) { objApplUnitVO.strApplUnitID = objRow["APPLY_UNIT_ID_CHR"].ToString().Trim(); objApplUnitVO.strApplUnitName = objRow["APPLY_UNIT_NAME_VCHR"].ToString().Trim(); objApplUnitVO.strOtherName = objRow["OTHER_NAME_VCHR"].ToString().Trim(); objApplUnitVO.strPYCode = objRow["PY_CODE_CHR"].ToString().Trim(); objApplUnitVO.strWBCode = objRow["WB_CODE_CHR"].ToString().Trim(); objApplUnitVO.strAssistCode01 = objRow["ASSIST_CODE01_CHR"].ToString().Trim(); objApplUnitVO.strAssistCode02 = objRow["ASSIST_CODE02_CHR"].ToString().Trim(); objApplUnitVO.strCheckCategoryID = objRow["CHECK_CATEGORY_ID_CHR"].ToString().Trim(); objApplUnitVO.strIsNoFoodRequired = objRow["IS_NO_FOOD_REQUIRED_CHR"].ToString().Trim(); objApplUnitVO.strIsPhysicsExamRequired = objRow["IS_PHYSICAL_EXAM_REQUIRED_CHR"].ToString().Trim(); objApplUnitVO.strIsReservationRequired = objRow["IS_RESERVATION_REQUIRED_CHR"].ToString().Trim(); objApplUnitVO.strPrice = objRow["PRICE_NUM"].ToString().Trim(); objApplUnitVO.strCost = objRow["COST_NUM"].ToString().Trim(); objApplUnitVO.strSampleTypeID = objRow["SAMPLE_TYPE_ID_CHR"].ToString().Trim(); //xing.chen add (备注字段) objApplUnitVO.strSummary = objRow["SUMMARY_VCHR"].ToString().Trim(); //xing.chen add (是否外院标志字段) objApplUnitVO.strOutCheckFlag = objRow["OUTER_CHECK_FLAG_NUM"].ToString().Trim(); }
public long m_lngAddApplUnit(System.Security.Principal.IPrincipal p_objPrincipal, ref clsApplUnit_VO objApplUnitVO) { long lngRes = 0; clsPrivilegeHandleService objPrivilege = new clsPrivilegeHandleService(); lngRes = objPrivilege.m_lngCheckCallPrivilege(p_objPrincipal, "com.digitalwave.iCare.middletier.LIS.clsApplyUnitSvc", "m_lngAddApplyUnit"); if (lngRes < 0) { return(-1); } string strSQL = @"INSERT INTO t_aid_lis_apply_unit (apply_unit_id_chr, apply_unit_name_vchr, other_name_vchr, py_code_chr, assist_code01_chr, wb_code_chr, assist_code02_chr, check_category_id_chr, is_no_food_required_chr, is_physical_exam_required_chr,is_reservation_required_chr, PRICE_NUM,COST_NUM,SAMPLE_TYPE_ID_CHR,SUMMARY_VCHR,OUTER_CHECK_FLAG_NUM, REPORTHOUR, SamplingInstr ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?,?,?, ?, ?)" ; try { com.digitalwave.iCare.middletier.HRPService.clsHRPTableService objHRPSvc = new clsHRPTableService(); System.Data.IDataParameter[] objApplUnitArr = null; objHRPSvc.CreateDatabaseParameter(18, out objApplUnitArr); if (objApplUnitVO.strApplUnitID == null) { objApplUnitVO.strApplUnitID = objHRPSvc.m_strGetNewID("t_aid_lis_apply_unit", "apply_unit_id_chr", 6); } objApplUnitArr[0].Value = objApplUnitVO.strApplUnitID; objApplUnitArr[1].Value = objApplUnitVO.strApplUnitName; objApplUnitArr[2].Value = objApplUnitVO.strOtherName; objApplUnitArr[3].Value = objApplUnitVO.strPYCode; objApplUnitArr[4].Value = objApplUnitVO.strAssistCode01; objApplUnitArr[5].Value = objApplUnitVO.strWBCode; objApplUnitArr[6].Value = objApplUnitVO.strAssistCode02; objApplUnitArr[7].Value = objApplUnitVO.strCheckCategoryID; objApplUnitArr[8].Value = objApplUnitVO.strIsNoFoodRequired; objApplUnitArr[9].Value = objApplUnitVO.strIsPhysicsExamRequired; objApplUnitArr[10].Value = objApplUnitVO.strIsReservationRequired; objApplUnitArr[11].Value = objApplUnitVO.strPrice; objApplUnitArr[12].Value = objApplUnitVO.strCost; objApplUnitArr[13].Value = objApplUnitVO.strSampleTypeID; objApplUnitArr[14].Value = objApplUnitVO.strSummary; objApplUnitArr[15].Value = objApplUnitVO.strOutCheckFlag; objApplUnitArr[16].Value = objApplUnitVO.ReportHour; objApplUnitArr[17].Value = objApplUnitVO.SamplingInstr; long lngRecEff = -1; lngRes = objHRPSvc.lngExecuteParameterSQL(strSQL, ref lngRecEff, objApplUnitArr); objHRPSvc.Dispose(); } catch (Exception objEx) { com.digitalwave.Utility.clsLogText objLogger = new clsLogText(); bool blnRes = objLogger.LogError(objEx); } return(lngRes); }
public long m_lngAddApplUnitAndDetail(System.Security.Principal.IPrincipal p_objPrincipal, ref clsApplUnit_VO objApplUnitVO, ref clsApplUnitDetail_VO[] objApplUnitDetailVOList) { long lngRes = 0; clsPrivilegeHandleService objPrivilege = new clsPrivilegeHandleService(); lngRes = objPrivilege.m_lngCheckCallPrivilege(p_objPrincipal, "com.digitalwave.iCare.middletier.LIS.clsApplyUnitSvc", "m_lngAddApplUnitAndDetail"); if (lngRes < 0) { return(-1); } if (objApplUnitVO.strApplUnitID == null) { lngRes = m_lngAddApplUnit(p_objPrincipal, ref objApplUnitVO); } else { lngRes = m_lngSetApplUnit(p_objPrincipal, ref objApplUnitVO); } if (lngRes > 0) { for (int i = 0; i < objApplUnitDetailVOList.Length; i++) { objApplUnitDetailVOList[i].strApplUnitID = objApplUnitVO.strApplUnitID; lngRes = m_lngAddApplUnitDetail(p_objPrincipal, ref objApplUnitDetailVOList[i]); } } return(lngRes); }
public long m_lngSetApplyUnit(System.Security.Principal.IPrincipal p_objPrincipal, clsApplUnit_VO p_objApplyUnit, ArrayList p_arlAddDetail, ArrayList p_arlRemoveDetail) { long lngRes = 0; clsPrivilegeHandleService objPrivilege = new clsPrivilegeHandleService(); lngRes = objPrivilege.m_lngCheckCallPrivilege(p_objPrincipal, "com.digitalwave.iCare.middletier.LIS.clsApplyUnitSvc", "m_lngSetApplyUnit"); if (lngRes < 0) { return(-1); } //1.更新申请单元的基本资料 lngRes = m_lngSetApplUnit(p_objPrincipal, ref p_objApplyUnit); if (lngRes > 0) { if (p_arlRemoveDetail != null && p_arlRemoveDetail.Count > 0) { //2.删除申请单元明细中的检验项目 for (int i = 0; i < p_arlRemoveDetail.Count; i++) { lngRes = m_lngDelApplyUnitDetailByApplyIDAndCheckItemID(p_objPrincipal, ((clsApplUnitDetail_VO)p_arlRemoveDetail[i])); } } if (p_arlAddDetail != null && p_arlAddDetail.Count > 0) { //3.增加申请单元明细中的检验项目 for (int i = 0; i < p_arlAddDetail.Count; i++) { clsApplUnitDetail_VO objDetail = (clsApplUnitDetail_VO)p_arlAddDetail[i]; lngRes = m_lngAddApplUnitDetail(p_objPrincipal, ref objDetail); } } } return(lngRes); }