private void winGridViewPager1_OnAddNew(object sender, EventArgs e)
        {
            FrmEditWareHouse dlg = new FrmEditWareHouse();

            dlg.InitFunction(this.LoginUserInfo, this.FunctionDict);//初始化权限控制信息

            if (DialogResult.OK == dlg.ShowDialog())
            {
                BindData();
            }
        }
        private void winGridViewPager1_OnEditSelected(object sender, EventArgs e)
        {
            int[] rowSelected = this.winGridViewPager1.GridView1.GetSelectedRows();
            foreach (int iRow in rowSelected)
            {
                FrmEditWareHouse dlg = new FrmEditWareHouse();
                dlg.ID = this.winGridViewPager1.GridView1.GetRowCellDisplayText(iRow, "ID");
                dlg.InitFunction(this.LoginUserInfo, this.FunctionDict);//初始化权限控制信息

                if (DialogResult.OK == dlg.ShowDialog())
                {
                    BindData();
                }

                break;
            }
        }