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)
|
//if (_RevisionInfoList != null)
|
||||||
// return _RevisionInfoList;
|
// return _RevisionInfoList;
|
||||||
RevisionInfoList tmp = DataPortal.Fetch<RevisionInfoList>(new ItemUnitCriteria(itemID, unitID));
|
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);
|
RevisionInfo.AddList(tmp);
|
||||||
tmp.AddEvents();
|
tmp.AddEvents();
|
||||||
//_RevisionInfoList = tmp;
|
//_RevisionInfoList = tmp;
|
||||||
|
@ -153,6 +153,10 @@ namespace VEPROMS.CSLA.Library
|
|||||||
CanReadProperty("PDF", true);
|
CanReadProperty("PDF", true);
|
||||||
return _PDF;
|
return _PDF;
|
||||||
}
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_PDF = value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
private byte[] _SummaryPDF;
|
private byte[] _SummaryPDF;
|
||||||
public byte[] SummaryPDF
|
public byte[] SummaryPDF
|
||||||
@ -163,6 +167,10 @@ namespace VEPROMS.CSLA.Library
|
|||||||
CanReadProperty("SummaryPDF", true);
|
CanReadProperty("SummaryPDF", true);
|
||||||
return _SummaryPDF;
|
return _SummaryPDF;
|
||||||
}
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_SummaryPDF = value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
private string _ApprovedXML;
|
private string _ApprovedXML;
|
||||||
public string ApprovedXML
|
public string ApprovedXML
|
||||||
@ -173,6 +181,10 @@ namespace VEPROMS.CSLA.Library
|
|||||||
CanReadProperty("ApprovedXML", true);
|
CanReadProperty("ApprovedXML", true);
|
||||||
return _ApprovedXML;
|
return _ApprovedXML;
|
||||||
}
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_ApprovedXML = value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
private DateTime _DTS = new DateTime();
|
private DateTime _DTS = new DateTime();
|
||||||
public DateTime DTS
|
public DateTime DTS
|
||||||
|
@ -208,7 +208,7 @@ namespace Volian.Controls.Library
|
|||||||
// set other procedure related private variables.
|
// set other procedure related private variables.
|
||||||
vlnTreeComboSetsFillIn(_CurrentProcedure);
|
vlnTreeComboSetsFillIn(_CurrentProcedure);
|
||||||
cbTranProcsFillIn(_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),
|
// if the selected format is using section default, initialize with the section default (find it),
|
||||||
// otherwise use current section item.
|
// otherwise use current section item.
|
||||||
@ -987,6 +987,7 @@ namespace Volian.Controls.Library
|
|||||||
if (prcitm.Sections != null)
|
if (prcitm.Sections != null)
|
||||||
{
|
{
|
||||||
foreach (SectionInfo sio in prcitm.Sections)
|
foreach (SectionInfo sio in prcitm.Sections)
|
||||||
|
|
||||||
{
|
{
|
||||||
SectionConfig sc = sio.MyConfig as SectionConfig;
|
SectionConfig sc = sio.MyConfig as SectionConfig;
|
||||||
if (sc != null && sc.Section_OriginalSteps == "Y")
|
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.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.",
|
"This is where transition types are selected. This also defines how the transition will look in the text.",
|
||||||
null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
|
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;
|
//btnTranSave.Enabled = allowSave;
|
||||||
//if (CurTrans != null && selii != null)
|
//if (CurTrans != null && selii != null)
|
||||||
//{
|
//{
|
||||||
|
@ -1309,25 +1309,26 @@ namespace Volian.Controls.Library
|
|||||||
if (ri.LatestVersion.PDF != null)
|
if (ri.LatestVersion.PDF != null)
|
||||||
{
|
{
|
||||||
MenuItem mirp = mir.MenuItems.Add("View Procedure");
|
MenuItem mirp = mir.MenuItems.Add("View Procedure");
|
||||||
mirp.Tag = ri;
|
mirp.Tag = ri.RevisionID;
|
||||||
mirp.Click += new EventHandler(MultiUnitApprovedRevision_Click);
|
mirp.Click += new EventHandler(MultiUnitApprovedRevision_Click);
|
||||||
}
|
}
|
||||||
if (ri.LatestVersion.SummaryPDF != null)
|
if (ri.LatestVersion.SummaryPDF != null)
|
||||||
{
|
{
|
||||||
MenuItem mirs = mir.MenuItems.Add("View Summary of Changes");
|
MenuItem mirs = mir.MenuItems.Add("View Summary of Changes");
|
||||||
mirs.Tag = ri;
|
mirs.Tag = ri.RevisionID;
|
||||||
mirs.Click += new EventHandler(MultiUnitSummaryOfChanges_Click);
|
mirs.Click += new EventHandler(MultiUnitSummaryOfChanges_Click);
|
||||||
}
|
}
|
||||||
if (ri.LatestVersion.ApprovedXML != null && ri.LatestVersion.ApprovedXML != "")
|
if (ri.LatestVersion.ApprovedXML != null && ri.LatestVersion.ApprovedXML != "")
|
||||||
{
|
{
|
||||||
MenuItem miri = mir.MenuItems.Add("Create Procedure to Import");
|
MenuItem miri = mir.MenuItems.Add("Create Procedure to Import");
|
||||||
miri.Tag = ri;
|
miri.Tag = ri.RevisionID;
|
||||||
miri.Click += new EventHandler(ImportProcedure_Click);
|
miri.Click += new EventHandler(ImportProcedure_Click);
|
||||||
}
|
}
|
||||||
|
|
||||||
//end added jcb 20111031
|
//end added jcb 20111031
|
||||||
mv.Tag = lastApprovedRevisionID;
|
mv.Tag = lastApprovedRevisionID;
|
||||||
}
|
}
|
||||||
|
ril = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public void AddNewNode(IVEDrillDownReadOnly o)
|
public void AddNewNode(IVEDrillDownReadOnly o)
|
||||||
@ -1419,7 +1420,8 @@ namespace Volian.Controls.Library
|
|||||||
|
|
||||||
void ImportProcedure_Click(object sender, EventArgs e)
|
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;
|
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.
|
// 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;
|
int applIdx = rc.Applicability_Index;
|
||||||
@ -1459,7 +1461,8 @@ namespace Volian.Controls.Library
|
|||||||
bool superceded = false;
|
bool superceded = false;
|
||||||
MenuItem mi = sender as MenuItem;
|
MenuItem mi = sender as MenuItem;
|
||||||
if (mi == null) return;
|
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;
|
MenuItem mip = mi.Parent as MenuItem;
|
||||||
//B2021-086 Added the check for the last revision stage is an Approved stage
|
//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;
|
MenuItem mi = sender as MenuItem;
|
||||||
if (mi == null) return;
|
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);
|
ItemInfo ii = ItemInfo.Get(ri.ItemID);
|
||||||
ii.MyDocVersion.DocVersionConfig.SelectedSlave = ri.MyConfig.Applicability_Index;
|
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, "");
|
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