SuLei.Web/admin/order/site_payment_edit.aspx.cs

(开头部分) 12KB

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

using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SuLei.Common;

namespace SuLei.Web.admin.order
{
    public partial class site_payment_edit : SuLei.UI.ManagePage
    {
        private string action = SLEnums.ActionEnum.Add.ToString(); //操作类型
        private Model.site_payment model;
        private int id = 0;

        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = SLRequest.GetQueryString("action");

            if (!string.IsNullOrEmpty(_action) && _action == SLEnums.ActionEnum.Edit.ToString())
            {
                this.action = SLEnums.ActionEnum.Edit.ToString();//修改类型
                this.id = SLRequest.GetQueryInt("id");
                if (this.id == 0)
                {
                    JscriptMsg("传输参数不正确!", "back");
                    return;
                }
                if (!new BLL.site_payment().Exists(this.id))
                {
                    JscriptMsg("记录不存在或已被删除!", "back");
                    return;
                }
                //赋值实体
                this.model = new BLL.site_payment().GetModel(this.id);
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("order_payment", SLEnums.ActionEnum.View.ToString()); //检查权限
                SiteBind(); //绑定站点
                if (action == SLEnums.ActionEnum.Edit.ToString()) //修改
                {
                    ShowInfo(this.id);
                }
            }
        }

        #region 显示相关字段=============================
        private void ShowFields(int _payment_id)
        {
            Model.payment payModel = new BLL.payment().GetModel(_payment_id);
            if (payModel == null)
            {
                return;
            }
            switch (payModel.api_path.ToLower())
            {
                case "alipaypc":
                    div_key1_container.Visible = true;
后面还有 229 行代码,购买后查看完整代码

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

AI 解读

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

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