管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2024-09-02 ee22df6c94793777fe5b28f2886ebeb2ba2c4256
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using 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();
                }));
            }
        }
    }
}