吉首大学运网开发工作室 吉首大学新校区2#221 电话:0743-2143867
}
}
/*file:Navigation.ascx.cs*/
/** * * *
* @author
Qingchun Wang
--代码编写者
* @reviewer Qingchun Wang --代码审查者 * @version
1.0, 2005-12-15
--版本和时间
* @env DotNet Framework1.1.4 --编译环境
* @modified FireWolf,2005-12-17
--代码修改者
* * * */ **/
namespace yw.use_admin.cgyw { using System; using System.Data; using System.Drawing; using System.Web;
using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using System.Security.Principal; using System.Data.SqlClient;
///
Navigation 的摘要说明。
///
public class Navigation : System.Web.UI.UserControl { protected System.Web.UI.WebControls.Image Image1; protected System.Web.UI.WebControls.Image Imgspacer; protected System.Web.UI.WebControls.Image Image2;
protected System.Web.UI.WebControls.ImageButton ImgBtnBook;
25 25
protected System.Web.UI.WebControls.Image Image10; protected System.Web.UI.WebControls.Image Image11;
protected System.Web.UI.WebControls.ImageButton ImgOut_Invoke; protected System.Web.UI.WebControls.Image Image8; protected System.Web.UI.WebControls.Image Image3; protected System.Web.UI.WebControls.Image Image6; protected System.Web.UI.WebControls.Image Image13;
protected System.Web.UI.WebControls.ImageButton ImgBtn_Configure; 吉首大学运网开发工作室 吉首大学新校区2#221 电话:0743-2143867 26 protected System.Web.UI.WebControls.Image Image9;
protected System.Web.UI.WebControls.ImageButton ImgBtn_Trace; protected System.Web.UI.WebControls.Image Image7;
protected System.Web.UI.WebControls.ImageButton ImageButton6; protected System.Web.UI.WebControls.ImageButton ImgBtn_Query; protected System.Web.UI.WebControls.Image Image12; protected System.Web.UI.WebControls.Image Image5; protected System.Web.UI.WebControls.Image Image4; protected System.Web.UI.WebControls.Panel MainPanel; protected System.Web.UI.WebControls.Label Label1; protected System.Web.UI.WebControls.Label Label2; protected System.Web.UI.WebControls.Label Label3; protected System.Web.UI.WebControls.Label Label4; protected System.Web.UI.WebControls.Label Label5; protected System.Web.UI.WebControls.Label Label6; protected System.Web.UI.WebControls.Panel OutPanel; protected System.Web.UI.WebControls.TextBox TxtGDName; protected System.Web.UI.WebControls.TextBox TxtGDWrap; protected System.Web.UI.WebControls.TextBox TxtGDVol; protected System.Web.UI.WebControls.TextBox TxtGDWeight; protected System.Web.UI.WebControls.TextBox TxtGDQty; protected System.Web.UI.WebControls.TextBox TxtGDOpt; protected System.Web.UI.WebControls.Label Label7; protected System.Web.UI.WebControls.Label Label8; protected System.Web.UI.WebControls.Label Label9; protected System.Web.UI.WebControls.Label Label10; protected System.Web.UI.WebControls.Label Label11; protected System.Web.UI.WebControls.Label Label12; protected System.Web.UI.WebControls.TextBox TxtEntrust; protected System.Web.UI.WebControls.TextBox TxtEntrustPho; protected System.Web.UI.WebControls.Button BtnEntrustRet; protected System.Web.UI.WebControls.Button BtnGoodNext; protected System.Web.UI.WebControls.Button BtnGood; protected System.Web.UI.WebControls.Button BtnGoodReturn; protected System.Web.UI.WebControls.Label Label13; protected System.Web.UI.WebControls.Label Label14;
26
吉首大学运网开发工作室 吉首大学新校区2#221 电话:0743-2143867 protected System.Web.UI.WebControls.Label Label15; protected System.Web.UI.WebControls.Label Label16; protected System.Web.UI.WebControls.Label Label17; protected System.Web.UI.WebControls.Label Label18; protected System.Web.UI.WebControls.TextBox TxtRecvMan; protected System.Web.UI.WebControls.TextBox TxtRecvtUnit; protected System.Web.UI.WebControls.TextBox TxtRecvAddr; protected System.Web.UI.WebControls.TextBox TxtRecvPhone; protected System.Web.UI.WebControls.TextBox TxtRecvtZone; protected System.Web.UI.WebControls.TextBox TxtRecvID; protected System.Web.UI.WebControls.Button TxtRecvtReturn; protected System.Web.UI.WebControls.Panel RecvGdPanel; protected System.Web.UI.WebControls.Panel EntGdPanel; protected System.Web.UI.WebControls.TextBox TxtEntMan; protected System.Web.UI.WebControls.TextBox TxtEntUnit; protected System.Web.UI.WebControls.TextBox TxtEntAddr; protected System.Web.UI.WebControls.TextBox TxtEntPhone; protected System.Web.UI.WebControls.TextBox TxtEntZip; protected System.Web.UI.WebControls.TextBox TxtEntID; protected System.Web.UI.WebControls.Button BtnEntNext; protected System.Web.UI.WebControls.Button EntBtnReturn;
protected System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1; protected System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator2; protected System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator3;
protected System.Web.UI.WebControls.RegularExpressionValidator RegularExpressionValidator4; protected System.Web.UI.WebControls.RegularExpressionValidator RegularExpressionValidator5; protected System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator4;
protected System.Web.UI.WebControls.RegularExpressionValidator RegularExpressionValidator8; protected System.Web.UI.WebControls.RegularExpressionValidator RegularExpressionValidator9; protected System.Web.UI.WebControls.Button BtnRecvNext;
protected System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator6; protected System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator5; protected System.Web.UI.WebControls.Panel BusPanel; protected System.Web.UI.WebControls.Label Label19; protected System.Web.UI.WebControls.TextBox TxtBusGdID; protected System.Web.UI.WebControls.Label Label20; protected System.Web.UI.WebControls.TextBox TxtBusEntID; protected System.Web.UI.WebControls.Label Label21; protected System.Web.UI.WebControls.TextBox TxtBusRecID; protected System.Web.UI.WebControls.Label Label22; protected System.Web.UI.WebControls.Label Label23; protected System.Web.UI.WebControls.Label Label25; protected System.Web.UI.WebControls.Label Label26; protected System.Web.UI.WebControls.Label Label27;
27 27
protected System.Web.UI.WebControls.TextBox TxtBusCast; protected System.Web.UI.WebControls.Button BtnBusFinish; protected System.Web.UI.WebControls.Button BtnBusReturn; protected SqlConnection BusConnection;//数据库连接桥
吉首大学运网开发工作室 吉首大学新校区2#221 电话:0743-2143867 28 private string StrCon=System.Configuration.ConfigurationSettings.AppSettings[\//连接数据库字符串
private System.Data.SqlClient.SqlTransaction BusTran; protected System.Web.UI.WebControls.TextBox TxtBusGDName; protected System.Web.UI.WebControls.Label Label28;
protected System.Web.UI.WebControls.TextBox TxtBusEntName; protected System.Web.UI.WebControls.Label Label29; protected System.Web.UI.WebControls.TextBox TxtBusRvName; protected System.Web.UI.WebControls.Label Label24; protected System.Web.UI.WebControls.Label Label30; protected System.Web.UI.WebControls.Label Label31; protected System.Web.UI.WebControls.Label Label32; protected System.Web.UI.WebControls.TextBox TxtGDID; protected System.Web.UI.WebControls.Label Label33; protected System.Web.UI.WebControls.Label Label34; protected System.Web.UI.WebControls.Label Label35; protected System.Web.UI.WebControls.Label Label36; protected System.Web.UI.WebControls.TextBox TxtHZID; protected System.Web.UI.WebControls.TextBox TxtSHID; protected System.Web.UI.WebControls.DropDownList DropList1; protected System.Web.UI.WebControls.TextBox TxtBusFromStie; protected System.Web.UI.WebControls.TextBox TxtBusFromCity; protected System.Web.UI.WebControls.TextBox TxtBusToSite; protected System.Web.UI.WebControls.TextBox TxtBusToCity; protected System.Web.UI.WebControls.Label Label37; protected System.Web.UI.WebControls.Label Label38; protected System.Web.UI.WebControls.TextBox m_TxtBusID; protected System.Web.UI.WebControls.Label Label39; //业务数据操作事务处理
private void Page_Load(object sender, System.EventArgs e) { BusConnection=new SqlConnection(StrCon); BusConnection.Open();
BusTran=BusConnection.BeginTransaction(); this.EntGdPanel.Visible=false; this.OutPanel.Visible=false;
this.MainPanel.Visible=true;
m_TxtBusID.Visible=false;
}
28
#region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e) { }
///
设计器支持所需的方法 - 不要使用代码编辑器 修改此方法的内容。 //
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。 //
InitializeComponent(); base.OnInit(e);
吉首大学运网开发工作室 吉首大学新校区2#221 电话:0743-2143867 29 ///
private void InitializeComponent() {
this.ImgBtnBook.Click += new System.Web.UI.ImageClickEventHandler(this.ImgBtnBook_Click); this.ImgOut_Invoke.Click += new
System.Web.UI.ImageClickEventHandler(this.ImgOut_Invoke_Click);
///
///
private void ImgBtnBook_Click(object sender, System.Web.UI.ImageClickEventArgs e) {
29
}
#endregion
this.ImgBtn_Configure.Click += new
this.ImgBtn_Trace.Click += new System.Web.UI.ImageClickEventHandler(this.ImgBtn_Trace_Click); this.ImgBtn_Query.Click += new System.Web.UI.ImageClickEventHandler(this.ImgBtn_Query_Click); this.BtnGoodNext.Click += new System.EventHandler(this.BtnGoodNext_Click); this.BtnGoodReturn.Click += new System.EventHandler(this.BtnGoodReturn_Click); this.BtnRecvNext.Click += new System.EventHandler(this.BtnRecvNext_Click); this.TxtRecvtReturn.Click += new System.EventHandler(this.TxtRecvtReturn_Click); this.BtnEntNext.Click += new System.EventHandler(this.BtnEntNext_Click); this.EntBtnReturn.Click += new System.EventHandler(this.EntBtnReturn_Click); this.BtnBusFinish.Click += new System.EventHandler(this.BtnBusFinish_Click); this.BtnBusReturn.Click += new System.EventHandler(this.BtnBusReturn_Click); this.Unload += new System.EventHandler(this.Page_UnLoad); this.Load += new System.EventHandler(this.Page_Load);
System.Web.UI.ImageClickEventHandler(this.ImgBtn_Configure_Click);