Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
4ca3697845 | |||
37626d8f45 | |||
f95369d3a4 | |||
aa00891f8e | |||
d44f9ba2b6 | |||
c3b7b1e5a4 | |||
f3309e4a40 | |||
8fa059c186 | |||
96e61aea2b | |||
565779c9c8 |
@@ -2398,10 +2398,15 @@ namespace ROEditor
|
||||
*/
|
||||
private void menuRODelete_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
bool success=false;
|
||||
XmlNode nd = (XmlNode) roTreeView.SelectedNode.Tag;
|
||||
string msgstr = "It is recommended that you may wish to create a backup zip of your RO folder prior to performing deletions.\n\nAre you sure you wish to delete the selected RO/RO Group?";
|
||||
|
||||
DialogResult AnswerYN = MessageBox.Show(msgstr, "Deleting ROs/RO Group", MessageBoxButtons.YesNo);
|
||||
if (AnswerYN == DialogResult.Yes)
|
||||
{
|
||||
bool success = false;
|
||||
XmlNode nd = (XmlNode)roTreeView.SelectedNode.Tag;
|
||||
if (nd.ParentNode.Name == "RO_Root")
|
||||
success = myrodb.RODB_DeleteGroup(nd,null,null);
|
||||
success = myrodb.RODB_DeleteGroup(nd, null, null);
|
||||
else
|
||||
success = myrodb.RODB_DeleteRO(nd);
|
||||
if (success == true)
|
||||
@@ -2414,6 +2419,7 @@ namespace ROEditor
|
||||
roTreeView.Refresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Cut text from current text box to windows clipboard
|
||||
@@ -2622,7 +2628,6 @@ namespace ROEditor
|
||||
success = ctlXMLEdit2.SaveData();
|
||||
if (!success)
|
||||
{
|
||||
MessageBox.Show("Save Failed");
|
||||
return false;
|
||||
}
|
||||
VlnXmlElement myro;
|
||||
@@ -2738,7 +2743,6 @@ namespace ROEditor
|
||||
if (!success)
|
||||
{
|
||||
tbtnRestore.Enabled = false; // old data may not be around
|
||||
MessageBox.Show("Save Failed");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -324,29 +324,17 @@ namespace ctlXMLEditLib
|
||||
string ROINI = Directory.GetCurrentDirectory()+ "\\ROAPP.INI";
|
||||
|
||||
// Get the default file extension for graphic files
|
||||
// DefaultGraphicFileExtension = TheIniFile.GetINIKeyValueStr("ROApp","Extention","",5,"ROAPP.INI");
|
||||
// DefaultGraphicFileExtension = TheIniFile.GetINIKeyValueStr("ROApp","Extention","",5,"ROAPP.INI");
|
||||
// Bug fix: B2006-025
|
||||
// needed to pass the full path of ROAPP.INI
|
||||
// B2025-007 only use the default file location (remove 16 bit PROMS location)
|
||||
IniReader in1 = new IniReader(ROINI);
|
||||
DefaultGraphicFileExtension = in1.ReadString("ROApp","Extention","");
|
||||
if (DefaultGraphicFileExtension.Equals(""))
|
||||
{
|
||||
string ApplPathUp = ApplicationPath.ToUpper();
|
||||
int idx = ApplPathUp.IndexOf("VE-PROMS.NET\\BIN");
|
||||
if (idx >= 0)
|
||||
{
|
||||
string PromsINI = ApplicationPath.Substring(0, idx);
|
||||
PromsINI += "VE-PROMS\\VEPROMS.INI";
|
||||
IniReader in2 = new IniReader(PromsINI);
|
||||
DefaultGraphicFileExtension = in2.ReadString("Graphics", "defaultext", ".TIF");
|
||||
}
|
||||
else
|
||||
DefaultGraphicFileExtension = ".TIF";
|
||||
}
|
||||
// if (File.Exists(PromsINI))
|
||||
// DefaultGraphicFileExtension = TheIniFile.GetINIKeyValueStr("Graphics","defaultext",".TIF",5,PromsINI);
|
||||
// if (File.Exists("ROAPP.INI"))
|
||||
// DefaultGraphicFileExtension = TheIniFile.GetINIKeyValueStr("ROApp","Extention",".TIF",5,"ROAPP.INI");
|
||||
DefaultGraphicFileExtension = in1.ReadString("ROApp", "Extention");
|
||||
if (string.IsNullOrEmpty(DefaultGraphicFileExtension)) DefaultGraphicFileExtension = in1.ReadString("ROApp", "Extension", ".TIF");
|
||||
// if (File.Exists(PromsINI))
|
||||
// DefaultGraphicFileExtension = TheIniFile.GetINIKeyValueStr("Graphics","defaultext",".TIF",5,PromsINI);
|
||||
// if (File.Exists("ROAPP.INI"))
|
||||
// DefaultGraphicFileExtension = TheIniFile.GetINIKeyValueStr("ROApp","Extention",".TIF",5,"ROAPP.INI");
|
||||
if (!DefaultGraphicFileExtension.StartsWith("."))
|
||||
DefaultGraphicFileExtension = "." + DefaultGraphicFileExtension;
|
||||
|
||||
@@ -784,6 +772,7 @@ namespace ctlXMLEditLib
|
||||
dosaveflag = false;
|
||||
return (true);
|
||||
}
|
||||
MessageBox.Show("Save Failed");
|
||||
return (false);
|
||||
}
|
||||
|
||||
@@ -1486,11 +1475,14 @@ namespace ctlXMLEditLib
|
||||
FileInfo ifi = new FileInfo(fnamebox.Text);
|
||||
if (ifi.Exists == false)
|
||||
{
|
||||
MessageBoxButtons buttons = MessageBoxButtons.OK;
|
||||
MessageBox.Show( "File does not exist.",
|
||||
"File Input Error", buttons);
|
||||
FileInfo ifi2 = new FileInfo(fnamebox.Text + DefaultGraphicFileExtension);
|
||||
if (!ifi2.Exists)
|
||||
{
|
||||
MessageBox.Show("File does not exist.",
|
||||
"File Input Error", MessageBoxButtons.OK);
|
||||
return;
|
||||
}
|
||||
}
|
||||
bool ok = ValidGraphicsFile(fnamebox.Text);
|
||||
if (ok != true)
|
||||
{
|
||||
|
@@ -587,6 +587,13 @@ namespace Volian.Controls.Library
|
||||
|
||||
if (forceReload || RoTreeNeedsReloaded || tvROFST.Nodes == null || tvROFST.Nodes.Count <= 0)
|
||||
{
|
||||
//B2025-008
|
||||
//in cases where a RO table is clicked on
|
||||
//it will refresh the list
|
||||
//temp store what the ROID was before the list refreshes
|
||||
//so can go to it after the refresh
|
||||
string tmpROID = CurROLink?.ROID;
|
||||
|
||||
ROFSTLookup.rodbi[] dbs = MyROFSTLookup.GetRODatabaseList(true);
|
||||
|
||||
// B2022-123: RO Tab Treeview not showing correct RO values when switching between procedures.
|
||||
@@ -609,6 +616,8 @@ namespace Volian.Controls.Library
|
||||
_currDocVersionID = null;
|
||||
|
||||
if(_docVersionInfo != null) _currDocVersionID = (int?)_docVersionInfo.VersionID;
|
||||
|
||||
if (tmpROID != null) ExpandNode(ROFSTLookup.FormatRoidKey(tmpROID, true));
|
||||
}
|
||||
|
||||
var unitInfoNode = tvROFST.Nodes.Cast<TreeNode>().Where(x => x.Text == "Unit Information").FirstOrDefault();
|
||||
|
@@ -409,7 +409,7 @@ namespace Volian.Print.Library
|
||||
else if (cai.Type > 20099) // B2020-054: Always put out 'Equation' (removed checking for null text)
|
||||
txt = "Equation";
|
||||
else
|
||||
txt = ItemInfo.ConvertToDisplayText(cai.Text);
|
||||
txt = ItemInfo.ConvertToDisplayText(cai.Text).Replace("Go to \u25cf", "Go to ?");
|
||||
if (MyProc.MyDocVersion.MultiUnitCount > 1)
|
||||
{
|
||||
System.Xml.XmlNode nd;
|
||||
@@ -1570,7 +1570,7 @@ namespace Volian.Print.Library
|
||||
else if (cai.Type > 20099)
|
||||
txt = "Equation";
|
||||
else
|
||||
txt = ItemInfo.ConvertToDisplayText(cai.Text);
|
||||
txt = ItemInfo.ConvertToDisplayText(cai.Text).Replace("Go to \u25cf", "Go to ?");
|
||||
// Add Parent/Child information if applicable
|
||||
// We were doing this for the Chronology report so I added the same logic here for the Summary report
|
||||
if (MyProc.MyDocVersion.MultiUnitCount > 1)
|
||||
|
Reference in New Issue
Block a user