Beispiel #1
0
        private void FrmRoomManager_Load(object sender, EventArgs e)
        {
            foreach (Control label in this.Controls)
            {
                if (label.GetType().ToString() == "Sunny.UI.UIButton")
                {
                    label.Font = UI_FontUtil.SetChildControlsFont();
                }
            }

            foreach (Control item in this.pnlRoomInfo.Controls)
            {
                if (item.GetType().ToString() == "System.Windows.Forms.Label")
                {
                    item.Font = UI_FontUtil.SetChildControlsFont();
                }
            }

            romsty = RoomService.SelectRoomAll();
            for (int i = 0; i < romsty.Count; i++)
            {
                romt              = new ucRoomList(this);
                romt.Tag          = romsty[i].RoomNo;
                romt.romCustoInfo = romsty[i];
                flpRoom.Controls.Add(romt);
            }
        }
Beispiel #2
0
        private void FrmRoomManager_Load(object sender, EventArgs e)
        {
            //foreach (Control item in this.pnlRoomInfo.Controls)
            //{
            //    if (item.GetType().ToString() == "System.Windows.Forms.Label")
            //    {
            //        item.Font = UI_FontUtil.SetChildControlsFont();
            //    }
            //}

            romsty = new RoomService().SelectRoomAll();
            for (int i = 0; i < romsty.Count; i++)
            {
                romt = new ucRoomList();
                romt.lblRoomNo.Text   = romsty[i].RoomNo;
                romt.lblCustoNo.Text  = romsty[i].CustoNo;
                romt.lblRoomType.Text = romsty[i].RoomName;
                romt.romCustoInfo     = romsty[i];
                flpRoom.Controls.Add(romt);
            }

            if (lblCheckTime.Text == "0001/1/1")
            {
                lblCheckTime.Text = "";
            }
        }
Beispiel #3
0
 private void btnAll_Click(object sender, EventArgs e)
 {
     flpRoom.Controls.Clear();
     romsty = RoomService.SelectRoomAll();
     for (int i = 0; i < romsty.Count; i++)
     {
         romt              = new ucRoomList(this);
         romt.Tag          = romsty[i].RoomNo;
         romt.romCustoInfo = romsty[i];
         flpRoom.Controls.Add(romt);
     }
 }
Beispiel #4
0
 private void btnAll_Click(object sender, EventArgs e)
 {
     flpRoom.Controls.Clear();
     romsty = new RoomService().SelectRoomAll();
     for (int i = 0; i < romsty.Count; i++)
     {
         romt = new ucRoomList();
         romt.lblRoomNo.Text   = romsty[i].RoomNo;
         romt.lblCustoNo.Text  = romsty[i].CustoNo;
         romt.lblRoomType.Text = romsty[i].RoomName;
         romt.romCustoInfo     = romsty[i];
         flpRoom.Controls.Add(romt);
     }
 }
        public void LoadRoom()
        {
            List <Room> rooms = new RoomService().SelectCanUseRoomAll();

            flpRoom.Controls.Clear();
            for (int i = 0; i < rooms.Count; i++)
            {
                romt = new ucRoomList();
                romt.lblRoomNo.Text   = rooms[i].RoomNo;
                romt.lblCustoNo.Text  = rooms[i].CustoNo;
                romt.lblRoomType.Text = rooms[i].RoomName;
                romt.romCustoInfo     = rooms[i];
                flpRoom.Controls.Add(romt);
            }
        }
Beispiel #6
0
 private void LoadData(string typeName)
 {
     flpRoom.Controls.Clear();
     romsty = RoomService.SelectRoomByTypeName(typeName);
     for (int i = 0; i < romsty.Count; i++)
     {
         romt              = new ucRoomList(this);
         romt.Tag          = romsty[i].RoomNo;
         romt.romCustoInfo = romsty[i];
         flpRoom.Controls.Add(romt);
     }
     lblCanUse.Text   = RoomManager.SelectCanUseRoomAllByRoomState().ToString();
     lblCheck.Text    = RoomManager.SelectNotUseRoomAllByRoomState().ToString();
     lblNotClear.Text = RoomManager.SelectNotClearRoomAllByRoomState().ToString();
     lblFix.Text      = RoomManager.SelectFixingRoomAllByRoomState().ToString();
 }
Beispiel #7
0
 private void LoadRoom()
 {
     flpRoom.Controls.Clear();
     romsty = RoomService.SelectRoomAll();
     for (int i = 0; i < romsty.Count; i++)
     {
         romt              = new ucRoomList(this);
         romt.Tag          = romsty[i].RoomNo;
         romt.romCustoInfo = romsty[i];
         flpRoom.Controls.Add(romt);
     }
     lblRoomNo.Text       = "";
     lblRoomPosition.Text = "";
     lblRoomState.Text    = "";
     lblCustoNo.Text      = "";
     lblCheckTime.Text    = "";
 }
Beispiel #8
0
 private void LoadRoomByState(int stateid)
 {
     flpRoom.Controls.Clear();
     romsty = new RoomService().SelectRoomByRoomState(stateid);
     for (int i = 0; i < romsty.Count; i++)
     {
         romt = new ucRoomList();
         romt.lblRoomNo.Text   = romsty[i].RoomNo;
         romt.lblCustoNo.Text  = romsty[i].CustoNo;
         romt.lblRoomType.Text = romsty[i].RoomName;
         romt.romCustoInfo     = romsty[i];
         flpRoom.Controls.Add(romt);
     }
     lblRoomNo.Text       = "";
     lblRoomPosition.Text = "";
     lblRoomState.Text    = "";
     lblCustoNo.Text      = "";
     lblCheckTime.Text    = "";
 }