Exemple #1
0
        /// <summary>
        /// 根据报表NAME获取样式
        /// 查找不到返回空
        /// </summary>
        /// <param name="rptName">报表Name</param>
        /// <returns></returns>
        public ReportStyle GetRptStyleByName(string rptName)
        {
            var dal = new DAL.DALReportStyle();
            var dt  = dal.GetRptStyleByName(rptName);

            var rpt = new ReportStyle
            {
                RptName = rptName,
            };

            if (dt.Rows.Count > 0)
            {
                rpt.RptName  = dt.Rows[0]["REPORTNAME"].ToString();
                rpt.RptStyle = dt.Rows[0]["REPORTSTYLE"].ToString().Replace("&quot;", "\"");
            }

            return(rpt);
        }
Exemple #2
0
        /// <summary>
        /// 根据报表NAME获取样式
        /// 查找不到返回空
        /// </summary>
        /// <param name="rptName">报表Name</param>
        /// <returns></returns>
        public ReportStyle GetRptStyleByName(string rptName)
        {
            var dal = new DAL.DALReportStyle();
            var dt = dal.GetRptStyleByName(rptName);

            var rpt = new ReportStyle
            {
                RptName = rptName,
            };

            if (dt.Rows.Count > 0)
            {
                rpt.RptName = dt.Rows[0]["REPORTNAME"].ToString();
                rpt.RptStyle = dt.Rows[0]["REPORTSTYLE"].ToString().Replace("&quot;", "\"");
            }

            return rpt;
        }