Esempio n. 1
0
 private void SaveItemKitConfig(ItemKit kitconfig, int itemId, AspxCommonInfo commonInfo)
 {
     try
     {
         List <KeyValuePair <string, object> > parameter = CommonParmBuilder.GetParamSPUC(commonInfo);
         parameter.Add(new KeyValuePair <string, object>("KitComponentID", kitconfig.KitComponentID));
         parameter.Add(new KeyValuePair <string, object>("KitComponentOrder", kitconfig.KitComponentOrder));
         parameter.Add(new KeyValuePair <string, object>("Price", kitconfig.Price));
         parameter.Add(new KeyValuePair <string, object>("Quantity", kitconfig.Quantity));
         parameter.Add(new KeyValuePair <string, object>("Weight", kitconfig.Weight));
         parameter.Add(new KeyValuePair <string, object>("IsDefault", kitconfig.IsDefault));
         parameter.Add(new KeyValuePair <string, object>("KitID", kitconfig.KitID));
         parameter.Add(new KeyValuePair <string, object>("KitOrder", kitconfig.KitOrder));
         parameter.Add(new KeyValuePair <string, object>("ItemID", itemId));
         OracleHandler sqLh = new OracleHandler();
         sqLh.ExecuteNonQuery("usp_Aspx_MapKitToItem", parameter);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        private void SaveItemKitConfig(ItemKit kitconfig, int itemId, AspxCommonInfo commonInfo)
        {
            try
            {
                List<KeyValuePair<string, object>> parameter = CommonParmBuilder.GetParamSPUC(commonInfo);
                parameter.Add(new KeyValuePair<string, object>("@KitComponentID", kitconfig.KitComponentID));
                parameter.Add(new KeyValuePair<string, object>("@KitComponentOrder", kitconfig.KitComponentOrder));
                parameter.Add(new KeyValuePair<string, object>("@Price", kitconfig.Price));
                parameter.Add(new KeyValuePair<string, object>("@Quantity", kitconfig.Quantity));
                parameter.Add(new KeyValuePair<string, object>("@Weight", kitconfig.Weight));
                parameter.Add(new KeyValuePair<string, object>("@IsDefault", kitconfig.IsDefault));
                parameter.Add(new KeyValuePair<string, object>("@KitID", kitconfig.KitID));
                parameter.Add(new KeyValuePair<string, object>("@KitOrder", kitconfig.KitOrder));
                parameter.Add(new KeyValuePair<string, object>("@ItemID", itemId));
                SQLHandler sqLh = new SQLHandler();
                sqLh.ExecuteNonQuery("[dbo].[usp_Aspx_MapKitToItem]", parameter);
            }
            catch (Exception ex)
            {

                throw ex;
            }

        }