Beispiel #1
0
        /// <summary>
        /// data initialize
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// 页面载入操作
        private void BasicSettingsDetail_Load(object sender, EventArgs e)
        {
            this.lblMenu.Text = "基础数据 > 配置管理 > 列信息";

            this.topPanel.Visible = false;

            CheckPrivilege();
            DataSet dataDS = new DataSet(); //dataset to receive category information

            //set category key to entity
            baseAttributeEntity.CategoryKey = treeNode.Tag.ToString();
            try
            {
                //get data
                dataDS = baseAttributeEntity.GetBaseAttribute();
                //check result
                if (baseAttributeEntity.ErrorMsg == "")
                {
                    //insert data to grid view
                    SetDataToGrid(dataDS, this.dgvData);
                }
                else
                {
                    MessageBox.Show(baseAttributeEntity.ErrorMsg);
                }
            }
            catch (Exception ee)
            {
                MessageBox.Show(ee.Message);
            }
        }