public LeechdomCharge(string diagnoseid, string opid) { DiagnoseID = diagnoseid; operatorid = opid; detailAccountData = new DetailAccountData(); ecipeMedicineData = new EcipeMedicineData(); }
/// <summary> /// 高值耗材验证 /// </summary> /// <param name="AccountDetailData">收费项目明细信息</param> /// <returns></returns> /// ZHOUHU ADD CASE:31590 2018101601 yyl UPDATE CASE:33584 2019092701 public bool CheckHValueMaterial(DetailAccountData detailAccountData) { bool result = true; int barCodeCount = 0; try { string IHMaterial = SystemInfo.SystemConfigs["门诊是否启用高值耗材接口"].DefaultValue; if ("1" == IHMaterial) { string strWhere = string.Empty; for (int i = 0; i < detailAccountData.Tables[0].Rows.Count; i++) { if (i == 0) { strWhere += "ITEMID IN ("; } strWhere += "'" + detailAccountData.Tables[0].Rows[i]["ITEMID"].ToString() + "',"; if (i == detailAccountData.Tables[0].Rows.Count - 1) { strWhere = strWhere.Remove(strWhere.Length - 1); strWhere += ")"; } } SummaryInfoFacade summaryInfoFacade = new SummaryInfoFacade(); DataSet ds = summaryInfoFacade.Select(strWhere); barCodeCount = ds.Tables[0].Select(" CODENO LIKE 'HC%' ").Length; if (barCodeCount > 0) { result = false; } } } catch (Exception ex) { throw ex; } return(result); }