示例#1
0
        private void DJZX(string strDJBH, int iDJID)
        {
            string sTemp = "", sTemp1 = "";

            if (strDJBH.Trim() == "")
            {
                return;
            }

            sTemp  = strDJBH.Trim().ToUpper();
            sTemp1 = iDJID.ToString();



            switch (sTemp.Substring(0, 2))
            {
            case "CG":
                // 创建此子窗体的一个新实例。
                FormCGHT childFormCGHT = new FormCGHT();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormCGHT.MdiParent = this.MdiParent;

                childFormCGHT.strConn = strConn;
                childFormCGHT.iDJID   = Convert.ToInt32(sTemp1);
                childFormCGHT.isSaved = true;

                childFormCGHT.intUserID    = intUserID;
                childFormCGHT.intUserLimit = intUserLimit;
                childFormCGHT.strUserLimit = strUserLimit;
                childFormCGHT.strUserName  = strUserName;
                childFormCGHT.Show();
                break;

            case "XS":
                // 创建此子窗体的一个新实例。
                FormXSHT childFormXSHT = new FormXSHT();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormXSHT.MdiParent = this.MdiParent;

                childFormXSHT.strConn = strConn;
                childFormXSHT.iDJID   = Convert.ToInt32(sTemp1);
                childFormXSHT.isSaved = true;

                childFormXSHT.intUserID    = intUserID;
                childFormXSHT.intUserLimit = intUserLimit;
                childFormXSHT.strUserLimit = strUserLimit;
                childFormXSHT.strUserName  = strUserName;
                childFormXSHT.Show();
                break;
            }

            switch (sTemp.Substring(0, 3))
            {
            case "AKP":
                // 创建此子窗体的一个新实例。
                FormGJSPZD childFormGJSPZD = new FormGJSPZD();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormGJSPZD.MdiParent = this.MdiParent;

                childFormGJSPZD.strConn = strConn;
                childFormGJSPZD.iDJID   = Convert.ToInt32(sTemp1);
                childFormGJSPZD.isSaved = true;

                childFormGJSPZD.intUserID    = intUserID;
                childFormGJSPZD.intUserLimit = intUserLimit;
                childFormGJSPZD.strUserLimit = strUserLimit;
                childFormGJSPZD.strUserName  = strUserName;
                childFormGJSPZD.Show();
                break;

            case "ADH":
                // 创建此子窗体的一个新实例。
                FormJHRKYHD childFormJHRKYHD = new FormJHRKYHD();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormJHRKYHD.MdiParent = this.MdiParent;

                childFormJHRKYHD.strConn = strConn;
                childFormJHRKYHD.iDJID   = Convert.ToInt32(sTemp1);
                childFormJHRKYHD.isSaved = true;

                childFormJHRKYHD.intUserID    = intUserID;
                childFormJHRKYHD.intUserLimit = intUserLimit;
                childFormJHRKYHD.strUserLimit = strUserLimit;
                childFormJHRKYHD.strUserName  = strUserName;
                childFormJHRKYHD.Show();
                break;

            case "ATH":
                // 创建此子窗体的一个新实例。
                FormJHTCZD childFormJHTCZD = new FormJHTCZD();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormJHTCZD.MdiParent = this.MdiParent;

                childFormJHTCZD.strConn = strConn;
                childFormJHTCZD.iDJID   = Convert.ToInt32(sTemp1);
                childFormJHTCZD.isSaved = true;

                childFormJHTCZD.intUserID    = intUserID;
                childFormJHTCZD.intUserLimit = intUserLimit;
                childFormJHTCZD.strUserLimit = strUserLimit;
                childFormJHTCZD.strUserName  = strUserName;
                childFormJHTCZD.Show();
                break;

            case "ATB":
                // 创建此子窗体的一个新实例。
                FormJHTBJDJ childFormJHTBJDJ = new FormJHTBJDJ();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormJHTBJDJ.MdiParent = this.MdiParent;

                childFormJHTBJDJ.strConn = strConn;
                childFormJHTBJDJ.iDJID   = Convert.ToInt32(sTemp1);
                childFormJHTBJDJ.isSaved = true;

                childFormJHTBJDJ.intUserID    = intUserID;
                childFormJHTBJDJ.intUserLimit = intUserLimit;
                childFormJHTBJDJ.strUserLimit = strUserLimit;
                childFormJHTBJDJ.strUserName  = strUserName;
                childFormJHTBJDJ.Show();
                break;

            case "AYF":
                // 创建此子窗体的一个新实例。
                FormYFZKJS childFormYFZKJS = new FormYFZKJS();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormYFZKJS.MdiParent = this.MdiParent;

                childFormYFZKJS.strConn = strConn;
                childFormYFZKJS.iDJID   = Convert.ToInt32(sTemp1);
                childFormYFZKJS.isSaved = true;

                childFormYFZKJS.intUserID    = intUserID;
                childFormYFZKJS.intUserLimit = intUserLimit;
                childFormYFZKJS.strUserLimit = strUserLimit;
                childFormYFZKJS.strUserName  = strUserName;
                childFormYFZKJS.Show();
                break;

            case "BKP":
                // 创建此子窗体的一个新实例。
                FormXSCKZD childFormXSCKZD = new FormXSCKZD();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormXSCKZD.MdiParent = this.MdiParent;

                childFormXSCKZD.strConn = strConn;
                childFormXSCKZD.iDJID   = Convert.ToInt32(sTemp1);
                childFormXSCKZD.isSaved = true;

                childFormXSCKZD.intUserID    = intUserID;
                childFormXSCKZD.intUserLimit = intUserLimit;
                childFormXSCKZD.strUserLimit = strUserLimit;
                childFormXSCKZD.strUserName  = strUserName;
                childFormXSCKZD.Show();
                break;

            case "BCK":
                // 创建此子窗体的一个新实例。
                FormXSCKJD childFormXSCKJD = new FormXSCKJD();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormXSCKJD.MdiParent = this.MdiParent;

                childFormXSCKJD.strConn = strConn;
                childFormXSCKJD.iDJID   = Convert.ToInt32(sTemp1);
                childFormXSCKJD.isSaved = true;

                childFormXSCKJD.intUserID    = intUserID;
                childFormXSCKJD.intUserLimit = intUserLimit;
                childFormXSCKJD.strUserLimit = strUserLimit;
                childFormXSCKJD.strUserName  = strUserName;
                childFormXSCKJD.Show();
                break;

            case "BTH":
                // 创建此子窗体的一个新实例。
                FormXSTHZD childFormXSTHZD = new FormXSTHZD();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormXSTHZD.MdiParent = this.MdiParent;

                childFormXSTHZD.strConn = strConn;
                childFormXSTHZD.iDJID   = Convert.ToInt32(sTemp1);
                childFormXSTHZD.isSaved = true;

                childFormXSTHZD.intUserID    = intUserID;
                childFormXSTHZD.intUserLimit = intUserLimit;
                childFormXSTHZD.strUserLimit = strUserLimit;
                childFormXSTHZD.strUserName  = strUserName;
                childFormXSTHZD.Show();
                break;

            case "BTB":
                // 创建此子窗体的一个新实例。
                FormXSTBJDJ childFormXSTBJDJ = new FormXSTBJDJ();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormXSTBJDJ.MdiParent = this.MdiParent;

                childFormXSTBJDJ.strConn = strConn;
                childFormXSTBJDJ.iDJID   = Convert.ToInt32(sTemp1);
                childFormXSTBJDJ.isSaved = true;

                childFormXSTBJDJ.intUserID    = intUserID;
                childFormXSTBJDJ.intUserLimit = intUserLimit;
                childFormXSTBJDJ.strUserLimit = strUserLimit;
                childFormXSTBJDJ.strUserName  = strUserName;
                childFormXSTBJDJ.Show();
                break;

            case "BYS":
                // 创建此子窗体的一个新实例。
                FormYSZKJS childFormYSZKJS = new FormYSZKJS();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormYSZKJS.MdiParent = this.MdiParent;

                childFormYSZKJS.strConn = strConn;
                childFormYSZKJS.iDJID   = Convert.ToInt32(sTemp1);
                childFormYSZKJS.isSaved = true;

                childFormYSZKJS.intUserID    = intUserID;
                childFormYSZKJS.intUserLimit = intUserLimit;
                childFormYSZKJS.strUserLimit = strUserLimit;
                childFormYSZKJS.strUserName  = strUserName;
                childFormYSZKJS.Show();
                break;

            case "CPD":
                // 创建此子窗体的一个新实例。
                FormKCSPPD2 childFormKCSPPD2 = new FormKCSPPD2();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormKCSPPD2.MdiParent = this.MdiParent;

                childFormKCSPPD2.strConn = strConn;
                childFormKCSPPD2.iDJID   = Convert.ToInt32(sTemp1);
                childFormKCSPPD2.isSaved = true;

                childFormKCSPPD2.intUserID    = intUserID;
                childFormKCSPPD2.intUserLimit = intUserLimit;
                childFormKCSPPD2.strUserLimit = strUserLimit;
                childFormKCSPPD2.strUserName  = strUserName;
                childFormKCSPPD2.Show();
                break;

            case "CBS":
                // 创建此子窗体的一个新实例。
                FormKCSPBSCL childFormKCSPBSCL = new FormKCSPBSCL();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormKCSPBSCL.MdiParent = this.MdiParent;

                childFormKCSPBSCL.strConn = strConn;
                childFormKCSPBSCL.iDJID   = Convert.ToInt32(sTemp1);
                childFormKCSPBSCL.isSaved = true;

                childFormKCSPBSCL.intUserID    = intUserID;
                childFormKCSPBSCL.intUserLimit = intUserLimit;
                childFormKCSPBSCL.strUserLimit = strUserLimit;
                childFormKCSPBSCL.strUserName  = strUserName;
                childFormKCSPBSCL.Show();
                break;

            case "CCK":
                // 创建此子窗体的一个新实例。
                FormKCJWCKDJ childFormKCJWCKDJ = new FormKCJWCKDJ();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormKCJWCKDJ.MdiParent = this.MdiParent;

                childFormKCJWCKDJ.strConn = strConn;
                childFormKCJWCKDJ.iDJID   = Convert.ToInt32(sTemp1);
                childFormKCJWCKDJ.isSaved = true;

                childFormKCJWCKDJ.intUserID    = intUserID;
                childFormKCJWCKDJ.intUserLimit = intUserLimit;
                childFormKCJWCKDJ.strUserLimit = strUserLimit;
                childFormKCJWCKDJ.strUserName  = strUserName;
                childFormKCJWCKDJ.Show();
                break;
            }
        }
