cd_info.aspx.cs

来自「网络企业信息管理系统」· CS 代码 · 共 36 行

CS
36
字号
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class CompanyDecision_CD_Info : System.Web.UI.Page
{
    WebService webService = new WebService();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserID"] == null || Session["UserLevel"] == null)
        {
            Response.Redirect("~/Error.aspx");
        }
        this.tbContent.Style.Add("OverFlow","hidden");
        string strID = Request.QueryString["cdid"];
        string strSql = "SELECT z_CompanyDecision.CD_ID, z_CompanyDecision.CD_Title,z_CompanyDecision.CD_IsConfirm, z_CompanyDecision.CD_AddDate, z_CompanyDecision.CD_Content, z_Person.Person_ID, z_CompanyDecision.CD_AddPersonID, z_Person.Person_RealName FROM z_CompanyDecision INNER JOIN z_Person ON z_CompanyDecision.CD_AddPersonID = z_Person.Person_ID where CD_ID='" + strID + "';";
        DataTable table = webService.ExcuteSelect(strSql);
        this.lblID.Text = strID;
        this.lblTitle.Text = table.Rows[0]["CD_Title"].ToString();
        this.lblAuther.Text = table.Rows[0]["Person_RealName"].ToString();
        this.tbContent.Text = table.Rows[0]["CD_Content"].ToString();
        this.lblAddDate.Text = table.Rows[0]["CD_AddDate"].ToString();
        if (table.Rows[0]["CD_IsConfirm"].ToString() == "False")
        {
            Response.Redirect("~/Error.aspx");
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?