Merge pull request 'Development' (#239) from Development into master
Merging F2024-018, B2024-008, B2024-007, and F2024-015 from development into master after successful testing.
This commit is contained in:
commit
8877e968b9
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -597,6 +597,13 @@ namespace VEPROMS.CSLA.Library
|
||||
//if (_RevisionInfoList != null)
|
||||
// return _RevisionInfoList;
|
||||
RevisionInfoList tmp = DataPortal.Fetch<RevisionInfoList>(new ItemUnitCriteria(itemID, unitID));
|
||||
|
||||
foreach (var x in tmp)
|
||||
{
|
||||
x.LatestVersion.ApprovedXML = x.RevisionID.ToString();
|
||||
x.LatestVersion.PDF = Encoding.ASCII.GetBytes(x.RevisionID.ToString());
|
||||
x.LatestVersion.SummaryPDF = Encoding.ASCII.GetBytes(x.RevisionID.ToString());
|
||||
}
|
||||
RevisionInfo.AddList(tmp);
|
||||
tmp.AddEvents();
|
||||
//_RevisionInfoList = tmp;
|
||||
|
@ -153,6 +153,10 @@ namespace VEPROMS.CSLA.Library
|
||||
CanReadProperty("PDF", true);
|
||||
return _PDF;
|
||||
}
|
||||
set
|
||||
{
|
||||
_PDF = value;
|
||||
}
|
||||
}
|
||||
private byte[] _SummaryPDF;
|
||||
public byte[] SummaryPDF
|
||||
@ -163,6 +167,10 @@ namespace VEPROMS.CSLA.Library
|
||||
CanReadProperty("SummaryPDF", true);
|
||||
return _SummaryPDF;
|
||||
}
|
||||
set
|
||||
{
|
||||
_SummaryPDF = value;
|
||||
}
|
||||
}
|
||||
private string _ApprovedXML;
|
||||
public string ApprovedXML
|
||||
@ -173,6 +181,10 @@ namespace VEPROMS.CSLA.Library
|
||||
CanReadProperty("ApprovedXML", true);
|
||||
return _ApprovedXML;
|
||||
}
|
||||
set
|
||||
{
|
||||
_ApprovedXML = value;
|
||||
}
|
||||
}
|
||||
private DateTime _DTS = new DateTime();
|
||||
public DateTime DTS
|
||||
|
@ -208,7 +208,7 @@ namespace Volian.Controls.Library
|
||||
// set other procedure related private variables.
|
||||
vlnTreeComboSetsFillIn(_CurrentProcedure);
|
||||
cbTranProcsFillIn(_CurrentProcedure);
|
||||
if (_CurrentProcedure.Sections != null)
|
||||
if (_CurrentProcedure.Sections != null && secitm != null)
|
||||
{
|
||||
// if the selected format is using section default, initialize with the section default (find it),
|
||||
// otherwise use current section item.
|
||||
@ -987,6 +987,7 @@ namespace Volian.Controls.Library
|
||||
if (prcitm.Sections != null)
|
||||
{
|
||||
foreach (SectionInfo sio in prcitm.Sections)
|
||||
|
||||
{
|
||||
SectionConfig sc = sio.MyConfig as SectionConfig;
|
||||
if (sc != null && sc.Section_OriginalSteps == "Y")
|
||||
@ -1115,6 +1116,8 @@ namespace Volian.Controls.Library
|
||||
this.superToolTipDispTran.SetSuperTooltip(this.listBoxTranFmt, new DevComponents.DotNetBar.SuperTooltipInfo("", "",
|
||||
"This is where transition types are selected. This also defines how the transition will look in the text.",
|
||||
null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
|
||||
// B2024-007 color of transition panel was not toggling properly
|
||||
groupPanelTranFmt.Style.BackColor = !HasDefault && NeedsDefault ? Color.Red : Color.Orange;
|
||||
//btnTranSave.Enabled = allowSave;
|
||||
//if (CurTrans != null && selii != null)
|
||||
//{
|
||||
|
@ -1309,25 +1309,26 @@ namespace Volian.Controls.Library
|
||||
if (ri.LatestVersion.PDF != null)
|
||||
{
|
||||
MenuItem mirp = mir.MenuItems.Add("View Procedure");
|
||||
mirp.Tag = ri;
|
||||
mirp.Tag = ri.RevisionID;
|
||||
mirp.Click += new EventHandler(MultiUnitApprovedRevision_Click);
|
||||
}
|
||||
if (ri.LatestVersion.SummaryPDF != null)
|
||||
{
|
||||
MenuItem mirs = mir.MenuItems.Add("View Summary of Changes");
|
||||
mirs.Tag = ri;
|
||||
mirs.Tag = ri.RevisionID;
|
||||
mirs.Click += new EventHandler(MultiUnitSummaryOfChanges_Click);
|
||||
}
|
||||
if (ri.LatestVersion.ApprovedXML != null && ri.LatestVersion.ApprovedXML != "")
|
||||
{
|
||||
MenuItem miri = mir.MenuItems.Add("Create Procedure to Import");
|
||||
miri.Tag = ri;
|
||||
miri.Tag = ri.RevisionID;
|
||||
miri.Click += new EventHandler(ImportProcedure_Click);
|
||||
}
|
||||
|
||||
//end added jcb 20111031
|
||||
mv.Tag = lastApprovedRevisionID;
|
||||
}
|
||||
ril = null;
|
||||
}
|
||||
}
|
||||
public void AddNewNode(IVEDrillDownReadOnly o)
|
||||
@ -1419,7 +1420,8 @@ namespace Volian.Controls.Library
|
||||
|
||||
void ImportProcedure_Click(object sender, EventArgs e)
|
||||
{
|
||||
RevisionInfo ri = (sender as MenuItem).Tag as RevisionInfo;
|
||||
//RevisionInfo ri = (sender as MenuItem).Tag as RevisionInfo;
|
||||
RevisionInfo ri = RevisionInfo.Get(int.Parse((sender as MenuItem).Tag.ToString()));
|
||||
RevisionConfig rc = ri.MyConfig as RevisionConfig;
|
||||
// bug fix: B2016-183 - add the child's name (ex Unit 1) to the export file name for Parent/Child procedures.
|
||||
int applIdx = rc.Applicability_Index;
|
||||
@ -1459,7 +1461,8 @@ namespace Volian.Controls.Library
|
||||
bool superceded = false;
|
||||
MenuItem mi = sender as MenuItem;
|
||||
if (mi == null) return;
|
||||
RevisionInfo ri = mi.Tag as RevisionInfo;
|
||||
//RevisionInfo ri = mi.Tag as RevisionInfo;
|
||||
RevisionInfo ri = RevisionInfo.Get(int.Parse(mi.Tag.ToString()));
|
||||
{
|
||||
MenuItem mip = mi.Parent as MenuItem;
|
||||
//B2021-086 Added the check for the last revision stage is an Approved stage
|
||||
@ -1485,7 +1488,8 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
MenuItem mi = sender as MenuItem;
|
||||
if (mi == null) return;
|
||||
RevisionInfo ri = mi.Tag as RevisionInfo;
|
||||
//RevisionInfo ri = mi.Tag as RevisionInfo;
|
||||
RevisionInfo ri = RevisionInfo.Get(int.Parse(mi.Tag.ToString()));
|
||||
ItemInfo ii = ItemInfo.Get(ri.ItemID);
|
||||
ii.MyDocVersion.DocVersionConfig.SelectedSlave = ri.MyConfig.Applicability_Index;
|
||||
vlnTreeViewPdfArgs args = new vlnTreeViewPdfArgs(Volian.Base.Library.TmpFile.CreateFileName(ProcedureInfo.Get(ri.ItemID).PDFNumber + " Summary of Changes"), ri.LatestVersion.SummaryPDF, "");
|
||||
|
Loading…
x
Reference in New Issue
Block a user