Beispiel #1
0
        public void bind()
        {
            DataTable day     = BLL_Hotel.Cha_Charge(0);
            DataTable week    = BLL_Hotel.Cha_Charge(7);
            DataTable month   = BLL_Hotel.Cha_Charge(31);
            DataTable history = BLL_Hotel.Cha_Charge(100000000);

            if (day.Rows[0][0].ToString() != "")
            {
                this.Label1.Text = day.Rows[0][0].ToString();
            }
            this.Label2.Text = week.Rows[0][0].ToString();
            this.Label3.Text = month.Rows[0][0].ToString();
            this.Label4.Text = history.Rows[0][0].ToString();
        }