Пример #1
0
        /// <summary>
        /// 添加
        /// </summary>
        public override void New()
        {
            frmPopup20801 frm = new frmPopup20801(null);

            frm.ShowDialog();
            if (frm.IsRequireRefresh)
            {
                this.RefreshData();
            }
        }
Пример #2
0
 /// <summary>
 /// 编辑
 /// </summary>
 public override void Edit()
 {
     if (this.gridView1.SelectedRowsCount > 0)
     {
         EntityReportTemplate vo  = this.gridView1.GetRow(this.gridView1.GetSelectedRows()[0]) as EntityReportTemplate;
         frmPopup20801        frm = new frmPopup20801(vo);
         frm.ShowDialog();
         if (frm.IsRequireRefresh)
         {
             this.RefreshData();
         }
     }
     else
     {
         DialogBox.Msg("请选择要编辑的记录.");
     }
 }