BGE: Save Change id on grid edit
BGE: Save Change id on step edit BGE: Added user interface for modifying current change id BGE: Added menu item for removing change ids (no supporting code yet – the actual code to remove ids needs to be developed) BGE: If format uses ‘ChangeIds’, then use the data from the changed step config for printing the change bar data.
This commit is contained in:
@@ -2516,9 +2516,14 @@ namespace Volian.Print.Library
|
||||
(xoff > (cols + colr + COL_WID_ADJ)) ?
|
||||
cbd.FixedChangeColumn ?? 0 : AERLeftChangeBarLocation(formatInfo) :
|
||||
cbd.FixedChangeColumn ?? 0 : ChangeBarLocation(xoff, this, formatInfo, maxRNO);
|
||||
|
||||
string chgIdTxt = null;
|
||||
if (itemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.ChangeBarData.ChgBarMessageFromEdit)
|
||||
{
|
||||
StepConfig sc = itemInfo.MyConfig as StepConfig;
|
||||
chgIdTxt = sc == null ? null : sc.Step_ChangeID;
|
||||
}
|
||||
if (myPageHelper.ChangeBarDefinition.MyChangeBarText == PrintChangeBarText.ChgID)
|
||||
cbMess = itemInfo.MyContent.UserID;
|
||||
cbMess = chgIdTxt!=null?chgIdTxt:itemInfo.MyContent.UserID;
|
||||
else if (myPageHelper.ChangeBarDefinition.MyChangeBarText == PrintChangeBarText.DateChgID)
|
||||
{
|
||||
string fmtDate = itemInfo.MyContent.DTS.ToShortDateString();
|
||||
@@ -2529,7 +2534,7 @@ namespace Volian.Print.Library
|
||||
if (fmtDate.IndexOf("/", 3) == 1)
|
||||
fmtDate = fmtDate.Substring(0, 3) + "0" + fmtDate.Substring(3, fmtDate.Length - 3);
|
||||
}
|
||||
cbMess = itemInfo.MyContent.UserID + @"\n" + fmtDate;
|
||||
cbMess = (chgIdTxt!=null?chgIdTxt:itemInfo.MyContent.UserID) + @"\n" + fmtDate;
|
||||
}
|
||||
else if (myPageHelper.ChangeBarDefinition.MyChangeBarText == PrintChangeBarText.RevNum)
|
||||
{
|
||||
|
Reference in New Issue
Block a user