Song.Site/Manage/Pay/PayInterfacerType.ascx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WeiSha.Common;
using Song.ServiceInterfaces;
using Song.Entities;
namespace Song.Site.Manage.Pay
{
    public partial class PayInterfacerType : System.Web.UI.UserControl
    {
        private int id = WeiSha.Common.Request.QueryString["id"].Int32 ?? 0;
        public DropDownList DdlInterFace
        {
            get { return ddlInterFace; }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                Song.Entities.PayInterface pi = Business.Do<IPayInterface>().PaySingle(id);
                if (pi != null)
                {
                    ListItem li = ddlInterFace.Items.FindByText(pi.Pai_Pattern);
                    if (li != null)
                    {
                        ddlInterFace.SelectedIndex = -1;
                        li.Selected = true;
                    }
                }
                else
                {
                    string pagename = WeiSha.Common.Request.Page.FileName;
                    ListItem li = ddlInterFace.Items.FindByValue(pagename.ToLower());
                    if (li != null)
                    {
                        ddlInterFace.SelectedIndex = -1;
                        li.Selected = true;
                    }
                }
            }
        }
    }
}

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

AI 解读 AI

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

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