Ejemplo n.º 1
0
        /// <summary>
        /// 保存报表样式
        /// </summary>
        /// <param name="rptStyle">报表对象</param>
        /// <returns></returns>
        public string SaveRptStyle(ReportStyle rptStyle)
        {
            int    count  = 0;
            string errMsg = "";

            if (rptStyle.RptName.Trim() == string.Empty)
            {
                return("报表名不能为空");
            }
            //if (string.IsNullOrEmpty(rptStyle.OrgId) || string.IsNullOrEmpty(rptStyle.TreeId))
            //{
            //    return "组织机构树和组织机构单元不能为空";
            //}

            var dal = new DAL.DALReportStyle();

            //count = dal.GetCountByTreeID(rptStyle.TreeId, rptStyle.RptName, out errMsg);

            //if (count > 0)
            //    return "报表名称已存在,请修改名称!";

            return(dal.SaveRptStyle(rptStyle));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 保存报表样式
        /// </summary>
        /// <param name="rptStyle">报表对象</param>
        /// <returns></returns>
        public string SaveRptStyle(ReportStyle rptStyle)
        {
            int count = 0;
            string errMsg = "";

            if (rptStyle.RptName.Trim() == string.Empty)
            {
                return "报表名不能为空";
            }
            //if (string.IsNullOrEmpty(rptStyle.OrgId) || string.IsNullOrEmpty(rptStyle.TreeId))
            //{
            //    return "组织机构树和组织机构单元不能为空";
            //}

            var dal = new DAL.DALReportStyle();

            //count = dal.GetCountByTreeID(rptStyle.TreeId, rptStyle.RptName, out errMsg);

            //if (count > 0)
            //    return "报表名称已存在,请修改名称!";

            return dal.SaveRptStyle(rptStyle);
        }