Skip to content

Commit

Permalink
GenDocEdit Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ljlclark committed Jan 14, 2024
1 parent 741b363 commit 963980c
Show file tree
Hide file tree
Showing 8 changed files with 214 additions and 69 deletions.
14 changes: 14 additions & 0 deletions CoreUtilities/LJCGenDoc/UpdateGenDoc.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ set src=%assmRoot%LJCNetCommon\LJCNetCommon\%bin%
echo copy %src%\LJCNetCommon.dll %to%
copy %src%\LJCNetCommon.dll %to%

set src=%assmRoot%LJCNetCommon\LJCNetCommon\%bin%
echo copy %src%\LJCNetCommon.dll %to%
copy %src%\LJCNetCommon.dll %to%

rem *****************************
rem *** Runtime-only Binaries ***

Expand Down Expand Up @@ -68,10 +72,18 @@ set src=%assmRoot%LJCDBServiceLib\LJCDBServiceLib\%bin%
echo copy %src%\LJCDBServiceLib.dll %to%
copy %src%\LJCDBServiceLib.dll %to%

set src=%assmRoot%LJCDBViewControls\LJCDBViewControls\%bin%
echo copy %src%\LJCDBViewControls.dll %to%
copy %src%\LJCDBViewControls.dll %to%

set src=%utilRoot%LJCGenDoc\LJCGenDocDAL\%bin%
echo copy %src%\LJCGenDocDAL.dll %to%
copy %src%\LJCGenDocDAL.dll %to%

set src=LJCViewEditor\LJCViewEditor\%bin%
echo copy %utilRoot%%src%\LJCViewEditor.exe %to%
copy %utilRoot%%src%\LJCViewEditor.exe %to%

rem ---------------------------
set to=%toRoot%LJCGenDocLib\%bin%
echo.
Expand All @@ -86,6 +98,7 @@ echo copy %src%\LJCDataAccess.dll %to%
copy %src%\LJCDataAccess.dll %to%

set src=%assmRoot%LJCDataAccessConfig\LJCDataAccessConfig\%bin%
echo copy %src%\LJCDataAccessConfig.dll %to%%
copy %src%\LJCDataAccessConfig.dll %to%

set src=%assmRoot%LJCDBClientLib\LJCDBClientLib\%bin%
Expand All @@ -94,6 +107,7 @@ copy %src%\LJCDBClientLib.dll %to%

set src=%assmRoot%LJCDBMessage\LJCDBMessage\%bin%
echo copy %src%\LJCDBMessage.dll %to%
echo copy %src%\LJCDBMessage.dll %to%
copy %src%\LJCDBMessage.dll %to%

set src=%assmRoot%LJCDBServiceLib\LJCDBServiceLib\%bin%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using LJCViewEditor;