示例#2
0
        private void dataGridViewV_DoubleClick(object sender, EventArgs e)
        {
            DataGridView dgV = (DataGridView)sender;

            if (dgV.RowCount < 1)
            {
                return;
            }

            if (dgV.SelectedRows.Count < 1)
            {
                return;
            }

            string sTemp = "", sTemp1 = "";

            sTemp  = dgV.SelectedRows[0].Cells[1].Value.ToString().ToUpper();
            sTemp1 = dgV.SelectedRows[0].Cells[0].Value.ToString();

            switch (sTemp.Substring(0, 2))
            {
            case "CG":
                // 创建此子窗体的一个新实例。
                FormCGHT childFormCGHT = new FormCGHT();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormCGHT.MdiParent = this.MdiParent;

                childFormCGHT.strConn = strConn;
                childFormCGHT.iDJID   = Convert.ToInt32(sTemp1);
                childFormCGHT.isSaved = true;

                childFormCGHT.intUserID    = intUserID;
                childFormCGHT.intUserLimit = intUserLimit;
                childFormCGHT.strUserLimit = strUserLimit;
                childFormCGHT.strUserName  = strUserName;
                childFormCGHT.Show();
                break;

            case "XS":
                // 创建此子窗体的一个新实例。
                FormXSHT childFormXSHT = new FormXSHT();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormXSHT.MdiParent = this.MdiParent;

                childFormXSHT.strConn = strConn;
                childFormXSHT.iDJID   = Convert.ToInt32(sTemp1);
                childFormXSHT.isSaved = true;

                childFormXSHT.intUserID    = intUserID;
                childFormXSHT.intUserLimit = intUserLimit;
                childFormXSHT.strUserLimit = strUserLimit;
                childFormXSHT.strUserName  = strUserName;
                childFormXSHT.Show();
                break;
            }

            switch (sTemp.Substring(0, 3))
            {
            case "AKP":
                // 创建此子窗体的一个新实例。
                FormGJSPZD childFormGJSPZD = new FormGJSPZD();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormGJSPZD.MdiParent = this.MdiParent;

                childFormGJSPZD.strConn = strConn;
                childFormGJSPZD.iDJID   = Convert.ToInt32(sTemp1);
                childFormGJSPZD.isSaved = true;

                childFormGJSPZD.intUserID    = intUserID;
                childFormGJSPZD.intUserLimit = intUserLimit;
                childFormGJSPZD.strUserLimit = strUserLimit;
                childFormGJSPZD.strUserName  = strUserName;
                childFormGJSPZD.Show();
                break;

            case "ADH":
                // 创建此子窗体的一个新实例。
                FormJHRKYHD childFormJHRKYHD = new FormJHRKYHD();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormJHRKYHD.MdiParent = this.MdiParent;

                childFormJHRKYHD.strConn = strConn;
                childFormJHRKYHD.iDJID   = Convert.ToInt32(sTemp1);
                childFormJHRKYHD.isSaved = true;

                childFormJHRKYHD.intUserID    = intUserID;
                childFormJHRKYHD.intUserLimit = intUserLimit;
                childFormJHRKYHD.strUserLimit = strUserLimit;
                childFormJHRKYHD.strUserName  = strUserName;
                childFormJHRKYHD.Show();
                break;

            case "ATH":
                // 创建此子窗体的一个新实例。
                FormJHTCZD childFormJHTCZD = new FormJHTCZD();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormJHTCZD.MdiParent = this.MdiParent;

                childFormJHTCZD.strConn = strConn;
                childFormJHTCZD.iDJID   = Convert.ToInt32(sTemp1);
                childFormJHTCZD.isSaved = true;

                childFormJHTCZD.intUserID    = intUserID;
                childFormJHTCZD.intUserLimit = intUserLimit;
                childFormJHTCZD.strUserLimit = strUserLimit;
                childFormJHTCZD.strUserName  = strUserName;
                childFormJHTCZD.Show();
                break;

            case "ATB":
                // 创建此子窗体的一个新实例。
                FormJHTBJDJ childFormJHTBJDJ = new FormJHTBJDJ();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormJHTBJDJ.MdiParent = this.MdiParent;

                childFormJHTBJDJ.strConn = strConn;
                childFormJHTBJDJ.iDJID   = Convert.ToInt32(sTemp1);
                childFormJHTBJDJ.isSaved = true;

                childFormJHTBJDJ.intUserID    = intUserID;
                childFormJHTBJDJ.intUserLimit = intUserLimit;
                childFormJHTBJDJ.strUserLimit = strUserLimit;
                childFormJHTBJDJ.strUserName  = strUserName;
                childFormJHTBJDJ.Show();
                break;

            case "AYF":
                // 创建此子窗体的一个新实例。
                FormYFZKJS childFormYFZKJS = new FormYFZKJS();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormYFZKJS.MdiParent = this.MdiParent;

                childFormYFZKJS.strConn = strConn;
                childFormYFZKJS.iDJID   = Convert.ToInt32(sTemp1);
                childFormYFZKJS.isSaved = true;

                childFormYFZKJS.intUserID    = intUserID;
                childFormYFZKJS.intUserLimit = intUserLimit;
                childFormYFZKJS.strUserLimit = strUserLimit;
                childFormYFZKJS.strUserName  = strUserName;
                childFormYFZKJS.Show();
                break;

            case "BKP":
                // 创建此子窗体的一个新实例。
                FormXSCKZD childFormXSCKZD = new FormXSCKZD();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormXSCKZD.MdiParent = this.MdiParent;

                childFormXSCKZD.strConn = strConn;
                childFormXSCKZD.iDJID   = Convert.ToInt32(sTemp1);
                childFormXSCKZD.isSaved = true;

                childFormXSCKZD.intUserID    = intUserID;
                childFormXSCKZD.intUserLimit = intUserLimit;
                childFormXSCKZD.strUserLimit = strUserLimit;
                childFormXSCKZD.strUserName  = strUserName;
                childFormXSCKZD.Show();
                break;

            case "BCK":
                // 创建此子窗体的一个新实例。
                FormXSCKJD childFormXSCKJD = new FormXSCKJD();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormXSCKJD.MdiParent = this.MdiParent;

                childFormXSCKJD.strConn = strConn;
                childFormXSCKJD.iDJID   = Convert.ToInt32(sTemp1);
                childFormXSCKJD.isSaved = true;

                childFormXSCKJD.intUserID    = intUserID;
                childFormXSCKJD.intUserLimit = intUserLimit;
                childFormXSCKJD.strUserLimit = strUserLimit;
                childFormXSCKJD.strUserName  = strUserName;
                childFormXSCKJD.Show();
                break;

            case "BTH":
                // 创建此子窗体的一个新实例。
                FormXSTHZD childFormXSTHZD = new FormXSTHZD();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormXSTHZD.MdiParent = this.MdiParent;

                childFormXSTHZD.strConn = strConn;
                childFormXSTHZD.iDJID   = Convert.ToInt32(sTemp1);
                childFormXSTHZD.isSaved = true;

                childFormXSTHZD.intUserID    = intUserID;
                childFormXSTHZD.intUserLimit = intUserLimit;
                childFormXSTHZD.strUserLimit = strUserLimit;
                childFormXSTHZD.strUserName  = strUserName;
                childFormXSTHZD.Show();
                break;

            case "BTB":
                // 创建此子窗体的一个新实例。
                FormXSTBJDJ childFormXSTBJDJ = new FormXSTBJDJ();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormXSTBJDJ.MdiParent = this.MdiParent;

                childFormXSTBJDJ.strConn = strConn;
                childFormXSTBJDJ.iDJID   = Convert.ToInt32(sTemp1);
                childFormXSTBJDJ.isSaved = true;

                childFormXSTBJDJ.intUserID    = intUserID;
                childFormXSTBJDJ.intUserLimit = intUserLimit;
                childFormXSTBJDJ.strUserLimit = strUserLimit;
                childFormXSTBJDJ.strUserName  = strUserName;
                childFormXSTBJDJ.Show();
                break;

            case "BYS":
                // 创建此子窗体的一个新实例。
                FormYSZKJS childFormYSZKJS = new FormYSZKJS();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormYSZKJS.MdiParent = this.MdiParent;

                childFormYSZKJS.strConn = strConn;
                childFormYSZKJS.iDJID   = Convert.ToInt32(sTemp1);
                childFormYSZKJS.isSaved = true;

                childFormYSZKJS.intUserID    = intUserID;
                childFormYSZKJS.intUserLimit = intUserLimit;
                childFormYSZKJS.strUserLimit = strUserLimit;
                childFormYSZKJS.strUserName  = strUserName;
                childFormYSZKJS.Show();
                break;

            case "CPD":
                // 创建此子窗体的一个新实例。
                FormKCSPPD2 childFormKCSPPD2 = new FormKCSPPD2();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormKCSPPD2.MdiParent = this.MdiParent;

                childFormKCSPPD2.strConn = strConn;
                childFormKCSPPD2.iDJID   = Convert.ToInt32(sTemp1);
                childFormKCSPPD2.isSaved = true;

                childFormKCSPPD2.intUserID    = intUserID;
                childFormKCSPPD2.intUserLimit = intUserLimit;
                childFormKCSPPD2.strUserLimit = strUserLimit;
                childFormKCSPPD2.strUserName  = strUserName;
                childFormKCSPPD2.Show();
                break;

            case "CBS":
                // 创建此子窗体的一个新实例。
                FormKCSPBSCL childFormKCSPBSCL = new FormKCSPBSCL();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormKCSPBSCL.MdiParent = this.MdiParent;

                childFormKCSPBSCL.strConn = strConn;
                childFormKCSPBSCL.iDJID   = Convert.ToInt32(sTemp1);
                childFormKCSPBSCL.isSaved = true;

                childFormKCSPBSCL.intUserID    = intUserID;
                childFormKCSPBSCL.intUserLimit = intUserLimit;
                childFormKCSPBSCL.strUserLimit = strUserLimit;
                childFormKCSPBSCL.strUserName  = strUserName;
                childFormKCSPBSCL.Show();
                break;

            case "CCK":
                // 创建此子窗体的一个新实例。
                FormKCJWCKDJ childFormKCJWCKDJ = new FormKCJWCKDJ();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormKCJWCKDJ.MdiParent = this.MdiParent;

                childFormKCJWCKDJ.strConn = strConn;
                childFormKCJWCKDJ.iDJID   = Convert.ToInt32(sTemp1);
                childFormKCJWCKDJ.isSaved = true;

                childFormKCJWCKDJ.intUserID    = intUserID;
                childFormKCJWCKDJ.intUserLimit = intUserLimit;
                childFormKCJWCKDJ.strUserLimit = strUserLimit;
                childFormKCJWCKDJ.strUserName  = strUserName;
                childFormKCJWCKDJ.Show();
                break;
            }
        }
