コード例 #1
0
        private void OpenDetail()
        {
            XMBContractInfo SelectXMBContractInfo = gvXMBContractInfo.GetFocusedRow() as XMBContractInfo;

            if (SelectXMBContractInfo != null)
            {
                frmXMBContractInfo form = new frmXMBContractInfo();
                form.RefXMBContractInfo = SelectXMBContractInfo;
                //form.IsEdit = false;
                AppForm.CurrentForm.ChangeForm("合同信息查看", form);
            }
        }
コード例 #2
0
 private void gvXMBContractInfo_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     if (e.Clicks > 1)
     {
         if (gvXMBContractInfo.GetRow(e.RowHandle) != null)
         {
             XMBContractInfo SelectXMBContractInfo = gvXMBContractInfo.GetRow(e.RowHandle) as XMBContractInfo;
             if (SelectXMBContractInfo != null)
             {
                 frmXMBContractInfo form = new frmXMBContractInfo();
                 form.RefXMBContractInfo = SelectXMBContractInfo;
                 //form.IsEdit = false;
                 AppForm.CurrentForm.ChangeForm("合同信息查看", form);
             }
         }
     }
 }