/// <summary> /// 添加支付信息 /// </summary> /// <param name="payInfo">支付信息</param> public void AddPayInfo(PayInfo payInfo) { if (this.ListPayInfo == null) { this.ListPayInfo = new List <PayInfo>(); } this.ListPayInfo.Add(payInfo); }
/// <summary> /// 写门诊收费输出参数 /// </summary> /// <param name="inter"></param> /// <returns></returns> private MZRegOutParameter WriteMZRegOutParameter(Interface inter) { string errorInfo = inter.GetMessage(); try { MZRegOutParameter mz_ChargeOutParameter = new MZRegOutParameter(); inter.SetResultset("bizinfo"); string str = string.Empty; mz_ChargeOutParameter.BizInfo = new BizInfo(); str = string.Empty; inter.GetByName("serial_no", ref str); mz_ChargeOutParameter.BizInfo.serial_no = str; inter.SetResultset("payinfo"); mz_ChargeOutParameter.ListPayInfo = new List <PayInfo>(); do { PayInfo payInfo = new PayInfo(); str = string.Empty; inter.GetByName("fund_name", ref str); payInfo.fund_name = str; str = string.Empty; inter.GetByName("real_pay", ref str); payInfo.real_pay = str; mz_ChargeOutParameter.ListPayInfo.Add(payInfo); } while (0 < inter.NextRow()); return(mz_ChargeOutParameter); } catch (Exception ex) { throw new Exception(errorInfo + "\n" + ex.Message); } }