/// <summary> /// Author:陈伟 /// Target:FTP提前清贷收款 /// Description:根据款项列表进行收款操作 /// </summary> /// <param name="billitems"></param> /// <param name="payid"></param> /// <param name="receviedtime"></param> /// <param name="userid"></param> /// <param name="explain"></param> /// <param name="adk"></param> /// <param name="receivedList"></param> /// <param name="lstUpdateItem"></param> private void FtpAdvRecevied(List <BillItem> billitems, int payid, DateTime receviedtime , int userid, string explain, List <Received> receivedList, List <UpdateItem> lstUpdateItem , EnumAdjustKind adk = EnumAdjustKind.Fuiou) { foreach (var item in billitems) { var recevieditem = new Received { Amount = item.DueAmt - item.ReceivedAmt, BillID = item.BillID, BillItemID = item.BillItemID, CreateTime = DateTime.Now, OperatorID = userid, PayID = payid, ReceivedTime = receviedtime, ReceivedType = (byte)adk, Explain = explain }; receivedList.Add(recevieditem); var updateItem = new UpdateItem { Id = item.BillItemID, Amount = item.DueAmt, FullPaidTime = DateTime.Now, Type = 3 }; lstUpdateItem.Add(updateItem); } }
/// <summary> /// 获取调整类型名称 /// </summary> /// <param name="kind"></param> /// <returns></returns> public static string GetReviceTypeName(EnumAdjustKind kind) { string Exite = ""; switch (kind) { case EnumAdjustKind.WriteOff: //冲销(正数/负数) 减免(正数/负数) case EnumAdjustKind.Mitigation: // Exite = "追讨"; break; case EnumAdjustKind.BadDebts: //坏账 Exite = "坏账"; break; case EnumAdjustKind.Transfer: //转账 case EnumAdjustKind.Fuiou: //富友 case EnumAdjustKind.TenPay: //财付通 case EnumAdjustKind.Correct: //冲销(负数) case EnumAdjustKind.ReturnBack: //退回 Exite = "补交"; break; case EnumAdjustKind.BankSupport: //银扣 Exite = "银扣"; break; default: break; } return(Exite); }
/// <summary> /// 获取还款方式名称 /// </summary> /// <param name="repaymentMode"></param> /// <returns></returns> public static string GetRepaymentModeName(string repaymentMode) { try { EnumAdjustKind kind = (EnumAdjustKind)Enum.Parse(typeof(EnumAdjustKind), repaymentMode); return(kind.ToDescription()); } catch (Exception) { } return(""); }