Ejemplo n.º 1
0
 private void TPBHToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (tkpbh == null || tkpbh.IsDisposed)
     {
         tkpbh = new frmTimKiemPhieuBanHang();
     }
     tkpbh.MdiParent = this;
     tkpbh.Show();
 }
Ejemplo n.º 2
0
        //private void textBoxmp_Validating(object sender, CancelEventArgs e)
        //{
        //    if (!textBoxmp.Text.Substring(0, 3).Equals("PBH") || textBoxmp.Text.Substring(0, 3)==" ")

        //    {
        //        MessageBox.Show("Mã phiếu bán hàng bị sai. Phải nhập PBH đầu mã phiếu!!!!!!!");
        //        e.Cancel = true;
        //    }
        //}

        //private void textBoxCTMP_Validating(object sender, CancelEventArgs e)
        //{
        //    if(!textBoxCTMP.Text.Substring(0,3).Equals("PBH"))

        //    {
        //        MessageBox.Show("Mã chi tiet phieu ban hàng bị sai. Phải nhập PBH đầu mã phiếu!!!!!!!");
        //        e.Cancel = true;
        //    }
        //}

        private void buttonTKiem_Click(object sender, EventArgs e)
        {
            frmTimKiemPhieuBanHang tpbh = new frmTimKiemPhieuBanHang();

            tpbh.Show();
        }