Esempio n. 1
0
 /// <summary>
 /// Edit
 /// </summary>
 public override void Edit()
 {
     if (this.gridView.SelectedRowsCount > 0)
     {
         EntityDicQnMain mainVo = this.gridView.GetRow(this.gridView.GetSelectedRows()[0]) as EntityDicQnMain;
         if (mainVo.classId == 1)
         {
             frmPopup2090101 frm = new frmPopup2090101(mainVo);
             frm.ShowDialog();
             if (frm.IsRequireRefresh)
             {
                 this.RefreshData();
                 this.ScrollRow(frm.QnVo.qnId);
             }
         }
         else if (mainVo.classId == 2)
         {
             frmPopup2090102 frm = new frmPopup2090102(mainVo);
             frm.ShowDialog();
             if (frm.IsRequireRefresh)
             {
                 this.RefreshData();
                 this.ScrollRow(frm.QnVo.qnId);
             }
         }
     }
     else
     {
         DialogBox.Msg("请选择要编辑的记录.");
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Design
        /// </summary>
        public override void Design()
        {
            frmPopup2090102 frm = new frmPopup2090102();

            frm.ShowDialog();
        }