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); } } }
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); } } }
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("非占用房间无法使用本功能."); } } }
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); } }
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("非占用房间无法使用本功能."); } } }