示例#1
0
        public override void GetInspectionWarehouseRows()
        {
            if (SortBy == null)
            {
                SortBy = "it.Iserial";
            }
            int?colorIserial = null;

            if (ColorPerRow != null)
            {
                colorIserial = ColorPerRow.Iserial;
            }
            int?iserial = null;

            if (ItemPerRow.Iserial > 0)
            {
                iserial = ItemPerRow.Iserial;
            }
            if (ItemPerRow.ItemGroup != null && (ItemPerRow.ItemGroup.ToLower().Contains("acc") ||
                                                 ItemPerRow.ItemGroup.ToLower().Contains("fp")) ||
                (SelectedItemType != null && (SelectedItemType.ToLower().Contains("acc") ||
                                              SelectedItemType.ToLower().Contains("fp"))))
            {
                WarehouseClient.GetAccWarehouseRowsAsync(WarehouseCode, SelectedItemType, iserial
                                                         , colorIserial, SelectedSize, SelectedBatchNo);
            }
            else
            {
                WarehouseClient.GetItemDimensionsQuantitiesByDateAsync(
                    WarehouseCode, iserial, ItemPerRow.ItemGroup, colorIserial,
                    SelectedSize, SelectedBatchNo, DocDate);
            }
        }
        public virtual void GetInspectionWarehouseRows()
        {
            if (SortBy == null)
            {
                SortBy = "it.Iserial";
            }
            int?colorIserial = null;

            if (ColorPerRow != null)
            {
                colorIserial = ColorPerRow.Iserial;
            }
            int?iserial = null;

            if (ItemPerRow.Iserial > 0)
            {
                iserial = ItemPerRow.Iserial;
            }
            if ((ItemPerRow.ItemGroup != null && (ItemPerRow.ItemGroup.ToLower().Contains("acc") ||
                                                  ItemPerRow.ItemGroup.ToLower().Contains("fp"))) ||
                (SelectedItemType != null && (SelectedItemType.ToLower().Contains("acc") ||
                                              SelectedItemType.ToLower().Contains("fp"))))
            {
                WarehouseClient.GetAccWarehouseRowsAsync(WarehouseCode, SelectedItemType, iserial
                                                         , colorIserial, SelectedSize, SelectedBatchNo);
            }
            else
            {
                WarehouseClient.GetInspectionWarehouseRowsAsync(SearchResultList.Count, PageSize, SortBy, WarehouseCode, SelectedItemType,
                                                                ItemPerRow.Code, (ColorPerRow != null ? ColorPerRow.Code : ""), SelectedSize, SelectedBatchNo);
            }
        }