hf/tzAndrz/RzDetail.aspx.cs

(完整代码) 2KB

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Webapp;

public partial class tzAndrz_RzDetail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["currentUser"] == null)
        {
            JS.Alert("对不起,只有登录用户才能够查看贷款信息");
            JS.GoRedirect("/login.aspx");
        }
        if (string.IsNullOrEmpty(Request["code"]))
        {
            JS.GoHistory(-1);
            return;
        }

        DataFill(Request["code"]);
    }

    public void DataFill(string code)
    {
        tzlm.BLL.financing bll = new tzlm.BLL.financing();
        tzlm.Model.financing model = bll.GetModel(code);
        lbl_code.Text = string.IsNullOrEmpty(model.code) ? "无" : model.code;
        lbl_addDate.Text = string.IsNullOrEmpty(model.addDate.ToString()) ? "无" : model.addDate.ToString();
        lbl_address.Text = string.IsNullOrEmpty(model.address) ? "无" : model.address;
        lbl_email.Text = string.IsNullOrEmpty(model.email) ? "无" : model.email;
        lbl_name.Text = string.IsNullOrEmpty(model.productName) ? "无" : model.productName;
        lbl_tel.Text = string.IsNullOrEmpty(model.tel) ? "无" : model.tel;
        lbl_remark.Text = string.IsNullOrEmpty(model.remark) ? "无" : model.remark;
        lbl_infoUsefulLife.Text = string.IsNullOrEmpty(model.infoUsefulLife) ? "无" : model.infoUsefulLife;
        lbl_investAddress.Text = string.IsNullOrEmpty(model.financingAddress) ? "无" : model.financingAddress;
        lbl_investMode.Text = string.IsNullOrEmpty(model.synergicMode) ? "无" : model.synergicMode;
        lbl_investTrade.Text = string.IsNullOrEmpty(model.productTrade) ? "无" : model.productTrade;
        lbl_company.Text = string.IsNullOrEmpty(model.companyName) ? "无" : model.companyName;
        inverstPrice.Text = string.IsNullOrEmpty(model.financingPrice.ToString()) ? "无" : model.financingPrice.ToString();
    }
}

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

AI 解读

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

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