Exemplo n.º 1
0
        /// <summary>
        /// 批量送券业务
        /// </summary>
        /// <param name="MinCouponNum"></param>
        /// <param name="ActivityID"></param>
        /// <param name="ActivityType"></param>
        /// <param name="CouponTypeID"></param>
        /// <param name="VipCardTypeID"></param>
        /// <returns></returns>
        private int BatchAddSendCoupon(int MinCouponNum, string ActivityID, int ActivityType, string CouponTypeID, int VipCardTypeID)
        {
            int ResultCount = 0;
            var ActivityDAO = new C_ActivityDAO(c_loggingSessionInfo);

            ResultCount = ActivityDAO.BatchAddSendCoupon(MinCouponNum, ActivityID, ActivityType, CouponTypeID, VipCardTypeID);
            return(ResultCount);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取所有商户ID
        /// </summary>
        /// <returns></returns>
        private Dictionary <string, string> GetALLCustomerInfo_List()
        {
            var     Result      = new Dictionary <string, string>();
            string  sql         = @"select a.customer_id as CustomerID,'user id='+b.db_user+';password='******';data source='+b.db_server+';database='+b.db_name+';' as conn 
                        from  cpos_ap..t_customer as a left join cpos_ap..t_customer_connect as b on a.customer_id=b.customer_id 
						where a.customer_status=1"                        ;
            var     ActivityDAO = new C_ActivityDAO(c_loggingSessionInfo);
            DataSet ds          = ActivityDAO.GetALLCustomerInfo(sql);

            if (ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0)
            {
                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                {
                    Result.Add(ds.Tables[0].Rows[i]["CustomerID"].ToString(), ds.Tables[0].Rows[i]["conn"].ToString());
                }
            }
            return(Result);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 批量新增获赠消息
        /// </summary>
        /// <param name="ResultConunt"></param>
        /// <param name="ActivityID"></param>
        /// <param name="VipCardTypeID"></param>
        /// <param name="ActivitType"></param>
        private void BatchAddPrizeReceive(int ResultConunt, string ActivityID, int VipCardTypeID, int ActivitType)
        {
            var ActivityDAO = new C_ActivityDAO(c_loggingSessionInfo);

            ActivityDAO.BatchAddPrizeReceive(ResultConunt, ActivityID, VipCardTypeID, ActivitType);
        }
Exemplo n.º 4
0
        /// <summary>
        /// 批量新增预发送消息
        /// </summary>
        /// <param name="ResultConunt"></param>
        /// <param name="ActivityID"></param>
        /// <param name="VipCardTypeID"></param>
        /// <param name="MessageID"></param>
        /// <param name="MessageType"></param>
        /// <param name="Content"></param>
        /// <param name="SendTime"></param>
        /// <param name="StrCouponName"></param>
        /// <param name="ActivitType"></param>
        private void BatchAddMessageSend(int ResultConunt, string ActivityID, int VipCardTypeID, string MessageID, string MessageType, string Content, DateTime SendTime, int ActivitType)
        {
            var ActivityDAO = new C_ActivityDAO(c_loggingSessionInfo);

            ActivityDAO.BatchAddMessageSend(ResultConunt, ActivityID, VipCardTypeID, MessageID, MessageType, Content, SendTime, ActivitType);
        }
Exemplo n.º 5
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public C_ActivityBLL(LoggingSessionInfo pUserInfo)
 {
     this._currentDAO     = new C_ActivityDAO(pUserInfo);
     this.CurrentUserInfo = pUserInfo;
 }