12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using LitJson;
- using MySystem;
- using MySystem.Models.Main;
- namespace MySystem
- {
-
-
-
- public class OrderDivideAccountsUtil
- {
-
-
-
-
-
-
-
-
-
-
- public static OrderDivideAccounts AddValue(string applyNo, string mchtNo, string orderNo, string acctNo, string sacctNo, string acctType, string amount, string seviceAmount)
- {
- OrderDivideAccounts orderDivideAccounts = new OrderDivideAccounts();
- orderDivideAccounts.applyNo = applyNo;
- orderDivideAccounts.mchtNo = mchtNo;
- orderDivideAccounts.orderNo = orderNo;
- List<Dictionary<string, object>> list = new List<Dictionary<string, object>>();
- Dictionary<string, object> obj = new Dictionary<string, object>();
-
- if(seviceAmount != "0")
- {
- obj = new Dictionary<string, object>();
- obj.Add("acctNo", "230817000000000278");
- obj.Add("acctType", "1");
- obj.Add("amount", seviceAmount);
- list.Add(obj);
- }
-
- obj = new Dictionary<string, object>();
- obj.Add("acctNo", sacctNo);
- obj.Add("acctType", "0");
- obj.Add("amount", amount);
- list.Add(obj);
- orderDivideAccounts.detail = list;
- return orderDivideAccounts;
- }
- }
- }
|