private IList<WHQtyModel> generateWHQty(string itemNumber2nd)
        {
            IF41010Manager objItemEntity = new F41010Manager();
            IF46010Manager objWHEntity = new F46010Manager();
            IF41021Manager objWHQtyEntity = new F41021Manager();

            IList<WHQtyModel> objResultWHQty = new List<WHQtyModel>();

            int shortItemNo = objItemEntity.GetDataByItemNo2nd(itemNumber2nd).ShortItemNo;

            IList<F46010Model> WHList = objWHEntity.getAll(SettingUtils.getCompanyID("COID"));
            //IList<F46010Model> WHList = objWHEntity.getAll(90500);

            foreach (F46010Model item in WHList)
            {
                WHQtyModel resultSingle = new WHQtyModel();

                F41021Model QtyData = objWHQtyEntity.getWHQtyByShortItemNo(shortItemNo, item.WHID);

                resultSingle.WHID = item.WHID;

                if (QtyData != null)
                    resultSingle.WHQty = QtyData.QtyOnHand;
                else
                    resultSingle.WHQty = 0;

                objResultWHQty.Add(resultSingle);

            }

            return objResultWHQty;
        }
        private IList<PricingModel> generatePricing(string itemNumber2nd)
        {
            IF41010Manager objItemEntity = new F41010Manager();
            IF98040Manager objPricingListEntity = new F98040Manager();
            IF40020Manager objPricingEntity = new F40020Manager();

            IList<PricingModel> objResultPricing = new List<PricingModel>();

            int shortItemNo = objItemEntity.GetDataByItemNo2nd(itemNumber2nd).ShortItemNo;

            IList<F98040Model> pricingEntity = objPricingListEntity.getAll().ToList();

            F40020 objPricingData = objPricingEntity.getPricingDataByShortItemNo(shortItemNo);

            if (objPricingData != null)
            {
                foreach (var pricerow in pricingEntity)
                {
                    PricingModel IndPrice = new PricingModel();

                    switch (pricerow.PriceMasterIdx)
                    {
                        case 1:
                            IndPrice.PriceType = pricerow.PriceType;
                            IndPrice.CurCode = objPricingData.CurrCode01;
                            IndPrice.Price = objPricingData.Price01;
                            break;
                        case 2:
                            IndPrice.PriceType = pricerow.PriceType;
                            IndPrice.CurCode = objPricingData.CurrCode02;
                            IndPrice.Price = objPricingData.Price02;
                            break;
                        case 3:
                            IndPrice.PriceType = pricerow.PriceType;
                            IndPrice.CurCode = objPricingData.CurrCode03;
                            IndPrice.Price = objPricingData.Price03;
                            break;
                        case 4:
                            IndPrice.PriceType = pricerow.PriceType;
                            IndPrice.CurCode = objPricingData.CurrCode04;
                            IndPrice.Price = objPricingData.Price04;
                            break;
                        case 5:
                            IndPrice.PriceType = pricerow.PriceType;
                            IndPrice.CurCode = objPricingData.CurrCode05;
                            IndPrice.Price = objPricingData.Price05;
                            break;
                        case 6:
                            IndPrice.PriceType = pricerow.PriceType;
                            IndPrice.CurCode = objPricingData.CurrCode06;
                            IndPrice.Price = objPricingData.Price06;
                            break;
                        case 7:
                            IndPrice.PriceType = pricerow.PriceType;
                            IndPrice.CurCode = objPricingData.CurrCode07;
                            IndPrice.Price = objPricingData.Price07;
                            break;
                        case 8:
                            IndPrice.PriceType = pricerow.PriceType;
                            IndPrice.CurCode = objPricingData.CurrCode08;
                            IndPrice.Price = objPricingData.Price08;
                            break;
                        case 9:
                            IndPrice.PriceType = pricerow.PriceType;
                            IndPrice.CurCode = objPricingData.CurrCode09;
                            IndPrice.Price = objPricingData.Price09;
                            break;
                        case 10:
                            IndPrice.PriceType = pricerow.PriceType;
                            IndPrice.CurCode = objPricingData.CurrCode10;
                            IndPrice.Price = objPricingData.Price10;
                            break;
                        default:
                            break;
                    }

                    objResultPricing.Add(IndPrice);
                }
            }

            return objResultPricing;
        }