예제 #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;
            }
        }
예제 #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();
        }
예제 #3
0
 private void danhSachMătHangToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmSanPham sp = new frmSanPham();
     sp.Show();
 }
예제 #4
0
 private void danhSachMătHangToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmSanPham sp = new frmSanPham();
     sp.Show();
 }
예제 #5
0
        private void menuItemSP_Click(object sender, EventArgs e)
        {
            frmSanPham frmSP = new frmSanPham();

            frmSP.ShowDialog();
        }