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

(开头部分) 8KB

这里只显示每个文件的开头 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 System.Reflection;

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 Columns : System.Web.Services.WebService
    {

        [WebMethod]
        //获取所有可显示的栏目
        public Song.Entities.Columns[] All()
        {
            //所属机构的所有课程
            Song.Entities.Organization org = Business.Do<IOrganization>().OrganCurrent();
            return Business.Do<IColumns>().All(org.Org_ID, null);
        }
        [WebMethod]
        //获取单个栏目信息
        public Song.Entities.Columns Column(int id)
        {
            return Business.Do<IColumns>().Single(id);
        }
        [WebMethod]
        //获取单个栏目信息
        public string ColumnJson(int id)
        {
            Song.Entities.Columns nc = Business.Do<IColumns>().Single(id);
            Type info = nc.GetType();
            PropertyInfo[] properties = info.GetProperties();
            string node = "var node={";
            for (int i = 0; i < properties.Length; i++)
            {
                PropertyInfo pi = properties[i];
                //当前属性的值
                object obj = info.GetProperty(pi.Name).GetValue(nc, null);
                node += pi.Name + ":";
                if (obj == null)
                {
                    node += "\"\"";
                }
                else
                {
后面还有 171 行代码,解锁后查看完整代码

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

AI 解读

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

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