Exemplo n.º 1
0
        /// <summary>
        /// 生成活动报表
        /// </summary>
        /// <param name="CG_Code">活动ID</param>
        /// <param name="AU_Type">登陆用户类型</param>
        /// <param name="AU_AD_OM_Code">登陆用户所在单位ID</param>
        /// <returns></returns>
        public int EventRun(int EV_Code, int AU_Type, int AU_AD_OM_Code)
        {
            BL_Reports R = new BL_Reports();

            return(R.ReportRun(new ReportRunParam()
            {
                pType = 2, CG_EV_Code = EV_Code, UType = AU_Type, AU_AD_OM_Code = AU_AD_OM_Code
            }));
        }
Exemplo n.º 2
0
        /// <summary>
        /// 生成活动报表
        /// </summary>
        /// <param name="CG_Code">活动ID</param>
        /// <param name="AU_Type">登陆用户类型</param>
        /// <param name="AU_AD_OM_Code">登陆用户所在单位ID</param>
        /// <returns></returns>
        public int CampaignRun(int CG_Code, int AU_Type, int AU_AD_OM_Code)
        {
            BL_Reports R   = new BL_Reports();
            int        err = R.ReportRun(new ReportRunParam()
            {
                pType = 1, CG_EV_Code = CG_Code, UType = AU_Type, AU_AD_OM_Code = AU_AD_OM_Code
            });

            if (err >= 0)
            {
                BL_Wechat _w = new BL_Wechat();
                _w.SendWechat_news(CG_Code, "", new string[] { "1" });
            }
            return(err);
        }