Example #1
0
        private void btTaoMoi_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            string    query = "select MaCTQ from CTQuyen where (MaQuyen = '1001' and MaNV= '" + LopTinh.NhanMaNV + "')";
            DataTable tbq   = kn.NhanDuLieu(query);
            int       dem   = tbq.Rows.Count;

            if (LopTinh.NhanMaNV == "10000" || dem > 0)
            {
                var frmDKSP = new frmSanPham();
                if (ExistForm(frmDKSP))
                {
                    return;
                }
                frmDKSP.MdiParent = this;
                frmDKSP.Show();
            }
            else
            {
                var frmDKSP = new frmSanPham();
                if (ExistForm(frmDKSP))
                {
                    return;
                }
                frmDKSP.MdiParent = this;
                frmDKSP.Show();
                frmDKSP.ucSanPham.Enabled = false;
                frmDKSP.ucSPColor.Enabled = false;
                frmDKSP.ucSPSize.Enabled  = false;
            }
        }
Example #2
0
        private void btTaoMoi_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var frmDKSP = new frmSanPham();

            if (ExistForm(frmDKSP))
            {
                return;
            }
            frmDKSP.MdiParent = this;
            frmDKSP.Show();
        }
Example #3
0
 private void danhSachMătHangToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmSanPham sp = new frmSanPham();
     sp.Show();
 }
Example #4
0
 private void danhSachMătHangToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmSanPham sp = new frmSanPham();
     sp.Show();
 }