private void addToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Frm_POS_Issuance_Branch_Details a = new Frm_POS_Issuance_Branch_Details();
     a.type = "0";
     a.Ref_no = Ref_no;
     a.NhanVien = NhanVien;
     a.ShowDialog();
     LoadData(Ref_no);
 }
 private void editToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (dataGridView1.Rows.Count == 0)
     {
         MessageBox.Show("Please choose 1 row for editing");
         return;
     }
     if (dataGridView1.Rows.Count > 0)
     {
         Frm_POS_Issuance_Branch_Details a = new Frm_POS_Issuance_Branch_Details();
         a.type = "1";
         a.Ref_no = Ref_no;
         a.NhanVien = NhanVien;
         a.Branch = dataGridView1[2, dataGridView1.CurrentCell.RowIndex].Value.ToString();
         a.ShowDialog();
         LoadData(Ref_no);
     }
     else
         return;
 }