| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows; |
| | | using DataLoader.CS; |
| | | using System; |
| | | |
| | | namespace DataLoader.Model |
| | | { |
| | |
| | | { |
| | | if (uid > 0 && !string.IsNullOrEmpty(token)) |
| | | { |
| | | Common.UserId = uid; |
| | | Common.Uname = uname; |
| | | Common.Token = token; |
| | | CommonProp.UserId = uid; |
| | | CommonProp.Uname = uname; |
| | | CommonProp.Token = token; |
| | | CommonProp.Depcode = DBHelper.SelectDepCodeByUid(uid); |
| | | |
| | | owner.Dispatcher.Invoke(new Action(delegate |
| | | { |
| | | Common.Owner.SetLoginInfo(); |
| | | CommonProp.Owner.SetLoginInfo(); |
| | | })); |
| | | } |
| | | } |