示例#3
0
        private void dataGridViewDJMX_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataGridViewDJMX.RowCount < 1)
            {
                return;
            }

            if (dataGridViewDJMX.SelectedRows.Count < 1)
            {
                return;
            }

            string sTemp = "", sTemp1 = "";

            if (e == null)
            {
                sTemp  = dataGridViewDJMX.SelectedRows[0].Cells[1].Value.ToString().ToUpper();
                sTemp1 = dataGridViewDJMX.SelectedRows[0].Cells[0].Value.ToString();
            }
            else
            {
                sTemp  = dataGridViewDJMX.Rows[e.RowIndex].Cells[1].Value.ToString().ToUpper();
                sTemp1 = dataGridViewDJMX.Rows[e.RowIndex].Cells[0].Value.ToString();
            }

            //if(e.RowIndex<0)
            //    return;

            //if (dataGridViewDJMX.Rows[e.RowIndex].IsNewRow)
            //    return;


            switch (sTemp.Substring(0, 2))
            {
            case "CG":
                // 创建此子窗体的一个新实例。
                FormCGHT childFormCGHT = new FormCGHT();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormCGHT.MdiParent = this.MdiParent;

                childFormCGHT.strConn = strConn;
                childFormCGHT.iDJID   = Convert.ToInt32(sTemp1);
                childFormCGHT.isSaved = true;

                childFormCGHT.intUserID    = intUserID;
                childFormCGHT.intUserLimit = intUserLimit;
                childFormCGHT.strUserLimit = strUserLimit;
                childFormCGHT.strUserName  = strUserName;
                childFormCGHT.Show();
                break;

            case "XS":
                // 创建此子窗体的一个新实例。
                FormXSHT childFormXSHT = new FormXSHT();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormXSHT.MdiParent = this.MdiParent;

                childFormXSHT.strConn = strConn;
                childFormXSHT.iDJID   = Convert.ToInt32(sTemp1);
                childFormXSHT.isSaved = true;

                childFormXSHT.intUserID    = intUserID;
                childFormXSHT.intUserLimit = intUserLimit;
                childFormXSHT.strUserLimit = strUserLimit;
                childFormXSHT.strUserName  = strUserName;
                childFormXSHT.Show();
                break;
            }

            switch (sTemp.Substring(0, 3))
            {
            case "AKP":
                // 创建此子窗体的一个新实例。
                FormGJSPZD childFormGJSPZD = new FormGJSPZD();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormGJSPZD.MdiParent = this.MdiParent;

                childFormGJSPZD.strConn = strConn;
                childFormGJSPZD.iDJID   = Convert.ToInt32(sTemp1);
                childFormGJSPZD.isSaved = true;
                if (intUserLimit < iConstLimit)
                {
                    childFormGJSPZD.printToolStripButton.Visible        = false;
                    childFormGJSPZD.printPreviewToolStripButton.Visible = false;
                }

                childFormGJSPZD.intUserID    = intUserID;
                childFormGJSPZD.intUserLimit = intUserLimit;
                childFormGJSPZD.strUserLimit = strUserLimit;
                childFormGJSPZD.strUserName  = strUserName;
                childFormGJSPZD.Show();
                break;

            case "ADH":
                // 创建此子窗体的一个新实例。
                FormJHRKYHD childFormJHRKYHD = new FormJHRKYHD();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormJHRKYHD.MdiParent = this.MdiParent;

                childFormJHRKYHD.strConn = strConn;
                childFormJHRKYHD.iDJID   = Convert.ToInt32(sTemp1);
                childFormJHRKYHD.isSaved = true;
                if (intUserLimit < iConstLimit)
                {
                    childFormJHRKYHD.printToolStripButton.Visible        = false;
                    childFormJHRKYHD.printPreviewToolStripButton.Visible = false;
                }

                childFormJHRKYHD.intUserID    = intUserID;
                childFormJHRKYHD.intUserLimit = intUserLimit;
                childFormJHRKYHD.strUserLimit = strUserLimit;
                childFormJHRKYHD.strUserName  = strUserName;
                childFormJHRKYHD.Show();
                break;

            case "ATH":
                // 创建此子窗体的一个新实例。
                FormJHTCZD childFormJHTCZD = new FormJHTCZD();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormJHTCZD.MdiParent = this.MdiParent;

                childFormJHTCZD.strConn = strConn;
                childFormJHTCZD.iDJID   = Convert.ToInt32(sTemp1);
                childFormJHTCZD.isSaved = true;
                if (intUserLimit < iConstLimit)
                {
                    childFormJHTCZD.printToolStripButton.Visible        = false;
                    childFormJHTCZD.printPreviewToolStripButton.Visible = false;
                }

                childFormJHTCZD.intUserID    = intUserID;
                childFormJHTCZD.intUserLimit = intUserLimit;
                childFormJHTCZD.strUserLimit = strUserLimit;
                childFormJHTCZD.strUserName  = strUserName;
                childFormJHTCZD.Show();
                break;

            case "ATB":
                // 创建此子窗体的一个新实例。
                FormJHTBJDJ childFormJHTBJDJ = new FormJHTBJDJ();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormJHTBJDJ.MdiParent = this.MdiParent;

                childFormJHTBJDJ.strConn = strConn;
                childFormJHTBJDJ.iDJID   = Convert.ToInt32(sTemp1);
                childFormJHTBJDJ.isSaved = true;
                if (intUserLimit < iConstLimit)
                {
                    childFormJHTBJDJ.printToolStripButton.Visible        = false;
                    childFormJHTBJDJ.printPreviewToolStripButton.Visible = false;
                }
                childFormJHTBJDJ.intUserID    = intUserID;
                childFormJHTBJDJ.intUserLimit = intUserLimit;
                childFormJHTBJDJ.strUserLimit = strUserLimit;
                childFormJHTBJDJ.strUserName  = strUserName;
                childFormJHTBJDJ.Show();
                break;

            case "AYF":
                // 创建此子窗体的一个新实例。
                FormYFZKJS childFormYFZKJS = new FormYFZKJS();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormYFZKJS.MdiParent = this.MdiParent;

                childFormYFZKJS.strConn = strConn;
                childFormYFZKJS.iDJID   = Convert.ToInt32(sTemp1);
                childFormYFZKJS.isSaved = true;
                if (intUserLimit < iConstLimit)
                {
                    childFormYFZKJS.printToolStripButton.Visible        = false;
                    childFormYFZKJS.printPreviewToolStripButton.Visible = false;
                }
                childFormYFZKJS.intUserID    = intUserID;
                childFormYFZKJS.intUserLimit = intUserLimit;
                childFormYFZKJS.strUserLimit = strUserLimit;
                childFormYFZKJS.strUserName  = strUserName;
                childFormYFZKJS.Show();
                break;

            case "BKP":
                // 创建此子窗体的一个新实例。
                FormXSCKZD childFormXSCKZD = new FormXSCKZD();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormXSCKZD.MdiParent = this.MdiParent;

                childFormXSCKZD.strConn = strConn;
                childFormXSCKZD.iDJID   = Convert.ToInt32(sTemp1);
                childFormXSCKZD.isSaved = true;
                if (intUserLimit < iConstLimit)
                {
                    childFormXSCKZD.printToolStripButton.Visible        = false;
                    childFormXSCKZD.printPreviewToolStripButton.Visible = false;
                }
                childFormXSCKZD.intUserID    = intUserID;
                childFormXSCKZD.intUserLimit = intUserLimit;
                childFormXSCKZD.strUserLimit = strUserLimit;
                childFormXSCKZD.strUserName  = strUserName;
                childFormXSCKZD.Show();
                break;

            case "BCK":
                // 创建此子窗体的一个新实例。
                FormXSCKJD childFormXSCKJD = new FormXSCKJD();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormXSCKJD.MdiParent = this.MdiParent;

                childFormXSCKJD.strConn = strConn;
                childFormXSCKJD.iDJID   = Convert.ToInt32(sTemp1);
                childFormXSCKJD.isSaved = true;
                if (intUserLimit < iConstLimit)
                {
                    childFormXSCKJD.printToolStripButton.Visible        = false;
                    childFormXSCKJD.printPreviewToolStripButton.Visible = false;
                }
                childFormXSCKJD.intUserID    = intUserID;
                childFormXSCKJD.intUserLimit = intUserLimit;
                childFormXSCKJD.strUserLimit = strUserLimit;
                childFormXSCKJD.strUserName  = strUserName;
                childFormXSCKJD.Show();
                break;

            case "BTH":
                // 创建此子窗体的一个新实例。
                FormXSTHZD childFormXSTHZD = new FormXSTHZD();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormXSTHZD.MdiParent = this.MdiParent;

                childFormXSTHZD.strConn = strConn;
                childFormXSTHZD.iDJID   = Convert.ToInt32(sTemp1);
                childFormXSTHZD.isSaved = true;
                if (intUserLimit < iConstLimit)
                {
                    childFormXSTHZD.printToolStripButton.Visible        = false;
                    childFormXSTHZD.printPreviewToolStripButton.Visible = false;
                }
                childFormXSTHZD.intUserID    = intUserID;
                childFormXSTHZD.intUserLimit = intUserLimit;
                childFormXSTHZD.strUserLimit = strUserLimit;
                childFormXSTHZD.strUserName  = strUserName;
                childFormXSTHZD.Show();
                break;

            case "BTB":
                // 创建此子窗体的一个新实例。
                FormXSTBJDJ childFormXSTBJDJ = new FormXSTBJDJ();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormXSTBJDJ.MdiParent = this.MdiParent;

                childFormXSTBJDJ.strConn = strConn;
                childFormXSTBJDJ.iDJID   = Convert.ToInt32(sTemp1);
                childFormXSTBJDJ.isSaved = true;
                if (intUserLimit < iConstLimit)
                {
                    childFormXSTBJDJ.printToolStripButton.Visible        = false;
                    childFormXSTBJDJ.printPreviewToolStripButton.Visible = false;
                }
                childFormXSTBJDJ.intUserID    = intUserID;
                childFormXSTBJDJ.intUserLimit = intUserLimit;
                childFormXSTBJDJ.strUserLimit = strUserLimit;
                childFormXSTBJDJ.strUserName  = strUserName;
                childFormXSTBJDJ.Show();
                break;

            case "BYS":
                // 创建此子窗体的一个新实例。
                FormYSZKJS childFormYSZKJS = new FormYSZKJS();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormYSZKJS.MdiParent = this.MdiParent;

                childFormYSZKJS.strConn = strConn;
                childFormYSZKJS.iDJID   = Convert.ToInt32(sTemp1);
                childFormYSZKJS.isSaved = true;
                if (intUserLimit < iConstLimit)
                {
                    childFormYSZKJS.printToolStripButton.Visible        = false;
                    childFormYSZKJS.printPreviewToolStripButton.Visible = false;
                }
                childFormYSZKJS.intUserID    = intUserID;
                childFormYSZKJS.intUserLimit = intUserLimit;
                childFormYSZKJS.strUserLimit = strUserLimit;
                childFormYSZKJS.strUserName  = strUserName;
                childFormYSZKJS.Show();
                break;

            case "CPD":
                // 创建此子窗体的一个新实例。
                FormKCSPPD2 childFormKCSPPD2 = new FormKCSPPD2();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormKCSPPD2.MdiParent = this.MdiParent;

                childFormKCSPPD2.strConn = strConn;
                childFormKCSPPD2.iDJID   = Convert.ToInt32(sTemp1);
                childFormKCSPPD2.isSaved = true;
                if (intUserLimit < iConstLimit)
                {
                    childFormKCSPPD2.printToolStripButton.Visible        = false;
                    childFormKCSPPD2.printPreviewToolStripButton.Visible = false;
                }
                childFormKCSPPD2.intUserID    = intUserID;
                childFormKCSPPD2.intUserLimit = intUserLimit;
                childFormKCSPPD2.strUserLimit = strUserLimit;
                childFormKCSPPD2.strUserName  = strUserName;
                childFormKCSPPD2.Show();
                break;

            case "CBS":
                // 创建此子窗体的一个新实例。
                FormKCSPBSCL childFormKCSPBSCL = new FormKCSPBSCL();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormKCSPBSCL.MdiParent = this.MdiParent;

                childFormKCSPBSCL.strConn = strConn;
                childFormKCSPBSCL.iDJID   = Convert.ToInt32(sTemp1);
                childFormKCSPBSCL.isSaved = true;
                if (intUserLimit < iConstLimit)
                {
                    childFormKCSPBSCL.printToolStripButton.Visible        = false;
                    childFormKCSPBSCL.printPreviewToolStripButton.Visible = false;
                }
                childFormKCSPBSCL.intUserID    = intUserID;
                childFormKCSPBSCL.intUserLimit = intUserLimit;
                childFormKCSPBSCL.strUserLimit = strUserLimit;
                childFormKCSPBSCL.strUserName  = strUserName;
                childFormKCSPBSCL.Show();
                break;

            case "CCK":
                // 创建此子窗体的一个新实例。
                FormKCJWCKDJ childFormKCJWCKDJ = new FormKCJWCKDJ();
                // 在显示该窗体前使其成为此 MDI 窗体的子窗体。
                childFormKCJWCKDJ.MdiParent = this.MdiParent;

                childFormKCJWCKDJ.strConn = strConn;
                childFormKCJWCKDJ.iDJID   = Convert.ToInt32(sTemp1);
                childFormKCJWCKDJ.isSaved = true;
                if (intUserLimit < iConstLimit)
                {
                    childFormKCJWCKDJ.printToolStripButton.Visible        = false;
                    childFormKCJWCKDJ.printPreviewToolStripButton.Visible = false;
                }
                childFormKCJWCKDJ.intUserID    = intUserID;
                childFormKCJWCKDJ.intUserLimit = intUserLimit;
                childFormKCJWCKDJ.strUserLimit = strUserLimit;
                childFormKCJWCKDJ.strUserName  = strUserName;
                childFormKCJWCKDJ.Show();
                break;
            }
        }