IO-70 OEC Connection Settings

This commit is contained in:
Patrick Fic
2021-11-29 14:52:17 -08:00
parent 74cb593c66
commit 1db1b0c40c
11 changed files with 763 additions and 83 deletions

View File

@@ -69,6 +69,9 @@
<setting name="PaintScalePath" serializeAs="String">
<value />
</setting>
<setting name="EmsExportPath" serializeAs="String">
<value>C:\CIECA\MITCHELL\EXPORT</value>
</setting>
</BodyshopPartner.Properties.Settings>
</userSettings>
</configuration>

View File

@@ -159,6 +159,15 @@ namespace BodyshopPartner.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Browse for EMS Export Path.
/// </summary>
public static string Label_BrowseForEmsExport {
get {
return ResourceManager.GetString("Label_BrowseForEmsExport", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Browse for QuickBooks File.
/// </summary>
@@ -177,6 +186,15 @@ namespace BodyshopPartner.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to EMS Export Path.
/// </summary>
public static string Label_EmsExport {
get {
return ResourceManager.GetString("Label_EmsExport", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to File Path.
/// </summary>

View File

@@ -150,12 +150,18 @@
<data name="Label_AutoStartMonitor" xml:space="preserve">
<value>Auto-start Monitors</value>
</data>
<data name="Label_BrowseForEmsExport" xml:space="preserve">
<value>Browse for EMS Export Path</value>
</data>
<data name="Label_BrowseForQb" xml:space="preserve">
<value>Browse for QuickBooks File</value>
</data>
<data name="Label_BrowsePaintScalePath" xml:space="preserve">
<value>Browse Paint Scale Path</value>
</data>
<data name="Label_EmsExport" xml:space="preserve">
<value>EMS Export Path</value>
</data>
<data name="Label_FilePath" xml:space="preserve">
<value>File Path</value>
</data>

View File

@@ -152,5 +152,17 @@ namespace BodyshopPartner.Properties {
this["PaintScalePath"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("C:\\CIECA\\MITCHELL\\EXPORT")]
public string EmsExportPath {
get {
return ((string)(this["EmsExportPath"]));
}
set {
this["EmsExportPath"] = value;
}
}
}
}

View File

@@ -35,5 +35,8 @@
<Setting Name="PaintScalePath" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="EmsExportPath" Type="System.String" Scope="User">
<Value Profile="(Default)">C:\CIECA\MITCHELL\EXPORT</Value>
</Setting>
</Settings>
</SettingsFile>

View File

@@ -1086,7 +1086,7 @@ namespace BodyshopPartner.Utils.Decoder
lin.line_no = readValues[0];//LINE_NO
lin.line_ind = readValues[1];//LINE_IND
lin.line_ref = readValues[2];//LINE_REF
//lin.tran_code = readValues[3];//TRAN_CODE
lin.tran_code = readValues[3];//TRAN_CODE
lin.db_ref = readValues[4];//DB_REF
lin.unq_seq = readValues[5];//UNQ_SEQ
//lin.who_pays = readValues[6];//WHO_PAYS

File diff suppressed because it is too large Load Diff

View File

@@ -169,6 +169,23 @@ namespace BodyshopPartner.ViewModels
}
}
private ICommand _browseForEmsFolderCommand;
public ICommand BrowseForEmsFolderCommand
{
get
{
if (_browseForEmsFolderCommand == null)
{
_browseForEmsFolderCommand = new RelayCommand(
p => true,
p => BrowseForEmsFolder()
);
}
return _browseForEmsFolderCommand;
}
}
private ICommand _browseForPaintScalePathCommand;
public ICommand BrowseForPaintScalePathCommand
{

View File

@@ -229,6 +229,19 @@ namespace BodyshopPartner.ViewModels
}
}
public void BrowseForEmsFolder()
{
var dialog = new Ookii.Dialogs.Wpf.VistaFolderBrowserDialog();
dialog.SelectedPath = Properties.Settings.Default.EmsExportPath;
if (dialog.ShowDialog().GetValueOrDefault())
{
Properties.Settings.Default.EmsExportPath = dialog.SelectedPath;
Properties.Settings.Default.Save();
}
}
public void BrowseForPaintScalePath()

View File

@@ -156,6 +156,9 @@
<Button Command="{Binding BrowseForQbFolderCommand, UpdateSourceTrigger=PropertyChanged}"
Margin="8"
Content="{x:Static p:Resources.Label_BrowseForQb}" />
<Button Command="{Binding BrowseForEmsFolderCommand, UpdateSourceTrigger=PropertyChanged}"
Margin="8"
Content="{x:Static p:Resources.Label_BrowseForEmsExport}" />
<Button Command="{Binding BrowseForPaintScalePathCommand, UpdateSourceTrigger=PropertyChanged}"
Margin="8"
Content="{x:Static p:Resources.Label_BrowsePaintScalePath}" />
@@ -238,6 +241,11 @@
Path=QuickBooksFilePath}"
materialDesign:HintAssist.Hint="{x:Static p:Resources.Label_QbFilePath}"
TextChanged="TextBox_TextChanged" />
<TextBox DockPanel.Dock="Top"
Text="{Binding Source={x:Static properties:Settings.Default},
Path=EmsExportPath}"
materialDesign:HintAssist.Hint="{x:Static p:Resources.Label_EmsExport}"
TextChanged="EmsExportPath_TextChanged" />
<TextBox Height="Auto"
materialDesign:HintAssist.Hint="{x:Static p:Resources.Label_InteractionLog}"
Text="{Binding HttpServerLog}"

View File

@@ -44,6 +44,12 @@ namespace BodyshopPartner.Views
Properties.Settings.Default.Save();
}
private void EmsExportPath_TextChanged(object sender, TextChangedEventArgs e)
{
Properties.Settings.Default.EmsExportPath = ((System.Windows.Controls.TextBox)sender).Text;
Properties.Settings.Default.Save();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
Utils.PPGMixData.PushDataToPPG();