ComplianceServer/oldcode/WEB/ViewModel/Level2/OrdPayDetail.cs

60 lines
2.2 KiB
C#

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<System.DateTime> TRADINGTIME { get; set; }
public decimal PKID { get; set; }
public Nullable<decimal> IMPORTID { get; set; }
public Nullable<System.DateTime> 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<OrdPayDetail> getResult(string url)
{
List<OrdPayDetail> list = new List<OrdPayDetail>();
string json = Utility.ConvertToJSON<PayIdModel>(this);
returnResult result = new returnResult();
result = result.getResult(json, url);
if (result.result)
{
this.total = result.total;
list = Utility.JSONToObject<List<OrdPayDetail>>(result.retMessage);
}
else
{
throw new Exception(result.retMessage);
}
return list;
}
}
}