管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2023-08-21 48c18a96f8c8022ec43691117f2472073895af71
DataLoader/CS/NtstWeb.cs
对比新文件
@@ -0,0 +1,35 @@
锘縰sing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
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;
                owner.Dispatcher.Invoke(new Action(delegate
                {
                    CommonProp.Owner.SetLoginInfo();
                }));
            }
        }
    }
}