/// <summary> /// 合同查看 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tF_FILEGridControl_DoubleClick(object sender, EventArgs e) { try { DataRowView rv = this.HTtF_FILEBindingSource.Current as DataRowView; string fileID = rv["FileID"].ToString(); var image = HTfileDataSet.GetImageByID(fileID); FrmImageView frmImgView = new FrmImageView(); frmImgView.ImageBytes = image; frmImgView.ShowDialog(); } catch (Exception ex) { UserMessages.ShowInfoBox(ex.Message); } }
private void tW_ClientGridControl_DoubleClick(object sender, EventArgs e) { try { DataRowView rv = tW_ClientBindingSource.Current as DataRowView; if (rv == null) { return; } string fkID = rv["客户名称ID"].ToString(); if (string.IsNullOrEmpty(fkID)) { UserMessages.ShowInfoBox("公司名称不存在客户信息中!"); return; } fileDataSet.GetImage(fkID); HTfileDataSet.GetImage(fkID, "合同"); } catch (Exception ex) { UserMessages.ShowErrorBox(ex.Message); } }