Пример #1
0
        /// <summary>
        /// 获取报表,以及报表相关的参数值,单一的参数列表获取,只有默认值参数
        /// </summary>
        /// <param name="RP_Code"></param>
        /// <returns></returns>
        public CT_Reports GetReplaceReport(int RP_Code)
        {
            MD_ReportList Report = _D_re.GetReportValue(RP_Code);

            if (Report != null && Report.CT_Reports_List != null && Report.CT_Reports_List.Count > 0)
            {
                Report = BL_ReportReplace.ReportParamReplace(Report);
                Report.CT_Reports_List[0].RP_Query = ReportReplace.ReportParamReplace(Report.CT_Reports_List[0].RP_Query);
                return(Report.CT_Reports_List[0]);
            }
            else
            {
                CT_Reports o = _D_re.GetReprot(RP_Code);
                o.RP_Query = ReportReplace.ReportParamReplace(o.RP_Query);
                return(o);
            }
        }
Пример #2
0
        /// <summary>
        /// 获取Campaign 的报表参数 整个列表的加载
        /// </summary>
        /// <param name="Intern">国际化参数</param>
        /// <returns></returns>
        public MD_ReportList getCampaignReprotList(bool Intern)
        {
            MD_ReportList Report = Cam.GetCampaignReprotList();

            if (Report == null)
            {
                return(null);
            }
            //国际化
            if (!Intern)
            {
                Report = ReportReplace.NameReplace(Report);
            }
            if (Report != null)
            {
                Report = BL_ReportReplace.ReportParamReplace(Report);
            }
            return(Report);
        }
Пример #3
0
        /// <summary>
        /// 获取替换成功后的Report,
        /// Name Desc 都做了替换 可以单独使用,也可供其他方式调用
        /// </summary>
        /// <param name="Intern"></param>
        /// <param name="Param_value"></param>
        /// <param name="Mode"></param>
        /// <param name="Paramterslist"></param>
        /// <returns></returns>
        public CT_Reports GetReplaceReport(bool Intern, CT_Param_Value Param_value, EM_ParameterMode Mode, string Paramterslist)
        {
            MD_ReportList MD_List = GetReportValue(Param_value);

            if (MD_List == null || MD_List.CT_Reports_List == null)
            {
                return(null);
            }
            if (!Intern)
            {
                MD_List = ReportReplace.NameReplace(MD_List);
            }
            MD_List = BL_ReportReplace.ReportParamReplace(MD_List, Mode, Paramterslist, Intern);
            CT_Reports Report = null;

            if (MD_List != null || MD_List.CT_Reports_List[0] != null)
            {
                Report          = MD_List.CT_Reports_List[0];
                Report.RP_Query = ReportReplace.ReportParamReplace(Report.RP_Query);
            }
            return(Report);
        }