public static List <BatchPayItem> FromDetail(string detail) { List <BatchPayItem> items = new List <BatchPayItem>(); string[] arry = detail.Split('|'); foreach (string s in arry) { BatchPayItem item = new BatchPayItem(); string[] arry1 = s.Split('^'); item.OrderNo = arry1[0]; item.ReceiveAccount = arry1[1]; item.ReceiveName = arry1[2]; item.Amount = Convert.ToDouble(arry1[3]); item.Remark = arry1[5]; items.Add(item); } return(items); }
public static List<BatchPayItem> FromDetail(string detail) { List<BatchPayItem> items = new List<BatchPayItem>(); string[] arry = detail.Split('|'); foreach(string s in arry) { BatchPayItem item = new BatchPayItem(); string[] arry1 = s.Split('^'); item.OrderNo = arry1[0]; item.ReceiveAccount = arry1[1]; item.ReceiveName = arry1[2]; item.Amount = Convert.ToDouble(arry1[3]); item.Remark = arry1[5]; items.Add(item); } return items; }