Пример #1
0
        public IActionResult AddPrincipalCheck(AddPrincipalCheckModel model)
        {
            TRIGHT_USER_ROLE_Da     userroleDa = new TRIGHT_USER_ROLE_Da();
            List <TRIGHT_USER_ROLE> rolelist   = userroleDa.ListVmByUserid(User_Id);

            if (rolelist.Where(s => s.ROLEID == 2).Count() <= 0)
            {
                return(FailMessage("您不是超级管理员,没有工单处理权限"));
            }


            TASM_SUPPORT_PERSONAL_Da personalDa    = new TASM_SUPPORT_PERSONAL_Da();
            TASM_SUPPORT_PERSONAL    personalModel = personalDa.SelectByWhere(model.SID, (int)SupportendPoint.现场整改_现场负责人审核);

            model.PERSONALID = personalModel.ID;


            Facade.PrincipalFacade facade = new PrincipalFacade();

            if (!facade.Create(model))
            {
                return(FailMessage(facade.Msg));
            }
            return(SuccessMessage("处理成功!"));
        }
Пример #2
0
        public IActionResult AddPrincipalCheck(AddPrincipalCheckModel model)
        {
            PrincipalFacade facade = new PrincipalFacade();

            if (!facade.Create(model))
            {
                return(FailMessage("处理失败!"));
            }

            return(SuccessMessage("处理成功!"));
        }