?? gysinfo.aspx.cs
字號:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace com.ascs.plp.publics
{
/// <summary>
/// GYSInfo 的摘要說明。
/// </summary>
public class GYSInfo : com.unicafe.ui.UnicafePage
{
protected System.Web.UI.WebControls.Label GYSJC;
protected System.Web.UI.WebControls.Label LXR;
protected System.Web.UI.WebControls.Label LXDH;
protected System.Web.UI.WebControls.Label LXCZ;
protected System.Web.UI.WebControls.Label LXDZ;
protected System.Web.UI.WebControls.Label LXYB;
protected System.Web.UI.WebControls.Label EMAIL;
protected System.Web.UI.WebControls.Label SZCS;
protected System.Web.UI.WebControls.Label GSZY;
protected System.Web.UI.WebControls.Label KHYH;
protected System.Web.UI.WebControls.Label YHZH;
protected System.Web.UI.WebControls.Label SH;
protected System.Web.UI.WebControls.Label XYJBDM;
protected ArrayList resultset;
private void Page_Load(object sender, System.EventArgs e)
{
com.ascs.plp.cp.GYSXX obj=null;
com.ascs.plp.cp.GYSXXMgr objmgr=new com.ascs.plp.cp.GYSXXMgr();
obj=objmgr.GetGYSXX(Request.QueryString["gysdm"]);
GYSJC.Text=obj.GYSJC;
LXR.Text=obj.LXR;
LXDH.Text=obj.LXDH;
LXCZ.Text=obj.LXCZ;
LXDZ.Text=obj.LXDZ;
LXYB.Text=obj.LXYB;
EMAIL.Text=obj.EMAIL;
SZCS.Text=obj.SZCS;
GSZY.Text="<a href=\"" + obj.GSZY + "\" target=\"_blank\">" + obj.GSZY + "</a>";
KHYH.Text=obj.KHYH;
YHZH.Text=obj.YHZH;
SH.Text=obj.SH;
SqlConnection cn = new SqlConnection (com.unicafe.common.Configuration.GetDBConnectionString());
cn.Open();
if(obj.XYJBDM!="")
{
string sql;
sql = "select * from XYJB where XYJBDM="+obj.XYJBDM;
SqlCommand cmd = new SqlCommand(sql,cn);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
XYJBDM.Text=(string)dr["XYJBMC"];
}
}
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN:該調用是 ASP.NET Web 窗體設計器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
/// 此方法的內容。
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -