Beispiel #1
0
        /// <summary>
        /// 获取异常生产报表信息
        /// </summary>
        /// <param name="processDID">当前选择的工序</param>
        /// <param name="pageNo"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        public IPagedList <ProductNGItem> GetPagedProductNGData(int?processDID, int pageNo, int pageSize)
        {
            DataTable tb = getPagedProductNGData(processDID);

            List <ProductNGItem> lst = new List <ProductNGItem>();

            if (tb != null && tb.Rows.Count > 0)
            {
                foreach (DataRow row in tb.Rows)
                {
                    ProductNGItem info = new ProductNGItem();
                    info.DeviceNo    = row[0].ToString();
                    info.ProductTime = int.Parse(row[1].ToString());
                    info.NGTime      = int.Parse(row[2].ToString());
                    info.QiGangNG    = int.Parse(row[3].ToString());
                    info.MotorNG     = int.Parse(row[4].ToString());
                    info.GanYingNG   = int.Parse(row[5].ToString());

                    lst.Add(info);
                }
            }
            IQueryable <ProductNGItem> superset = lst.AsQueryable();

            return(new PagedList <ProductNGItem>(superset, pageNo, pageSize));
        }
Beispiel #2
0
 private void ViewDetail(ProductNGItem item)
 {
     this.NavigationService.Navigate(new ProductStatementNGPage()
     {
         AlarmTemporaryDID = int.Parse(item.DeviceNo)
     });
 }
Beispiel #3
0
 private void ViewDetail(ProductNGItem item)
 {
     this.NavigationService.Navigate(new ProductStatementNGPage()
     {
         AlarmTemporaryDID = item.MotorNG
     });
 }