using System;
using System.Collections.Generic;
using System.Text;

namespace AutoTurnOver.Models.ApiDto
{
    public class BuyOutputResult
    {
        /// <summary>
        /// 是否执行成功，默认为：true
        /// </summary>
        public bool IsSuccessed { get; set; } = true;
        /// <summary>
        /// 
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        ///   planNo+"|"+BuyNo          计划单编码和第一条采购单编码
        /// </summary>
        public string Data { get; set; }

        public string planNo { get { return Data.Split('|')[0]; } }

        /// <summary>
        /// 总数量
        /// </summary>
        public int TotalCount { get; set; }
        /// <summary>
        /// 总页数
        /// </summary>
        public int TotalPages { get; set; }
    }
}
