예제 #1
0
        private void ribtnOpen_Click(object sender, EventArgs e)
        {
            if (this.gridView.FocusedRowHandle >= 0)
            {
                qnRecord = this.gridView.GetRow(this.gridView.FocusedRowHandle) as EntityQnRecord;
            }
            frmPopup2020201 frm = new frmPopup2020201(qnRecord);

            frm.ShowDialog();
        }
예제 #2
0
파일: frm20202.cs 프로젝트: iamwsx05/hms
 /// <summary>
 /// 编辑
 /// </summary>
 public override void Edit()
 {
     if (this.gvNormalQnRecord.SelectedRowsCount > 0)
     {
         EntityQnRecord  vo  = this.gvNormalQnRecord.GetRow(this.gvNormalQnRecord.GetSelectedRows()[0]) as EntityQnRecord;
         frmPopup2020201 frm = new frmPopup2020201(vo);
         frm.ShowDialog();
         if (frm.IsRequireRefresh)
         {
             this.RefreshData();
         }
     }
     else
     {
         DialogBox.Msg("请选择要编辑的记录.");
     }
 }
예제 #3
0
파일: frm20202.cs 프로젝트: iamwsx05/hms
        public override void New()
        {
            frmPopup2020203 frm = new frmPopup2020203();

            frm.ShowDialog();
            if (frm.dicQn == null)
            {
                return;
            }
            frmPopup2020201 frm01 = new frmPopup2020201(frm.dicQn.qnId);

            frm01.ShowDialog();
            if (frm01.IsRequireRefresh)
            {
                this.RefreshData();
            }
        }