コード例 #1
0
 public static void InsertNewCurrency(AspxCommonInfo aspxCommonObj, CurrencyInfo currencyInsertObj)
 {
     try
     {
         AspxCurrencyProvider.InsertNewCurrency(aspxCommonObj, currencyInsertObj);
         string CurrencyValue = currencyInsertObj.Region + ',' + currencyInsertObj.CurrencySymbol + ',' + currencyInsertObj.CurrencyCode;
         CurruncyJsWrite(CurrencyValue);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
コード例 #2
0
 public static void InsertNewCurrency(AspxCommonInfo aspxCommonObj, CurrencyInfo currencyInsertObj)
 {
     try
     {
         List <KeyValuePair <string, object> > parameter = CommonParmBuilder.GetParamSPUC(aspxCommonObj);
         parameter.Add(new KeyValuePair <string, object>("@CurrencyID", currencyInsertObj.CurrencyID));
         parameter.Add(new KeyValuePair <string, object>("@CurrencyName", currencyInsertObj.CurrencyName));
         parameter.Add(new KeyValuePair <string, object>("@CurrencyCode", currencyInsertObj.CurrencyCode));
         parameter.Add(new KeyValuePair <string, object>("@CurrencySymbol", currencyInsertObj.CurrencySymbol));
         parameter.Add(new KeyValuePair <string, object>("@CountryName", currencyInsertObj.CountryName));
         parameter.Add(new KeyValuePair <string, object>("@Region", currencyInsertObj.Region));
         parameter.Add(new KeyValuePair <string, object>("@ConversionRate", currencyInsertObj.ConversionRate));
         parameter.Add(new KeyValuePair <string, object>("@DisplayOrder", currencyInsertObj.DisplayOrder));
         parameter.Add(new KeyValuePair <string, object>("@BaseImage", currencyInsertObj.BaseImage));
         parameter.Add(new KeyValuePair <string, object>("@IsActive", currencyInsertObj.IsActive));
         SQLHandler sqLh = new SQLHandler();
         sqLh.ExecuteNonQuery("[usp_Aspx_AddUpdateCurrency]", parameter);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
コード例 #3
0
 public static void InsertNewCurrency(AspxCommonInfo aspxCommonObj, CurrencyInfo currencyInsertObj)
 {
     try
     {
         List<KeyValuePair<string, object>> parameter = CommonParmBuilder.GetParamSPUC(aspxCommonObj);
         parameter.Add(new KeyValuePair<string, object>("@CurrencyID", currencyInsertObj.CurrencyID));
         parameter.Add(new KeyValuePair<string, object>("@CurrencyName", currencyInsertObj.CurrencyName));
         parameter.Add(new KeyValuePair<string, object>("@CurrencyCode", currencyInsertObj.CurrencyCode));
         parameter.Add(new KeyValuePair<string, object>("@CurrencySymbol", currencyInsertObj.CurrencySymbol));
         parameter.Add(new KeyValuePair<string, object>("@CountryName", currencyInsertObj.CountryName));
         parameter.Add(new KeyValuePair<string, object>("@Region", currencyInsertObj.Region));
         parameter.Add(new KeyValuePair<string, object>("@ConversionRate", currencyInsertObj.ConversionRate));
         parameter.Add(new KeyValuePair<string, object>("@DisplayOrder", currencyInsertObj.DisplayOrder));
         parameter.Add(new KeyValuePair<string, object>("@BaseImage", currencyInsertObj.BaseImage));
         parameter.Add(new KeyValuePair<string, object>("@IsActive", currencyInsertObj.IsActive));
         SQLHandler sqLh = new SQLHandler();
         sqLh.ExecuteNonQuery("[usp_Aspx_AddUpdateCurrency]", parameter);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
コード例 #4
0
 public void InsertNewCurrency(AspxCommonInfo aspxCommonObj, CurrencyInfo currencyInsertObj)
 {
     try
     {
         AspxCurrencyController.InsertNewCurrency(aspxCommonObj, currencyInsertObj);
         HttpContext.Current.Cache.Remove("AspxCurrencyRate" + aspxCommonObj.PortalID.ToString() + aspxCommonObj.StoreID.ToString());
     }
     catch (Exception e)
     {
         throw e;
     }
 }