IO-70 OEC Connection Settings
This commit is contained in:
@@ -69,6 +69,9 @@
|
|||||||
<setting name="PaintScalePath" serializeAs="String">
|
<setting name="PaintScalePath" serializeAs="String">
|
||||||
<value />
|
<value />
|
||||||
</setting>
|
</setting>
|
||||||
|
<setting name="EmsExportPath" serializeAs="String">
|
||||||
|
<value>C:\CIECA\MITCHELL\EXPORT</value>
|
||||||
|
</setting>
|
||||||
</BodyshopPartner.Properties.Settings>
|
</BodyshopPartner.Properties.Settings>
|
||||||
</userSettings>
|
</userSettings>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|||||||
18
BodyshopUploader/Properties/Resources.Designer.cs
generated
18
BodyshopUploader/Properties/Resources.Designer.cs
generated
@@ -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>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Browse for QuickBooks File.
|
/// Looks up a localized string similar to Browse for QuickBooks File.
|
||||||
/// </summary>
|
/// </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>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to File Path.
|
/// Looks up a localized string similar to File Path.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -150,12 +150,18 @@
|
|||||||
<data name="Label_AutoStartMonitor" xml:space="preserve">
|
<data name="Label_AutoStartMonitor" xml:space="preserve">
|
||||||
<value>Auto-start Monitors</value>
|
<value>Auto-start Monitors</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Label_BrowseForEmsExport" xml:space="preserve">
|
||||||
|
<value>Browse for EMS Export Path</value>
|
||||||
|
</data>
|
||||||
<data name="Label_BrowseForQb" xml:space="preserve">
|
<data name="Label_BrowseForQb" xml:space="preserve">
|
||||||
<value>Browse for QuickBooks File</value>
|
<value>Browse for QuickBooks File</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Label_BrowsePaintScalePath" xml:space="preserve">
|
<data name="Label_BrowsePaintScalePath" xml:space="preserve">
|
||||||
<value>Browse Paint Scale Path</value>
|
<value>Browse Paint Scale Path</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Label_EmsExport" xml:space="preserve">
|
||||||
|
<value>EMS Export Path</value>
|
||||||
|
</data>
|
||||||
<data name="Label_FilePath" xml:space="preserve">
|
<data name="Label_FilePath" xml:space="preserve">
|
||||||
<value>File Path</value>
|
<value>File Path</value>
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
12
BodyshopUploader/Properties/Settings.Designer.cs
generated
12
BodyshopUploader/Properties/Settings.Designer.cs
generated
@@ -152,5 +152,17 @@ namespace BodyshopPartner.Properties {
|
|||||||
this["PaintScalePath"] = value;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,5 +35,8 @@
|
|||||||
<Setting Name="PaintScalePath" Type="System.String" Scope="User">
|
<Setting Name="PaintScalePath" Type="System.String" Scope="User">
|
||||||
<Value Profile="(Default)" />
|
<Value Profile="(Default)" />
|
||||||
</Setting>
|
</Setting>
|
||||||
|
<Setting Name="EmsExportPath" Type="System.String" Scope="User">
|
||||||
|
<Value Profile="(Default)">C:\CIECA\MITCHELL\EXPORT</Value>
|
||||||
|
</Setting>
|
||||||
</Settings>
|
</Settings>
|
||||||
</SettingsFile>
|
</SettingsFile>
|
||||||
@@ -1086,7 +1086,7 @@ namespace BodyshopPartner.Utils.Decoder
|
|||||||
lin.line_no = readValues[0];//LINE_NO
|
lin.line_no = readValues[0];//LINE_NO
|
||||||
lin.line_ind = readValues[1];//LINE_IND
|
lin.line_ind = readValues[1];//LINE_IND
|
||||||
lin.line_ref = readValues[2];//LINE_REF
|
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.db_ref = readValues[4];//DB_REF
|
||||||
lin.unq_seq = readValues[5];//UNQ_SEQ
|
lin.unq_seq = readValues[5];//UNQ_SEQ
|
||||||
//lin.who_pays = readValues[6];//WHO_PAYS
|
//lin.who_pays = readValues[6];//WHO_PAYS
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -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;
|
private ICommand _browseForPaintScalePathCommand;
|
||||||
public ICommand BrowseForPaintScalePathCommand
|
public ICommand BrowseForPaintScalePathCommand
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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()
|
public void BrowseForPaintScalePath()
|
||||||
|
|||||||
@@ -156,6 +156,9 @@
|
|||||||
<Button Command="{Binding BrowseForQbFolderCommand, UpdateSourceTrigger=PropertyChanged}"
|
<Button Command="{Binding BrowseForQbFolderCommand, UpdateSourceTrigger=PropertyChanged}"
|
||||||
Margin="8"
|
Margin="8"
|
||||||
Content="{x:Static p:Resources.Label_BrowseForQb}" />
|
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}"
|
<Button Command="{Binding BrowseForPaintScalePathCommand, UpdateSourceTrigger=PropertyChanged}"
|
||||||
Margin="8"
|
Margin="8"
|
||||||
Content="{x:Static p:Resources.Label_BrowsePaintScalePath}" />
|
Content="{x:Static p:Resources.Label_BrowsePaintScalePath}" />
|
||||||
@@ -238,6 +241,11 @@
|
|||||||
Path=QuickBooksFilePath}"
|
Path=QuickBooksFilePath}"
|
||||||
materialDesign:HintAssist.Hint="{x:Static p:Resources.Label_QbFilePath}"
|
materialDesign:HintAssist.Hint="{x:Static p:Resources.Label_QbFilePath}"
|
||||||
TextChanged="TextBox_TextChanged" />
|
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"
|
<TextBox Height="Auto"
|
||||||
materialDesign:HintAssist.Hint="{x:Static p:Resources.Label_InteractionLog}"
|
materialDesign:HintAssist.Hint="{x:Static p:Resources.Label_InteractionLog}"
|
||||||
Text="{Binding HttpServerLog}"
|
Text="{Binding HttpServerLog}"
|
||||||
|
|||||||
@@ -44,6 +44,12 @@ namespace BodyshopPartner.Views
|
|||||||
Properties.Settings.Default.Save();
|
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)
|
private void Button_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
Utils.PPGMixData.PushDataToPPG();
|
Utils.PPGMixData.PushDataToPPG();
|
||||||
|
|||||||
Reference in New Issue
Block a user