ConsumeManage/EatingPrint.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//文件名:EatingPrint.aspx.cs
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 ConsumeManage_EatingPrint : System.Web.UI.Page
{
private ConsumeManage_EatingForm MyEatingForm;
protected void Page_Load(object sender, EventArgs e)
{//显示旅客餐费登记信息
MyEatingForm = (ConsumeManage_EatingForm)Context.Handler;
string MyTitle = Session["MyCompanyName"].ToString()+"餐费登记单";
string My餐费编号 = "餐费编号:"+MyEatingForm.MyTable.Rows[0][2].ToString();
string My入住编号 = " 入住编号:" + MyEatingForm.MyTable.Rows[0][1].ToString();
string My操作人员 ="操作人员:"+MyEatingForm.MyTable.Rows[0][8].ToString();
string My打印日期=" 打印日期:"+DateTime.Now.ToLongDateString();
string My入住房号="房号:"+MyEatingForm.My入住房号;
string My客人姓名=" 姓名:"+MyEatingForm.My客人姓名;
this.Label1.Text = MyTitle;
this.Label2.Text = My餐费编号;
this.Label3.Text = My操作人员;
TableRow row = new TableRow();
TableCell cell = new TableCell();
cell.HorizontalAlign = HorizontalAlign.Left;
cell.ColumnSpan = 5;
cell.Width = 600;
cell.Text =" "+My入住房号
+ "  "+ My客人姓名
+ "  "+ My入住编号
+ "  "+ My打印日期;
row.Cells.Add(cell);
this.Table1.Rows.Add(row);
TableRow row1 = new TableRow();
TableCell cell1 = new TableCell();
cell1.HorizontalAlign = HorizontalAlign.Center;
cell1.Text = "序号";
cell1.Width = 50;
row1.Cells.Add(cell1);
TableCell cell2 = new TableCell();
cell2.HorizontalAlign = HorizontalAlign.Center;
cell2.Text = "用餐时间";
cell2.Width = 150;
row1.Cells.Add(cell2);
TableCell cell3 = new TableCell();
cell3.HorizontalAlign = HorizontalAlign.Center;
cell3.Text = "类别";
cell3.Width = 100;
row1.Cells.Add(cell3);
TableCell cell4 = new TableCell();
cell4.HorizontalAlign = HorizontalAlign.Center;
cell4.Text = "金额";
后面还有 61 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
