| | |
| | | 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.CS |
| | | namespace DataLoader.Model |
| | | { |
| | | public class NtstWeb |
| | | { |
| | |
| | | { |
| | | if (uid > 0 && !string.IsNullOrEmpty(token)) |
| | | { |
| | | Main.UserId = uid; |
| | | Main.Uname = uname; |
| | | Main.Token = token; |
| | | CommonProp.UserId = uid; |
| | | CommonProp.Uname = uname; |
| | | CommonProp.Token = token; |
| | | CommonProp.Depcode = DBHelper.SelectDepCodeByUid(uid); |
| | | |
| | | owner.Dispatcher.Invoke(new Action(delegate |
| | | { |
| | | Main.Owner.SetLoginInfo(); |
| | | CommonProp.Owner.SetLoginInfo(); |
| | | })); |
| | | } |
| | | } |