Organization.cs
资源名称:H3_OA.rar [点击查看]
上传用户:li2971742
上传日期:2021-11-18
资源大小:39096k
文件大小:6k
源码类别:
OA系统
开发平台:
C#
- using System;
- using System.Web;
- using System.Collections;
- using System.Web.Services;
- using System.Web.Services.Protocols;
- /// <summary>
- /// Summary description for Organization
- /// </summary>
- [WebService(Namespace = "http://tempuri.org/")]
- [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
- public class Organization : System.Web.Services.WebService
- {
- public Organization()
- {
- //Uncomment the following line if using designed components
- //InitializeComponent();
- }
- [WebMethod]
- public OThinker.Organization.Company GetCompany()
- {
- return OThinker.H3.Server.Engine.Organization.Company;
- }
- [WebMethod]
- public int GetUserCount()
- {
- return OThinker.H3.Server.Engine.Organization.UserCount;
- }
- [WebMethod]
- public bool IsAdministrator(string UserID)
- {
- return OThinker.H3.Server.Engine.Organization.IsAdministrator(UserID);
- }
- [WebMethod]
- public string GetManager(string ID)
- {
- return OThinker.H3.Server.Engine.Organization.GetManager(ID);
- }
- [WebMethod]
- public string GetDirectManager(string ID)
- {
- return OThinker.H3.Server.Engine.Organization.GetDirectManager(ID);
- }
- [WebMethod]
- public string[] GetManagersByTitle(string ID, OThinker.Organization.UnitType OrderType, string TitleName)
- {
- return OThinker.H3.Server.Engine.Organization.GetManagersByTitle(ID, OrderType, TitleName);
- }
- [WebMethod]
- public string GetManagerByInterval(string ID, int Interval)
- {
- return OThinker.H3.Server.Engine.Organization.GetManager(ID, Interval);
- }
- [WebMethod]
- public string GetName(string UserID)
- {
- return OThinker.H3.Server.Engine.Organization.GetName(UserID);
- }
- [WebMethod]
- public string GetPath(string ID)
- {
- return OThinker.H3.Server.Engine.Organization.GetPath(ID);
- }
- [WebMethod]
- public string GetFullName(string UnitID)
- {
- return OThinker.H3.Server.Engine.Organization.GetFullName(UnitID);
- }
- [WebMethod]
- public string[] GetParents(string UserID, OThinker.Organization.UnitType UnitType, bool Recursive)
- {
- return OThinker.H3.Server.Engine.Organization.GetParents(UserID, UnitType, Recursive);
- }
- [WebMethod]
- public string GetParent(string ID)
- {
- return OThinker.H3.Server.Engine.Organization.GetParent(ID);
- }
- [WebMethod]
- public string[] GetMembers(string[] Parents)
- {
- return OThinker.H3.Server.Engine.Organization.GetMembers(Parents);
- }
- [WebMethod]
- public string[] GetChildren(string ID, OThinker.Organization.UnitType UnitType, bool Recursive)
- {
- return OThinker.H3.Server.Engine.Organization.GetChildren(ID, UnitType, Recursive);
- }
- [WebMethod]
- public bool IsAncestor(string ChildID, string AncestorID)
- {
- return OThinker.H3.Server.Engine.Organization.IsAncestor(ChildID, AncestorID);
- }
- [WebMethod]
- public string GetUserIDByAlias(string Alias)
- {
- return OThinker.H3.Server.Engine.Organization.GetUserIDByAlias(Alias);
- }
- [WebMethod]
- public string[] GetUserManagedUnits(string UserID, OThinker.Organization.UnitType UnitType)
- {
- return OThinker.H3.Server.Engine.Organization.GetUserManagedUnits(UserID, UnitType);
- }
- [WebMethod]
- public string GetUserEmail(string UserID)
- {
- return OThinker.H3.Server.Engine.Organization.GetUserEmail(UserID);
- }
- [WebMethod]
- public string GetUserAddress(string UserID)
- {
- return OThinker.H3.Server.Engine.Organization.GetUserAddress(UserID);
- }
- [WebMethod]
- public string GetUserMobile(string UserID)
- {
- return OThinker.H3.Server.Engine.Organization.GetUserMobile(UserID);
- }
- [WebMethod]
- public string GetUserOfficePhone(string UserID)
- {
- return OThinker.H3.Server.Engine.Organization.GetUserOfficePhone(UserID);
- }
- [WebMethod]
- public string GetUserIpPhone(string UserID)
- {
- return OThinker.H3.Server.Engine.Organization.GetUserIpPhone(UserID);
- }
- [WebMethod]
- public string[] GetUserDelegants(string UserID, bool Recursive)
- {
- return OThinker.H3.Server.Engine.Organization.GetUserDelegants(UserID, Recursive);
- }
- [WebMethod]
- public string GetUserDelegatee(string UserID, bool Recursive)
- {
- return OThinker.H3.Server.Engine.Organization.GetUserDelegatee(UserID, Recursive);
- }
- [WebMethod]
- public string GetUserTitleID(string UserID)
- {
- return OThinker.H3.Server.Engine.Organization.GetUserTitleID(UserID);
- }
- [WebMethod]
- public string GetUserTitleName(string UserID)
- {
- return OThinker.H3.Server.Engine.Organization.GetUserTitleName(UserID);
- }
- [WebMethod]
- public string[] GetParentGroups(string UserID)
- {
- return OThinker.H3.Server.Engine.Organization.GetParentGroups(UserID);
- }
- [WebMethod]
- public string[] GetUserGroupNames(string UserID)
- {
- return OThinker.H3.Server.Engine.Organization.GetUserGroupNames(UserID);
- }
- [WebMethod]
- public string GetUserGroup(string UserID, string GroupName)
- {
- return OThinker.H3.Server.Engine.Organization.GetUserGroup(UserID, GroupName);
- }
- [WebMethod]
- public string GetUserGroupManager(string UserID, string GroupName)
- {
- return OThinker.H3.Server.Engine.Organization.GetUserGroupManager(UserID, GroupName);
- }
- }