示例#1
0
文件: frm20903.cs 项目: iamwsx05/hms
        /// <summary>
        /// New
        /// </summary>
        public override void New()
        {
            frmPopup20903 frm = new frmPopup20903();

            frm.ShowDialog();
            if (frm.IsRequireRefresh)
            {
                this.RefreshData();
                this.ScrollRow(frm.HazardsVo.hId);
            }
        }
示例#2
0
文件: frm20903.cs 项目: iamwsx05/hms
 /// <summary>
 /// edit
 /// </summary>
 public override void Edit()
 {
     if (this.gridView.SelectedRowsCount > 0)
     {
         frmPopup20903 frm = new frmPopup20903(this.gridView.GetRow(this.gridView.GetSelectedRows()[0]) as EntityDicHazards);
         frm.ShowDialog();
         if (frm.IsRequireRefresh)
         {
             this.RefreshData();
             this.ScrollRow(frm.HazardsVo.hId);
         }
     }
     else
     {
         DialogBox.Msg("请选择要编辑的记录.");
     }
 }