Admin/system/Product/edit.aspx.cs

(开头部分) 5KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using UAP;

[UAP.Role]
public partial class Product_edit : UAP.UI.ListPage
{
    #region GET
    public void type()
    {
        string sql = "select i=id,s=name,p=iparent,a=_sysid_ from ec_product_type where _level_>0 and isactive>0";
        Echo(DataBase.getJsonString(sql));
    }
    public void attrtype()
    {
        Echo(DataBase.getJsonString("select id,text=name from ec_attr_type"));
    }

    public string Get(int id)
    {
        return DataBase.getJsonString("select * from ec_product where id=" + id, 0);
    }

    public void temp()
    {
        Echo(DataBase.getJsonString("select id,text=name from ec_shipping_temp where isactive=1"));
    }

    public void attr()
    {
        try
        {
            Echo(DataBase.Parameterization.Include(Request.Params, "productid")
                                       .CheckType<int>("productid")
                                       .db_Query("select rel.*,createname=r.name from ec_product_attr_rel rel left join uap_role r on rel.createid=r.id where rel.productid=@productid").getJsonString());
        }
        catch
        {
            Echo("[]");
        }
    }
    public void carousel()
    {
        try
        {
            Echo(DataBase.Parameterization.Include(Request.Params, "productid")
                                      .CheckType<int>("productid")
                                      .db_Query("select c.*,createname=r.name from ec_product_carousel c left join uap_role r on c.createid=r.id where c.productid=@productid").getJsonString());
        }
        catch
        {
            Echo("[]");
        }
    }
    #endregion

后面还有 98 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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