Beispiel #1
0
        public void RefreshAll()
        {
            using (ASRS_ServiceSoapClient srv = new ASRS_ServiceSoapClient())
            {
                Stored_cache   = srv.Query_Stored_GetAll().ToList();
                emptyplaceInfo = Stored_cache.Where(x => string.IsNullOrEmpty(x.CONTAINERID)).Select(x => x.PLACEID).ToList();                      //获取空库位

                storedplaceInfo        = Stored_cache.Where(x => x.CONTAINERID != "" && !string.IsNullOrEmpty(x.ITEMSKU)).ToList();                 //获取有货库位
                lb_hasItem.Text        = storedplaceInfo.Select(x => x.PLACEID).Distinct().Count().ToString() + "个";
                PlaceOfEmptyContainer  = Stored_cache.Where(x => !string.IsNullOrEmpty(x.CONTAINERID) && string.IsNullOrEmpty(x.ITEMSKU)).ToList(); //获取空托盘所在库位
                lb_EmptyContainer.Text = PlaceOfEmptyContainer.Count.ToString() + "个";
                lockedplace            = srv.PL_PLACE_GetLockedPlace();                                                                             //获取被锁定库位
                lb_isLock.Text         = lockedplace.Count.ToString() + "个";
                lb_emptyPlace.Text     = (emptyplaceInfo.Count - lockedplace.Count).ToString() + "个";
            }
            BindingPlace();//将数据和对应的lable对应并分别显示不同的颜色
        }