ConsumeManage/TelephoneForm.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

//文件名:TelephoneForm.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;
/// 51as/px

using System.Data.SqlClient;
public partial class ConsumeManage_TelephoneForm : System.Web.UI.Page
{
    private static DataTable MyTelephoneTable = new DataTable();
    private static int MyID = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        string MyForbidString = Session["MyForbid"].ToString();
        if (MyForbidString.IndexOf("B2") > 1)
        {
            Server.Transfer("~/SystemManage/AllErrorHelp.aspx");
        }
        if (!IsPostBack)
        {
            //创建无连5接1的a数s据p表x
            DataColumn[] MyKey = new DataColumn[1];
            MyTelephoneTable = new DataTable("话费入账");
            DataColumn MyColumn = new DataColumn();
            MyColumn.DataType = System.Type.GetType("System.Int16");
            MyColumn.ColumnName = "自编号";
            MyTelephoneTable.Columns.Add(MyColumn);
            MyKey[0] = MyColumn;
            MyTelephoneTable.PrimaryKey = MyKey;
            MyTelephoneTable.Columns.Add("入住编号", System.Type.GetType("System.String"));
            MyTelephoneTable.Columns.Add("话费编号", System.Type.GetType("System.String"));
            MyTelephoneTable.Columns.Add("通话时间", System.Type.GetType("System.DateTime"));
            MyTelephoneTable.Columns.Add("类别", System.Type.GetType("System.String"));
            MyTelephoneTable.Columns.Add("金额", System.Type.GetType("System.Double"));
            MyTelephoneTable.Columns.Add("说明", System.Type.GetType("System.String"));
            MyTelephoneTable.Columns.Add("记账时间", System.Type.GetType("System.DateTime"));
            MyTelephoneTable.Columns.Add("操作人员", System.Type.GetType("System.String"));
            this.TextBox1.Text = DateTime.Now.ToShortDateString();
        }
        this.Page.Title = "当前位置:消费管理->旅客话费登记";        
        this.GridView1.DataSource = MyTelephoneTable;
        this.Button3.OnClientClick = "return confirm('请检查旅客话费信息是否正确,一旦保存就无法修改,是否继续?')";
    }
    protected void Button4_Click(object sender, EventArgs e)
    {//随机生成话费编号
        this.TextBox4.Text = System.Guid.NewGuid().ToString().ToUpper();
        this.TextBox5.Text = Session["MyUserName"].ToString();
        this.TextBox6.Text = DateTime.Now.ToShortDateString();
        MyTelephoneTable.Rows.Clear();
        this.GridView1.DataBind();
        MyID = 0;
    }
    protected void Button1_Click(object sender, EventArgs e)
后面还有 56 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。