コード例 #1
0
        public static int WmGetCouponReport(string Coupon)
        {
            int result = 0;
            iProductMasterClient productClient = new iProductMasterClient();
            CustomProfile        profile       = CustomProfile.GetProfile();
            string  ReportPath  = string.Empty;
            string  DisplayName = string.Empty;
            DataSet dsfailed    = new DataSet();

            // ReportPath = "AdministratorPortal/Report/CouponRpt.rdlc";
            // DisplayName = "Coupon Report";

            dsfailed = productClient.GetFailedImageDetail(profile.DBConnection._constr);
            if (dsfailed.Tables.Count > 0)
            {
                dsfailed.Tables[0].TableName = "dsfailed";
            }
            HttpContext.Current.Session["ReportDS"]  = dsfailed;
            HttpContext.Current.Session["SelObject"] = "imagefailed";

            result = Convert.ToInt16(dsfailed.Tables[0].Rows.Count);
            return(result);
        }