public static string GetUserPathNameByID(int UserID) { string _Title = ""; SqlDataReader sdr = SysUser.GetSingleUserByReader(UserID); if (sdr.Read()) { _Title = SysOrgan.GetOrganPathNameByID(int.Parse(sdr["OrganID"].ToString()), "") + "->" + sdr["OpName"].ToString(); } sdr.Close(); return(_Title); }
public static string GetCustomPathNameByID(int CustomID) { string _Title = ""; SqlDataReader sdr = SysCustomField.GetSingleCustomFieldByReader(CustomID); if (sdr.Read()) { _Title = SysOrgan.GetOrganPathNameByID(int.Parse(sdr["OrganID"].ToString()), "") + "->" + sdr["OpName"].ToString(); } sdr.Close(); return(_Title); }
public static string GetCurrentUserOrganName() { string _OrganName = ""; UserInfo us = CyxPack.UserCommonOperation.UserCommonOperation.GetUserInfo(); if (us != null) { _OrganName = SysOrgan.GetOrganNameByID(us.OrganID); } return(_OrganName); }
public static string GetOrganPathNameByID(int OrganID, string _OrganPath) { string _Title = _OrganPath; SqlDataReader sdr = SysOrgan.GetSingleOrganByReader(OrganID); if (sdr.Read()) { if (_Title.Length > 0) { _Title = sdr["OrganName"].ToString() + "->" + _Title; } else { _Title = sdr["OrganName"].ToString(); } if (int.Parse(sdr["POrganID"].ToString()) > 0) { _Title = GetOrganPathNameByID(int.Parse(sdr["POrganID"].ToString()), _Title); } } sdr.Close(); return(_Title); }