Esempio n. 1
0
 public bool SaveVersionPro(string versionId, string versionName, decimal marketPrice, decimal dealerPrice, int departmentTotalQuantity, int staffTotalQuantity, int storeTotalQuantity, int warehouseTotalQuantity, string description, bool state)
 {
     try
     {
         int    errCode = -1;
         string errMsg  = "fail";
         var    result  = CTMSContext.SP_Add_Sys_Version(versionId, versionName, marketPrice, dealerPrice, departmentTotalQuantity, staffTotalQuantity, storeTotalQuantity, warehouseTotalQuantity, description, state, out errCode, out errMsg);
         if (errCode != 0)
         {
             throw new Exception(errMsg);
         }
         return(result > 0);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }