using System; using System.Collections.Generic; using WX.CRM.Common; namespace WX.CRM.WEB.ViewModel.Level2 { public class OrdPayDetail { public string TRADINDAY { get; set; } public string HOSTTRADID { get; set; } public decimal GOODSAMOUNT { get; set; } public string SUMMARY { get; set; } public string OPENUSERSID { get; set; } public string OPENUSERSNAME { get; set; } public string OPENBANK { get; set; } public Nullable TRADINGTIME { get; set; } public decimal PKID { get; set; } public Nullable IMPORTID { get; set; } public Nullable CTIME { get; set; } } public class PayIdModel { public string PayId { get; private set; } public string ctime { get; private set; } public string etime { get; private set; } public string UserName { get; set; } public string summary { get; set; } public int PageIndex { get; private set; } public int PageSize { get; private set; } public int total { get; private set; } public string retMessage { get; private set; } public PayIdModel(string payid, string ctime, string etime, string username, string summary, int pageIndex, int pageSize) { this.PayId = payid; this.ctime = ctime; this.etime = etime; this.UserName = username; this.summary = summary; this.PageIndex = pageIndex; this.PageSize = pageSize; } public List getResult(string url) { List list = new List(); string json = Utility.ConvertToJSON(this); returnResult result = new returnResult(); result = result.getResult(json, url); if (result.result) { this.total = result.total; list = Utility.JSONToObject>(result.retMessage); } else { throw new Exception(result.retMessage); } return list; } } }