private void OrderInfoForm_Load(object sender, EventArgs e)
        {
            GridViewUtil.InitGridView(this.gridView1, typeof(TempOrderVo));
            GridViewUtil.InitGridView(this.gridView2, typeof(SkillVo));

            RefreshSkill();
            FillComboStaff();

            if (_rommVo.RoomStatus.Equals("占用"))
            {
                this.btnOrder.Enabled = false;
                List <TempOrderVo> tempList = SelectDao.GetTempOrderByRoomID <TempOrderVo>(_rommVo.RoomId);
                this.gridControl1.DataSource = tempList;
                this.gridControl1.RefreshDataSource();

                StaffWorkInfoVo workVo = SelectDao.GetWorkStaffInfoByRoomId <StaffWorkInfoVo>(_rommVo.RoomId);


                this.gridView1.BestFitColumns();
                this.panelControl3.Visible   = false;
                this.checkEdit1.Enabled      = false;
                this.checkEdit2.Enabled      = false;
                this.checkEdit3.Enabled      = false;
                this.comboStaff.Enabled      = false;
                this.btnCancelOrder1.Enabled = false;
            }
            else
            {
                this.btnPay.Enabled = false;
            }
        }
Beispiel #2
0
 public void InitData()
 {
     tempOrderList = SelectDao.GetTempOrderByRoomID <TempOrderVo>(roomId);
 }