コード例 #1
0
        public async Task <bool> CheckUserRole(CheckUserRoleparam model)
        {
            string strInsert = string.Format(@"insert into bss_sys_log (USERNAME, TRUENAME, CLIENTIP, OPERTYPE, MODULENAME, OPERCONTENT)
values ('{0}', '{1}','PDA程式', '权限验证', '{2}', '{3}')
", model.user_name, model.username, model.productType, "跨工单投入权限验证|" + model.previous_shipment_no + "|" + model.technology + "|" + model.device_no);

            return(await base.ExecuteCommand(strInsert, new { }) > 0);
        }
コード例 #2
0
        /// <summary>
        /// 验证权限
        /// </summary>
        /// <returns></returns>
        public async Task <MessageModel <CheckUserRoleReturns> > CheckUserRole(CheckUserRoleparam model)
        {
            MessageModel <CheckUserRoleReturns> message = new MessageModel <CheckUserRoleReturns>();
            CheckUserRoleReturns result = new CheckUserRoleReturns();
            //验证权限
            string res = await pmes.CheckUserRoleAsync(model.username, model.password, "跨工单投入");

            if (res.ToUpper() != "TRUE")
            {
                message.msg = res;
                return(message);
            }
            result.checkPermission = true;
            await _dal.CheckUserRole(model);

            message.success  = true;
            message.msg      = "校验成功";
            message.response = result;
            return(message);
        }
コード例 #3
0
 public async Task <MessageModel <CheckUserRoleReturns> > CheckUserRole(CheckUserRoleparam model)
 {
     return(await _coatServices.CheckUserRole(model));
 }