📄 orderdetailprint.aspx.cs
字号:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Botheighten.Yanghui.BusinessFacade;
using Botheighten.Yanghui.Framework;
using Botheighten.Yanghui.BusinessRules;
using Botheighten.Yanghui.Web.Controls;
namespace Botheighten.Yanghui.Web
{
/// <summary>
/// OrderDetailPrint 的摘要说明。
/// </summary>
public class OrderDetailPrint : BasePage
{
protected System.Web.UI.WebControls.Label lblCode;
protected System.Web.UI.WebControls.Label lblInsertDate;
protected System.Web.UI.WebControls.Label txtCustomCode;
protected System.Web.UI.WebControls.Label txtCustomName;
protected System.Web.UI.WebControls.Label txtLinkman;
protected System.Web.UI.WebControls.Label txtPhone;
protected System.Web.UI.WebControls.Label lblAddress;
protected System.Web.UI.WebControls.Label lblRemark;
private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
if(!Page.IsPostBack)
{
string id="";
if(Request.QueryString["Id"]!=null)
id=Request.QueryString["Id"].ToString();
OrderHead oh=new OrderHead();
oh.Id=id;
oh.Retrieve();
if(oh.IsPersistent)
{
this.lblCode.Text = oh.Code;
this.lblInsertDate.Text = oh.InsertDate.ToShortDateString();
Custom custom=new Custom();
custom.Id=oh.CustomId;
custom.Retrieve();
if(custom.IsPersistent)
{
this.txtCustomCode.Text=custom.Code;
this.txtCustomName.Text = custom.Name;
this.txtLinkman.Text =custom.LinkMan;
this.txtPhone.Text =custom.Telephone;
this.lblAddress.Text = custom.Address;
this.lblRemark.Text = Common.GetHtmlCode(oh.Remark);
}
}
}
}
#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 + -