This commit is contained in:
Jsj
2008-08-22 18:45:30 +00:00
parent c05093af02
commit e4278e63a7
3 changed files with 261 additions and 191 deletions

View File

@@ -30,7 +30,8 @@ namespace VEPROMS
StepRTB _MyRTB;
Color _CommentTitleBckColor;
VETreeNode _PrevBookMark = null;
string _PathToROs = @"G:\VEHLP\RO\RO.FST";
string _PathToROs = @"\\Volian-server\04 ve-proms files\PROMS_2010\vehlp\ro\ro.fst";//@"G:\promsdat\vehlp\ro\ro.fst";//@"G:\VEHLP\RO\RO.FST";
//string _PathToROs = @"G:\debugdat\vebyron\RO\ro.fst";//@"G:\VEHLP\RO\RO.FST";
public frmVEPROMS()
{
@@ -664,7 +665,11 @@ namespace VEPROMS
/// <param name="args"></param>
void tn_LoadingChildernDone(object sender, VETreeNodeEventArgs args)
{
#if (DEBUG)
ProgBarText = args.Info + " Seconds";
#else
ProgBarText = "";
#endif
}
public int ProgBarMax
@@ -975,10 +980,18 @@ namespace VEPROMS
infoPanel.Expanded = true;
infoTabs.SelectedTab = infotabRO;
StepTabPanel dtp = ((DisplayTabItem)tc.SelectedDisplayTabItem).MyStepTabPanel;
if (dtp == null) return;
ROFST rofst = new ROFST(_PathToROs); //"g:\\vehlp\\ro\\ro.fst");
//DocVersionInfo dvi = (DocVersionInfo)dtp.MyStepPanel.MyProcedureItemInfo.MyProcedure.MyActiveParent;
DocVersionInfo dvi;
if (dtp == null)
dvi = (DocVersionInfo)tc.SelectedDisplayTabItem.MyItemInfo.MyActiveParent.ActiveParent;
else
dvi = (DocVersionInfo)dtp.MyStepPanel.MyProcedureItemInfo.MyProcedure.MyActiveParent;
//if (dtp == null) return;
ROFST rofst = new ROFST(_PathToROs, dvi); //"g:\\vehlp\\ro\\ro.fst");
displayRO.MyROFST = rofst;
displayRO.MyRTB = dtp.MyStepPanel.SelectedStepItem.MyStepRTB;
displayRO.MyRTB = (dtp == null) ? null : dtp.MyStepPanel.SelectedStepItem.MyStepRTB;
displayRO.Mydvi = dvi;
displayRO.ProgressBar = bottomProgBar;
}
#endregion
#region InfoTabTransition
@@ -1018,7 +1031,10 @@ namespace VEPROMS
//vlnStackTrace.ShowStack("enter tc_ItemSelectedChanged {0}", _CurrentItem);
if (args.MyStepItem == null)
{
infotabRO.Visible = infotabTransition.Visible = false;
//infotabRO.Visible = infotabTransition.Visible = false;
infotabTransition.Visible = false;
infotabRO.Visible = true;
displayRO.MyRTB = null;
infotabTags.Visible = true;
//vlnStackTrace.ShowStack("enter tc_ItemSelectedChanged {0}", _CurrentItem);
}
@@ -1028,6 +1044,7 @@ namespace VEPROMS
infotabRO.Visible = infotabTransition.Visible = infotabTags.Visible = true;
displayTransition.MyRTB = args.MyStepItem.MyStepRTB;
displayRO.MyRTB = args.MyStepItem.MyStepRTB;
displayRO.ProgressBar = bottomProgBar;
}
}
ctrlAnnotationDetails.UpdateAnnotationGrid(_CurrentItem);
@@ -1076,17 +1093,22 @@ namespace VEPROMS
infoTabs.SelectedTab = infotabTransition;
displayTransition.CurTrans = null;
}
private void tc_LinkInsertRO(object sender, StepPanelLinkEventArgs args)
{
infoPanel.Expanded = true;
infoTabs.SelectedTab = infotabRO;
ROFST rofst = new ROFST(_PathToROs); //"g:\\vehlp\\ro\\ro.fst");
displayRO.MyROFST = rofst;
StepTabPanel dtp = ((DisplayTabItem)tc.SelectedDisplayTabItem).MyStepTabPanel;
if (dtp == null) return;
displayRO.MyRTB = dtp.MyStepPanel.SelectedStepItem.MyStepRTB;
displayRO.CurROLink = null;
}
// This doesn't seem to be used...
//
//private void tc_LinkInsertRO(object sender, StepPanelLinkEventArgs args)
//{
// infoPanel.Expanded = true;
// infoTabs.SelectedTab = infotabRO;
// ROFST rofst = new ROFST(_PathToROs, _LastDocVersionInfo); //"g:\\vehlp\\ro\\ro.fst");
// displayRO.MyROFST = rofst;
// StepTabPanel dtp = ((DisplayTabItem)tc.SelectedDisplayTabItem).MyStepTabPanel;
// if (dtp == null) return;
// displayRO.MyRTB = dtp.MyStepPanel.SelectedStepItem.MyStepRTB;
// displayRO.CurROLink = null;
// //displayRO.Mydvi = dvi;
//}
private void tc_LinkModifyTran(object sender, StepPanelLinkEventArgs args)
{
infoPanel.Expanded = true;
@@ -1100,11 +1122,16 @@ namespace VEPROMS
{
infoPanel.Expanded = true;
infoTabs.SelectedTab = infotabRO;
ROFST rofst = new ROFST(_PathToROs); //"g:\\vehlp\\ro\\ro.fst");
displayRO.MyROFST = rofst;
StepTabPanel dtp = ((DisplayTabItem)tc.SelectedDisplayTabItem).MyStepTabPanel;
DocVersionInfo dvi = (DocVersionInfo)dtp.MyStepPanel.MyProcedureItemInfo.MyProcedure.MyActiveParent;
if (dtp == null) return;
ROFST rofst = new ROFST(_PathToROs, dvi); //_LastDocVersionInfo); //"g:\\vehlp\\ro\\ro.fst");
displayRO.MyROFST = rofst;
displayRO.MyRTB = dtp.MyStepPanel.SelectedStepItem.MyStepRTB;
displayRO.CurROLink = args.MyLinkText.RoUsageid; // TODO: this is wrong - use for now.
displayRO.Mydvi = dvi;
displayRO.ProgressBar = bottomProgBar;
displayRO.CurROLink = args.MyLinkText.RoUsageid; // this is wrong - use for now.
}
#endregion