示例#1
0
        private Form ExecuteFunctions(StructInfo si)
        {
            Form f = new Form();

            switch (si.MenuId)
            {
            case 1003:
                FormHTK frm = new FormHTK();
                return(frm);

            case 1004:
                fKiemkedinhky frm1 = new fKiemkedinhky();
                return(frm1);

            //frm.Text = si.MenuName;
            //frm.ShowDialog();
            case 1005:
                fBtKhuKho frm2 = new fBtKhuKho();
                return(frm2);

            //frm.Text = si.MenuName;
            //frm.ShowDialog();
            case 1006:
                fTiendoduan frm3 = new fTiendoduan();

                return(frm3);

            case 1007:
                fTiendoThanhtoan frm4 = new fTiendoThanhtoan();

                return(frm4);
            }
            return(f);
        }
示例#2
0
        public void Execute(DataRow drMenu)
        {
            int menuID = Int32.Parse(drMenu["MenuPluginID"].ToString());

            if (_lstInfo[0].CType == ICType.Custom && _lstInfo[0].MenuID == menuID)
            {
                FormHTK frm = new FormHTK();
                frm.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                frm.Text          = _lstInfo[0].MenuName;
                frm.ShowDialog();
            }
        }
示例#3
0
        private Form ExecuteFunctions(StructInfo si)
        {
            Form f = new Form();

            switch (si.MenuId)
            {
            case 1003:
                FormHTK frm = new FormHTK();
                return(frm);

            case 1004:
                fKiemkedinhky frm1 = new fKiemkedinhky();
                return(frm1);
                //frm.Text = si.MenuName;
                //frm.ShowDialog();
            }
            return(f);
        }