public TesterSwitchMapRelation()
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterParent;
            RadGridViewProperties.SetRadGridViewProperty(this.radGridView1, false, true, 3);
            switchWorkWearMapRelationManager = new TesterAndSwitchStandMapRelationManager();
            QueryRelationInfo();
            InitFuncState();

            this.tool_query.Click  += Tool_query_Click;
            this.tool_edit.Click   += Tool_edit_Click;
            this.tool_delete.Click += Tool_delete_Click;
            this.tool_export.Click += Tool_export_Click;
            this.btn_apply.Click   += Btn_apply_Click;
            this.btn_cancel.Click  += Btn_cancel_Click;
        }
        public static long InsertTesterAndSwitcherMapPID()
        {
            long id = -1;
            TesterAndSwitchStandMapRelationManager objManager = new TesterAndSwitchStandMapRelationManager();
            var dt = objManager.GetDataSetByWhere("order by ID DESC limit 1").Tables[0];

            if (dt.Rows.Count < 1)
            {
                return(0);
            }
            if (long.TryParse(dt.Rows[0]["ID"].ToString(), out id))
            {
                return(id + 1);
            }
            return(id);
        }