This commit is contained in:
parent
d739a72c7b
commit
a9da618d54
@ -160,6 +160,7 @@ namespace DataLoader
|
|||||||
// can we save itm.ItemID in a dictionary of outside trans? ex: otrans("vehlp\procs\0POP05-EO00",itm.ItemID)?
|
// can we save itm.ItemID in a dictionary of outside trans? ex: otrans("vehlp\procs\0POP05-EO00",itm.ItemID)?
|
||||||
Content cont = null;
|
Content cont = null;
|
||||||
Item itm = null;
|
Item itm = null;
|
||||||
|
string dicNumber = dr["Number"].ToString();
|
||||||
string number = TextConvert.ConvertText(dr["Number"].ToString());
|
string number = TextConvert.ConvertText(dr["Number"].ToString());
|
||||||
frmMain.UpdateLabels(1, 0, 0);
|
frmMain.UpdateLabels(1, 0, 0);
|
||||||
if (!convertProcedures || (docver.VersionType != (int)VEPROMS.CSLA.Library.VersionTypeEnum.WorkingDraft && docver.VersionType != (int)VEPROMS.CSLA.Library.VersionTypeEnum.Approved))
|
if (!convertProcedures || (docver.VersionType != (int)VEPROMS.CSLA.Library.VersionTypeEnum.WorkingDraft && docver.VersionType != (int)VEPROMS.CSLA.Library.VersionTypeEnum.Approved))
|
||||||
@ -170,7 +171,8 @@ namespace DataLoader
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
DocVersionInfo dvi = DocVersionInfo.Get(docver.VersionID);
|
DocVersionInfo dvi = DocVersionInfo.Get(docver.VersionID);
|
||||||
foreach(ItemInfo ii in dvi.Procedures){
|
foreach (ItemInfo ii in dvi.Procedures)
|
||||||
|
{
|
||||||
if (ii.MyContent.Number == number)
|
if (ii.MyContent.Number == number)
|
||||||
{
|
{
|
||||||
//Console.WriteLine(number);
|
//Console.WriteLine(number);
|
||||||
@ -184,6 +186,7 @@ namespace DataLoader
|
|||||||
OleDbDataAdapter da = new OleDbDataAdapter("select * from [" + dr["entry"] + "] where sequence like ' %'", cn);
|
OleDbDataAdapter da = new OleDbDataAdapter("select * from [" + dr["entry"] + "] where sequence like ' %'", cn);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
dicTrans_ItemDone[dicNumber] = itm; // will be null if only doing procs & no sections, etc.
|
||||||
LoadSection(ds, da, dr["entry"].ToString());
|
LoadSection(ds, da, dr["entry"].ToString());
|
||||||
da.SelectCommand.CommandText = "select * from [" + dr["entry"] + "] where step not like ' ' and step not like '%~'";
|
da.SelectCommand.CommandText = "select * from [" + dr["entry"] + "] where step not like ' ' and step not like '%~'";
|
||||||
da.Fill(ds, "Steps");
|
da.Fill(ds, "Steps");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user