This commit is contained in:
parent
d548cf9b29
commit
9edcad0c66
File diff suppressed because it is too large
Load Diff
@ -19,8 +19,6 @@ namespace VEPROMS
|
|||||||
{
|
{
|
||||||
// Default values
|
// Default values
|
||||||
private string _DefaultFormatName = null;
|
private string _DefaultFormatName = null;
|
||||||
private string _DefaultROPath = null;
|
|
||||||
private string _DefaultROGraficFileExtension = null;
|
|
||||||
private string _DefaultROPrefix = null;
|
private string _DefaultROPrefix = null;
|
||||||
private string _DefaultImagePrefix = null;
|
private string _DefaultImagePrefix = null;
|
||||||
private string _DefaultPagination = null;
|
private string _DefaultPagination = null;
|
||||||
@ -31,6 +29,22 @@ namespace VEPROMS
|
|||||||
private string _DefaultChgBarUsrMsg1 = null;
|
private string _DefaultChgBarUsrMsg1 = null;
|
||||||
private string _DefaultChgBarUsrMsg2 = null;
|
private string _DefaultChgBarUsrMsg2 = null;
|
||||||
private bool _DefaultDisableDuplex = false;
|
private bool _DefaultDisableDuplex = false;
|
||||||
|
// For the initial release, we are assuming there will be only one rofst for a docversion. Changes
|
||||||
|
// will be needed here if more than 1.
|
||||||
|
private ROFstInfo _SelectedROFst;
|
||||||
|
public ROFstInfo SelectedROFst
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (_SelectedROFst == null)
|
||||||
|
{
|
||||||
|
if (_DocVersionConfig.MyDocVersion.DocVersionAssociationCount < 1) return null;
|
||||||
|
_SelectedROFst = ROFstInfo.Get(_DocVersionConfig.MyDocVersion.DocVersionAssociations[0].MyROFst.ROFstID);
|
||||||
|
}
|
||||||
|
return _SelectedROFst;
|
||||||
|
}
|
||||||
|
set { _SelectedROFst = value; }
|
||||||
|
}
|
||||||
//
|
//
|
||||||
private bool _Initializing;
|
private bool _Initializing;
|
||||||
private DocVersionConfig _DocVersionConfig;
|
private DocVersionConfig _DocVersionConfig;
|
||||||
@ -106,25 +120,29 @@ namespace VEPROMS
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get the ro path - there is no 'default'
|
// Get the ro path - there is no 'default'
|
||||||
_DefaultROPath = _DocVersionConfig.RODefaults_ropath;
|
if (_DocVersionConfig.MyDocVersion.DocVersionAssociationCount > 0)
|
||||||
|
{
|
||||||
// Get the default RO Graphic file extension
|
RODbInfo rdi = RODbInfo.Get(SelectedROFst.MyRODb.RODbID);
|
||||||
_DefaultROGraficFileExtension = _DocVersionConfig.Graphics_defaultext;
|
tbRoDb.Text = string.Format("{0} ({1})", rdi.ROName, rdi.FolderPath);
|
||||||
SetupDefault(_DefaultROGraficFileExtension, ppLblGraphicFileExtDefault, ppCmbxGrphFileExt);
|
}
|
||||||
|
else
|
||||||
// Get the default Referenced Objects prefix
|
{
|
||||||
_DefaultROPrefix = _DocVersionConfig.RODefaults_setpointprefix;
|
int selindx = -1;
|
||||||
SetupDefault(_DefaultROPrefix, ppLblROPrefixDefault, ppCmbxDefROPrefix);
|
cmbRoDb.Items.Clear();
|
||||||
|
int myrodbid = -1;
|
||||||
// Get the default RO Graphics prefix
|
if (_DocVersionConfig.MyDocVersion.DocVersionAssociationCount >= 1) myrodbid = SelectedROFst.RODbID;
|
||||||
_DefaultImagePrefix = _DocVersionConfig.RODefaults_graphicsprefix;
|
foreach (RODbInfo rdi in RODbInfoList.Get())
|
||||||
SetupDefault(_DefaultImagePrefix, ppLblImagePrefixDefault, ppCmbxDefImgPrefix);
|
{
|
||||||
|
int i = cmbRoDb.Items.Add(string.Format("{0} ({1})", rdi.ROName, rdi.FolderPath));
|
||||||
|
if (rdi.RODbID == myrodbid) selindx = i;
|
||||||
|
}
|
||||||
|
if (cmbRoDb.Items.Count > 0) cmbRoDb.SelectedIndex = selindx;
|
||||||
|
}
|
||||||
|
|
||||||
// Get the default Print Pagination
|
// Get the default Print Pagination
|
||||||
_DefaultPagination = _DocVersionConfig.Print_Pagination.ToString();
|
_DefaultPagination = _DocVersionConfig.Print_Pagination.ToString();
|
||||||
SetupDefault(EnumDescConverter.GetEnumDescription(_DocVersionConfig.Print_Pagination), ppLblPaginationDefault, ppCmbxPagination);
|
SetupDefault(EnumDescConverter.GetEnumDescription(_DocVersionConfig.Print_Pagination), ppLblPaginationDefault, ppCmbxPagination);
|
||||||
|
|
||||||
|
|
||||||
// Get the default Watermark
|
// Get the default Watermark
|
||||||
_DefaultWatermark = _DocVersionConfig.Print_Watermark.ToString();
|
_DefaultWatermark = _DocVersionConfig.Print_Watermark.ToString();
|
||||||
SetupDefault(EnumDescConverter.GetEnumDescription(_DocVersionConfig.Print_Watermark), ppLblWatermarkDefault, ppCmbxWatermark);
|
SetupDefault(EnumDescConverter.GetEnumDescription(_DocVersionConfig.Print_Watermark), ppLblWatermarkDefault, ppCmbxWatermark);
|
||||||
@ -139,14 +157,6 @@ namespace VEPROMS
|
|||||||
|
|
||||||
private void frmVersionsProperties_Load(object sender, EventArgs e)
|
private void frmVersionsProperties_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// populate the a list box of possible graphic file types
|
|
||||||
// supported by .NET
|
|
||||||
//foreach (ImageCodecInfo info in ImageCodecInfo.GetImageDecoders())
|
|
||||||
//{
|
|
||||||
// string st = string.Format("{0} - ({1})", info.FormatDescription, info.FilenameExtension);
|
|
||||||
// comboBoxEx1.Items.Add(st);
|
|
||||||
//}
|
|
||||||
|
|
||||||
docVersionConfigBindingSource.DataSource = _DocVersionConfig;
|
docVersionConfigBindingSource.DataSource = _DocVersionConfig;
|
||||||
|
|
||||||
formatInfoListBindingSource.DataSource = FormatInfoList.Get();
|
formatInfoListBindingSource.DataSource = FormatInfoList.Get();
|
||||||
@ -201,6 +211,10 @@ namespace VEPROMS
|
|||||||
ppCmbxProcSetType.Enabled = false; // maybe enable this if used for version creation
|
ppCmbxProcSetType.Enabled = false; // maybe enable this if used for version creation
|
||||||
|
|
||||||
documentInfoListBindingSource.DataSource = DocumentInfoList.GetLibraries(false);
|
documentInfoListBindingSource.DataSource = DocumentInfoList.GetLibraries(false);
|
||||||
|
|
||||||
|
ppBtnRoDbBrowse.Visible = cmbRoDb.Visible = _DocVersionConfig.MyDocVersion.DocVersionAssociationCount == 0;
|
||||||
|
btnRoDbProperties.Visible = tbRoDb.Visible = !(_DocVersionConfig.MyDocVersion.DocVersionAssociationCount == 0);
|
||||||
|
ppBtnUpRoVals.Enabled = !(_DocVersionConfig.MyDocVersion.DocVersionAssociationCount == 0); // only allow update if association
|
||||||
}
|
}
|
||||||
|
|
||||||
#region General tab
|
#region General tab
|
||||||
@ -229,133 +243,6 @@ namespace VEPROMS
|
|||||||
ProcessButtonClick(tiRefObjs, btnRefObjs);
|
ProcessButtonClick(tiRefObjs, btnRefObjs);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// This is a temporary function for demo purposes...
|
|
||||||
/// Display the standard folder selection dialog to have the user select the location of the Referenced Objects folder.
|
|
||||||
/// From this, we will use the RO.FST to populate the RO and Image Accessory ID combo boxes.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender"></param>
|
|
||||||
/// <param name="e"></param>
|
|
||||||
private void ppBtnFldrDlg_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
dlgROFolder = new FolderBrowserDialog();
|
|
||||||
if (dlgROFolder.ShowDialog() == DialogResult.OK)
|
|
||||||
{
|
|
||||||
ppTxbxRoFoldLoc.Text = dlgROFolder.SelectedPath;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// TEMPORARY - TO PROVIDE DEMO FUNCTIONALITY
|
|
||||||
/// An RO Folder was selected, find the RO.FST file and populate the RO and Image database combo boxes
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender">object</param>
|
|
||||||
/// <param name="e">EventArgs</param>
|
|
||||||
private void ppTxbxRoFoldLoc_TextChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
string tpath = ppTxbxRoFoldLoc.Text + "\\RO.FST";
|
|
||||||
if (File.Exists(tpath))
|
|
||||||
{
|
|
||||||
ROFST rofst = new ROFST(tpath, null);
|
|
||||||
ROFST.rodbi[] rodblist = rofst.GetRODatabaseList();
|
|
||||||
for (int i = 0; i < rodblist.Length; i++)
|
|
||||||
{
|
|
||||||
string mitem = string.Format("{0} - {1}", rodblist[i].dbiTitle, rodblist[i].dbiAP);
|
|
||||||
switch (rodblist[i].dbiType)
|
|
||||||
{
|
|
||||||
case 7: ppCmbxDefROPrefix.Items.Add(mitem); //cmbxROdbList.Items.Add(mitem); // setpoint
|
|
||||||
break;
|
|
||||||
case 8: ppCmbxDefImgPrefix.Items.Add(mitem); //cmbxIGdbList.Items.Add(mitem); // graphic
|
|
||||||
break;
|
|
||||||
default: // user defined
|
|
||||||
ppCmbxDefROPrefix.Items.Add(mitem); //cmbxROdbList.Items.Add(mitem);
|
|
||||||
ppCmbxDefImgPrefix.Items.Add(mitem);//cmbxIGdbList.Items.Add(mitem);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Selection in Graphic File Extension combo box changed.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender">object</param>
|
|
||||||
/// <param name="e">EventArgs</param>
|
|
||||||
private void ppCmbxGrphFileExt_SelectedValueChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (!_Initializing)
|
|
||||||
ProcessCmbxSelectedValueChange(ppCmbxGrphFileExt, _DefaultROGraficFileExtension, ppBtnDefaultGrfExt, ppLblGraphicFileExtDefault);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Reset to the parent setting.
|
|
||||||
/// Find the parent setting and assign it to _DocVersionConfig.Graphics_defaultext.
|
|
||||||
/// This will force the database to be updated.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender"></param>
|
|
||||||
/// <param name="e"></param>
|
|
||||||
private void ppBtnDefaultGrfExt_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
// Compare parent setting with current setting
|
|
||||||
if (_DefaultROGraficFileExtension.Equals(_DocVersionConfig.Graphics_defaultext))
|
|
||||||
_DocVersionConfig.Graphics_defaultext = _DefaultROGraficFileExtension;// this will force a database update (write)
|
|
||||||
ppCmbxGrphFileExt.SelectedIndex = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Selection in Default RO Prefix combo box changed.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender">object</param>
|
|
||||||
/// <param name="e">EventArgs</param>
|
|
||||||
private void ppCmbxDefROPrefix_SelectedValueChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (!_Initializing)
|
|
||||||
ProcessCmbxSelectedValueChange(ppCmbxDefROPrefix, _DefaultROPrefix, ppBtnDefaultROPrefix, ppLblROPrefixDefault);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Reset to the parent setting.
|
|
||||||
/// Find the parent setting and assign it to _DocVersionConfig.Default_SPPrefix.
|
|
||||||
/// This will force the database to be updated.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender"></param>
|
|
||||||
/// <param name="e"></param>
|
|
||||||
private void ppBtnDefaultROPrefix_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
// Compare parent setting with current setting
|
|
||||||
if (_DefaultROPrefix.Equals(_DocVersionConfig.RODefaults_setpointprefix))
|
|
||||||
_DocVersionConfig.RODefaults_setpointprefix = _DefaultROPrefix;// this will force a database update (write)
|
|
||||||
ppCmbxDefROPrefix.SelectedIndex = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Selection in Default Image Prefix combo box changed.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender">object</param>
|
|
||||||
/// <param name="e">EventArgs</param>
|
|
||||||
private void ppCmbxDefImgPrefix_SelectedValueChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (!_Initializing)
|
|
||||||
ProcessCmbxSelectedValueChange(ppCmbxDefImgPrefix, _DefaultImagePrefix, ppBtnDefaultImgPrefix, ppLblImagePrefixDefault);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Reset to the parent setting.
|
|
||||||
/// Find the parent setting and assign it to _DocVersionConfig.Default_IMPrefix.
|
|
||||||
/// This will force the database to be updated.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender"></param>
|
|
||||||
/// <param name="e"></param>
|
|
||||||
private void ppBtnDefaultImgPrefix_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
// Compare parent setting with current setting
|
|
||||||
if (_DefaultImagePrefix.Equals(_DocVersionConfig.RODefaults_graphicsprefix))
|
|
||||||
_DocVersionConfig.RODefaults_graphicsprefix = _DefaultImagePrefix;// this will force a database update (write)
|
|
||||||
ppCmbxDefImgPrefix.SelectedIndex = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Output Settings
|
#region Output Settings
|
||||||
@ -667,9 +554,6 @@ namespace VEPROMS
|
|||||||
ppLblChangeBarTypeDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefaultChgBar.Visible;
|
ppLblChangeBarTypeDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefaultChgBar.Visible;
|
||||||
ppLblChgBarPosDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefaultCbPos.Visible;
|
ppLblChgBarPosDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefaultCbPos.Visible;
|
||||||
ppLblChgBarTxtTypeDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefCbTxtTyp.Visible;
|
ppLblChgBarTxtTypeDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefCbTxtTyp.Visible;
|
||||||
ppLblGraphicFileExtDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefaultGrfExt.Visible;
|
|
||||||
ppLblROPrefixDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefaultROPrefix.Visible;
|
|
||||||
ppLblImagePrefixDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefaultImgPrefix.Visible;
|
|
||||||
ppLblPaginationDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefPagination.Visible;
|
ppLblPaginationDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefPagination.Visible;
|
||||||
ppLblWatermarkDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefWatermark.Visible;
|
ppLblWatermarkDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefWatermark.Visible;
|
||||||
ppLblAutoDuplexDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDeftDisAutoDuplx.Visible;
|
ppLblAutoDuplexDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDeftDisAutoDuplx.Visible;
|
||||||
@ -755,7 +639,104 @@ namespace VEPROMS
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
private void btnRoDbProperties_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
frmRODbProperties dlgROProperties = new frmRODbProperties(_DocVersionConfig.MyDocVersion, SelectedROFst == null ? null : SelectedROFst.MyRODb);
|
||||||
|
if (dlgROProperties.ShowDialog() == DialogResult.OK)
|
||||||
|
{
|
||||||
|
tbRoDb.Text = string.Format("{0} ({1})", SelectedROFst.MyRODb.ROName, SelectedROFst.MyRODb.FolderPath);
|
||||||
|
ppBtnUpRoVals.Enabled = !(_DocVersionConfig.MyDocVersion.DocVersionAssociationCount == 0); // only allow update if association
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ppBtnUpRoVals_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
// use rodb directory path of the first rofst for the this document version. Bring up a file
|
||||||
|
// selection dialog starting with this path. The user can select another path.
|
||||||
|
// RHM question - we talked about just using the current path, but what is the current path when
|
||||||
|
// a docversion can have more than one rofst (for now, just use first?) - should I bring up a dialog?
|
||||||
|
if (_DocVersionConfig.MyDocVersion.DocVersionAssociations.Count < 1)
|
||||||
|
{
|
||||||
|
MessageBox.Show("Error Updating ro.fst. No associated ro.fst");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
foreach (DocVersionAssociation dva in _DocVersionConfig.MyDocVersion.DocVersionAssociations)
|
||||||
|
{
|
||||||
|
RODbInfo rdi = RODbInfo.Get(dva.ROFst_RODbID);
|
||||||
|
|
||||||
|
string rofstPath = rdi.FolderPath + @"\ro.fst";
|
||||||
|
if (!File.Exists(rofstPath))
|
||||||
|
{
|
||||||
|
MessageBox.Show("No existing ro.fst in path " + rdi.FolderPath + ". Check for invalid path");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
FileInfo fiRofst = new FileInfo(rofstPath);
|
||||||
|
if (SelectedROFst.DTS == fiRofst.LastWriteTime)
|
||||||
|
{
|
||||||
|
MessageBox.Show("ro.fst files are same for path " + rdi.FolderPath + ", import of that ro.fst will not be done");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (SelectedROFst.DTS > fiRofst.LastWriteTime)
|
||||||
|
{
|
||||||
|
MessageBox.Show("Cannot copy older ro.fst from " + rdi.FolderPath + ", import of that ro.fst will not be done");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
Cursor = Cursors.WaitCursor;
|
||||||
|
ROFst newrofst = ROFstInfo.UpdateRoFst(rdi, dva, _DocVersionConfig.MyDocVersion);
|
||||||
|
Cursor = Cursors.Default;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ppBtnResetRoVals_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
// This will not be supported in the first release. A discussion was held on 1/6/09 with MRC, JSJ, RHM &
|
||||||
|
// KBR & it was decided that we'd wait to see if users end up needing this. It can be done by going
|
||||||
|
// into the sql database and modify/delete records if needed.
|
||||||
|
}
|
||||||
|
|
||||||
|
private void cmbRoDb_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
// The only way that a selected index can change on the rodb combo box is if there was no rofst
|
||||||
|
// to docversion association. If a selection is made, make that association and then change the
|
||||||
|
// combo box to a non-editable text box with button becoming a properties rather than browse.
|
||||||
|
if (_Initializing) return;
|
||||||
|
// add the rofst for the selected rodb (note that it may already exist, and will use the current
|
||||||
|
// one.
|
||||||
|
// get the rodb from the selection - and then do an 'update rofst'...
|
||||||
|
RODbInfoList rdil = RODbInfoList.Get();
|
||||||
|
RODbInfo rdi = rdil[cmbRoDb.SelectedIndex];
|
||||||
|
ROFst tmp = ROFstInfo.AddRoFst(rdi, _DocVersionConfig.MyDocVersion);
|
||||||
|
cmbRoDb.Visible = ppBtnRoDbBrowse.Visible = false;
|
||||||
|
tbRoDb.Visible = btnRoDbProperties.Visible = true;
|
||||||
|
tbRoDb.Text = string.Format("{0} ({1})", tmp.MyRODb.ROName, tmp.MyRODb.FolderPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ppBtnRoDbBrowse_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
frmRODbProperties dlgROProperties = new frmRODbProperties(_DocVersionConfig.MyDocVersion, SelectedROFst == null ? null : SelectedROFst.MyRODb);
|
||||||
|
// if a user has entered a valid rodb, then this docversion will be conntected to it - change
|
||||||
|
// to a non-editable text box and the button becomes a properties button rather than browse.
|
||||||
|
if (dlgROProperties.ShowDialog() == DialogResult.OK)
|
||||||
|
{
|
||||||
|
cmbRoDb.Items.Clear();
|
||||||
|
if (_DocVersionConfig.MyDocVersion.DocVersionAssociationCount > 1)
|
||||||
|
{
|
||||||
|
cmbRoDb.Visible = ppBtnRoDbBrowse.Visible = false;
|
||||||
|
tbRoDb.Visible = btnRoDbProperties.Visible = true;
|
||||||
|
tbRoDb.Text = string.Format("{0} ({1})", SelectedROFst.MyRODb.ROName, SelectedROFst.MyRODb.FolderPath);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
RODbInfoList.Reset();
|
||||||
|
int selindx = -1;
|
||||||
|
int myrodbid = (SelectedROFst == null) ? -1 : SelectedROFst.RODbID;
|
||||||
|
foreach (RODbInfo rdi in RODbInfoList.Get())
|
||||||
|
{
|
||||||
|
int i = cmbRoDb.Items.Add(rdi.ROName + " (" + rdi.FolderPath + ")");
|
||||||
|
if (rdi.RODbID == myrodbid) selindx = i;
|
||||||
|
}
|
||||||
|
if (cmbRoDb.Items.Count > 0) cmbRoDb.SelectedIndex = selindx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -118,13 +118,13 @@
|
|||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>521, 17</value>
|
<value>500, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="docVersionConfigBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="docVersionConfigBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>269, 17</value>
|
<value>227, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="formatInfoListBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="formatInfoListBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>660, 17</value>
|
<value>17, 60</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<data name="ppCmbxFormat.SuperTooltip" xml:space="preserve">
|
<data name="ppCmbxFormat.SuperTooltip" xml:space="preserve">
|
||||||
<value>Allows you to specify the default format to use for all procedures in this set.
|
<value>Allows you to specify the default format to use for all procedures in this set.
|
||||||
@ -155,39 +155,16 @@ Check "Show Default Settings" to display the "default" Change Bar Custom Message
|
|||||||
<value>This will revert the Change Bar Custom Message Line One selection back to using the parent's (default) setting.
|
<value>This will revert the Change Bar Custom Message Line One selection back to using the parent's (default) setting.
|
||||||
|
|
||||||
Check "Show Default Settings" to display the "default" Change Bar Custom Message (below the Line One selection box).</value>
|
Check "Show Default Settings" to display the "default" Change Bar Custom Message (below the Line One selection box).</value>
|
||||||
</data>
|
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
|
||||||
<data name="ppBtnFldrDlg.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
|
||||||
<value>
|
|
||||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
|
||||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALEgAA
|
|
||||||
CxIB0t1+/AAAAn9JREFUOE+lk2tI01EYxhf0oU8WqVEIRpaIBWJgSPUhROmippS3QkkTylsXDMW8ts3b
|
|
||||||
1G06daVibuqaOq0sxbBCKBSJ0PJCialZUFSKqaGSt1//TbIsww8deOBwznl+5zkv71kHiP5rGAFrKb1Q
|
|
||||||
5ypR6bmaVU6m2kCiXJv007Om2XgwJEaNT4QiyDi/GF9mKRVgsWkav+CYQkR1utwAQfypphqZ4l/JIhOL
|
|
||||||
jvtGKfCOyDMB6O/WMjNea9L3MT1zIxoM5QrqdWnS1SA+kUq8w1V4hhUgqq1QMj1WtcK88KmIud5oqsqy
|
|
||||||
qCzOQFMopSQvhRvyBApkcQLzV91E1docpr9ol29eFMz0J0Bv2Kr6C3CrVMa3jyWm2EZzc12OSQ8M2TTo
|
|
||||||
ZdytzMCgSUVfIqFcfY2bqiSKlQmoc+JNaUSVJRlMvsvHGHuoVUx9lZKFIQkMp63UW2FtMBH6YuBVFF01
|
|
||||||
/lwO9aoQadSpTAxkwXs596oVtD+ULx36/Qkvg6HDl/k2D2YeufCmwoELZ45MCIA9olKVmK+vJQy3JVOv
|
|
||||||
l7M4KIae8CVAV6hgPMV8uxczLYeZbDrIaN1eJBG2nHazyDN1cZEymdHueG7rcuh8KiTpixYA56AziMVn
|
|
||||||
J5h9coyp5kOM1TvxudqejvRNBHrY4GRnZmcCqLMT6GlJ4Y4uGwZS4IUQ97kfs62eTD12YbzBmRGDAx+0
|
|
||||||
u+iVmyMO24njbqvG5VbOz4yjtjyL3vuRdOSKltUuX0+LbAON0o3UJFmiibPi+pXtBLrvWHR2tHZfBuSm
|
|
||||||
xZIrPk9mfAiJlwKMleWsvxsnj+7H9YAD+xxssbexwnqbBVs2m7HV3GxlI631E9fa/wGRpaRpa3TTbQAA
|
|
||||||
AABJRU5ErkJggg==
|
|
||||||
</value>
|
|
||||||
</data>
|
|
||||||
<data name="ppBtnDefaultGrfExt.SuperTooltip" xml:space="preserve">
|
|
||||||
<value>This will revert the Graphic File Extension selection back to using the parent's (default) setting.
|
|
||||||
|
|
||||||
Check "Show Default Settings" to display the "default" graphic file extension setting (below the Graphic File Extension selection box).</value>
|
|
||||||
</data>
|
</data>
|
||||||
<metadata name="imageCodecInfoBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="imageCodecInfoBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 57</value>
|
<value>263, 60</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
<data name="ppBtnPDFLoc.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="ppBtnPDFLoc.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALEgAA
|
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALBQAA
|
||||||
CxIB0t1+/AAAAn9JREFUOE+lk2tI01EYxhf0oU8WqVEIRpaIBWJgSPUhROmippS3QkkTylsXDMW8ts3b
|
CwUByY3ISQAAAn9JREFUOE+lk2tI01EYxhf0oU8WqVEIRpaIBWJgSPUhROmippS3QkkTylsXDMW8ts3b
|
||||||
1G06daVibuqaOq0sxbBCKBSJ0PJCialZUFSKqaGSt1//TbIsww8deOBwznl+5zkv71kHiP5rGAFrKb1Q
|
1G06daVibuqaOq0sxbBCKBSJ0PJCialZUFSKqaGSt1//TbIsww8deOBwznl+5zkv71kHiP5rGAFrKb1Q
|
||||||
5ypR6bmaVU6m2kCiXJv007Om2XgwJEaNT4QiyDi/GF9mKRVgsWkav+CYQkR1utwAQfypphqZ4l/JIhOL
|
5ypR6bmaVU6m2kCiXJv007Om2XgwJEaNT4QiyDi/GF9mKRVgsWkav+CYQkR1utwAQfypphqZ4l/JIhOL
|
||||||
jvtGKfCOyDMB6O/WMjNea9L3MT1zIxoM5QrqdWnS1SA+kUq8w1V4hhUgqq1QMj1WtcK88KmIud5oqsqy
|
jvtGKfCOyDMB6O/WMjNea9L3MT1zIxoM5QrqdWnS1SA+kUq8w1V4hhUgqq1QMj1WtcK88KmIud5oqsqy
|
||||||
@ -216,10 +193,10 @@ Fixed - pagination is done only when you select to do so. This information is s
|
|||||||
Auto - pagination is done when VE-PROMS senses a change was made to the procedure since the last time the procedure was repaginated.</value>
|
Auto - pagination is done when VE-PROMS senses a change was made to the procedure since the last time the procedure was repaginated.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ppGrdLibDocList.ColumnInfo" xml:space="preserve">
|
<data name="ppGrdLibDocList.ColumnInfo" xml:space="preserve">
|
||||||
<value>13,0,0,0,0,95,Columns:0{Width:98;Name:"DocumentTitle";Caption:"DocumentTitle";Visible:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 1{Width:153;Name:"LibraryDocumentUsage";Caption:"LibraryDocumentUsage";Visible:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 2{Width:96;Name:"ErrorMessage";Caption:"ErrorMessage";Visible:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 3{Width:49;Name:"DocID";Caption:"DocID";Visible:False;AllowEditing:False;Style:"DataType:System.Int32;TextAlign:RightCenter;";} 4{Width:140;Name:"DocumentEntryCount";Caption:"Number of Usages";AllowEditing:False;Style:"DataType:System.Int32;TextAlign:RightCenter;";} 5{Width:426;Name:"LibTitle";Caption:"Library Document Title";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 6{Name:"DocContent";Caption:"DocContent";Visible:False;AllowEditing:False;Style:"DataType:System.Byte[];TextAlign:GeneralCenter;";} 7{Width:64;Name:"DocAscii";Caption:"DocAscii";Visible:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 8{Width:51;Name:"Config";Caption:"Config";Visible:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 9{Width:39;Name:"DTS";Caption:"DTS";Visible:False;AllowEditing:False;Style:"Format:""d"";DataType:System.DateTime;TextAlign:LeftCenter;";} 10{Width:53;Name:"UserID";Caption:"UserID";Visible:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 11{Name:"DocumentEntries";Caption:"DocumentEntries";Visible:False;AllowEditing:False;Style:"DataType:VEPROMS.CSLA.Library.EntryInfoList;TextAlign:GeneralCenter;";} 12{Width:156;Name:"MyDocumentInfoUnique";Caption:"MyDocumentInfoUnique";Visible:False;AllowEditing:False;Style:"DataType:System.Int32;TextAlign:RightCenter;";} </value>
|
<value>13,0,0,0,0,95,Columns:0{Width:98;Name:"DocumentTitle";Caption:"DocumentTitle";Visible:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 1{Width:153;Name:"LibraryDocumentUsage";Caption:"LibraryDocumentUsage";Visible:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 2{Width:96;Name:"ErrorMessage";Caption:"ErrorMessage";Visible:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 3{Width:49;Name:"DocID";Caption:"DocID";Visible:False;AllowEditing:False;Style:"DataType:System.Int32;TextAlign:RightCenter;";} 4{Width:140;Name:"DocumentEntryCount";Caption:"Number of Usages";AllowEditing:False;Style:"DataType:System.Int32;TextAlign:RightCenter;";} 5{Width:426;Name:"LibTitle";Caption:"Library Document Title";AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 6{Name:"DocContent";Caption:"DocContent";Visible:False;AllowEditing:False;Style:"DataType:System.Byte[];TextAlign:GeneralCenter;";} 7{Width:64;Name:"DocAscii";Caption:"DocAscii";Visible:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 8{Width:51;Name:"Config";Caption:"Config";Visible:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 9{Width:39;Name:"DTS";Caption:"DTS";Visible:False;AllowEditing:False;Style:"Format:""d"";DataType:System.DateTime;TextAlign:LeftCenter;";} 10{Width:53;Name:"UserID";Caption:"UserID";Visible:False;AllowEditing:False;Style:"DataType:System.String;TextAlign:LeftCenter;";} 11{Name:"DocumentEntries";Caption:"DocumentEntries";Visible:False;AllowEditing:False;Style:"TextAlign:GeneralCenter;";} 12{Width:156;Name:"MyDocumentInfoUnique";Caption:"MyDocumentInfoUnique";Visible:False;AllowEditing:False;Style:"DataType:System.Int32;TextAlign:RightCenter;";} </value>
|
||||||
</data>
|
</data>
|
||||||
<metadata name="documentInfoListBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="documentInfoListBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>393, 57</value>
|
<value>17, 103</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<data name="ppGpbxUserSpecCB.SuperTooltip" xml:space="preserve">
|
<data name="ppGpbxUserSpecCB.SuperTooltip" xml:space="preserve">
|
||||||
<value>- Select the position of the change bar with respect to the changed text
|
<value>- Select the position of the change bar with respect to the changed text
|
||||||
@ -229,6 +206,25 @@ Auto - pagination is done when VE-PROMS senses a change was made to the procedur
|
|||||||
- Type in your own text to be placed next to the change bars.</value>
|
- Type in your own text to be placed next to the change bars.</value>
|
||||||
</data>
|
</data>
|
||||||
<metadata name="dlgROFolder.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="dlgROFolder.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>263, 57</value>
|
<value>526, 60</value>
|
||||||
|
</metadata>
|
||||||
|
<data name="btnRoDbProperties.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>
|
||||||
|
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||||
|
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALBwAA
|
||||||
|
CwcBtnMLwAAAAg9JREFUOE+lk91LU2EAxo9/QV4kgSiBXYggXhS7sBIUiUgHCd4UZTG0u9Ka9sEuumgS
|
||||||
|
homLcOwcTqGuc5bh59lcM1K3VNoqERoIFjnaVNwEB0sGDbfH933nhLlTBA0eDpzD7/c8nLM3DwD3Xz8q
|
||||||
|
UMvwq95KEgwNPIUkdqHfbIRgeghzt4HGILp4yJ7Rv8Pxn0ZksvP9PmJfb2BJuc4kFBb8z3MFmWYK6q9U
|
||||||
|
M0EGjvoasDV7BmFnGYzSPTxwN4GzOb+ARp78BHl8GnQ2hW7r6tm1/fJZ1pyB15RSLFuL0NrXgpuORnDy
|
||||||
|
5GekUilEImtZcHDRgDadlsF3ms4hoJyEly+GvasQtxqP41LnRbQMa8FJdh8T0OZ1/2PWPO0aI9c6rHp0
|
||||||
|
TEInnyotwOnyfGjKjqG85Oiz2o4q6Gz14AYnPmI3mUI4HETn3WsIhQKIk8/i835gkuWhCpzXnABvHYPm
|
||||||
|
QjN5kn5vRKDXPqoB1z++wIDDiSaSWJj3QH+1BourMbj921mCfckR7uXoXC78O4n1WAIrm3EC/2Kw4o3k
|
||||||
|
CNifUHzjZgJRfguL1YkogU2iHT28gm7LxEGkmQ11Af965mABnU2bv7Hm9GzaLBNYcITUBRb5fXqB5IJl
|
||||||
|
0Mlg0wuyQMheYBoJqAvM0jtEE7vYoM3hdPPsfjOdLTiCoPAT2w91QZ91ij341xw+eKon8U8nVO3+Hg2+
|
||||||
|
vkpiAWfjAAAAAElFTkSuQmCC
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
|
<metadata name="ROPrefixBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
</root>
|
</root>
|
@ -15,9 +15,9 @@ namespace Volian.Controls.Library
|
|||||||
public partial class DisplayRO : UserControl
|
public partial class DisplayRO : UserControl
|
||||||
{
|
{
|
||||||
#region Properties
|
#region Properties
|
||||||
private ROFST _CurROFST = null;
|
private ROFstInfo _CurROFST = null;
|
||||||
private ROFST _MyROFST;
|
private ROFstInfo _MyROFST;
|
||||||
public ROFST MyROFST
|
public ROFstInfo MyROFST
|
||||||
{
|
{
|
||||||
get { return _MyROFST; }
|
get { return _MyROFST; }
|
||||||
set
|
set
|
||||||
@ -130,7 +130,7 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
#region Events
|
#region Events
|
||||||
ROFST.rochild selectedChld;
|
ROFSTLookup.rochild selectedChld;
|
||||||
private void tvROFST_AfterSelect(object sender, TreeViewEventArgs e)
|
private void tvROFST_AfterSelect(object sender, TreeViewEventArgs e)
|
||||||
{
|
{
|
||||||
tbROValue.Text = null;
|
tbROValue.Text = null;
|
||||||
@ -139,9 +139,9 @@ namespace Volian.Controls.Library
|
|||||||
btnSaveRO.Enabled = false;
|
btnSaveRO.Enabled = false;
|
||||||
btnPreviewRO.Enabled = false;
|
btnPreviewRO.Enabled = false;
|
||||||
|
|
||||||
if (e.Node.Tag is ROFST.rochild)
|
if (e.Node.Tag is ROFSTLookup.rochild)
|
||||||
{
|
{
|
||||||
ROFST.rochild chld = (ROFST.rochild)e.Node.Tag;
|
ROFSTLookup.rochild chld = (ROFSTLookup.rochild)e.Node.Tag;
|
||||||
selectedChld = chld;
|
selectedChld = chld;
|
||||||
if (chld.value != null)
|
if (chld.value != null)
|
||||||
{
|
{
|
||||||
@ -209,16 +209,16 @@ namespace Volian.Controls.Library
|
|||||||
object tag = tn.Tag;
|
object tag = tn.Tag;
|
||||||
if (tn.FirstNode != null && tn.FirstNode.Text != "VLN_DUMMY_FOR_TREE") return; // already loaded.
|
if (tn.FirstNode != null && tn.FirstNode.Text != "VLN_DUMMY_FOR_TREE") return; // already loaded.
|
||||||
if (tn.FirstNode != null && tn.FirstNode.Text == "VLN_DUMMY_FOR_TREE") tn.FirstNode.Remove();
|
if (tn.FirstNode != null && tn.FirstNode.Text == "VLN_DUMMY_FOR_TREE") tn.FirstNode.Remove();
|
||||||
ROFST.rochild[] chld = null;
|
ROFSTLookup.rochild[] chld = null;
|
||||||
|
|
||||||
if (tn.Tag is ROFST.rodbi)
|
if (tn.Tag is ROFSTLookup.rodbi)
|
||||||
{
|
{
|
||||||
ROFST.rodbi db = (ROFST.rodbi)tn.Tag;
|
ROFSTLookup.rodbi db = (ROFSTLookup.rodbi)tn.Tag;
|
||||||
chld = db.children;
|
chld = db.children;
|
||||||
}
|
}
|
||||||
else if (tn.Tag is ROFST.rochild)
|
else if (tn.Tag is ROFSTLookup.rochild)
|
||||||
{
|
{
|
||||||
ROFST.rochild ch = (ROFST.rochild)tn.Tag;
|
ROFSTLookup.rochild ch = (ROFSTLookup.rochild)tn.Tag;
|
||||||
chld = ch.children;
|
chld = ch.children;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -275,15 +275,15 @@ namespace Volian.Controls.Library
|
|||||||
if (_MyROFST == _CurROFST) return;
|
if (_MyROFST == _CurROFST) return;
|
||||||
tvROFST.Nodes.Clear();
|
tvROFST.Nodes.Clear();
|
||||||
_CurROFST = _MyROFST;
|
_CurROFST = _MyROFST;
|
||||||
for (int i = 0; i < _MyROFST.myHdr.myDbs.Length; i++)
|
for (int i = 0; i < _MyROFST.ROFSTLookup.myHdr.myDbs.Length; i++)
|
||||||
{
|
{
|
||||||
TreeNode tn = new TreeNode(_MyROFST.myHdr.myDbs[i].dbiTitle);
|
TreeNode tn = new TreeNode(_MyROFST.ROFSTLookup.myHdr.myDbs[i].dbiTitle);
|
||||||
tn.Tag = _MyROFST.myHdr.myDbs[i];
|
tn.Tag = _MyROFST.ROFSTLookup.myHdr.myDbs[i];
|
||||||
tvROFST.Nodes.Add(tn);
|
tvROFST.Nodes.Add(tn);
|
||||||
AddDummyGroup(_MyROFST.myHdr.myDbs[i], tn);
|
AddDummyGroup(_MyROFST.ROFSTLookup.myHdr.myDbs[i], tn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void AddDummyGroup(ROFST.rodbi rodbi, TreeNode tn)
|
private void AddDummyGroup(ROFSTLookup.rodbi rodbi, TreeNode tn)
|
||||||
{
|
{
|
||||||
if (rodbi.children != null && rodbi.children.Length > 0)
|
if (rodbi.children != null && rodbi.children.Length > 0)
|
||||||
{
|
{
|
||||||
@ -304,7 +304,7 @@ namespace Volian.Controls.Library
|
|||||||
if (roid.Length == 16)
|
if (roid.Length == 16)
|
||||||
multValSel = true;
|
multValSel = true;
|
||||||
|
|
||||||
ROFST.rochild rochld = MyROFST.GetRoChild(roid.Substring(0, 12).ToUpper());
|
ROFSTLookup.rochild rochld = MyROFST.ROFSTLookup.GetRoChild(roid.Substring(0, 12).ToUpper());
|
||||||
// use this to walk up tree until database - this is used to expand tree.
|
// use this to walk up tree until database - this is used to expand tree.
|
||||||
List<int> path = new List<int>();
|
List<int> path = new List<int>();
|
||||||
int myid = rochld.ID;
|
int myid = rochld.ID;
|
||||||
@ -312,7 +312,7 @@ namespace Volian.Controls.Library
|
|||||||
{
|
{
|
||||||
path.Insert(0,myid);
|
path.Insert(0,myid);
|
||||||
myid = rochld.ParentID;
|
myid = rochld.ParentID;
|
||||||
rochld = MyROFST.GetRoChildFromID(myid);
|
rochld = MyROFST.ROFSTLookup.GetRoChildFromID(myid);
|
||||||
if (rochld.ID == -1) myid = -1;
|
if (rochld.ID == -1) myid = -1;
|
||||||
}
|
}
|
||||||
TreeNode tnExpand = null;
|
TreeNode tnExpand = null;
|
||||||
@ -320,7 +320,7 @@ namespace Volian.Controls.Library
|
|||||||
// find database first
|
// find database first
|
||||||
foreach (TreeNode tn in tvROFST.Nodes)
|
foreach (TreeNode tn in tvROFST.Nodes)
|
||||||
{
|
{
|
||||||
ROFST.rodbi thisdb = (ROFST.rodbi)tn.Tag;
|
ROFSTLookup.rodbi thisdb = (ROFSTLookup.rodbi)tn.Tag;
|
||||||
if (thisdb.dbiID == titm)
|
if (thisdb.dbiID == titm)
|
||||||
{
|
{
|
||||||
LoadChildren(tn);
|
LoadChildren(tn);
|
||||||
@ -338,7 +338,7 @@ namespace Volian.Controls.Library
|
|||||||
tnExpand.Expand();
|
tnExpand.Expand();
|
||||||
foreach (TreeNode tn in tnExpand.Nodes)
|
foreach (TreeNode tn in tnExpand.Nodes)
|
||||||
{
|
{
|
||||||
ROFST.rochild chld = (ROFST.rochild)tn.Tag;
|
ROFSTLookup.rochild chld = (ROFSTLookup.rochild)tn.Tag;
|
||||||
if (chld.ID == citm)
|
if (chld.ID == citm)
|
||||||
{
|
{
|
||||||
tnExpand = tn;
|
tnExpand = tn;
|
||||||
@ -359,7 +359,7 @@ namespace Volian.Controls.Library
|
|||||||
tnExpand.Expand();
|
tnExpand.Expand();
|
||||||
foreach (TreeNode tn in tnExpand.Nodes)
|
foreach (TreeNode tn in tnExpand.Nodes)
|
||||||
{
|
{
|
||||||
ROFST.rochild chld = (ROFST.rochild)tn.Tag;
|
ROFSTLookup.rochild chld = (ROFSTLookup.rochild)tn.Tag;
|
||||||
if (chld.roid == roid)
|
if (chld.roid == roid)
|
||||||
{
|
{
|
||||||
tnExpand = tn;
|
tnExpand = tn;
|
||||||
@ -378,21 +378,32 @@ namespace Volian.Controls.Library
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Object obj = tvROFST.SelectedNode.Tag;
|
Object obj = tvROFST.SelectedNode.Tag;
|
||||||
if (obj is ROFST.rochild)
|
if (obj is ROFSTLookup.rochild)
|
||||||
{
|
{
|
||||||
ROFST.rochild roch = (ROFST.rochild) obj;
|
ROFSTLookup.rochild roch = (ROFSTLookup.rochild)obj;
|
||||||
if (_MyRTB != null) // if null, it's Word attachment
|
if (_MyRTB != null) // if null, it's Word attachment
|
||||||
{
|
{
|
||||||
|
_MyRTB.inRoAdd = true;
|
||||||
if (CheckROSelection(roch))
|
if (CheckROSelection(roch))
|
||||||
{
|
{
|
||||||
//string linktxt = string.Format("#Link:ReferencedObject: #xx {0}", roch.roid);
|
|
||||||
string ROID = roch.roid;
|
string ROID = roch.roid;
|
||||||
RoUsage ro = RoUsage.MakeRoUsage(MyRTB.MyItemInfo.MyContent.Get(), ROID, null);
|
using (RODb rodb = RODb.Get(_MyROFST.MyRODb.RODbID))
|
||||||
string linktxt = string.Format(@"#Link:ReferencedObject:{0} {1}", ro.ROUsageID, ROID);
|
{
|
||||||
|
// saving of selstart & end is a work around - the Makerousage updates contentinfo object
|
||||||
|
// which caused the selection in _MyRTB to be changed. This inserted the ro at an incorrect
|
||||||
|
// location in the string.
|
||||||
|
int selstart = _MyRTB.SelectionStart;
|
||||||
|
int sellen = _MyRTB.SelectionLength;
|
||||||
|
RoUsage ro = RoUsage.MakeRoUsage(MyRTB.MyItemInfo.MyContent.Get(), ROID, null, rodb);
|
||||||
|
string linktxt = string.Format(@"#Link:ReferencedObject:{0} {1} {2}", ro.ROUsageID, ROID, rodb.RODbID);
|
||||||
// Resolve symbols and scientific notation in the RO return value
|
// Resolve symbols and scientific notation in the RO return value
|
||||||
|
_MyRTB.SelectionStart = selstart;
|
||||||
|
_MyRTB.SelectionLength = sellen;
|
||||||
_MyRTB.InsertRO(ConvertSymbolsAndStuff(tbROValue.Text), linktxt);
|
_MyRTB.InsertRO(ConvertSymbolsAndStuff(tbROValue.Text), linktxt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
_MyRTB.inRoAdd = false;
|
||||||
|
}
|
||||||
else // we're in an Word attachment
|
else // we're in an Word attachment
|
||||||
{
|
{
|
||||||
string accPrefix = (roch.type == 8) ? _Mydvi.DocVersionConfig.RODefaults_graphicsprefix : _Mydvi.DocVersionConfig.RODefaults_setpointprefix;
|
string accPrefix = (roch.type == 8) ? _Mydvi.DocVersionConfig.RODefaults_graphicsprefix : _Mydvi.DocVersionConfig.RODefaults_setpointprefix;
|
||||||
@ -407,7 +418,7 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool CheckROSelection(ROFST.rochild selectedRO)
|
private bool CheckROSelection(ROFSTLookup.rochild selectedRO)
|
||||||
{
|
{
|
||||||
bool goodToGo = true;
|
bool goodToGo = true;
|
||||||
bool replacingRO = (_SavCurROLink != null);
|
bool replacingRO = (_SavCurROLink != null);
|
||||||
@ -466,23 +477,21 @@ namespace Volian.Controls.Library
|
|||||||
|
|
||||||
private void btnPreviewRO_Click(object sender, EventArgs e)
|
private void btnPreviewRO_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (selectedChld.type == 8) // intergrated graphic
|
if (selectedChld.type == 8) // integrated graphic
|
||||||
{
|
{
|
||||||
string ropth = _CurROFST.GetFstPath();
|
|
||||||
ropth = ropth.Substring(0, ropth.LastIndexOf('\\') + 1);
|
|
||||||
string fname = selectedChld.value.Substring(0, selectedChld.value.IndexOf('\n'));
|
string fname = selectedChld.value.Substring(0, selectedChld.value.IndexOf('\n'));
|
||||||
int thedot = fname.LastIndexOf('.');
|
int thedot = fname.LastIndexOf('.');
|
||||||
if (thedot == -1 || (thedot != (fname.Length - 4)))
|
if (thedot == -1 || (thedot != (fname.Length - 4)))
|
||||||
fname += string.Format(".{0}", MyROFST.GetDefaultGraphicExtension());
|
fname += string.Format(".{0}", MyROFST.MyRODb.RODbConfig.GetDefaultGraphicExtension());
|
||||||
|
ROImageInfo tmp = ROImageInfo.GetByROFstID_FileName(MyROFST.ROFstID, fname);
|
||||||
|
|
||||||
string imgfile = ropth + fname;
|
if (tmp !=null)
|
||||||
if (File.Exists(imgfile))
|
|
||||||
{
|
{
|
||||||
PreviewROImage pvROImg = new PreviewROImage(imgfile, selectedChld.title);
|
PreviewROImage pvROImg = new PreviewROImage(tmp.Content, selectedChld.title);
|
||||||
pvROImg.ShowDialog();
|
pvROImg.ShowDialog();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
MessageBox.Show(string.Format("{0}", imgfile), "Cannot Find Image File");
|
MessageBox.Show("Cannot Find Image Data");
|
||||||
}
|
}
|
||||||
else if (selectedChld.type == 2) // table
|
else if (selectedChld.type == 2) // table
|
||||||
{
|
{
|
||||||
@ -796,25 +805,6 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endregion // utils
|
#endregion // utils
|
||||||
|
|
||||||
//private void AddToROUsage(ROFST.rochild roch)
|
|
||||||
//{
|
|
||||||
// if (instance < dt.Rows.Count)
|
|
||||||
// {
|
|
||||||
// //DataRow dr = dt.Rows[instance];
|
|
||||||
// string ROID = roch.roid;
|
|
||||||
// RoUsage ro = RoUsage.MakeRoUsage(content, ROID, null, DateTime.Now, "Migration");
|
|
||||||
// string results = string.Format(@"{0}{1}\v #Link:ReferencedObject:{2} {3}\v0",
|
|
||||||
// '\x15', rofst.GetRoValue(ROID.Substring(0, 12).ToUpper()), ro.ROUsageID, ROID);
|
|
||||||
// rotxt.Append(results);
|
|
||||||
// instance++;
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// log.Error("Error setting RO data in text field");
|
|
||||||
// log.ErrorFormat("proc number = {0}, oldstepsequence = {1}, instance = {2}", ProcNumber, seqcvt, instance);
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user