Exemple #1
0
 void PermClient_SysUserLoginRecordInfoUpdateCompleted(object sender, SysUserLoginRecordInfoUpdateCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Result)
         {
             T_SYS_USERLOGINRECORDHIS history     = new T_SYS_USERLOGINRECORDHIS();
             T_SYS_USERLOGINRECORD    LoginRecord = new T_SYS_USERLOGINRECORD();
             //LoginRecord = Common.CurrentConfig.CurrentEmpploy.UserLoginRecord;
             //LoginRecord = Common.CurrentConfig.lo
             history.LOGINRECORDHISID = System.Guid.NewGuid().ToString();
             history.LOGINDATE        = LoginRecord.LOGINDATE;
             history.LOGINIP          = LoginRecord.LOGINIP;
             history.ONLINESTATE      = "0";
             history.REMARK           = "";
             history.USERNAME         = LoginRecord.USERNAME;
             history.LOGINTIME        = LoginRecord.LOGINTIME;
             PermissionServiceClient PermClient = new PermissionServiceClient();
             PermClient.SysUserLoginHistoryRecordInfoAddCompleted += new EventHandler <SysUserLoginHistoryRecordInfoAddCompletedEventArgs>(PermClient_SysUserLoginHistoryRecordInfoAddCompleted);
             PermClient.SysUserLoginHistoryRecordInfoAddAsync(history);
         }
     }
 }
Exemple #2
0
 void PermClient_SysUserLoginRecordInfoUpdateCompleted(object sender, SysUserLoginRecordInfoUpdateCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Result)
         {
             T_SYS_USERLOGINRECORDHIS history = new T_SYS_USERLOGINRECORDHIS();
             T_SYS_USERLOGINRECORD LoginRecord = new T_SYS_USERLOGINRECORD();
             //LoginRecord = Common.CurrentConfig.CurrentEmpploy.UserLoginRecord;
             //LoginRecord = Common.CurrentConfig.lo
             history.LOGINRECORDHISID = System.Guid.NewGuid().ToString();
             history.LOGINDATE = LoginRecord.LOGINDATE;
             history.LOGINIP = LoginRecord.LOGINIP;
             history.ONLINESTATE = "0";
             history.REMARK = "";
             history.USERNAME = LoginRecord.USERNAME;
             history.LOGINTIME = LoginRecord.LOGINTIME;
             PermissionServiceClient PermClient = new PermissionServiceClient();
             PermClient.SysUserLoginHistoryRecordInfoAddCompleted += new EventHandler<SysUserLoginHistoryRecordInfoAddCompletedEventArgs>(PermClient_SysUserLoginHistoryRecordInfoAddCompleted);
             PermClient.SysUserLoginHistoryRecordInfoAddAsync(history);
         }
     }
 }