对比新文件 |
| | |
| | | 锘縰sing DataLoader.CS; |
| | | using System; |
| | | |
| | | namespace DataLoader.Model |
| | | { |
| | | public class NtstWeb |
| | | { |
| | | public static string ObjName = "ntst"; |
| | | |
| | | public LoginWin owner; |
| | | |
| | | public NtstWeb() |
| | | { |
| | | } |
| | | |
| | | public void setLogin(int uid, string uname, string token) |
| | | { |
| | | if (uid > 0 && !string.IsNullOrEmpty(token)) |
| | | { |
| | | CommonProp.UserId = uid; |
| | | CommonProp.Uname = uname; |
| | | CommonProp.Token = token; |
| | | CommonProp.Depcode = DBHelper.SelectDepCodeByUid(uid); |
| | | |
| | | owner.Dispatcher.Invoke(new Action(delegate |
| | | { |
| | | CommonProp.Owner.SetLoginInfo(); |
| | | })); |
| | | } |
| | | } |
| | | } |
| | | } |