/// <summary> /// 添加匹配信息 /// </summary> /// <param name="payInfo">匹配信息</param> public void AddMatchedPageInfo(MatchedPageInfo matchedPageInfo) { if (this.ListMatchedPageInfo == null) { this.ListMatchedPageInfo = new List <MatchedPageInfo>(); } this.ListMatchedPageInfo.Add(matchedPageInfo); }
/// <summary> /// /// </summary> /// <param name="inter"></param> /// <returns></returns> private MatchedOutParameter WriteMatchedOutparameter(Interface inter) { string errorInfo = inter.GetMessage(); try { MatchedOutParameter matchedOutParameter = new MatchedOutParameter(); List <MatchedPageInfo> list = new List <MatchedPageInfo>(); string str = string.Empty; do { MatchedPageInfo matchedPageInfo = new MatchedPageInfo(); str = string.Empty; inter.GetByName("serial_match", ref str); matchedPageInfo.serial_match = str; str = string.Empty; inter.GetByName("match_type", ref str); matchedPageInfo.match_type = str; str = string.Empty; inter.GetByName("item_code", ref str); matchedPageInfo.item_code = str; str = string.Empty; inter.GetByName("item_name", ref str); matchedPageInfo.item_name = str; str = string.Empty; inter.GetByName("model", ref str); matchedPageInfo.model = str; str = string.Empty; inter.GetByName("hospital_id", ref str); matchedPageInfo.hospital_id = str; str = string.Empty; inter.GetByName("hosp_code", ref str); matchedPageInfo.hosp_code = str; str = string.Empty; inter.GetByName("hosp_name", ref str); matchedPageInfo.hosp_name = str; str = string.Empty; inter.GetByName("hosp_model", ref str); matchedPageInfo.hosp_model = str; str = string.Empty; inter.GetByName("hosp_standard", ref str); matchedPageInfo.hosp_standard = str; str = string.Empty; inter.GetByName("hosp_price", ref str); matchedPageInfo.hosp_price = str; str = string.Empty; inter.GetByName("staple_flag", ref str); matchedPageInfo.staple_flag = str; str = string.Empty; inter.GetByName("effect_date", ref str); matchedPageInfo.effect_date = str; str = string.Empty; inter.GetByName("expire_date", ref str); matchedPageInfo.expire_date = str; str = string.Empty; inter.GetByName("audit_flag", ref str); matchedPageInfo.audit_flag = str; list.Add(matchedPageInfo); } while (0 < inter.NextRow()); return(matchedOutParameter); } catch (Exception ex) { throw new Exception(errorInfo + "\n" + ex.Message); } }