show.aspx.cs

来自「走吧旅游网站前后台源代码」· CS 代码 · 共 70 行

CS
70
字号
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;

namespace Maticsoft.Web.AirlineOrderH
{
    public partial class Show : System.Web.UI.Page
    {        
        		protected void Page_LoadComplete(object sender, EventArgs e)
		{
			(Master.FindControl("lblTitle") as Label).Text = "详细信息";
		}
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null || Request.Params["id"].Trim() != "")
				{
					string id = Request.Params["id"];
					ShowInfo(int.Parse(id));
				}
			}
		}
		
private void ShowInfo(string OrderNo)
{
	Maticsoft.BLL.AirlineOrderH bll=new Maticsoft.BLL.AirlineOrderH();
	Maticsoft.Model.AirlineOrderH model=bll.GetModel(OrderNo);
	this.lblAirlines.Text=model.Airlines;
	this.lblFlights.Text=model.Flights;
	this.lblVenderID.Text=model.VenderID;
	this.lblTrip.Text=model.Trip;
	this.lblStartTime.Text=model.StartTime;
	this.lblEndTime.Text=model.EndTime;
	this.lblPassengersType.Text=model.PassengersType;
	this.lblPassengersAmount.Text=model.PassengersAmount.ToString();
	this.lblRating.Text=model.Rating;
	this.lblDiscount.Text=model.Discount.ToString();
	this.lblBaseBuildMoney.Text=model.BaseBuildMoney.ToString();
	this.lblFuelMoney.Text=model.FuelMoney.ToString();
	this.lblFullPrice.Text=model.FullPrice.ToString();
	this.lblAgioPrice.Text=model.AgioPrice.ToString();
	this.lblTotalPrice.Text=model.TotalPrice.ToString();
	this.lblManAmount.Text=model.ManAmount.ToString();
	this.lblLinkMan.Text=model.LinkMan;
	this.lblPhone1.Text=model.Phone1;
	this.lblPhone2.Text=model.Phone2;
	this.lblFax.Text=model.Fax;
	this.lblEmail.Text=model.Email;
	this.lblConfirmMethods.Text=model.ConfirmMethods;
	this.lblOutVotesType.Text=model.OutVotesType;
	this.lblSendType.Text=model.SendType;
	this.lblPayMethods.Text=model.PayMethods;
	this.lblRemark.Text=model.Remark;
	this.lblSendAddress.Text=model.SendAddress;
	this.lblSendDate.Text=model.SendDate;
	this.lblCustomerID.Text=model.CustomerID;

}

    }
}

⌨️ 快捷键说明

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