Example #1
0
 //----------------------------------------------------添加到out_network_settle_list
 public void AddToSettleList_MZ(string Name, string Value, string Memo)
 {
     PayAPIInterface.Model.Out.OutNetworkSettleList outNetworkSettleList;
     outNetworkSettleList                    = new PayAPIInterface.Model.Out.OutNetworkSettleList();
     outNetworkSettleList.OutPatId           = model.outReimPara.PatInfo.OutPatId;
     outNetworkSettleList.OutNetworkSettleId = model.outReimPara.CommPara.OutNetworkSettleId;
     outNetworkSettleList.ParaName           = Name;
     outNetworkSettleList.ParaValue          = Value;
     outNetworkSettleList.Memo               = Memo;
     model.outReimPara.SettleParaList.Add(outNetworkSettleList);
 }
Example #2
0
        public void SaveOutSettleMain()
        {
            #region 保存中心返回值参数列表
            //保存中心返回值参数列表
            try
            {
                OutPayPara.SettleParaList = new List <PayAPIInterface.Model.Out.OutNetworkSettleList>();
                PayAPIInterface.Model.Out.OutNetworkSettleList outNetworkSettleList;
                foreach (var item in dicSettleInfo)
                {
                    outNetworkSettleList                    = new PayAPIInterface.Model.Out.OutNetworkSettleList();
                    outNetworkSettleList.OutPatId           = OutPayPara.PatInfo.OutPatId;
                    outNetworkSettleList.OutNetworkSettleId = OutPayPara.CommPara.OutNetworkSettleId;
                    outNetworkSettleList.ParaName           = item.Key.ToString();
                    outNetworkSettleList.ParaValue          = item.Value.ToString();
                    outNetworkSettleList.Memo               = "";
                    OutPayPara.SettleParaList.Add(outNetworkSettleList);
                }
            }
            catch (Exception ex)
            {
                LogManager.Error("门诊结算保存中心返回值参数列表 插入值 失败" + ex.Message);
            }
            #endregion

            OutPayPara.SettleInfo                      = new PayAPIInterface.Model.Out.OutNetworkSettleMain();
            OutPayPara.SettleInfo.OutPatId             = OutPayPara.PatInfo.OutPatId;
            OutPayPara.SettleInfo.SettleNo             = dicSettleInfo["brjsh"];
            OutPayPara.SettleInfo.Amount               = Convert.ToDecimal(dicSettleInfo["zje"]);                                                 //本次医疗费用
            OutPayPara.SettleInfo.GetAmount            = Convert.ToDecimal(dicSettleInfo["brfdje"]) - Convert.ToDecimal(dicSettleInfo["grzhzf"]); //本次现金支出
            OutPayPara.SettleInfo.MedAmountZhzf        = Convert.ToDecimal(dicSettleInfo["grzhzf"]);                                              //本次帐户支出
            OutPayPara.SettleInfo.MedAmountTc          = Convert.ToDecimal(dicSettleInfo["ybfdje"]);                                              //本次统筹支出
            OutPayPara.SettleInfo.MedAmountDb          = Convert.ToDecimal(dicSettleInfo["dezf"]);                                                //本次大额支出
            OutPayPara.SettleInfo.MedAmountBz          = Convert.ToDecimal(dicSettleInfo["ylbzje"]);                                              //医疗补助支付
            OutPayPara.SettleInfo.MedAmountGwy         = 0;                                                                                       //公务员补助
            OutPayPara.SettleInfo.MedAmountJm          = Convert.ToDecimal(dicSettleInfo["yljmje"]);                                              //医疗减免支付
            OutPayPara.SettleInfo.CreateTime           = DateTime.Now;
            OutPayPara.SettleInfo.InvoiceId            = -1;
            OutPayPara.SettleInfo.IsCash               = true;
            OutPayPara.SettleInfo.IsInvalid            = false;
            OutPayPara.SettleInfo.IsNeedRefund         = false;
            OutPayPara.SettleInfo.IsRefundDo           = false;
            OutPayPara.SettleInfo.IsSettle             = true;
            OutPayPara.SettleInfo.MedAmountTotal       = Convert.ToDecimal(OutPayPara.SettleInfo.Amount) - Convert.ToDecimal(OutPayPara.SettleInfo.GetAmount);
            OutPayPara.SettleInfo.NetworkingPatClassId = Convert.ToInt32(OutPayPara.CommPara.NetworkPatClassId);
            OutPayPara.SettleInfo.NetworkPatName       = networkPatInfo.PatName;
            OutPayPara.SettleInfo.NetworkPatType       = networkPatInfo.MedicalType;// "0";
            OutPayPara.SettleInfo.NetworkRefundTime    = Convert.ToDateTime("2000-01-01");
            OutPayPara.SettleInfo.NetworkSettleTime    = DateTime.Now;
            OutPayPara.SettleInfo.OperatorId           = PayAPIConfig.Operator.UserSysId;
            OutPayPara.SettleInfo.OutNetworkSettleId   = Convert.ToDecimal(OutPayPara.CommPara.OutNetworkSettleId);
            OutPayPara.SettleInfo.SettleBackNo         = OutPayPara.RegInfo.NetPatType;
            OutPayPara.SettleInfo.SettleType           = OutPayPara.RegInfo.NetType;

            //门诊付费方式 本接口 4 医保 6农合
            PayAPIInterface.Model.Comm.PayType payType = new PayAPIInterface.Model.Comm.PayType();
            payType.PayTypeId      = 4;
            payType.PayTypeName    = "医保";
            payType.PayAmount      = Convert.ToDecimal(OutPayPara.SettleInfo.MedAmountTotal);
            OutPayPara.PayTypeList = new List <PayType>();
            OutPayPara.PayTypeList.Add(payType);
        }