Changed how ROFSTLookup object was obtained based on correct DocVersion
This commit is contained in:
parent
ffd5191ffc
commit
e83c756161
@ -299,9 +299,9 @@ namespace Volian.Print.Library
|
|||||||
Dictionary<string, Dictionary<string, bool>> ros = new Dictionary<string, Dictionary<string, bool>>();
|
Dictionary<string, Dictionary<string, bool>> ros = new Dictionary<string, Dictionary<string, bool>>();
|
||||||
DocVersionInfo dvi = MyItemInfoList[0].MyDocVersion;
|
DocVersionInfo dvi = MyItemInfoList[0].MyDocVersion;
|
||||||
ROFstInfo rofst = dvi.DocVersionAssociations[0].MyROFst;
|
ROFstInfo rofst = dvi.DocVersionAssociations[0].MyROFst;
|
||||||
rofst.docVer = dvi;
|
//rofst.docVer = dvi;
|
||||||
// ROFSTLookup lu = MyItemInfoList[0].MyDocVersion.DocVersionAssociations[0].MyROFst.ROFSTLookup;
|
// ROFSTLookup lu = MyItemInfoList[0].MyDocVersion.DocVersionAssociations[0].MyROFst.ROFSTLookup;
|
||||||
ROFSTLookup lu = rofst.ROFSTLookup;
|
ROFSTLookup lu = rofst.GetROFSTLookup(dvi);
|
||||||
if (types.ContainsKey(0))
|
if (types.ContainsKey(0))
|
||||||
{
|
{
|
||||||
foreach (ProcedureInfo pi in MyItemInfoList)
|
foreach (ProcedureInfo pi in MyItemInfoList)
|
||||||
|
@ -1127,7 +1127,7 @@ namespace Volian.Print.Library
|
|||||||
private static string GetROTitleAndGroup(string roid, ItemInfo itm)
|
private static string GetROTitleAndGroup(string roid, ItemInfo itm)
|
||||||
{
|
{
|
||||||
string rotitle = "";
|
string rotitle = "";
|
||||||
ROFSTLookup myrofstlookup = itm.MyDocVersion.DocVersionAssociations[0].MyROFst.ROFSTLookup;
|
ROFSTLookup myrofstlookup = itm.MyDocVersion.DocVersionAssociations[0].MyROFst.GetROFSTLookup(itm.MyDocVersion);
|
||||||
List<string> roTitleList = myrofstlookup.GetROTitleAndGroupPath(roid);
|
List<string> roTitleList = myrofstlookup.GetROTitleAndGroupPath(roid);
|
||||||
for (int cnt = 0; cnt < roTitleList.Count; cnt++)
|
for (int cnt = 0; cnt < roTitleList.Count; cnt++)
|
||||||
{
|
{
|
||||||
|
@ -926,7 +926,7 @@ namespace Volian.Print.Library
|
|||||||
}
|
}
|
||||||
private string ROLookup(string accpageid, string multiid, string deflt)
|
private string ROLookup(string accpageid, string multiid, string deflt)
|
||||||
{
|
{
|
||||||
ROFSTLookup myLookup = MySection.MyDocVersion.DocVersionAssociations[0].MyROFst.ROFSTLookup;
|
ROFSTLookup myLookup = MySection.MyDocVersion.DocVersionAssociations[0].MyROFst.GetROFSTLookup(MySection.MyDocVersion);
|
||||||
string accpgid = accpageid;
|
string accpgid = accpageid;
|
||||||
accpgid = accpgid.Replace("-HIGH", "-HI").Replace("-LOW", "-LO").Replace("_HIGH", "-HI").Replace("_LOW", "-LO").Replace(@"\u8209?", "-");
|
accpgid = accpgid.Replace("-HIGH", "-HI").Replace("-LOW", "-LO").Replace("_HIGH", "-HI").Replace("_LOW", "-LO").Replace(@"\u8209?", "-");
|
||||||
string val = myLookup.GetROValueByAccPagID("<" + accpgid + "." + multiid + ">", MySection.MyDocVersion.DocVersionConfig.RODefaults_setpointprefix, MySection.MyDocVersion.DocVersionConfig.RODefaults_graphicsprefix);
|
string val = myLookup.GetROValueByAccPagID("<" + accpgid + "." + multiid + ">", MySection.MyDocVersion.DocVersionConfig.RODefaults_setpointprefix, MySection.MyDocVersion.DocVersionConfig.RODefaults_graphicsprefix);
|
||||||
|
@ -848,11 +848,11 @@ namespace Volian.Print.Library
|
|||||||
// preceeding foldout.
|
// preceeding foldout.
|
||||||
if (MyItemInfo.FoldoutIndex() <= -1)
|
if (MyItemInfo.FoldoutIndex() <= -1)
|
||||||
{
|
{
|
||||||
MyPageHelper.OnBlankPage = true;
|
MyPageHelper.OnBlankPage = true;
|
||||||
cb.PdfDocument.Add(new iTextSharp.text.Table(1));
|
cb.PdfDocument.Add(new iTextSharp.text.Table(1));
|
||||||
cb.PdfDocument.NewPage();
|
cb.PdfDocument.NewPage();
|
||||||
//_MyLog.InfoFormat("NewPage 10 blank {0}", cb.PdfWriter.CurrentPageNumber);
|
//_MyLog.InfoFormat("NewPage 10 blank {0}", cb.PdfWriter.CurrentPageNumber);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
yPageStart = yTopMargin + YTopMost;
|
yPageStart = yTopMargin + YTopMost;
|
||||||
DoCheckOffHeader(cb, MyItemInfo, yLocation, yTopMargin, yPageStart);
|
DoCheckOffHeader(cb, MyItemInfo, yLocation, yTopMargin, yPageStart);
|
||||||
@ -1729,8 +1729,8 @@ namespace Volian.Print.Library
|
|||||||
// DocVersionInfo dvi = proc.ActiveParent as DocVersionInfo;
|
// DocVersionInfo dvi = proc.ActiveParent as DocVersionInfo;
|
||||||
DocVersionInfo dvi = proc.MyDocVersion;
|
DocVersionInfo dvi = proc.MyDocVersion;
|
||||||
ROFstInfo rofst = dvi.DocVersionAssociations[0].MyROFst;
|
ROFstInfo rofst = dvi.DocVersionAssociations[0].MyROFst;
|
||||||
rofst.docVer = dvi;
|
//rofst.docVer = dvi;
|
||||||
ROFSTLookup lookup = rofst.ROFSTLookup;
|
ROFSTLookup lookup = rofst.GetROFSTLookup(dvi);
|
||||||
string linkInfoText = itemInfo.MyContent.Text.Replace(@"\v ", "");
|
string linkInfoText = itemInfo.MyContent.Text.Replace(@"\v ", "");
|
||||||
Match m = Regex.Match(linkInfoText, @"(.*)[#]Link:([A-Za-z]*):(.*)");
|
Match m = Regex.Match(linkInfoText, @"(.*)[#]Link:([A-Za-z]*):(.*)");
|
||||||
if (m.Groups.Count < 4)
|
if (m.Groups.Count < 4)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user