Beispiel #1
0
        public void ShowForm(Label la, Form form)
        {
            switch (la.Tag.ToString())
            {
                case "0"://列表

                    ListCtlNetFrom1 sxq = new ListCtlNetFrom1();
                    sxq.MdiParent = form;
                    sxq.StartPosition = FormStartPosition.CenterScreen;
                    sxq.Tag = la.Tag.ToString();
                    sxq.WindowState = FormWindowState.Maximized;
                    sxq.main = form;
                    sxq.Show();
                    break;

                case "1"://草堂路社区

                    ListCtlFrom Ctl = new ListCtlFrom();
                    Ctl.MdiParent = form;
                    Ctl.StartPosition = FormStartPosition.CenterScreen;
                    Ctl.Tag = la.Tag.ToString();
                    Ctl.WindowState = FormWindowState.Maximized;
                    Ctl.main = form;
                    Ctl.district = "1";
                    Ctl.Show();
                    break;
                case "11"://草堂路社区网格1

                    ListCtlNetForm1 Ctl1 = new ListCtlNetForm1();
                    Ctl1.MdiParent = form;
                    Ctl1.StartPosition = FormStartPosition.CenterScreen;
                    Ctl1.Tag = la.Tag.ToString();
                    Ctl1.WindowState = FormWindowState.Maximized;
                    Ctl1.main = form;
                    Ctl1.Show();
                    break;
                case "111":

                    ListCtlNetBlockPersonForm Ctl11 = new ListCtlNetBlockPersonForm();
                    Ctl11.MdiParent = form;
                    Ctl11.StartPosition = FormStartPosition.CenterScreen;
                    Ctl11.Tag = la.Tag.ToString();
                    Ctl11.WindowState = FormWindowState.Maximized;
                    Ctl11.main = form;
                    Ctl11.resident = 1;
                    Ctl11.block = 1;
                    Ctl11.grid = 1;
                    Ctl11.Show();
                    break;
                case "2"://列表

                    ListQtlFrom Qtl = new ListQtlFrom();
                    Qtl.MdiParent = form;
                    Qtl.StartPosition = FormStartPosition.CenterScreen;
                    Qtl.Tag = la.Tag.ToString();
                    Qtl.WindowState = FormWindowState.Maximized;
                    Qtl.Show();
                    break;
                case "3"://列表

                    ListFllFrom Fll = new ListFllFrom();
                    Fll.MdiParent = form;
                    Fll.StartPosition = FormStartPosition.CenterScreen;
                    Fll.Tag = la.Tag.ToString();
                    Fll.WindowState = FormWindowState.Maximized;
                    Fll.Show();
                    break;
            }
        }
Beispiel #2
0
        public void ShowForm(Label la, Form form)
        {
            switch (la.Tag.ToString())
            {
            case "0":    //列表

                ListCtlNetFrom1 sxq = new ListCtlNetFrom1();
                sxq.MdiParent     = form;
                sxq.StartPosition = FormStartPosition.CenterScreen;
                sxq.Tag           = la.Tag.ToString();
                sxq.WindowState   = FormWindowState.Maximized;
                sxq.main          = form;
                sxq.Show();
                break;

            case "1":    //草堂路社区

                ListCtlFrom Ctl = new ListCtlFrom();
                Ctl.MdiParent     = form;
                Ctl.StartPosition = FormStartPosition.CenterScreen;
                Ctl.Tag           = la.Tag.ToString();
                Ctl.WindowState   = FormWindowState.Maximized;
                Ctl.main          = form;
                Ctl.district      = "1";
                Ctl.Show();
                break;

            case "11":    //草堂路社区网格1

                ListCtlNetForm1 Ctl1 = new ListCtlNetForm1();
                Ctl1.MdiParent     = form;
                Ctl1.StartPosition = FormStartPosition.CenterScreen;
                Ctl1.Tag           = la.Tag.ToString();
                Ctl1.WindowState   = FormWindowState.Maximized;
                Ctl1.main          = form;
                Ctl1.Show();
                break;

            case "111":

                ListCtlNetBlockPersonForm Ctl11 = new ListCtlNetBlockPersonForm();
                Ctl11.MdiParent     = form;
                Ctl11.StartPosition = FormStartPosition.CenterScreen;
                Ctl11.Tag           = la.Tag.ToString();
                Ctl11.WindowState   = FormWindowState.Maximized;
                Ctl11.main          = form;
                Ctl11.resident      = 1;
                Ctl11.block         = 1;
                Ctl11.grid          = 1;
                Ctl11.Show();
                break;

            case "2":    //列表

                ListQtlFrom Qtl = new ListQtlFrom();
                Qtl.MdiParent     = form;
                Qtl.StartPosition = FormStartPosition.CenterScreen;
                Qtl.Tag           = la.Tag.ToString();
                Qtl.WindowState   = FormWindowState.Maximized;
                Qtl.Show();
                break;

            case "3":    //列表

                ListFllFrom Fll = new ListFllFrom();
                Fll.MdiParent     = form;
                Fll.StartPosition = FormStartPosition.CenterScreen;
                Fll.Tag           = la.Tag.ToString();
                Fll.WindowState   = FormWindowState.Maximized;
                Fll.Show();
                break;

            case "m1":    //党员
            case "m2":    //党员
            case "m3":    //党员
            case "m4":    //党员
            case "m5":    //党员
            case "m6":    //党员
            case "m7":    //党员
            case "m8":    //党员
            case "m9":    //党员
            case "m10":   //党员
            case "m11":   //党员
            case "m12":   //党员
            case "m13":   //党员
            case "m14":   //党员
            case "m15":   //党员
                ppmanager m1 = new ppmanager();

                m1.MdiParent     = form;
                m1.StartPosition = FormStartPosition.CenterScreen;
                m1.Tag           = la.Tag.ToString();
                m1.WindowState   = FormWindowState.Maximized;
                m1.Show();
                break;
            }
        }