示例#1
0
 /// <summary>
 /// 带参构造函数
 /// </summary>
 /// <param name="isOK">是否成功</param>
 /// <param name="msg">信息</param>
 /// <param name="lstInfo">结果</param>
 public ResultList(bool isOK, MsgInfo msg, List <T> lstInfo)
 {
     this.IsOK    = isOK;
     this.Code    = msg.Code;
     this.Msg     = msg.Msg;
     this.LstInfo = lstInfo;
 }
 /// <summary>
 /// 带参构造函数
 /// </summary>
 /// <param name="isOK">是否成功</param>
 /// <param name="msg">信息</param>
 /// <param name="lstInfo">结果</param>
 /// <param name="month">月份</param>
 /// <param name="totalAmount">合计金额</param>
 /// <param name="hasPreMonth">是否还有前一个月的数据</param>
 public ResultPageMonthAmountList(bool isOK, MsgInfo msg, List <T> lstInfo, DateTime month, decimal totalAmount, bool hasPreMonth)
     : base(isOK, msg, lstInfo)
 {
     this.Month       = month;
     this.TotalAmount = totalAmount;
     this.HasPreMonth = hasPreMonth;
 }
示例#3
0
 /// <summary>
 /// 带参构造函数
 /// </summary>
 /// <param name="isOK">是否成功</param>
 /// <param name="msg">信息</param>
 /// <param name="info">结果</param>
 public ResultInfo(bool isOK, MsgInfo msg, T info)
 {
     this.IsOK = isOK;
     this.Code = msg.Code;
     this.Msg  = msg.Msg;
     this.Info = info;
 }
 /// <summary>
 /// 带参构造函数
 /// </summary>
 /// <param name="isOK">是否成功</param>
 /// <param name="msg">信息</param>
 /// <param name="lstInfo">结果</param>
 /// <param name="startNum">返回的第一条记录位置(第几条)</param>
 /// <param name="totalRecord">总条数</param>
 /// <param name="totalAmount">合计金额</param>
 public ResultPageAmountList(bool isOK, MsgInfo msg, List <T> lstInfo, int startNum, int totalRecord, decimal totalAmount)
     : base(isOK, msg, lstInfo, startNum, totalRecord)
 {
     this.TotalAmount = totalAmount;
 }
示例#5
0
 /// <summary>
 /// 带参构造函数
 /// </summary>
 /// <param name="isOK">是否成功</param>
 /// <param name="msg">信息</param>
 /// <param name="lstInfo">结果</param>
 /// <param name="startNum">返回的第一条记录位置(第几条)</param>
 /// <param name="totalRecord">总条数</param>
 public ResultPageList(bool isOK, MsgInfo msg, List <T> lstInfo, int startNum, int totalRecord)
     : base(isOK, msg, lstInfo)
 {
     this.StartNum    = startNum;
     this.TotalRecord = totalRecord;
 }