//新进住民环境适应及辅导记录 zhongyh
        private void NewRegEnvAdaptation(WordDocument doc, ReportRequest request)
        {
            ISocialWorkerManageService reportManageService = IOCContainer.Instance.Resolve <ISocialWorkerManageService>();
            var bd = reportManageService.GetNewRegEnvAdaptationById(request.id);

            var orginfo  = orgserver.GetOrg(bd.Data.ORGID);
            var p        = orgserver.GetEmployee(bd.Data.CREATEBY);
            var response = new BaseResponse <List <object> >(new List <object>());

            response.Data.Add
                (new
            {
                NAME            = request.feeName,
                INDATE          = bd.Data.INDATE,
                W1EVALDATE      = bd.Data.W1EVALDATE,
                INFORMFLAG      = (bd.Data.INFORMFLAG == 1) ? "是" : "否",
                COMMFLAG        = (bd.Data.COMMFLAG == 1) ? "是" : "否",
                INTERPERSONAL   = bd.Data.INTERPERSONAL,
                PARTICIPATION   = bd.Data.PARTICIPATION,
                COORDINATION    = bd.Data.COORDINATION,
                EMOTION         = bd.Data.EMOTION,
                RESISTANCE      = bd.Data.RESISTANCE,
                HELP            = bd.Data.HELP,
                PROCESSACTIVITY = bd.Data.PROCESSACTIVITY,
                TRACEREC2       = bd.Data.TRACEREC,
                WEEK            = bd.Data.WEEK,
                W2EVALDATE      = bd.Data.W2EVALDATE,
                W3EVALDATE      = bd.Data.W3EVALDATE,
                W4EVALDATE      = bd.Data.W4EVALDATE,
                W1EVALUATION    = bd.Data.EVALUATION,
                CREATEBY        = p.Data != null?p.Data.EmpName:"",
                ORG             = orginfo.Data.OrgName,
            });
            BindData(response.Data[0], doc);
        }
示例#2
0
        public IHttpActionResult Get(int id)
        {
            var response = socialWorkerService.GetNewRegEnvAdaptationById(id);

            return(Ok(response));
        }