Пример #1
0
        private void winGridView1_OnAddNew(object sender, EventArgs e)
        {
            if (!HasFunction("SystemType/add"))
            {
                MessageDxUtil.ShowError(Const.NoAuthMsg);
                return;
            }

            FrmEditSystemType dlg = new FrmEditSystemType();

            if (DialogResult.OK == dlg.ShowDialog())
            {
                BindData();
            }
        }
Пример #2
0
        private void winGridView1_OnEditSelected(object sender, EventArgs e)
        {
            if (!HasFunction("SystemType/edit"))
            {
                MessageDxUtil.ShowError(Const.NoAuthMsg);
                return;
            }

            int[] rowSelected = this.winGridView1.GridView1.GetSelectedRows();
            foreach (int iRow in rowSelected)
            {
                FrmEditSystemType dlg = new FrmEditSystemType();
                dlg.ID = this.winGridView1.GridView1.GetRowCellDisplayText(iRow, "OID");
                if (DialogResult.OK == dlg.ShowDialog())
                {
                    BindData();
                }

                break;
            }
        }