コード例 #1
0
ファイル: fReceiveRoom.cs プロジェクト: lhthang/HotelManager
 private void btnAddCustomer_Click(object sender, EventArgs e)
 {
     if (txbRoomName.Text != string.Empty && txbRoomTypeName.Text != string.Empty && txbFullName.Text != string.Empty && txbIDCard.Text != string.Empty && txbDateCheckIn.Text != string.Empty && txbDateCheckOut.Text != string.Empty && txbAmountPeople.Text != string.Empty && txbPrice.Text != string.Empty)
     {
         fAddCustomerInfo fAddCustomerInfo = new fAddCustomerInfo();
         fAddCustomerInfo.ShowDialog();
         this.Show();
     }
     else
         MessageBox.Show("Vui lòng nhập lại đầy đủ thông tin.", "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
 }
コード例 #2
0
        private void bunifuThinButton21_Click(object sender, EventArgs e)
        {
            fAddCustomerInfo f = new fAddCustomerInfo();

            f.ShowDialog();
            Show();
            if (fAddCustomerInfo.ListIdCustomer.Count > 0)
            {
                foreach (var item in fAddCustomerInfo.ListIdCustomer)
                {
                    ReceiveRoomDetailsDAO.Instance.InsertReceiveRoomDetails(idReceiveRoom, item);
                }
            }
            ShowCustomers(idReceiveRoom);
        }