Пример #1
0
 public int SaveCompareItems(SaveCompareItemInfo saveCompareItemObj, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         CompareItemProvider provider = new CompareItemProvider();
         int compareID = provider.SaveCompareItems(saveCompareItemObj, aspxCommonObj);
         return(compareID);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
       public  int SaveCompareItems(SaveCompareItemInfo saveCompareItemObj, AspxCommonInfo aspxCommonObj)
       {
           try
           {
               CompareItemProvider provider = new CompareItemProvider();
               int compareID = provider.SaveCompareItems(saveCompareItemObj, aspxCommonObj);
               return compareID;
           }
           catch (Exception e)
           {
               throw e;
           }

       }
Пример #3
0
 public int SaveCompareItems(SaveCompareItemInfo saveCompareItemObj, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         List <KeyValuePair <string, object> > parameter = CommonParmBuilder.GetParamSPUS(aspxCommonObj);
         parameter.Add(new KeyValuePair <string, object>("ItemID", saveCompareItemObj.ItemID));
         parameter.Add(new KeyValuePair <string, object>("CompareItemID", 0));
         parameter.Add(new KeyValuePair <string, object>("IP", saveCompareItemObj.IP));
         parameter.Add(new KeyValuePair <string, object>("CountryName", saveCompareItemObj.CountryName));
         parameter.Add(new KeyValuePair <string, object>("CostVariantValueIDs", saveCompareItemObj.CostVariantIDs));
         OracleHandler sqlH      = new OracleHandler();
         int           compareID = sqlH.ExecuteNonQuery("usp_Aspx_AddItemsToCompare", parameter, "CompareAddedItemID");
         return(compareID);
     }
     catch (Exception e)
     {
         throw e;
     }
 }