/// <summary>
 /// 获得盘点盘差信息
 /// </summary>
 /// <param name="orderNum"></param>
 /// <param name="pageInfo"></param>
 /// <returns></returns>
 public List<CheckDataEntity> GetCheckDifList(string orderNum, ref PageInfo pageInfo)
 {
     CheckDataEntity entity = new CheckDataEntity();
     entity.IncludeAll();
     entity.Where(a => a.OrderNum == orderNum);
     entity.OrderBy(a => a.ID, EOrderBy.ASC);
     int rowCount = 0;
     List<CheckDataEntity> listResult = this.CheckData.GetList(entity,pageInfo.PageSize,pageInfo.PageIndex,out rowCount);
     pageInfo.PageCount = rowCount;
     return listResult;
 }
 /// <summary>
 /// 获取盘点单据Excel数据
 /// </summary>
 /// <returns></returns>
 public List<CheckDataEntity> GetCheckOrder(string orderNum)
 {
     CheckDataEntity entity = new CheckDataEntity();
     entity.IncludeAll();
     entity.Where(a => a.OrderNum == orderNum);
     List<CheckDataEntity> listResult = this.CheckData.GetList(entity);
     return listResult;
 }
 /// <summary>
 /// 新增盘点数据
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public int AddCheckData(CheckDataEntity entity)
 {
     entity.IncludeAll();
     int line = this.CheckData.Add(entity);
     return line;
 }