| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text.RegularExpressions; |
| | | using System.Threading.Tasks; |
| | | using System.Transactions; |
| | | using zhengcaioa.IService; |
| | |
| | | } |
| | | ViewBag.shenfenzheng = resultshenfenzheng; |
| | | |
| | | |
| | | ResultDataEntity<SysAttachmentDTO> resultshenfenzhengbeimian = new ResultDataEntity<SysAttachmentDTO>(); |
| | | if (!string.IsNullOrEmpty(id)) |
| | | { |
| | |
| | | resultshenfenzhengbeimian = _sysAttachmentService.SearchByPaging(searchEntity); |
| | | } |
| | | ViewBag.shenfenzhengbeimian = resultshenfenzhengbeimian; |
| | | |
| | | |
| | | |
| | | ResultDataEntity<SysAttachmentDTO> resultsxuelizheng = new ResultDataEntity<SysAttachmentDTO>(); |
| | | if (!string.IsNullOrEmpty(id)) |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [CheckLogin] |
| | | public string Get(string id = null) |
| | | { |
| | |
| | | ViewData["curentuser"] = curentuser; |
| | | ResultEntity resultEntity = new ResultEntity(); |
| | | resultEntity.Result = false; |
| | | |
| | | string s = @"^([A-Fa-f0-9]{2}[-,:]){5}[A-Fa-f0-9]{2}$"; |
| | | Regex rStr = new Regex(s); |
| | | if (rStr.IsMatch(userdata.IpMac)) |
| | | { |
| | | using (TransactionScope scope = new TransactionScope()) |
| | | { |
| | | |
| | |
| | | return JsonConvert.SerializeObject(resultEntity); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | scope.Complete(); |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | | resultEntity.Message = "MAC地址格式错误"; |
| | | } |
| | | return JsonConvert.SerializeObject(resultEntity); |
| | | } |
| | | #endregion |