Exemplo n.º 1
0
 /// <summary>
 /// 获取并显示PDM登录信息
 /// </summary>
 private void GetPDMLoginInfo()
 {
     //获取登录信息
     Globals.UserID   = PDMHelper.GetLoginID();
     Globals.UserName = PDMHelper.GetLoginFullName();
     //显示登录信息
     this.lblUserName.ForeColor = Color.Black;
     this.lblUserName.Text      = string.Format("当前用户:{0}({1})", Globals.DEF_CreateId, Globals.UserName);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 初始化全局变量(即Globals中的变量)
 /// </summary>
 private void InitializeGlobalsVariables()
 {
     //获取SolidWorks文件名及文件ID
     Globals.FileName = swAppHelper.GetFileName();
     Globals.FileID   = PDMHelper.GetFileID(Globals.FileName).ToString();
     //获取PDM登录信息
     Globals.PDM_UserID       = PDMHelper.GetLoginID();
     Globals.PDM_UserAccount  = PDMHelper.GetLoginUserName();
     Globals.PDM_UserFullName = PDMHelper.GetLoginFullName();
 }