Exemplo n.º 1
0
        /// <summary>
        /// 添加
        /// </summary>
        public override void New()
        {
            frmPopup2060301 frm = new frmPopup2060301();

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