This commit is contained in:
2010-07-20 14:16:28 +00:00
parent 31bdf0d8c0
commit a68f9a6e7f
3 changed files with 104 additions and 43 deletions

View File

@@ -926,6 +926,7 @@ namespace VEPROMS
}
ctrlAnnotationDetails.UpdateAnnotationGrid(_CurrentItem);
AnnotationPanelView();
btnRepaginate.Enabled = btnPrint.Enabled = (_CurrentItem != null);
}
void _CurrentItem_Deleted(object sender)
@@ -1286,5 +1287,19 @@ namespace VEPROMS
StepRTB.MyFontFamily = cmbFont.SelectedValue as FontFamily;
}
private void btnPrint_Click(object sender, EventArgs e)
{
//VETreeNode vtn = tv.SelectedNode as VETreeNode;
//DocVersionInfo dvi = vtn.VEObject as DocVersionInfo;
//while (dvi == null)
//{
// vtn = vtn.Parent as VETreeNode;
// dvi = vtn.VEObject as DocVersionInfo;
//}
//string pnum = DisplayText.StaticStripRtfCommands(this._CurrentItem.MyProcedure.ProcedureConfig.Number).Replace("\\u8209?", "-");
DlgPrintProcedure prnDlg = new DlgPrintProcedure(this._CurrentItem.MyProcedure);//dvi.DocVersionConfig,pnum);
prnDlg.Show();
}
}
}