Web/user_addpro.aspx.cs

(开头部分) 2KB

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

using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web
{
    public partial class user_addpro : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ImageButton1_Click1(object sender, ImageClickEventArgs e)
        {
            Model.Products model = new Model.Products();
            BLL.Products bll = new BLL.Products();

            model.Title = txtTitle.Text.Trim();//标题
            model.ClassId = 0;//类型
            model.Leixing = ddlClassId.Text;
            model.ImgUrl = txtImgUrl.Text.Trim();
            model.ProductNo = txtProductNo.Text.Trim();//发行机构
            model.Price = txtPrice.Text.Trim();//收益率
            model.Address = TextBox7.Text;//投资期
            model.Status = TextBox3.Text;//起息日
            model.Remark = txtRemark.Text;//付息频率
            model.Contents = TextBox9.Text;//到期日
            model.Price_in = TextBox5.Text;//项目公司
            model.Guige = txtGuiGe.Text.Trim();//所属行业
            model.IsMsg = TextBox1.Text;//资金用途
            model.Range_down = TextBox6.Text;//还款来源
            model.Rebate = TextBox2.Text;//担保及增信
            model.User_id = TextBox4.Text;//项目进展
            model.Buytime = DateTime.Now;//信息更新日期
            model.Content = txtZhaiyao.Text;//备注
            model.Click = int.Parse(txtClick.Text.Trim());//排列顺序
            model.AddTime = DateTime.Now;//添加时间
            model.IsRed = 0;//推荐
            model.IsSlide = 1;
            model.Url = "";
            if (Session["username"] != null)
            {
                model.Uname = Session["username"].ToString();
            }
            else 
            {
                Page.RegisterStartupScript("fe421", "<script>alert('登录超时,请重新登录后再来吧!');location.href='login.aspx';</script>");
            }
            if (cblItem.Items[0].Selected == true)
            {
                model.IsRed = 1;
            }
            bll.Add(model);
            Page.RegisterStartupScript("fe421", "<script>alert('录入成功!');location.href='user_orders1.aspx';</script>");
        }
    }
后面还有 1 行代码,购买后查看完整代码

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

AI 解读

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

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