Пример #1
0
        /// <summary>
        /// 获取登录名ByPDM(UserName)
        /// </summary>
        /// <returns></returns>
        public static String GetLoginUserName()
        {
            string    a  = PDMHelper.GetLoginID();
            DataTable dt = PDMHelper.GetUserList();
            DataView  dv = new DataView(dt);

            dv.RowFilter = string.Format(" UserId='{0}' ", a);
            return(dv.ToTable("default").Rows[0]["UserName"].ToString());
        }