private void btnSearchCompany_Click(object sender, EventArgs e)
 {
     try
     {
         frmLst_Companies afrmLst_Companies = new frmLst_Companies(this, 1);//1:Nha nuoc
         afrmLst_Companies.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmTsk_UpdBooking.btnSearchCompany_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void btnSearchCompany_Click(object sender, System.EventArgs e)
 {
     try
     {
         frmLst_Companies afrmLst_Companies = new frmLst_Companies(this, 2);//2 : Công ty ngoài
         afrmLst_Companies.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmTsk_BookingHall_Group.btnSearchCompany_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void btnSearchCompany_Click(object sender, EventArgs e)
 {
     try
     {
         if (this.CustomerType == 1)
         {
             frmLst_Companies afrmLst_Companies = new frmLst_Companies(this, 1);//3:Khách nhà nước
             afrmLst_Companies.ShowDialog();
         }
         if (this.CustomerType == 2)
         {
             frmLst_Companies afrmLst_Companies = new frmLst_Companies(this, 2);//3:Khách đoàn
             afrmLst_Companies.ShowDialog();
         }
         if (this.CustomerType == 3)
         {
             frmLst_Companies afrmLst_Companies = new frmLst_Companies(this, 3);//3:Khách lẻ
             afrmLst_Companies.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmTsk_BookingHall_Customer_New.btn_BookingRs_Search_Company_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void btnSearchCompanies_Click(object sender, EventArgs e)
 {
     try
     {
         frmLst_Companies afrmLst_Companies = new frmLst_Companies(this, CustomerType);
         afrmLst_Companies.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmTsk_Booking_Step2.bt_BookingRs_Search_Company_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 public frmUpd_Companies(int ID, frmLst_Companies frmCom)
 {
     InitializeComponent();
     afrmLst_Companies_Old = frmCom;
     IDCompany_Old = ID;
 }
 private void btnSearchCompany_Click(object sender, EventArgs e)
 {
     try
     {
         frmLst_Companies afrmLst_Companies = new frmLst_Companies(this);
         afrmLst_Companies.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmIns_CustomerGroups_Customers.btnSearchCompanies_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 //hiennv
 private void btnSearchCompanies_Click(object sender, EventArgs e)
 {
     try
     {
         frmLst_Companies afrmLst_Companies = new frmLst_Companies(this, 2);//2 :cong ty ngoai
         afrmLst_Companies.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmTsk_CheckInGroup_ForRoomBooking_Step2.btnSearchCompanies_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void barButtonItem14_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frmLst_Companies afrmLst_Companies = new frmLst_Companies();
     afrmLst_Companies.Show();
 }
Пример #9
0
 private void btnListCompanies_ItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         frmLst_Companies afrmLst_Companies = new frmLst_Companies();
         afrmLst_Companies.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmMain.btnListCompanies_ItemClick\n" + ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 public frmIns_Companies(frmLst_Companies afrmLst_Companies)
 {
     InitializeComponent();
     afrmLst_Companies_Old = afrmLst_Companies;
 }