Example #1
0
        /// <summary>
        /// reads in the strippings of the chosen product
        /// </summary>
        /// <param name="kivTermekId">the product identifier</param>
        /// <returns>list of string with the stripping of the produvt</returns>
        public List <string> getThePoolOfStrippings(int kivTermekId)
        {
            modelRequestRead = new RequestsModelReadIn(dbci, parent);
            List <string> strippingList = new List <string>();

            try
            {
                strippingListForUserChoose = modelRequestRead.getThePoolOfStrippings(kivTermekId.ToString());
                if (strippingListForUserChoose.Count == 0)
                {
                    strippingList.Add("Nincs kiszerelés");
                    return(strippingList);
                }
                foreach (StrippingToChoose sc in strippingListForUserChoose)
                {
                    strippingList.Add(sc.termekKiszerel.ToString());
                }
            }
            catch (ErrorServiceRequOrderGetTheStripPool e)
            {
                throw new ErrorServiceRequests(e.Message);
            }
            catch (Exception e)
            {
                throw new ErrorServiceRequests("Ismeretlen hiba történt  (ServReq_poolStrip) " + e.Message);
            }
            return(strippingList);
        }