public IActionResult AddPmcOrder(AddPmcCheckModel 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.PmcOrderFacade facade = new PmcOrderFacade();

            if (!facade.Create(model))
            {
                return(FailMessage(facade.Msg));
            }
            return(SuccessMessage("处理成功!"));
        }
Beispiel #2
0
        public IActionResult AddPmcOrder(AddPmcCheckModel model)
        {
            PmcOrderFacade facade = new PmcOrderFacade();

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