Exemplo n.º 1
0
        /// <summary>
        /// 组合条件查询工作计划
        /// </summary>
        /// <param name="teacherid">教师ID</param>
        /// <param name="state">工作计划状态 当state=5时,不按state筛选工作计划</param>
        /// <returns>查询到的工作计划转Json</returns>
        public object QueryWorkPlan(string teacherid, uint state)
        {
            PlantableService plantableService = new PlantableService();
            var planList = plantableService.QueryWorkPlan(teacherid, state);

            return(Json(new
            {
                code = 200,
                msg = "WorkPlan query successfully!",
                count = (int)planList.ToArray().Length,
                planList = planList
            }));
        }
Exemplo n.º 2
0
        /// <summary>
        /// 批复工资计划
        /// </summary>
        /// <param name="id">工作计划表中记录的ID</param>
        /// <param name="state">工作计划的状态</param>
        /// <param name="issue">处理意见,由批复人员填写</param>
        /// <returns>批复成功后,返回所有计划列表</returns>
        public object ReplyWorkPlan(int id, uint state, string issue)
        {
            PlantableService plantableService = new PlantableService();

            plantableService.ReplyWorkPlan(id, issue, state);
            var planList = plantableService.QueryWorkPlan("", 5); //批复成功返回所有计划列表

            return(Json(new
            {
                code = 200,
                msg = "Plan status changed successfully!",
                planList = planList
            }));
        }