Example #1
0
 public void ChangePassword(ContextInfo contextInfo, string userid, string oldPassword, string newPassword)
 {
     contextInfo.Action = MES_ActionType.Update;
     LogonBll bll = new LogonBll(contextInfo);
     bll.CallAccessControl();
     bll.ChangePassword(userid, oldPassword, newPassword);
     GC.Collect();
 }
Example #2
0
 public void ValidatePassword(ContextInfo contextInfo, string userid, string password)
 {
     contextInfo.Action = MES_ActionType.Query;
     LogonBll bll = new LogonBll(contextInfo);
     bll.CallAccessControl();
     bll.ValidatePassword(userid, password);
     GC.Collect();
 }
Example #3
0
 public bool ValidateLineAdmin(ContextInfo contextInfo, string userid, string password)
 {
     contextInfo.Action = MES_ActionType.Query;
     LogonBll bll = new LogonBll(contextInfo);
     bll.CallAccessControl();
     return bll.ValidateLineAdmin(userid, password);
     GC.Collect();
 }
Example #4
0
        public void UpdateLogonTime(ContextInfo contextInfo, string sessionid, string userid, string machine, string shift)
        {
            contextInfo.Action = MES_ActionType.Update;
            LogonBll bll = new LogonBll(contextInfo);
            //不需要access control
            //bll.CallAccessControl();
            OperationContext context = OperationContext.Current;
            MessageProperties messageProperties = context.IncomingMessageProperties;
            RemoteEndpointMessageProperty endpointProperty = messageProperties[RemoteEndpointMessageProperty.Name] as RemoteEndpointMessageProperty;

            AccessController control = new AccessController(contextInfo);

            //control.CallIPAddressControl(endpointProperty.Address.ToString());

            bll.UpdateLogonTime(sessionid, userid, machine, endpointProperty.Address.ToString(), shift);
            GC.Collect();
        }
Example #5
0
 public void Logout(ContextInfo contextInfo, string sessionid)
 {
     contextInfo.Action = MES_ActionType.Update;
     LogonBll bll = new LogonBll(contextInfo);
     //不需要access control
     //bll.CallAccessControl();
     bll.Logout(sessionid);
     GC.Collect();
 }
Example #6
0
 public void Logon(ContextInfo contextInfo, string userid, string password)
 {
     contextInfo.Action = MES_ActionType.Update;
     LogonBll bll = new LogonBll(contextInfo);
     //不需要access control
     //bll.CallAccessControl();
     bll.Logon(userid, password);
     GC.Collect();
 }