| | |
| | | using DIXWeb.DataRepository; |
| | | using DIXWeb.Entity.EasyUI; |
| | | using DIXWeb.Business.Workflow; |
| | | using DMC; |
| | | |
| | | namespace DIXWeb.Web |
| | | { |
| | |
| | | } |
| | | return record; |
| | | } |
| | | public RSP VerifyDomainUser(string user, string pwd) |
| | | { |
| | | RSP record = new RSP(); |
| | | try |
| | | { |
| | | DMC.DomainServiceProxy proxy = new DMC.DomainServiceProxy(); |
| | | Tuple<bool, string> r = proxy.VerifyDomainUser(user, pwd); |
| | | |
| | | if (r.Item1) |
| | | { |
| | | record.Code = 200; |
| | | record.Message = "SUCCESS"; |
| | | } |
| | | else |
| | | { |
| | | record.Code = 500; |
| | | record.Message = r.Item2; |
| | | } |
| | | } |
| | | catch (System.DirectoryServices.DirectoryServicesCOMException ex) |
| | | { |
| | | record.Code = 500; |
| | | record.Message = ex.Message; |
| | | } |
| | | return record; |
| | | } |
| | | private void RememberUser(string UserNo, string password, bool IsCheck, UserInfo ui) |
| | | { |
| | | if (IsCheck) |