Пример #1
0
        private void a_Click(object sender, EventArgs e)
        {
            Form2               f    = new Form2();
            bophanquanli        bpql = new bophanquanli();
            fDonHangTaiChiNhanh cn   = new fDonHangTaiChiNhanh();
            tongdai             td   = new tongdai();

            if (this.m.Text == "giamdoc" && this.n.Text == "congty")
            {
                f.Show();
            }
            else
            {
                if (this.m.Text == "bpql1" && this.n.Text == "congty" || this.m.Text == "bpql2" && this.n.Text == "congty" || this.m.Text == "bpql3" && this.n.Text == "congty")
                {
                    bpql.Show();
                }
                else
                {
                    if (this.m.Text == "cn1" && this.n.Text == "congty" || this.m.Text == "cn2" && this.n.Text == "congty" || this.m.Text == "cn3" && this.n.Text == "congty")
                    {
                        cn.Show();
                    }
                    else
                    {
                        if (this.m.Text == "td1" && this.n.Text == "congty" || this.m.Text == "td2" && this.n.Text == "congty" || this.m.Text == "td3" && this.n.Text == "congty")
                        {
                            td.Show();
                        }
                    }
                }
            }
            dangnhap();
        }
Пример #2
0
        private void tạoĐơnHàngPhụcVụTạiChiNhánhToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fDonHangTaiChiNhanh f = new fDonHangTaiChiNhanh();

            f.Show();
        }