/// <summary>
 /// identify the chosen product's subcontractor durring modifing
 /// </summary>
 /// <param name="chosenProductionID_DurringModify"></param>
 /// <returns>subcintractor name in string</returns>
 public string getTheChosenProductsSubcontractor(int chosenProductionID_DurringModify)
 {
     try
     {
         ProductToChoose temp = productListForUserChoose.Find(x => x.termekMinId == chosenProductionID_DurringModify);
         return(temp.beszallitoId);
     }
     catch (Exception e)
     {
         throw new ErrorServiceRequests("Ismeretlen hiba történt  (ServReq_identifProd) " + e.Message);
     }
 }
Beispiel #2
0
 /// <summary>
 /// defines and reads out the product in the list, that the user chosen out
 /// </summary>
 /// <param name="kivTermekNev"></param>
 /// <returns></returns>
 public int identifyTheProductIdInProductList(string kivTermekNev)
 {
     try
     {
         ProductToChoose temp = productListForUserChoose.Find(x => x.termekNev == kivTermekNev);
         return(temp.termekMinId);
     }
     catch (Exception e)
     {
         throw new ErrorServiceRequests("Ismeretlen hiba történt  (ServReq_identifProd) " + e.Message);
     }
 }
 /// <summary>
 /// defines and reads out the product in the list, that the user chosen out
 /// </summary>
 /// <param name="kivTermekNevSzallito"></param>
 /// <returns></returns>
 public int identifyTheProductIdInProductList(string kivTermekNevSzallito)
 {
     try
     {
         string[]        parts = kivTermekNevSzallito.Split('_');
         ProductToChoose temp  = productListForUserChoose.Find(x => x.termekNev == parts[0] &&
                                                               x.beszallitoId == parts[1]);
         return(temp.termekMinId);
     }
     catch (Exception e)
     {
         throw new ErrorServiceRequests("Ismeretlen hiba történt  (ServReq_identifProd) " + e.Message);
     }
 }