namespace LJCGenDocEdit
{
Expand Down Expand Up @@ -323,29 +322,32 @@ internal void SetupGrid(ViewInfo viewInfo)

// Get the view grid columns
var gridColumns = mDataDbView.GetGridColumns(viewInfo.DataID);
if (null == gridColumns)
if (gridColumns != null)
{
// Setup the grid columns.
AssemblyGroupGrid.LJCAddColumns(gridColumns);
//AssemblyGroupGrid.LJCRestoreColumnValues(ControlValues);
}
else
{
// Did not load any Grid Columns.
var viewCombo = DocList.AssemblyGroupViewCombo;
var dataID = viewCombo.LJCSelectedItemID();
viewInfo.DataID = dataID;
ViewCommon.DoViewEdit(viewInfo);
ViewCommon.DoViewEdit(viewInfo, DocList.ConfigFileName);

string title = "Reload Confirmation";
string message = "Reload View Combo?";
if (DialogResult.Yes == MessageBox.Show(message, title
, MessageBoxButtons.YesNo, MessageBoxIcon.Question))
{
gridColumns = mDataDbView.GetGridColumns(viewInfo.DataID);
AssemblyGroupGrid.LJCAddColumns(gridColumns);
//AssemblyGroupGrid.LJCRestoreColumnValues(ControlValues);
viewCombo.Items.Clear();
viewCombo.LJCLoad();
}
}
else
{
// Setup the grid columns.
AssemblyGroupGrid.LJCAddColumns(gridColumns);
//AssemblyGroupGrid.LJCRestoreColumnValues(ControlValues);
}
// *** End *** Change - Data Views
FormCommon.NotSortable(AssemblyGroupGrid);
AssemblyGroupGrid.LJCDragDataName = "DocAssemblyGroup";
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright(c) Lester J.Clark and Contributors.
// Licensed under the MIT License.
// LJCGenDocList.cs
using LJCDBViewControls;
using LJCGenDocDAL;
using LJCWinFormCommon;
using System;
Expand Down Expand Up @@ -70,6 +71,11 @@ private void TileTabsMove_Click(object sender, EventArgs e)

#region Assembly Group

private void AssemblyGroupComboEdit_Click(object sender, EventArgs e)
{
ViewCommon.DoViewEdit(AssemblyGroupViewInfo, ConfigFileName);
}

// Displays a detail dialog for a new record.
private void AssemblyGroupNew_Click(object sender, EventArgs e)
{
Expand Down Expand Up @@ -984,6 +990,7 @@ private void MethodItemGrid_SelectionChanged(object sender, EventArgs e)
MethodItemGrid.LJCAllowSelectionChange = true;
}
#endregion

#endregion
}
}
39 changes: 30 additions & 9 deletions CoreUtilities/LJCGenDocEdit/LJCGenDocEdit/Forms/LJCGenDocList.resx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
<metadata name="AssemblyGroupViewCombo.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="AssemblyGroupComboMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>190, 69</value>
</metadata>
<metadata name="AssemblyGroupGrid.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
Expand Down Expand Up @@ -168,6 +171,33 @@
<metadata name="ClassSplit.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="MethodTab.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ClassCombo.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ClassLabel.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="MethodSplit.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TileTabs.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TileTabsMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 69</value>
</metadata>
<metadata name="AssemblyCombo.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="AssemblyLabel.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ClassSplit.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ClassGroupViewCombo.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
Expand All @@ -192,9 +222,6 @@
<metadata name="ClassItemHeader.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="MethodTab.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ClassCombo.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
Expand Down Expand Up @@ -228,12 +255,6 @@
<metadata name="MethodItemHeader.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TileTabs.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TileTabsMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 69</value>
</metadata>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using LJCDBViewControls;
using LJCGenDocDAL;
using LJCNetCommon;
using LJCViewEditor;
using LJCWinFormCommon;
using LJCWinFormControls;
using System;
Expand Down Expand Up @@ -218,6 +217,8 @@ private void InitializeClassData()
{
var values = ValuesGenDocEdit.Instance;
mSettings = values.StandardSettings;
//*** Next Statement *** External Config
ConfigFileName = values.ConfigFileName;

Managers = new ManagersGenDoc();
Managers.SetDBProperties(mSettings.DbServiceRef
Expand Down Expand Up @@ -360,7 +361,8 @@ private void LoadComboAssemblyGroup()
var viewCombo = AssemblyGroupViewCombo;
var dataID = viewCombo.LJCSelectedItemID();
AssemblyGroupViewInfo.DataID = dataID;
ViewCommon.DoViewEdit(AssemblyGroupViewInfo);
//*** Next Statement *** External Config
ViewCommon.DoViewEdit(AssemblyGroupViewInfo, ConfigFileName);

string title = "Reload Confirmation";
string message = "Reload Asesembly Group View Combo?";
Expand Down Expand Up @@ -472,6 +474,10 @@ private void SetFocusTab(MouseEventArgs e)

#region Properties

/// <summary>The ConfigFile name.</summary>
//*** New Property *** External Config
public string ConfigFileName { get; set; }

/// <summary>The Managers object.</summary>
internal ManagersGenDoc Managers { get; set; }

Expand Down
8 changes: 8 additions & 0 deletions CoreUtilities/LJCGenDocEdit/UpdateGenDocEdit.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ set src=%assmRoot%LJCDBViewControls\LJCDBViewControls\%bin%
echo copy %src%\LJCDBViewControls.dll %to%
copy %src%\LJCDBViewControls.dll %to%

set src=%assmRoot%LJCDBViewDAL\LJCDBViewDAL\%bin%
echo copy %src%\LJCDBViewDAL.dll %to%
copy %src%\LJCDBViewDAL.dll %to%

set src=%utilRoot%LJCGenDoc\LJCDocObjLib\%bin%
echo copy %src%\LJCDocObjLib.dll %to%
copy %src%\LJCDocObjLib.dll %to%
Expand Down Expand Up @@ -100,6 +104,10 @@ set src=%utilRoot%LJCViewEditor\LJCViewEditor\%bin%
echo copy %src%\LJCViewEditor.exe %to%
copy %src%\LJCViewEditor.exe %to%

set src=%utilRoot%LJCViewEditor\LJCViewEditorDAL\%bin%
echo copy %src%\LJCViewEditorDAL.dll %to%
copy %src%\LJCViewEditorDAL.dll %to%

if %1%. == BuildAll. goto End
if %1%. == nopause. goto End
pause
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,12 @@ private void InitialControlValues()
private void InitializeClassData()
{
var values = ValuesViewEditor.Instance;
//*** Begin *** External Config
if (NetString.HasValue(ConfigFileName))
{
values.SetConfigFile(ConfigFileName);
}
//*** Begin *** External Config
mSettings = values.StandardSettings;
Text += $" - {mSettings.DataConfigName}";
BeginColor = mSettings.BeginColor;
Expand Down Expand Up @@ -520,6 +526,10 @@ private void FilterSetFocusTab(TabPage tabPage)

#region Properties

/// <summary>The ConfigFile name.</summary>
//*** New Property *** External Config
public string ConfigFileName { get; set; }

// The Managers object.
internal ManagersDbView Managers { get; set; }

Expand Down

0 comments on commit 963980c

Please sign in to comment.