Song.Site/Manage/SOAP/Depart.asmx.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Data;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Xml;


using WeiSha.Common;

using Song.ServiceInterfaces;
using Song.Entities;

namespace Song.Site.Manage.SOAP
{
    /// <summary>
    /// Depart 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://yuefan.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    public class Depart : System.Web.Services.WebService
    {

        [WebMethod]
        //获取所有可显示的院系
        public Song.Entities.Depart[] Departs()
        {
            Song.Entities.Organization org;
            if (Extend.LoginState.Admin.IsSuperAdmin)
                org = Business.Do<IOrganization>().OrganSingle(Extend.LoginState.Admin.CurrentUser.Org_ID);
            else
                org = Business.Do<IOrganization>().OrganCurrent();
            return Business.Do<IDepart>().GetAll(org.Org_ID, true, true);
        }
        [WebMethod]
        //设置院系顺序,并返回共显示的所有院系
        public Song.Entities.Depart[] DepartOrder(string result)
        {
            this._SaveOrder(Server.UrlDecode(result));
            int orgid = Extend.LoginState.Admin.CurrentUser.Org_ID;
            Song.Entities.Depart[] deps= Business.Do<IDepart>().GetAll(orgid);
            return deps;
        }
        [WebMethod]
        //修改院系,并返回共显示的所有院系
        public Song.Entities.Depart[] DepartUpdate(string result)
        {
            this._Update(Server.UrlDecode(result));
            int orgid = Extend.LoginState.Admin.CurrentUser.Org_ID;
            return Business.Do<IDepart>().GetAll(orgid);
        }
        [WebMethod]
        //添加院系,并返回共显示的所有院系
        public Song.Entities.Depart[] DepartAdd(string result)
        {
            this._Add(Server.UrlDecode(result));
            int orgid = Extend.LoginState.Admin.CurrentUser.Org_ID;
后面还有 116 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。