Compare commits
113 Commits
B2024-063-
...
35de5df04d
| Author | SHA1 | Date | |
|---|---|---|---|
| 35de5df04d | |||
| 9da436ab2d | |||
| 5333b96c88 | |||
| 6561a11661 | |||
| 1c9334a52b | |||
| 2e00693a33 | |||
| 8617ce4562 | |||
| 78416ef452 | |||
| 9ad50af4dd | |||
| a6f3d62a01 | |||
| a25b5fc6b8 | |||
| 9e26e94e97 | |||
| a571cb5f15 | |||
| 2e00c94d34 | |||
| 4f0548fd60 | |||
| f1506b9aee | |||
| 2805471301 | |||
| 89f55e091f | |||
| da6c47d0ff | |||
| 5c1d96cc51 | |||
| 63cac73de3 | |||
| c8ed5b0565 | |||
| c6342fea49 | |||
| 7a3748f7e0 | |||
| 516b479c0c | |||
| c06744b3bb | |||
| 57049c0c52 | |||
| 31326e1c91 | |||
| 3c60994a0a | |||
| 773cc42346 | |||
| f46a1f39dc | |||
| b7175bf77f | |||
| ec22232aa8 | |||
| f303cd2236 | |||
| f40cef4416 | |||
| fbca97d38d | |||
| 28bd2cba5c | |||
| 4b35f73bbf | |||
| f4706eb126 | |||
| 21bcb90558 | |||
| ae48ac0cae | |||
| cb4979d5bc | |||
| 7d3ae74e1f | |||
| 9d680aa500 | |||
| 0d50b1c2fe | |||
| 75e034863f | |||
| 3b42de1571 | |||
| 668472286e | |||
| e00d34c99d | |||
| 9fb496dfb3 | |||
| f4eaa4a3ef | |||
| 5d50ed6bdf | |||
| d7ace4eaf9 | |||
| 16a4d335ea | |||
| ba69bb0772 | |||
| 455940caa2 | |||
| 439344757e | |||
| ad912691c9 | |||
| 237144aff6 | |||
| 810332d558 | |||
| f8431d0ba1 | |||
| 57c3bfa16a | |||
| 61f1077608 | |||
| 8877e968b9 | |||
| 4575c90bee | |||
| 21279a87ae | |||
| 3d5ad4a17e | |||
| 9bb7b044a8 | |||
| dc8f2f7561 | |||
| 829dbf84da | |||
| 7b156c17f8 | |||
| cbf7cbc164 | |||
| b04faa816e | |||
| 517ebe2902 | |||
| 03d0d314e3 | |||
| 3e804c5cce | |||
| ee2b8b538e | |||
| fdfd34fe92 | |||
| 2d6fb6523b | |||
| 3084bf3982 | |||
| 5ba51e8392 | |||
| fb5eb43e34 | |||
| b154056276 | |||
| c67b8f9ca1 | |||
| 95e4181360 | |||
| 32dffbe56b | |||
| 6b3c8d373b | |||
| db29107f47 | |||
| 355537f2ab | |||
| 0729ef0c21 | |||
| 6fe82bfd0f | |||
| 39bf072363 | |||
| da7c384fd8 | |||
| 95130fd9a0 | |||
| 978e2344a3 | |||
| c9bf45602c | |||
| aa160b2036 | |||
| f82b32d351 | |||
| e519dc9a57 | |||
| f020c37db9 | |||
| 5a4ec3b6b1 | |||
| 2602d6c9d2 | |||
| ff403583d7 | |||
| c5577cc2bd | |||
| 78be6e5dc1 | |||
| b954a41375 | |||
| 0100a11cfe | |||
| 04cf2e8534 | |||
| be00724818 | |||
| 274d93c61a | |||
| 7dc4c30436 | |||
| 028ef4bc31 | |||
| 42124d65c7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -231,7 +231,6 @@ namespace VEPROMS
|
|||||||
cbxOpenAfterCreate2.Visible = oneProcedure;
|
cbxOpenAfterCreate2.Visible = oneProcedure;
|
||||||
cbxOpenAfterCreate2.Checked = false;
|
cbxOpenAfterCreate2.Checked = false;
|
||||||
cbxOverwritePDF2.Visible = oneProcedure;
|
cbxOverwritePDF2.Visible = oneProcedure;
|
||||||
cbxOverwritePDF2.Checked = true;
|
|
||||||
gpnlDebug.Visible = Volian.Base.Library.VlnSettings.DebugMode;
|
gpnlDebug.Visible = Volian.Base.Library.VlnSettings.DebugMode;
|
||||||
swtbtnGeneratePlacekeeper.Value = false;
|
swtbtnGeneratePlacekeeper.Value = false;
|
||||||
cbxGenerateConActSum.Checked = false;
|
cbxGenerateConActSum.Checked = false;
|
||||||
@@ -1206,18 +1205,23 @@ namespace VEPROMS
|
|||||||
private bool validateDate(TextBox txtDate)
|
private bool validateDate(TextBox txtDate)
|
||||||
{
|
{
|
||||||
DateTime dDate;
|
DateTime dDate;
|
||||||
if (DateTime.TryParse(txtDate.Text, out dDate))
|
if (!(txtDate.Text == ""))
|
||||||
{
|
{
|
||||||
return true;
|
|
||||||
}
|
if (DateTime.TryParse(txtDate.Text, out dDate))
|
||||||
else
|
{
|
||||||
{
|
return true;
|
||||||
string txtDate2 = txtDate.Text;
|
}
|
||||||
string message = String.Format("Date {0} in wrong format" + System.Environment.NewLine + "Correct the revision date.", txtDate2);
|
else
|
||||||
string txtTitle = "Invalid Format";
|
{
|
||||||
MessageBox.Show(message, txtTitle);
|
string txtDate2 = txtDate.Text;
|
||||||
return false;
|
string message = String.Format("Date {0} in wrong format" + System.Environment.NewLine + "Correct the revision date.", txtDate2);
|
||||||
|
string txtTitle = "Invalid Format";
|
||||||
|
MessageBox.Show(message, txtTitle);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void txbRevDate_Enter(object sender, EventArgs e)
|
private void txbRevDate_Enter(object sender, EventArgs e)
|
||||||
|
|||||||
@@ -425,9 +425,9 @@ namespace VEPROMS
|
|||||||
MessageBox.Show(msg, "Import Completed", MessageBoxButtons.OK, MessageBoxIcon.Information); // C2020-042 changed mesage box title
|
MessageBox.Show(msg, "Import Completed", MessageBoxButtons.OK, MessageBoxIcon.Information); // C2020-042 changed mesage box title
|
||||||
//MessageBox.Show(string.Format("Finished Importing:\n\n{0}", txtImport.Text.Substring(txtImport.Text.LastIndexOf("\\") + 1)), "Import", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
//MessageBox.Show(string.Format("Finished Importing:\n\n{0}", txtImport.Text.Substring(txtImport.Text.LastIndexOf("\\") + 1)), "Import", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
}
|
}
|
||||||
if (canceledPressed)
|
if (canceledPressed || !isImported)
|
||||||
{
|
{
|
||||||
MessageBox.Show(string.Format("Canceling the import of:\n\n{0}", txtImport.Text.Substring(txtImport.Text.LastIndexOf("\\") + 1)), "Import", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
MessageBox.Show(string.Format("Cancelling the import of:\n\n{0}", txtImport.Text.Substring(txtImport.Text.LastIndexOf("\\") + 1)), "Cancelling Import", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
btnCloseImport.PerformClick();
|
btnCloseImport.PerformClick();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -906,8 +906,8 @@ namespace VEPROMS
|
|||||||
// C2020-032: Import Procedure set when existing name exists, allow user to import with 'Copy (#) of'.
|
// C2020-032: Import Procedure set when existing name exists, allow user to import with 'Copy (#) of'.
|
||||||
// This is similar functionality to the import of a procedure without the overwrite part.
|
// This is similar functionality to the import of a procedure without the overwrite part.
|
||||||
string msg = string.Format("The procedure set you are importing, {0}, already exists.\n\nDo you want to import {0} as a COPY of the existing set?\n\nThis will prefix the name with \"Copy (#) of\"", name);
|
string msg = string.Format("The procedure set you are importing, {0}, already exists.\n\nDo you want to import {0} as a COPY of the existing set?\n\nThis will prefix the name with \"Copy (#) of\"", name);
|
||||||
DialogResult dr = MessageBox.Show(this, msg, "Create Copy Of Existing Procedure Set", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Stop);
|
DialogResult dr = MessageBox.Show(this, msg, "Create Copy Of Existing Procedure Set", MessageBoxButtons.OKCancel, MessageBoxIcon.Stop);
|
||||||
if (dr == DialogResult.Yes)
|
if (dr == DialogResult.OK)
|
||||||
{
|
{
|
||||||
string number = "";
|
string number = "";
|
||||||
int max = -1;
|
int max = -1;
|
||||||
@@ -931,6 +931,11 @@ namespace VEPROMS
|
|||||||
|
|
||||||
ff = AddFolder(Folder.Get(MyFolder.FolderID), xd, name);
|
ff = AddFolder(Folder.Get(MyFolder.FolderID), xd, name);
|
||||||
}
|
}
|
||||||
|
//else if (dr == System.Windows.Forms.DialogResult.Cancel)
|
||||||
|
//{
|
||||||
|
// //canceledPressed = true;
|
||||||
|
// //resolvedProcNum = false;
|
||||||
|
//}
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -511,7 +511,7 @@ namespace VEPROMS
|
|||||||
|
|
||||||
private void btnPC_Click(object sender, EventArgs e)
|
private void btnPC_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (MessageBox.Show(this, "Are you sure you want to add Applicability to this Working Draft?", "Add Applicability", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Stop) == DialogResult.Yes)
|
if (MessageBox.Show(this, "Are you sure you want to add Applicability to this Working Draft?", "Add Applicability", MessageBoxButtons.YesNo, MessageBoxIcon.Stop) == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
btnApplicability.Visible = true;
|
btnApplicability.Visible = true;
|
||||||
tiApplicability.Visible = true;
|
tiApplicability.Visible = true;
|
||||||
|
|||||||
@@ -277,17 +277,27 @@ namespace Volian.Controls.Library
|
|||||||
|
|
||||||
private void btnRemoveAnnotation_Click(object sender, EventArgs e)
|
private void btnRemoveAnnotation_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
//using (Annotation annotation = CurrentAnnotation.Get())
|
// CSM B2024-068 / B2024-069 - check if current annotation is not selected before removal of annotation
|
||||||
//{
|
if (CurrentAnnotation != null)
|
||||||
// annotation.Delete();
|
{
|
||||||
_AnnotationSearch.LoadingList = true;
|
//using (Annotation annotation = CurrentAnnotation.Get())
|
||||||
Annotation.DeleteAnnotation(CurrentAnnotation);
|
//{
|
||||||
// annotation.Save();
|
// annotation.Delete();
|
||||||
_AnnotationSearch.LoadingList = false;
|
_AnnotationSearch.LoadingList = true;
|
||||||
CurrentAnnotation = null;
|
Annotation.DeleteAnnotation(CurrentAnnotation);
|
||||||
UpdateAnnotationGrid();
|
// annotation.Save();
|
||||||
_AnnotationSearch.UpdateAnnotationSearchResults(); // B2019-004: update search results list when an annotation is removed.
|
_AnnotationSearch.LoadingList = false;
|
||||||
//}
|
CurrentAnnotation = null;
|
||||||
|
UpdateAnnotationGrid();
|
||||||
|
_AnnotationSearch.UpdateAnnotationSearchResults(); // B2019-004: update search results list when an annotation is removed.
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
FlexibleMessageBox.Show("You Must Select an Annotation To Remove", "Annotation Not Selected", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btnSaveAnnotation_Click(object sender, EventArgs e)
|
private void btnSaveAnnotation_Click(object sender, EventArgs e)
|
||||||
|
|||||||
@@ -503,7 +503,7 @@ namespace Volian.Controls.Library
|
|||||||
this.cbxSortBySetpointID.Size = new System.Drawing.Size(121, 23);
|
this.cbxSortBySetpointID.Size = new System.Drawing.Size(121, 23);
|
||||||
this.cbxSortBySetpointID.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
this.cbxSortBySetpointID.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
this.cbxSortBySetpointID.TabIndex = 11;
|
this.cbxSortBySetpointID.TabIndex = 11;
|
||||||
this.cbxSortBySetpointID.Text = "Sort By Sepoint ID";
|
this.cbxSortBySetpointID.Text = "Sort By Setpoint ID";
|
||||||
this.cbxSortBySetpointID.Visible = false;
|
this.cbxSortBySetpointID.Visible = false;
|
||||||
//
|
//
|
||||||
// DisplayReports
|
// DisplayReports
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ namespace Volian.Controls.Library
|
|||||||
this.cbxTranCategory.Name = "cbxTranCategory";
|
this.cbxTranCategory.Name = "cbxTranCategory";
|
||||||
this.cbxTranCategory.Size = new System.Drawing.Size(215, 21);
|
this.cbxTranCategory.Size = new System.Drawing.Size(215, 21);
|
||||||
this.cbxTranCategory.TabIndex = 1;
|
this.cbxTranCategory.TabIndex = 1;
|
||||||
this.cbxTranCategory.WatermarkText = "Select Cateogry of Transitions";
|
this.cbxTranCategory.WatermarkText = "Select Category of Transitions";
|
||||||
//
|
//
|
||||||
// lblTranCategory
|
// lblTranCategory
|
||||||
//
|
//
|
||||||
@@ -402,7 +402,7 @@ namespace Volian.Controls.Library
|
|||||||
this.cbxTranCategory.Name = "cbxTranCategory";
|
this.cbxTranCategory.Name = "cbxTranCategory";
|
||||||
this.cbxTranCategory.Size = new System.Drawing.Size(215, 21);
|
this.cbxTranCategory.Size = new System.Drawing.Size(215, 21);
|
||||||
this.cbxTranCategory.TabIndex = 1;
|
this.cbxTranCategory.TabIndex = 1;
|
||||||
this.cbxTranCategory.WatermarkText = "Select Cateogry of Transitions";
|
this.cbxTranCategory.WatermarkText = "Select Category of Transitions";
|
||||||
//
|
//
|
||||||
// lblTranCategory
|
// lblTranCategory
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ namespace Volian.Controls.Library
|
|||||||
public string TbFSwd
|
public string TbFSwd
|
||||||
{
|
{
|
||||||
get {return tbFSWd.Text;}
|
get {return tbFSWd.Text;}
|
||||||
set { tbFSWd.Text = value; tbFSWd.Refresh(); trBarFS.Value = Convert.ToInt32(value); }
|
set { tbFSWd.Text = value; tbFSWd.Refresh(); } // trBarFS.Value = Convert.ToInt32(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public string TbFSht
|
public string TbFSht
|
||||||
@@ -111,7 +111,7 @@ namespace Volian.Controls.Library
|
|||||||
get { return tbFSHt.Text; }
|
get { return tbFSHt.Text; }
|
||||||
set { tbFSHt.Text = value; tbFSHt.Refresh(); _origFigureSizeRatio = float.Parse(value) / float.Parse(tbFSWd.Text); }
|
set { tbFSHt.Text = value; tbFSHt.Refresh(); _origFigureSizeRatio = float.Parse(value) / float.Parse(tbFSWd.Text); }
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
#region Constructor
|
#region Constructor
|
||||||
public DisplayTags()
|
public DisplayTags()
|
||||||
|
|||||||
@@ -285,7 +285,7 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
public EditItem ActiveParent
|
public EditItem ActiveParent
|
||||||
{
|
{
|
||||||
get { return _MyParentEditItem != null ? _MyParentEditItem : _MyPreviousEditItem.ActiveParent; }
|
get { return _MyParentEditItem != null ? _MyParentEditItem : _MyPreviousEditItem?.ActiveParent; }
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Return the Parent EditItem
|
/// Return the Parent EditItem
|
||||||
|
|||||||
@@ -256,7 +256,8 @@ namespace Volian.Controls.Library
|
|||||||
private int _origCfgHt = 0; // keep track if original size was stored in cfg
|
private int _origCfgHt = 0; // keep track if original size was stored in cfg
|
||||||
private int _origCfgWd = 0;
|
private int _origCfgWd = 0;
|
||||||
private bool _pastedNew = false; // need this for flagging newly pasted image (may need to clear cfg)
|
private bool _pastedNew = false; // need this for flagging newly pasted image (may need to clear cfg)
|
||||||
private DisplayTags _displayTags;
|
private DisplayTags _displayTags = new DisplayTags();
|
||||||
|
//House myhouse = new House();
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
#region Constructors
|
#region Constructors
|
||||||
@@ -316,8 +317,11 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
private void SetWidthsAndHeights(System.Drawing.Image img)
|
private void SetWidthsAndHeights(System.Drawing.Image img)
|
||||||
{
|
{
|
||||||
|
|
||||||
int wd = img.Width * MyStepPanel.DPI / 72; // converts from screen resolution's DPI to image's points (72/inch)
|
int wd = img.Width * MyStepPanel.DPI / 72; // converts from screen resolution's DPI to image's points (72/inch)
|
||||||
int ht = img.Height * MyStepPanel.DPI / 72;
|
int ht = img.Height * MyStepPanel.DPI / 72;
|
||||||
|
|
||||||
|
|
||||||
if (MyItemInfo.MyContent.MyImage != null) // image is null if creating new.
|
if (MyItemInfo.MyContent.MyImage != null) // image is null if creating new.
|
||||||
{
|
{
|
||||||
ImageConfig ic = new ImageConfig(MyItemInfo.MyContent.MyImage);
|
ImageConfig ic = new ImageConfig(MyItemInfo.MyContent.MyImage);
|
||||||
@@ -340,9 +344,9 @@ namespace Volian.Controls.Library
|
|||||||
_displayTags.TbFSwd = wd.ToString();
|
_displayTags.TbFSwd = wd.ToString();
|
||||||
_displayTags.TbFSht = ht.ToString();
|
_displayTags.TbFSht = ht.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// the following gets called for 'NEW' images
|
// the following gets called for 'NEW' images
|
||||||
private E_ImageSource InsType = E_ImageSource.None;
|
private E_ImageSource InsType = E_ImageSource.None;
|
||||||
public ImageItem(ItemInfo itemInfo, StepPanel myStepPanel, EditItem myParentEditItem, ChildRelation myChildRelation, bool expand, EditItem nextEditItem, ImageItem.E_ImageSource insType, DisplayTags displayTags)
|
public ImageItem(ItemInfo itemInfo, StepPanel myStepPanel, EditItem myParentEditItem, ChildRelation myChildRelation, bool expand, EditItem nextEditItem, ImageItem.E_ImageSource insType, DisplayTags displayTags)
|
||||||
|
|||||||
Reference in New Issue
Block a user