Exemple #1
0
        /// <summary>
        /// new
        /// </summary>
        public override void New()
        {
            frmPopup21001 frm = new frmPopup21001(new EntityDicSportItem());

            frm.ShowDialog();
            if (frm.IsRequireRefresh)
            {
                this.RefreshData();
                this.ScrollRow(frm.SportItemVo.sId);
            }
        }
Exemple #2
0
 /// <summary>
 /// edit
 /// </summary>
 public override void Edit()
 {
     if (this.gridView.SelectedRowsCount > 0)
     {
         frmPopup21001 frm = new frmPopup21001(this.gridView.GetRow(this.gridView.GetSelectedRows()[0]) as EntityDicSportItem);
         frm.ShowDialog();
         if (frm.IsRequireRefresh)
         {
             this.RefreshData();
             this.ScrollRow(frm.SportItemVo.sId);
         }
     }
     else
     {
         DialogBox.Msg("请选择要编辑的记录.");
     }
 }