Exemple #1
0
        private void tsmOneOpenRoom_Click(object sender, EventArgs e)
        {
            BasRoomModel mRoomNo = GetSelectRoomNo(GetSelectPBX(ptcts));

            if (mRoomNo != null && hml.OpenRoomCheck(mRoomNo))
            {
                FormOneCustomer frmOne = new FormOneCustomer(mRoomNo);
                if (frmOne.ShowDialog() == DialogResult.OK)
                {
                    ShowRoom(mRoomNo.FloorInfo.FloorId);
                }
            }
        }
Exemple #2
0
        private void tsOneCustomer_Click(object sender, EventArgs e)
        {
            BasRoomModel mRoomNo = GetKeyRoomNo();

            if (mRoomNo != null && hml.OpenRoomCheck(mRoomNo))
            {
                FormOneCustomer frmOneCustomer = new FormOneCustomer(mRoomNo);
                if (frmOneCustomer.ShowDialog() == DialogResult.OK)
                {
                    ShowRoom(mRoomNo.FloorInfo.FloorId);
                }
            }
        }
Exemple #3
0
        private void tsEditRegister_Click(object sender, EventArgs e)
        {
            BasRoomModel mRoomNo = GetKeyRoomNo();

            if (mRoomNo != null)
            {
                CustomerStayModel mCustomerStay = hml.GetStayInRoomInfo(mRoomNo, 'I', "M");
                if (mCustomerStay != null)
                {
                    FormOneCustomer formOneCustomer = new FormOneCustomer(mRoomNo);
                    if (formOneCustomer.ShowDialog() == DialogResult.OK)
                    {
                        ShowRoom(mRoomNo.FloorInfo.FloorId);
                    }
                }
                else
                {
                    cmn.Show("非占用房间无法使用本功能.");
                }
            }
        }
Exemple #4
0
 private void pbtnOpenOrder_Click(object sender, EventArgs e)
 {
     try
     {
         OrderInfoModel mOrder = GetSelectedOrder();
         if (mOrder != null)
         {
             if (!hml.OpenRoomCheck(mOrder.RoomInfo))
             {
                 return;
             }
             FormOneCustomer frmOneCustomer = new FormOneCustomer(mOrder.RoomInfo);
             if (frmOneCustomer.ShowDialog() == DialogResult.OK)
             {
                 GetOrderInfo();
             }
         }
     }
     catch (Exception err)
     {
         cmn.Show(err.Message);
     }
 }
Exemple #5
0
 private void tsOneCustomer_Click(object sender, EventArgs e)
 {
     BasRoomModel mRoomNo = GetKeyRoomNo();
     if (mRoomNo != null && hml.OpenRoomCheck(mRoomNo))
     {
         FormOneCustomer frmOneCustomer = new FormOneCustomer(mRoomNo);
         if (frmOneCustomer.ShowDialog() == DialogResult.OK)
         {
             ShowRoom(mRoomNo.FloorInfo.FloorId);
         }
     }
 }
Exemple #6
0
 private void tsmOneOpenRoom_Click(object sender, EventArgs e)
 {
     BasRoomModel mRoomNo = GetSelectRoomNo(GetSelectPBX(ptcts));
     if (mRoomNo != null && hml.OpenRoomCheck(mRoomNo))
     {
         FormOneCustomer frmOne = new FormOneCustomer(mRoomNo);
         if (frmOne.ShowDialog() == DialogResult.OK)
         {
             ShowRoom(mRoomNo.FloorInfo.FloorId);
         }
     }
 }
Exemple #7
0
 private void tsmModifyRegister_Click(object sender, EventArgs e)
 {
     BasRoomModel mRoomNo = GetSelectRoomNo(GetSelectPBX(ptcts));
     if (mRoomNo != null)
     {
         CustomerStayModel mCustomerStay = hml.GetStayInRoomInfo(mRoomNo, 'I', "M");
         if (mCustomerStay != null)
         {
             FormOneCustomer frmOne = new FormOneCustomer(mRoomNo);
             if (frmOne.ShowDialog() == DialogResult.OK)
             {
                 ShowRoom(mRoomNo.FloorInfo.FloorId);
             }
         }
         else
         {
             cmn.Show("非占用房间无法使用本功能.");
         }
     }
 }
Exemple #8
0
 private void pbtnOpenOrder_Click(object sender, EventArgs e)
 {
     try
     {
         OrderInfoModel mOrder = GetSelectedOrder();
         if (mOrder != null)
         {
             if (!hml.OpenRoomCheck(mOrder.RoomInfo))
             {
                 return;
             }
             FormOneCustomer frmOneCustomer = new FormOneCustomer(mOrder.RoomInfo);
             if (frmOneCustomer.ShowDialog() == DialogResult.OK)
             {
                 GetOrderInfo();
             }
         }
     }
     catch (Exception err)
     {
         cmn.Show(err.Message);
     }
 }