Esempio n. 1
0
 /// <summary>
 /// execute new noted record creation
 /// </summary>
 /// <param name="quantId">stripping ID</param>
 /// <param name="amount">amount of prod</param>
 /// <param name="userIdOper">who made it</param>
 public void setCreateNewOrderingRecordAsNoted(string quantId, string amount, string userIdOper)
 {
     try
     {
         parameters = new List <KeyValuePair <string, string> >();
         KeyValuePair <string, string> operUser     = new KeyValuePair <string, string>("@operatUser", userIdOper);
         KeyValuePair <string, string> strippingId  = new KeyValuePair <string, string>("@stripId", quantId);
         KeyValuePair <string, string> wantedAmount = new KeyValuePair <string, string>("@amount", amount);
         parameters.Add(strippingId);
         parameters.Add(operUser);
         parameters.Add(wantedAmount);
     }
     catch (Exception e)
     {
         throw new ErrorServiceNewRecord("A kérés megalkotásakor hiba lépett fel (ModOrdNewNoted) " + e.Message);
     }
     mdi.openConnection();
     mdi.execPrepGetOneColumnToListWithKVPList(queryToCreateNewOrderingAsNoted, parameters, 3);
     mdi.closeConnection();
 }