コード例 #1
0
        public static List <CouponInfo> BindAllCouponDetails(int offset, int limit, GetCouponDetailsInfo couponDetailObj, AspxCommonInfo aspxCommonObj)
        {
            List <KeyValuePair <string, object> > parameter = CommonParmBuilder.GetParamSPUC(aspxCommonObj);

            parameter.Add(new KeyValuePair <string, object>("@offset", offset));
            parameter.Add(new KeyValuePair <string, object>("@limit", limit));
            parameter.Add(new KeyValuePair <string, object>("@CouponTypeID", couponDetailObj.CouponTypeID));
            parameter.Add(new KeyValuePair <string, object>("@CouponCode", couponDetailObj.CouponCode));
            parameter.Add(new KeyValuePair <string, object>("@ValidateFrom", couponDetailObj.ValidateFrom));
            parameter.Add(new KeyValuePair <string, object>("@ValidateTo", couponDetailObj.ValidateTo));
            SQLHandler        sqlH      = new SQLHandler();
            List <CouponInfo> lstCoupon = sqlH.ExecuteAsList <CouponInfo>("usp_Aspx_GetCouponDetails", parameter);

            return(lstCoupon);
        }
コード例 #2
0
 public List<CouponInfo> BindAllCouponDetails(int offset, int limit, GetCouponDetailsInfo couponDetailObj, AspxCommonInfo aspxCommonObj)
 {
     List<KeyValuePair<string, object>> parameter = new List<KeyValuePair<string, object>>();
     parameter.Add(new KeyValuePair<string, object>("@offset", offset));
     parameter.Add(new KeyValuePair<string, object>("@limit", limit));
     parameter.Add(new KeyValuePair<string, object>("@CouponTypeID", couponDetailObj.CouponTypeID));
     parameter.Add(new KeyValuePair<string, object>("@CouponCode", couponDetailObj.CouponCode));
     parameter.Add(new KeyValuePair<string, object>("@ValidateFrom", couponDetailObj.ValidateFrom));
     parameter.Add(new KeyValuePair<string, object>("@ValidateTo", couponDetailObj.ValidateTo));
     parameter.Add(new KeyValuePair<string, object>("@StoreID", aspxCommonObj.StoreID));
     parameter.Add(new KeyValuePair<string, object>("@PortalID", aspxCommonObj.PortalID));
     parameter.Add(new KeyValuePair<string, object>("@CultureName", aspxCommonObj.CultureName));
     parameter.Add(new KeyValuePair<string, object>("@UserName", aspxCommonObj.UserName));
     SQLHandler sqlH = new SQLHandler();
     return sqlH.ExecuteAsList<CouponInfo>("usp_Aspx_GetCouponDetails", parameter);
 }
コード例 #3
0
        public List <CouponInfo> BindAllCouponDetails(int offset, int limit, GetCouponDetailsInfo couponDetailObj, AspxCommonInfo aspxCommonObj)
        {
            List <KeyValuePair <string, object> > parameter = new List <KeyValuePair <string, object> >();

            parameter.Add(new KeyValuePair <string, object>("@offset", offset));
            parameter.Add(new KeyValuePair <string, object>("@limit", limit));
            parameter.Add(new KeyValuePair <string, object>("@CouponTypeID", couponDetailObj.CouponTypeID));
            parameter.Add(new KeyValuePair <string, object>("@CouponCode", couponDetailObj.CouponCode));
            parameter.Add(new KeyValuePair <string, object>("@ValidateFrom", couponDetailObj.ValidateFrom));
            parameter.Add(new KeyValuePair <string, object>("@ValidateTo", couponDetailObj.ValidateTo));
            parameter.Add(new KeyValuePair <string, object>("@StoreID", aspxCommonObj.StoreID));
            parameter.Add(new KeyValuePair <string, object>("@PortalID", aspxCommonObj.PortalID));
            parameter.Add(new KeyValuePair <string, object>("@CultureName", aspxCommonObj.CultureName));
            parameter.Add(new KeyValuePair <string, object>("@UserName", aspxCommonObj.UserName));
            SQLHandler sqlH = new SQLHandler();

            return(sqlH.ExecuteAsList <CouponInfo>("usp_Aspx_GetCouponDetails", parameter));
        }
コード例 #4
0
 public static List<CouponInfo> BindAllCouponDetails(int offset, int limit, GetCouponDetailsInfo couponDetailObj, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         List<KeyValuePair<string, object>> parameter = CommonParmBuilder.GetParamSPUC(aspxCommonObj);
         parameter.Add(new KeyValuePair<string, object>("@offset", offset));
         parameter.Add(new KeyValuePair<string, object>("@limit", limit));
         parameter.Add(new KeyValuePair<string, object>("@CouponTypeID", couponDetailObj.CouponTypeID));
         parameter.Add(new KeyValuePair<string, object>("@CouponCode", couponDetailObj.CouponCode));
         parameter.Add(new KeyValuePair<string, object>("@ValidateFrom", couponDetailObj.ValidateFrom));
         parameter.Add(new KeyValuePair<string, object>("@ValidateTo", couponDetailObj.ValidateTo));
         SQLHandler sqlH = new SQLHandler();
         List<CouponInfo> lstCoupon = sqlH.ExecuteAsList<CouponInfo>("usp_Aspx_GetCouponDetails", parameter);
         return lstCoupon;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #5
0
 public List<CouponInfo> GetCouponDetails(int offset, int limit, GetCouponDetailsInfo couponDetailObj, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         List<CouponInfo> lstCoupon = AspxCouponManageController.BindAllCouponDetails(offset, limit, couponDetailObj, aspxCommonObj);
         return lstCoupon;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #6
0
        public static List <CouponInfo> BindAllCouponDetails(int offset, int limit, GetCouponDetailsInfo couponDetailObj, AspxCommonInfo aspxCommonObj)
        {
            List <CouponInfo> lstCoupon = AspxCouponManageProvider.BindAllCouponDetails(offset, limit, couponDetailObj, aspxCommonObj);

            return(lstCoupon);
        }