private void tsmAddPay_Click(object sender, EventArgs e) { BasRoomModel mRoomNo = GetSelectRoomNo(GetSelectPBX(ptcts)); if (mRoomNo != null) { CustomerStayModel mCustomerStay = hml.GetStayInRoomInfo(mRoomNo, 'I', "M"); if (mCustomerStay != null) { FormAddPay frmAddPay = new FormAddPay(mCustomerStay); if (frmAddPay.ShowDialog() == DialogResult.OK) { ShowRoom(mRoomNo.FloorInfo.FloorId); } } else { cmn.Show("非占用房间无法使用本功能"); } } }