예제 #1
0
        /// <summary>
        /// 设置按省路由大头笔
        /// </summary>
        /// <param name="userInfo">用户</param>
        /// <param name="dtAreaRouteMark">路由设置</param>
        /// <returns>影响行数</returns>
        public int SetAreaRouteMark(BaseUserInfo userInfo, string areaId, DataTable dtAreaRouteMark)
        {
            int result = 0;

            var parameter = ServiceInfo.Create(userInfo, MethodBase.GetCurrentMethod());

            ServiceUtil.ProcessUserCenterWriteDb(userInfo, parameter, (dbHelper) =>
            {
                BaseAreaProvinceMarkManager areaProvinceMarkManager = new BaseAreaProvinceMarkManager(dbHelper, userInfo);
                result = areaProvinceMarkManager.SetAreaRouteMark(areaId, dtAreaRouteMark);
            });

            return(result);
        }
예제 #2
0
        /// <summary>
        /// 获取按省路由大头笔信息(输入)
        /// </summary>
        /// <param name="userInfo">用户</param>
        /// <param name="parentId">父节点</param>
        /// <returns>数据表</returns>
        public DataTable GetAreaRouteMarkEdit(BaseUserInfo userInfo, string parentId)
        {
            DataTable result = null;

            var parameter = ServiceInfo.Create(userInfo, MethodBase.GetCurrentMethod());

            ServiceUtil.ProcessUserCenterReadDb(userInfo, parameter, (dbHelper) =>
            {
                BaseAreaProvinceMarkManager areaProvinceMarkManager = new BaseAreaProvinceMarkManager(dbHelper, userInfo);
                result           = areaProvinceMarkManager.GetAreaRouteMarkEdit(parentId);
                result.TableName = BaseAreaProvinceMarkEntity.TableName;
            });

            return(result);
        }