SourceCode/PROMS/Documents/Current Logic.TXT

68 lines
3.0 KiB
Plaintext

Index="0" TransType="0" TransFormat="{Proc. Number}, {Proc. Title}, Step {First Step}"
TransMenu="{Proc. Number}, {Proc. Title}, Step {First Step}" />
UI:
Procedure List
Step Text Box (can enter blank - if no step number, just procedure title is listed)
Index="1" TransType="1" TransFormat="{First Step}"
TransMenu="{First Step}" />
UI:
Step Text Box (enter blank - no transition is inserted)
Index="2" TransType="2" TransFormat="{First Step}, {.}, {.}, {.} and {LastStep}"
TransMenu="{First Step}, {.}, {.}, {.} and {LastStep}" />
UI:
Step Text Box - tran 1 (enter blanks - no transition is inserted)
Step Text Box - tran 2
Index="3" TransType="3" TransFormat="{First Step} thru {LastStep} of {Proc. Number}, {Proc. Title}, {Section Header}"
TransMenu="{First Step} thru {LastStep} of {Proc. Number}, {Proc. Title}, {Section Header}" />
UI:
Step Text Box - tran 1 (enter blanks - no transition is inserted)
Step Text Box - tran 2
Procedure List
Section List - if more than 1 step section
Index="4" TransType="4" TransFormat="{Section Title}, Step {First Step}"
TransMenu="{Section Title}, Step {First Step}" />
UI:
Section List (in current procedure) Can select word doc or step section
Step Text Box - if step section selected - Note if no step number is entered, no transition is inserted
Index="5" TransType="5" TransFormat="{Proc. Number}, {Proc. Title}, {Section Header}, Step {First Step}"
TransMenu="{Proc. Number}, {Proc. Title}, {Section Header}, Step {First Step}" />
UI:
Procedure List
Section List - Can select word doc or step section
Step Text Box - if step section selected - Note if no step number is entered, no transition is inserted
Format conversion - tokens handled in TransFmt string:
p=p.Replace("\xff","\xA0");
p=p.Replace("\x07","{First Step}");
p=p.Replace("\x08","{LastStep}");
p=p.Replace("\x04","{Section Title}");
p = p.Replace("\x06", "{Section Title}");
p=p.Replace("\x03","{Section No.}");
p = p.Replace("\x17", "{Section No.}");
p = p.Replace("\x02", "{Proc. Title}");
p = p.Replace("\x01", "{Proc. Number}");
p=p.Replace("\xF","{Page No.}");
p = p.Replace("\x1E", "{Page No.}");
p = p.Replace("\x1D", "{Step Text}");
p = p.Replace("\x0D", "Step {First Step}");
// the following are in cpl & she format Not sure what to do so just
// flag them
//if (p.Length==1 && (p.IndexOfAny("\x19\x1A".ToCharArray())>-1))
//{
p = p.Replace("\x19", "{TransFmt hex 19}");
p = p.Replace("\x1A", "{TransFmt hex 1a}");
//}