Exemple #1
0
        /// <summary>
        /// 添加
        /// </summary>
        public override void New()
        {
            frmPopup2060101 frm = new frmPopup2060101();

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