Esempio n. 1
0
        private void winGridViewPager1_OnEditSelected(object sender, EventArgs e)
        {
            string ID = this.winGridViewPager1.gridView1.GetFocusedRowCellDisplayText("ID");

            if (!string.IsNullOrEmpty(ID))
            {
                FrmEditDictData dlg = new FrmEditDictData();
                dlg.ID = ID;
                dlg.txtDictType.Tag = this.lblDictType.Tag;
                dlg.TypeID          = this.lblDictType.Tag.ToString();
                dlg.LoginID         = LoginID;
                dlg.OnDataSaved    += new EventHandler(dlg_OnDataSaved);
                if (DialogResult.OK == dlg.ShowDialog())
                {
                    BindData();
                }
            }
        }
Esempio n. 2
0
        private void winGridViewPager1_OnAddNew(object sender, EventArgs e)
        {
            if (this.lblDictType.Text.Length == 0)
            {
                MessageDxUtil.ShowTips("请选择指定的字典大类,然后添加!");
                return;
            }

            FrmEditDictData dlg = new FrmEditDictData();

            dlg.txtDictType.Text = this.lblDictType.Text;
            dlg.txtDictType.Tag  = this.lblDictType.Tag;
            dlg.TypeID           = this.lblDictType.Tag.ToString();
            dlg.LoginID          = LoginID;
            dlg.OnDataSaved     += new EventHandler(dlg_OnDataSaved);

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