Exemplo n.º 1
0
    private void BindView2()
    {
        RecordEntity userIntegralDetailEntity = new RecordEntity();
        RecordBll    userIntegralDetailBll    = new RecordBll();

        userIntegralDetailEntity.PpID = Convert.ToInt32(this.ViewState["id"]);
        userIntegralDetailBll.Asp(this.GridView2, this.AspNetPager2, userIntegralDetailEntity);
        ProjectPaperEntity userEntity = new ProjectPaperEntity();
        ProjectPaperBll    userBll    = new ProjectPaperBll();

        userEntity.PPID = Convert.ToInt32(this.ViewState["id"]);
        DataTable byID = userBll.GetById(userEntity);

        if (byID != null && byID.Rows.Count == 1)
        {
            this.Label1.Text = byID.Rows[0]["Name"].ToString();
        }
    }
    public void bind()
    {
        ProjectPaperEntity projectPaperEntity = new ProjectPaperEntity();
        ProjectPaperBll    projectPaperBll    = new ProjectPaperBll();

        projectPaperEntity.PPID = Convert.ToInt32(base.Request.QueryString["PPID"]);
        DataTable byID = projectPaperBll.GetById(projectPaperEntity);

        if (byID != null && byID.Rows.Count == 1)
        {
            this.Name.Text = byID.Rows[0]["Name"].ToString();


            this.TextBox1.Text = byID.Rows[0]["RegisterDate"].ToString();
            this.TextBox2.Text = byID.Rows[0]["OverDate"].ToString();
            this.PaperType.Items.Insert(0, byID.Rows[0]["PTName"].ToString());
            this.FCKeditor1.Value = byID.Rows[0]["PPDesc"].ToString();
        }
    }
Exemplo n.º 3
0
    public void bind(int PPID)
    {
        ProjectPaperEntity en = new ProjectPaperEntity();
        ProjectPaperBll    projectPaperBll = new ProjectPaperBll();

        en.PPID = PPID;
        DataTable byId = projectPaperBll.GetById(en);

        if (byId.Rows.Count >= 1)
        {
            this.Name.Text = byId.Rows[0]["Name"].ToString();
            this.PaperType.Items.Insert(0, byId.Rows[0]["PTName"].ToString());

            this.TextBox1.Text    = byId.Rows[0]["RegisterDate"].ToString();
            this.TextBox2.Text    = byId.Rows[0]["OverDate"].ToString();
            this.TextBox3.Text    = byId.Rows[0]["FhdateTime"].ToString();
            this.FCKeditor1.Value = byId.Rows[0]["PPDesc"].ToString();
        }
    }