Web/Admin/Customer/Add.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Common;
namespace Web.Admin.Customer
{
public partial class Add : Web.UI.ManagePage
{
public BLL.Customer bll = new BLL.Customer();
public Model.Customer model = new Model.Customer();
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
chkLoginLevel("addCustomer");
//绑定类别
ChannelTreeBind(0, "请选择所属类别...",10, this.ddlClassId);
if (!string.IsNullOrEmpty(Request.Params["classId"]))
{
ddlClassId.SelectedValue = Request.Params["classId"].Trim();
}
}
}
//保存
protected void btnSave_Click(object sender, EventArgs e)
{
model.Title = txtTitle.Text.Trim();
model.Author = txtAuthor.Text.Trim();
model.Form = txtForm.Text.Trim();
//自动提取关健字
if (txtKeyword.Text.Trim() != string.Empty)
{
model.Keyword = txtKeyword.Text.Trim();
}
else
{
model.Keyword = txtTitle.Text.Trim();
}
//自动提取摘要
if (txtZhaiyao.Text.Trim() != string.Empty)
{
model.Zhaiyao = Utils.DropHTML(txtZhaiyao.Text, 250);
}
else
{
model.Zhaiyao = Utils.DropHTML(txtContent.Value, 250);
}
//自动提取导读
if (txtDaodu.Text.Trim() != string.Empty)
{
model.Daodu = Utils.DropHTML(txtDaodu.Text, 250);
}
else
{
model.Daodu = Utils.DropHTML(txtContent.Value, 250);
}
后面还有 37 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。