private void pbtnAddOrder_Click(object sender, EventArgs e) { FormNewOrder frmNewOrder = new FormNewOrder(); if (frmNewOrder.ShowDialog() == DialogResult.OK) { GetOrderInfo(); } }
private void tsmCustomerOrder_Click(object sender, EventArgs e) { BasRoomModel mRoomNo = GetSelectRoomNo(GetSelectPBX(ptcts)); if (mRoomNo != null) { FormNewOrder frmNewOrder = new FormNewOrder(mRoomNo); if (frmNewOrder.ShowDialog() == DialogResult.OK) { ShowRoom(mRoomNo.FloorInfo.FloorId); } } }
private void pbtnEditOrder_Click(object sender, EventArgs e) { OrderInfoModel mOrder = GetSelectedOrder(); if (mOrder != null) { if (mOrder.Status == 'I') { cmn.Show("宾客已入住,不能编辑"); return; } FormNewOrder frmNewOrder = new FormNewOrder(mOrder); if (frmNewOrder.ShowDialog() == DialogResult.OK) { GetOrderInfo(); } } }