Пример #1
0
        public DataTable UpdateDiskDataTable()
        {
            Disk d = new Disk();

            foreach (DataRow dr in diskDataSource.Rows)
            {
                Pro2Col.Obj2DataRow(disks[dr[d.GetColName4Pro("Id")].ToString()], dr, Types.ActionType.Return);
            }
            return(diskDataSource);
        }
Пример #2
0
        public DataTable UpdateSKUDataTable()
        {
            SKU s = new SKU();

            foreach (DataRow dr in skuDataSource.Rows)
            {
                s = skus[s.GetKey(dr)];
                Pro2Col.Obj2DataRow(s, dr, Types.ActionType.PutAway);
            }
            return(skuDataSource);
        }
Пример #3
0
 public DataTable UpdateDiskDataTable()
 {
     diskDataSource.Rows.Clear();
     foreach (Disk d in disks.Values)
     {
         if (!d.IsScaned)
         {
             continue;
         }
         DataRow dr = diskDataSource.NewRow();
         Pro2Col.Obj2DataRow(d, dr, Types.ActionType.ASN);
         diskDataSource.Rows.Add(dr);
     }
     return(diskDataSource);
 }
Пример #4
0
 public DataTable UpdateDiskDataTable()
 {
     diskDataSource.Rows.Clear();
     foreach (Disk d in disks.Values)
     {
         if (d.PartCount == 0)
         {
             continue;
         }
         DataRow dr = diskDataSource.NewRow();
         Pro2Col.Obj2DataRow(d, dr, Types.ActionType.Part);
         Pro2Col.Obj2DataRow(d.Sku, dr, Types.ActionType.Part);
         diskDataSource.Rows.Add(dr);
     }
     return(diskDataSource);
 }
Пример #5
0
 public DataTable UpdateLocDataTable()
 {
     lokDataSource.Rows.Clear();
     foreach (SKU s in this.skus.Values)
     {
         foreach (LOC l in s.Locs.Values)
         {
             if (l.Count == 0)
             {
                 continue;
             }
             DataRow dr = this.lokDataSource.NewRow();
             Pro2Col.Obj2DataRow(s, dr, Types.ActionType.Loc);
             Pro2Col.Obj2DataRow(l, dr, Types.ActionType.Loc);
             this.lokDataSource.Rows.Add(dr);
         }
     }
     return(lokDataSource);
 }