Organization.cs
上传用户:li2971742
上传日期:2021-11-18
资源大小:39096k
文件大小:6k
源码类别:

OA系统

开发平台:

C#

  1. using System;
  2. using System.Web;
  3. using System.Collections;
  4. using System.Web.Services;
  5. using System.Web.Services.Protocols;
  6. /// <summary>
  7. /// Summary description for Organization
  8. /// </summary>
  9. [WebService(Namespace = "http://tempuri.org/")]
  10. [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
  11. public class Organization : System.Web.Services.WebService
  12. {
  13.     public Organization()
  14.     {
  15.         //Uncomment the following line if using designed components 
  16.         //InitializeComponent(); 
  17.     }
  18.     [WebMethod]
  19.     public OThinker.Organization.Company GetCompany()
  20.     {
  21.         return OThinker.H3.Server.Engine.Organization.Company;
  22.     }
  23.     [WebMethod]
  24.     public int GetUserCount()
  25.     {
  26.         return OThinker.H3.Server.Engine.Organization.UserCount;
  27.     }
  28.     [WebMethod]
  29.     public bool IsAdministrator(string UserID)
  30.     {
  31.         return OThinker.H3.Server.Engine.Organization.IsAdministrator(UserID);
  32.     }
  33.     [WebMethod]
  34.     public string GetManager(string ID)
  35.     {
  36.         return OThinker.H3.Server.Engine.Organization.GetManager(ID);
  37.     }
  38.     [WebMethod]
  39.     public string GetDirectManager(string ID)
  40.     {
  41.         return OThinker.H3.Server.Engine.Organization.GetDirectManager(ID);
  42.     }
  43.     [WebMethod]
  44.     public string[] GetManagersByTitle(string ID, OThinker.Organization.UnitType OrderType, string TitleName)
  45.     {
  46.         return OThinker.H3.Server.Engine.Organization.GetManagersByTitle(ID, OrderType, TitleName);
  47.     }
  48.     [WebMethod]
  49.     public string GetManagerByInterval(string ID, int Interval)
  50.     {
  51.         return OThinker.H3.Server.Engine.Organization.GetManager(ID, Interval);
  52.     }
  53.     [WebMethod]
  54.     public string GetName(string UserID)
  55.     {
  56.         return OThinker.H3.Server.Engine.Organization.GetName(UserID);
  57.     }
  58.     [WebMethod]
  59.     public string GetPath(string ID)
  60.     {
  61.         return OThinker.H3.Server.Engine.Organization.GetPath(ID);
  62.     }
  63.     [WebMethod]
  64.     public string GetFullName(string UnitID)
  65.     {
  66.         return OThinker.H3.Server.Engine.Organization.GetFullName(UnitID);
  67.     }
  68.     [WebMethod]
  69.     public string[] GetParents(string UserID, OThinker.Organization.UnitType UnitType, bool Recursive)
  70.     {
  71.         return OThinker.H3.Server.Engine.Organization.GetParents(UserID, UnitType, Recursive);
  72.     }
  73.     [WebMethod]
  74.     public string GetParent(string ID)
  75.     {
  76.         return OThinker.H3.Server.Engine.Organization.GetParent(ID);
  77.     }
  78.     [WebMethod]
  79.     public string[] GetMembers(string[] Parents)
  80.     {
  81.         return OThinker.H3.Server.Engine.Organization.GetMembers(Parents);
  82.     }
  83.     [WebMethod]
  84.     public string[] GetChildren(string ID, OThinker.Organization.UnitType UnitType, bool Recursive)
  85.     {
  86.         return OThinker.H3.Server.Engine.Organization.GetChildren(ID, UnitType, Recursive);
  87.     }
  88.     [WebMethod]
  89.     public bool IsAncestor(string ChildID, string AncestorID)
  90.     {
  91.         return OThinker.H3.Server.Engine.Organization.IsAncestor(ChildID, AncestorID);
  92.     }
  93.     [WebMethod]
  94.     public string GetUserIDByAlias(string Alias)
  95.     {
  96.         return OThinker.H3.Server.Engine.Organization.GetUserIDByAlias(Alias);
  97.     }
  98.     [WebMethod]
  99.     public string[] GetUserManagedUnits(string UserID, OThinker.Organization.UnitType UnitType)
  100.     {
  101.         return OThinker.H3.Server.Engine.Organization.GetUserManagedUnits(UserID, UnitType);
  102.     }
  103.     [WebMethod]
  104.     public string GetUserEmail(string UserID)
  105.     {
  106.         return OThinker.H3.Server.Engine.Organization.GetUserEmail(UserID);
  107.     }
  108.     [WebMethod]
  109.     public string GetUserAddress(string UserID)
  110.     {
  111.         return OThinker.H3.Server.Engine.Organization.GetUserAddress(UserID);
  112.     }
  113.     [WebMethod]
  114.     public string GetUserMobile(string UserID)
  115.     {
  116.         return OThinker.H3.Server.Engine.Organization.GetUserMobile(UserID);
  117.     }
  118.     [WebMethod]
  119.     public string GetUserOfficePhone(string UserID)
  120.     {
  121.         return OThinker.H3.Server.Engine.Organization.GetUserOfficePhone(UserID);
  122.     }
  123.     [WebMethod]
  124.     public string GetUserIpPhone(string UserID)
  125.     {
  126.         return OThinker.H3.Server.Engine.Organization.GetUserIpPhone(UserID);
  127.     }
  128.     [WebMethod]
  129.     public string[] GetUserDelegants(string UserID, bool Recursive)
  130.     {
  131.         return OThinker.H3.Server.Engine.Organization.GetUserDelegants(UserID, Recursive);
  132.     }
  133.     [WebMethod]
  134.     public string GetUserDelegatee(string UserID, bool Recursive)
  135.     {
  136.         return OThinker.H3.Server.Engine.Organization.GetUserDelegatee(UserID, Recursive);
  137.     }
  138.     [WebMethod]
  139.     public string GetUserTitleID(string UserID)
  140.     {
  141.         return OThinker.H3.Server.Engine.Organization.GetUserTitleID(UserID);
  142.     }
  143.     [WebMethod]
  144.     public string GetUserTitleName(string UserID)
  145.     {
  146.         return OThinker.H3.Server.Engine.Organization.GetUserTitleName(UserID);
  147.     }
  148.     [WebMethod]
  149.     public string[] GetParentGroups(string UserID)
  150.     {
  151.         return OThinker.H3.Server.Engine.Organization.GetParentGroups(UserID);
  152.     }
  153.     [WebMethod]
  154.     public string[] GetUserGroupNames(string UserID)
  155.     {
  156.         return OThinker.H3.Server.Engine.Organization.GetUserGroupNames(UserID);
  157.     }
  158.     [WebMethod]
  159.     public string GetUserGroup(string UserID, string GroupName)
  160.     {
  161.         return OThinker.H3.Server.Engine.Organization.GetUserGroup(UserID, GroupName);
  162.     }
  163.     [WebMethod]
  164.     public string GetUserGroupManager(string UserID, string GroupName)
  165.     {
  166.         return OThinker.H3.Server.Engine.Organization.GetUserGroupManager(UserID, GroupName);
  167.     }
  168. }