ProManager initial setup.

This commit is contained in:
Patrick Fic
2024-03-20 14:30:48 -07:00
parent 63f18cdcae
commit 84908aabfe
68 changed files with 164 additions and 176 deletions

View File

@@ -2,7 +2,7 @@
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="RomeOnlinePartner.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
<section name="ProManagerPartner.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
@@ -41,7 +41,7 @@
</assemblyBinding>
</runtime>
<userSettings>
<RomeOnlinePartner.Properties.Settings>
<ProManagerPartner.Properties.Settings>
<setting name="Username" serializeAs="String">
<value />
</setting>
@@ -84,6 +84,6 @@
<setting name="PpcExportPath" serializeAs="String">
<value>C:\CIECA\CCC\IMPORT</value>
</setting>
</RomeOnlinePartner.Properties.Settings>
</ProManagerPartner.Properties.Settings>
</userSettings>
</configuration>

View File

@@ -1,7 +1,7 @@
<Application x:Class="RomeOnlinePartner.App"
<Application x:Class="ProManagerPartner.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:RomeOnlinePartner"
xmlns:local="clr-namespace:ProManagerPartner"
ShutdownMode="OnExplicitShutdown"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
Exit="Application_Exit"

View File

@@ -12,14 +12,14 @@ using System.Windows;
using System.Windows.Interop;
using System.Windows.Media;
namespace RomeOnlinePartner
namespace ProManagerPartner
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
static Mutex mutex = new Mutex(false, "Rome Online Partner");
static Mutex mutex = new Mutex(false, "ProManager Partner");
App()
{
@@ -31,7 +31,7 @@ namespace RomeOnlinePartner
// of the program is in the process of shutting down.
if (!mutex.WaitOne(TimeSpan.FromSeconds(2), false))
{
MessageBox.Show("Rome Online Partner is already running.");
MessageBox.Show("ProManager Partner is already running.");
App.Current.Shutdown();
return;
}
@@ -48,7 +48,7 @@ namespace RomeOnlinePartner
mutex.ReleaseMutex();
Utils.PowerModeEventHandler.DisposeEventHandler();
RomeOnlinePartner.Properties.Settings.Default.Save();
ProManagerPartner.Properties.Settings.Default.Save();
Utils.QuickBooksInterop.DisconnectFromQuickBooks();
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 766 B

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -6,8 +6,8 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{76B98E9B-A33A-464F-A07B-56E773376543}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>RomeOnlinePartner</RootNamespace>
<AssemblyName>RomeOnlinePartner</AssemblyName>
<RootNamespace>ProManagerPartner</RootNamespace>
<AssemblyName>ProManagerPartner</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
@@ -54,7 +54,7 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>Assets\ro-favicon.ico</ApplicationIcon>
<ApplicationIcon>Assets\favicon.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
@@ -80,7 +80,7 @@
</PropertyGroup>
<PropertyGroup />
<PropertyGroup>
<StartupObject>RomeOnlinePartner.App</StartupObject>
<StartupObject>ProManagerPartner.App</StartupObject>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Test|AnyCPU'">
<OutputPath>bin\Test\</OutputPath>
@@ -271,8 +271,7 @@
<Resource Include="Assets\logo1024.png" />
<Resource Include="Assets\favicon.ico" />
<Resource Include="favicon.ico" />
<Resource Include="Assets\ro-favicon.png" />
<Resource Include="Assets\ro-favicon.ico" />
<Resource Include="Assets\logo.png" />
<Content Include="NLog.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
@@ -561,7 +560,7 @@
<GetAssemblyIdentity AssemblyFiles="$(TargetPath)">
<Output TaskParameter="Assemblies" ItemName="myAssemblyInfo" />
</GetAssemblyIdentity>
<Exec Command="nuget pack RomeOnlinePartner.nuspec -Version %(myAssemblyInfo.Version) -Properties Configuration=Release -OutputDirectory $(OutDir) -BasePath $(OutDir)" />
<Exec Command="squirrel --releasify $(OutDir)RomeOnlinePartner.$([System.Version]::Parse(%(myAssemblyInfo.Version)).ToString(3)).nupkg" />
<Exec Command="nuget pack ProManagerPartner.nuspec -Version %(myAssemblyInfo.Version) -Properties Configuration=Release -OutputDirectory $(OutDir) -BasePath $(OutDir)" />
<Exec Command="squirrel --releasify $(OutDir)ProManagerPartner.$([System.Version]::Parse(%(myAssemblyInfo.Version)).ToString(3)).nupkg" />
</Target>
</Project>

View File

@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RomeOnlinePartner.Models
namespace ProManagerPartner.Models
{
[JsonConverter(typeof(Utils.JsonPathConverter))]
public class Bodyshop : DTO_Base

View File

@@ -6,7 +6,7 @@ using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace RomeOnlinePartner.Models
namespace ProManagerPartner.Models
{
public abstract class DTO_Base : INotifyPropertyChanged
{

View File

@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RomeOnlinePartner
namespace ProManagerPartner
{
public enum SourceSystem
{
@@ -14,7 +14,7 @@ namespace RomeOnlinePartner
}
}
namespace RomeOnlinePartner.Models
namespace ProManagerPartner.Models
{
public class DTO_QueueItem : DTO_Base
{

View File

@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RomeOnlinePartner.Models
namespace ProManagerPartner.Models
{
public class Monitor : DTO_Base
{

View File

@@ -5,7 +5,7 @@ using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace RomeOnlinePartner.Models
namespace ProManagerPartner.Models
{
public class QbRequestItem : DTO_Base
{

View File

@@ -5,7 +5,7 @@ using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace RomeOnlinePartner.Models
namespace ProManagerPartner.Models
{
public class QbResponseItem : DTO_Base
{

View File

@@ -5,7 +5,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace RomeOnlinePartner.Models
namespace ProManagerPartner.Models
{
public class QbXmlResponse : DTO_Base
{

View File

@@ -5,7 +5,7 @@ using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace RomeOnlinePartner.Models
namespace ProManagerPartner.Models
{
public class ScanResponseItem : DTO_Base
{

View File

@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>RomeOnlinePartner</id>
<id>ProManagerPartner</id>
<version>1.0.0</version>
<title>Rome Online Partner</title>
<title>ProManager Partner</title>
<authors>ImEX Systems Inc.</authors>
<owners></owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>https://s3.us-east-2.amazonaws.com/partner.romeonline.io/favicon.ico</iconUrl>
<iconUrl>https://s3.us-east-2.amazonaws.com/partner.promanager.web-est.com/favicon.ico</iconUrl>
<copyright>ImEX Systems Inc.</copyright>
<description>Rome Online Partner</description>
<description>ProManager Partner</description>
</metadata>
<files>
<file src="*.*" target="lib\net45\" exclude="*.pdb;*.nupkg;*.vshost.*"/>

View File

@@ -7,11 +7,11 @@ using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Rome Online Partner")]
[assembly: AssemblyTitle("ProManager Partner")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Rome Technologies")]
[assembly: AssemblyProduct("Rome Online Partner")]
[assembly: AssemblyCompany("Web-Est")]
[assembly: AssemblyProduct("ProManager Partner")]
[assembly: AssemblyCopyright("Copyright © ImEX Systems Inc.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View File

@@ -8,7 +8,7 @@
// </auto-generated>
//------------------------------------------------------------------------------
namespace RomeOnlinePartner.Properties {
namespace ProManagerPartner.Properties {
using System;
@@ -39,7 +39,7 @@ namespace RomeOnlinePartner.Properties {
public static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("RomeOnlinePartner.Properties.Resources", typeof(Resources).Assembly);
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ProManagerPartner.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
@@ -466,7 +466,7 @@ namespace RomeOnlinePartner.Properties {
}
/// <summary>
/// Looks up a localized string similar to Please do not close Rome Online or Rome Partner during the connection process..
/// Looks up a localized string similar to Please do not close ProManager or ProManager Partner during the connection process..
/// </summary>
public static string Msg_QbConnection_Msg {
get {
@@ -511,7 +511,7 @@ namespace RomeOnlinePartner.Properties {
}
/// <summary>
/// Looks up a localized string similar to Login - Rome Online Partner.
/// Looks up a localized string similar to Login - ProManager Partner.
/// </summary>
public static string Title_Login {
get {
@@ -520,7 +520,7 @@ namespace RomeOnlinePartner.Properties {
}
/// <summary>
/// Looks up a localized string similar to Rome Online Partner.
/// Looks up a localized string similar to ProManager Partner.
/// </summary>
public static string Title_Login_Header {
get {
@@ -529,7 +529,7 @@ namespace RomeOnlinePartner.Properties {
}
/// <summary>
/// Looks up a localized string similar to Rome Online Partner | Rome Technologies.
/// Looks up a localized string similar to ProManager Partner | Web-Est.
/// </summary>
public static string Title_Main {
get {

View File

@@ -253,7 +253,7 @@
<value>QuickBooks Connection</value>
</data>
<data name="Msg_QbConnection_Msg" xml:space="preserve">
<value>Please do not close Rome Online or Rome Partner during the connection process.</value>
<value>Please do not close ProManager or ProManager Partner during the connection process.</value>
</data>
<data name="Msg_QbConnection_Title" xml:space="preserve">
<value>QuickBooks Connection Request</value>
@@ -268,13 +268,13 @@
<value>Password</value>
</data>
<data name="Title_Login" xml:space="preserve">
<value>Login - Rome Online Partner</value>
<value>Login - ProManager Partner</value>
</data>
<data name="Title_Login_Header" xml:space="preserve">
<value>Rome Online Partner</value>
<value>ProManager Partner</value>
</data>
<data name="Title_Main" xml:space="preserve">
<value>Rome Online Partner | Rome Technologies</value>
<value>ProManager Partner | Web-Est</value>
</data>
<data name="Username" xml:space="preserve">
<value>Username</value>

View File

@@ -8,7 +8,7 @@
// </auto-generated>
//------------------------------------------------------------------------------
namespace RomeOnlinePartner.Properties {
namespace ProManagerPartner.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]

View File

@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="RomeOnlinePartner.Properties" GeneratedClassName="Settings">
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="ProManagerPartner.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="Username" Type="System.String" Scope="User">

View File

@@ -1,7 +1 @@
21080F2A8D8BEC1B0EAD01141BBBC56A69E120EB RomeOnlinePartner-1.1.0-full.nupkg 5957137
9E08BA6C1E2DB1295696713165AB25AADE94875F RomeOnlinePartner-1.1.1-delta.nupkg 98643
26F725C795EC01893BC36E5FC59F4ADFD390F88A RomeOnlinePartner-1.1.1-full.nupkg 5958856
637F563749852E516AF4D41E30324FB04499D205 RomeOnlinePartner-1.1.2-delta.nupkg 88517
A1110AE679B0ABAD08129B41C12399C3C588ABC9 RomeOnlinePartner-1.1.2-full.nupkg 5962013
BF0B893BC82219F385D83F44994D26AE0D3619CF RomeOnlinePartner-1.1.3-delta.nupkg 64235
DB8DCD6BD2B3F4CA790A8B25E8DD495144D1D196 RomeOnlinePartner-1.1.3-full.nupkg 5967310
8D61826DD6D6B26138D14962BBA992259C9A2FE9 ProManagerPartner-1.1.3-full.nupkg 5998889

View File

@@ -10,7 +10,7 @@ using GraphQL;
using Newtonsoft;
using Newtonsoft.Json.Linq;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public static class ARMSRoData
{

View File

@@ -5,7 +5,7 @@ using System.Text;
using System.Threading.Tasks;
using FileHelpers;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{

View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
using System.Windows;
using System.IO;
using RestSharp;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public static class AppMetaData
{
@@ -22,7 +22,7 @@ namespace RomeOnlinePartner.Utils
public static Boolean IsTest = false;
private static string workingDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
public static string globalScriptsPath = @"C:\Rome\PartnerScripts";
public static string globalScriptsPath = @"C:\Web-Est\PartnerScripts";
public static RestClient RestClient;

View File

@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public static class ApplicationExceptionHandler
{

View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
using Firebase.Auth;
using System.Timers;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public static class Auth
{

View File

@@ -3,7 +3,7 @@ using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace RomeOnlinePartner
namespace ProManagerPartner
{
public class BaseModel : INotifyPropertyChanged
{

View File

@@ -2,7 +2,7 @@
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace RomeOnlinePartner
namespace ProManagerPartner
{
public abstract class BaseViewModel : INotifyPropertyChanged
{

View File

@@ -8,7 +8,7 @@ using System.Threading.Tasks;
using DotNetDBF;
using Newtonsoft.Json.Linq;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
class CCCPartsPriceChange
{

View File

@@ -4,9 +4,9 @@ using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RomeOnlinePartner.Models;
using ProManagerPartner.Models;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public class CIECAMonitor : FileSystemWatcher
{

View File

@@ -8,7 +8,7 @@ using System.Threading.Tasks;
using DotNetDBF;
using Newtonsoft.Json.Linq;
namespace RomeOnlinePartner.Utils.Decoder
namespace ProManagerPartner.Utils.Decoder
{
class EstimateDecoder
{

View File

@@ -1,4 +1,4 @@
using RomeOnlinePartner.Models;
using ProManagerPartner.Models;
using System;
using System.Collections.Generic;
using System.IO;
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public static class DiskScan
{

View File

@@ -11,7 +11,7 @@ using System.Net.Http;
using Newtonsoft;
using Newtonsoft.Json.Linq;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public static class GraphQL
{

View File

@@ -1,9 +1,9 @@
<Window x:Class="RomeOnlinePartner.Utils.Growls.GrowlNotification"
<Window x:Class="ProManagerPartner.Utils.Growls.GrowlNotification"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:RomeOnlinePartner.Utils.Growls"
xmlns:local="clr-namespace:ProManagerPartner.Utils.Growls"
mc:Ignorable="d"
SizeToContent="WidthAndHeight"
AllowsTransparency="True"
@@ -11,7 +11,7 @@
ShowInTaskbar="False"
Topmost="True"
UseLayoutRounding="True"
Title="RomeOnlinePartner Notification"
Title="ProManagerPartner Notification"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular"
@@ -57,7 +57,7 @@
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Image Grid.RowSpan="2"
Source="../../ro-favicon.ico"
Source="../../favicon.ico"
Margin="4"
Width="24"></Image>
<TextBlock Grid.Column="1"

View File

@@ -15,7 +15,7 @@ using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace RomeOnlinePartner.Utils.Growls
namespace ProManagerPartner.Utils.Growls
{
public partial class GrowlNotification
{

View File

@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RomeOnlinePartner.Utils.Growls
namespace ProManagerPartner.Utils.Growls
{
public class Notification : INotifyPropertyChanged
{

View File

@@ -8,12 +8,12 @@ using System.Xml.Linq;
using Newtonsoft;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using RomeOnlinePartner.Models;
using ProManagerPartner.Models;
using ToastNotifications.Messages;
using System.Threading;
using System.Reflection;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public static class HTTPServer
{
@@ -29,7 +29,7 @@ namespace RomeOnlinePartner.Utils
//QuickBooks Execution Routes.
Route.Add("/qb/", (req, res, props) =>
{
hlog("Received a QuickBooks request from Rome Online");
hlog("Received a QuickBooks request from ProManager");
res.WithCORS();
res.Close();
}, "OPTIONS");
@@ -41,7 +41,7 @@ namespace RomeOnlinePartner.Utils
//Pinging based routes.
Route.Add("/ping/", (req, res, props) =>
{
hlog("Received a ping from Rome Online");
hlog("Received a ping from ProManager");
res.WithCORS();
res.Close();
}, "OPTIONS");
@@ -52,7 +52,7 @@ namespace RomeOnlinePartner.Utils
//FileScanning Routes
Route.Add("/scan/", (req, res, props) =>
{
hlog("Received a scan request from Rome Online");
hlog("Received a scan request from ProManager");
res.WithCORS();
res.Close();
}, "OPTIONS");
@@ -61,7 +61,7 @@ namespace RomeOnlinePartner.Utils
, "POST");
Route.Add("/import/", (req, res, props) =>
{
hlog("Received an import request from Rome Online");
hlog("Received an import request from ProManager");
res.WithCORS();
res.Close();
}, "OPTIONS");
@@ -71,7 +71,7 @@ namespace RomeOnlinePartner.Utils
Route.Add("/oec/", (req, res, props) =>
{
hlog("Received an OEC from Rome Online");
hlog("Received an OEC from ProManager");
res.WithCORS();
res.Close();
}, "OPTIONS");
@@ -81,7 +81,7 @@ namespace RomeOnlinePartner.Utils
Route.Add("/ppc/", (req, res, props) =>
{
hlog("Received an PPC from Rome Online");
hlog("Received an PPC from ProManager");
res.WithCORS();
res.Close();
}, "OPTIONS");
@@ -118,17 +118,17 @@ namespace RomeOnlinePartner.Utils
hlog = HttpLogger;
try
{
hlog("Rome Online connection server starting...");
hlog("ProManager connection server starting...");
HttpServer.ListenAsync(1337, token, Route.OnHttpRequestAsync).Wait();
}
catch (Exception Ex)
{
logger.Fatal("Unable to start HTTP server. " + Ex.ToString());
hlog("Rome Online connection server could not start. Please restart the partner to try again.");
hlog("ProManager connection server could not start. Please restart the partner to try again.");
App.Current.Dispatcher.Invoke(() =>
{
string msg = "Unable to connect to Rome Online Web App. Please ensure your firewall allows the connection.";
string msg = "Unable to connect to ProManager Web App. Please ensure your firewall allows the connection.";
Utils.Notifications.notifier.ShowError(msg);
});
Utils.SquirrelAwareHelper.AddHttpExcetion();
@@ -197,7 +197,7 @@ namespace RomeOnlinePartner.Utils
{
try
{
hlog("Processing QuickBooks request. Rome Online Record ID:" + request.Id);
hlog("Processing QuickBooks request. ProManager Record ID:" + request.Id);
XDocument response = XDocument.Parse(QuickBooksInterop.ProcessQBXmlRequestUnManaged(request.QbXML));
QbXmlResponse ResponseStatus = QuickBooksInterop.ParseResponseXml(response);

View File

@@ -5,14 +5,14 @@ using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using RomeOnlinePartner.Utils;
using RomeOnlinePartner.Models;
using RomeOnlinePartner.Utils.Growls;
using ProManagerPartner.Utils;
using ProManagerPartner.Models;
using ProManagerPartner.Utils.Growls;
using GraphQL;
using Newtonsoft.Json.Linq;
using ToastNotifications.Messages;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public static class JobProcessingQueue
{

View File

@@ -7,7 +7,7 @@ using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
class JsonPathConverter : JsonConverter
{

View File

@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public static class JsonExtensions
{

View File

@@ -6,7 +6,7 @@ using System.Security;
using System.Text;
using System.Threading.Tasks;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public static class LoginHelpers
{

View File

@@ -9,7 +9,7 @@ using ToastNotifications.Position;
using ToastNotifications.Messages;
using System.Windows;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public static class Notifications
{

View File

@@ -8,7 +8,7 @@ using System.Threading.Tasks;
using DotNetDBF;
using Newtonsoft.Json.Linq;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public static class OEConnection
{

View File

@@ -10,7 +10,7 @@ using System.IO;
using System.Timers;
using RestSharp;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public static class PPGMixData
{
@@ -194,7 +194,7 @@ v_paint_codes
new XElement("TransactionDate", DateTime.Now.ToString("yyyy-MM-hh:mm:ss"))
),
new XElement("Product",
new XElement("Name", "Rome Online"),
new XElement("Name", "ProManager"),
new XElement("Version", null)
)

View File

@@ -6,7 +6,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public static class PowerModeEventHandler
{

View File

@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RomeOnlinePartner.Utils.Queries
namespace ProManagerPartner.Utils.Queries
{
class JobsQueries
{

View File

@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RomeOnlinePartner.Utils.Queries
namespace ProManagerPartner.Utils.Queries
{
public static class VehicleQueries
{

View File

@@ -6,12 +6,12 @@ using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Linq;
using RomeOnlinePartner.Utils.Growls;
using ProManagerPartner.Utils.Growls;
using Interop.QBFC16;
using Interop.QBXMLRP2;
using ToastNotifications.Messages;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public static class QuickBooksInterop
{
@@ -20,8 +20,8 @@ namespace RomeOnlinePartner.Utils
private static RequestProcessor2 rp;
private static string maxVersion;
private static QBFileMode mode = QBFileMode.qbFileOpenDoNotCare;
private static string appID = "RomePartner";
private static string appName = "RomeOnlinePartner";
private static string appID = "ProManagerPartner";
private static string appName = "ProManagerPartner";
private static GrowlNotification Growler;
public static void ConnectToQuickBooks()

View File

@@ -1,7 +1,7 @@
using System;
using System.Windows.Input;
namespace RomeOnlinePartner
namespace ProManagerPartner
{
public class RelayCommand : ICommand
{

View File

@@ -7,7 +7,7 @@ using System.Threading.Tasks;
using Microsoft.Win32.TaskScheduler;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public static class ScheduledTaskConfig
{
@@ -19,12 +19,12 @@ namespace RomeOnlinePartner.Utils
try
{
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("Rome Online Partner - Paint Scale Connection Export");
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ProManager Partner - Paint Scale Connection Export");
if (existingTask != null)
{
TaskService.Instance.RootFolder.DeleteTask("Rome Online Partner - Paint Scale Connection Export");
TaskService.Instance.RootFolder.DeleteTask("ProManager Partner - Paint Scale Connection Export");
}
Microsoft.Win32.TaskScheduler.Task newTask = TaskService.Instance.AddTask("Rome Online Partner - Paint Scale Connection Export", QuickTriggerType.Hourly, "powershell.exe", @"-ExecutionPolicy Bypass -File " + AppMetaData.globalScriptsPath + @"\PaintScaleExport.ps1");
Microsoft.Win32.TaskScheduler.Task newTask = TaskService.Instance.AddTask("ProManager Partner - Paint Scale Connection Export", QuickTriggerType.Hourly, "powershell.exe", @"-ExecutionPolicy Bypass -File " + AppMetaData.globalScriptsPath + @"\PaintScaleExport.ps1");
newTask.Run();
@@ -41,12 +41,12 @@ namespace RomeOnlinePartner.Utils
try
{
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("Rome Online Partner - ARMS");
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ProManager Partner - ARMS");
if (existingTask != null)
{
TaskService.Instance.RootFolder.DeleteTask("Rome Online Partner - ARMS");
TaskService.Instance.RootFolder.DeleteTask("ProManager Partner - ARMS");
}
Microsoft.Win32.TaskScheduler.Task newTask = TaskService.Instance.AddTask("Rome Online Partner - ARMS", QuickTriggerType.Daily, "powershell.exe", @"-ExecutionPolicy Bypass -File " + AppMetaData.globalScriptsPath + @"\ArmsExport.ps1");
Microsoft.Win32.TaskScheduler.Task newTask = TaskService.Instance.AddTask("ProManager Partner - ARMS", QuickTriggerType.Daily, "powershell.exe", @"-ExecutionPolicy Bypass -File " + AppMetaData.globalScriptsPath + @"\ArmsExport.ps1");
newTask.Run();

View File

@@ -1,7 +1,7 @@
#Verify that the partner is running. If not, strat it.
if((Get-Process -Name RomeOnlinePartner -ErrorAction SilentlyContinue) -eq $null){
& "$Env:USERPROFILE\AppData\Local\RomeOnlinePartner\RomeOnlinePartner.exe"
if((Get-Process -Name ProManagerPartner -ErrorAction SilentlyContinue) -eq $null){
& "$Env:USERPROFILE\AppData\Local\ProManagerPartner\ProManagerPartner.exe"
}
$PSversion = $PSVersionTable.PSVersion.Major
@@ -11,7 +11,7 @@ function v2 {
# Post request to the partner to trigger the export.
Invoke-WebRequest -Uri http://localhost:1337/arms/rodata/ -Method POST
#Start the Arms Uploader.
Start-Process -FilePath "C:\Rome\Applications\ARMSUploader\ROUpload.exe"
Start-Process -FilePath "C:\Web-Est\Applications\ARMSUploader\ROUpload.exe"
}
function v1 {
@@ -23,7 +23,7 @@ ResponseStream = $Response.GetResponseStream()
ReadStream = New-Object System.IO.StreamReader $ResponseStream
#Data=$ReadStream.ReadToEnd()
#Start the Arms Uploader.
Start-Process -FilePath "C:\Rome\Applications\ARMSUploader\ROUpload.exe"
Start-Process -FilePath "C:\Web-Est\Applications\ARMSUploader\ROUpload.exe"
}

View File

@@ -1,7 +1,7 @@
#Verify that the partner is running. If not, strat it.
if((Get-Process -Name RomeOnlinePartner -ErrorAction SilentlyContinue) -eq $null){
& "$Env:USERPROFILE\AppData\Local\RomeOnlinePartner\RomeOnlinePartner.exe"
if((Get-Process -Name ProManagerPartner -ErrorAction SilentlyContinue) -eq $null){
& "$Env:USERPROFILE\AppData\Local\ProManagerPartner\ProManagerPartner.exe"
}
$PSversion = $PSVersionTable.PSVersion.Major

View File

@@ -12,7 +12,7 @@ Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\imexmedia\shell\open]
[HKEY_CURRENT_USER\Software\Classes\imexmedia\shell\open\command]
@="\"C:\\Rome\\PartnerScripts\\imexmedia.bat\" %1"
@="\"C:\\Web-Est\\PartnerScripts\\imexmedia.bat\" %1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
"ExternalProtocolDialogShowAlwaysOpenCheckbox"=dword:00000001

View File

@@ -9,7 +9,7 @@ using Microsoft.Win32.TaskScheduler;
using System.IO;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public static class SquirrelAwareHelper
{
@@ -69,10 +69,10 @@ namespace RomeOnlinePartner.Utils
//The paint scale accidentally got added to all people running v31. This was added to remove it.
try
{
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("Rome Online Partner - Paint Scale Connection");
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ProManager Partner - Paint Scale Connection");
if (existingTask != null)
{
TaskService.Instance.RootFolder.DeleteTask("Rome Online Partner - Paint Scale Connection");
TaskService.Instance.RootFolder.DeleteTask("ProManager Partner - Paint Scale Connection");
}
}
catch (Exception ex)
@@ -150,10 +150,10 @@ namespace RomeOnlinePartner.Utils
mgr.RemoveShortcutForThisExe();
try
{
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("Rome Online Partner - Paint Scale Connection Export"); //This is the old scale path. This was accidentally added for everyone.
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ProManager Partner - Paint Scale Connection Export"); //This is the old scale path. This was accidentally added for everyone.
if (existingTask != null)
{
TaskService.Instance.RootFolder.DeleteTask("Rome Online Partner - Paint Scale Connection");
TaskService.Instance.RootFolder.DeleteTask("ProManager Partner - Paint Scale Connection");
}
}
catch (Exception ex)
@@ -162,10 +162,10 @@ namespace RomeOnlinePartner.Utils
}
try
{
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("Rome Online Partner - Paint Scale Connection Export");
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ProManager Partner - Paint Scale Connection Export");
if (existingTask != null)
{
TaskService.Instance.RootFolder.DeleteTask("Rome Online Partner - Paint Scale Connection Export");
TaskService.Instance.RootFolder.DeleteTask("ProManager Partner - Paint Scale Connection Export");
}
}
catch (Exception ex)
@@ -174,10 +174,10 @@ namespace RomeOnlinePartner.Utils
}
try
{
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("Rome Online Partner - ARMS");
Microsoft.Win32.TaskScheduler.Task existingTask = TaskService.Instance.FindTask("ProManager Partner - ARMS");
if (existingTask != null)
{
TaskService.Instance.RootFolder.DeleteTask("Rome Online Partner - ARMS");
TaskService.Instance.RootFolder.DeleteTask("ProManager Partner - ARMS");
}
}
catch (Exception ex)

View File

@@ -5,7 +5,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public class OpenMainWindowCommand : ICommand
{

View File

@@ -7,7 +7,7 @@ using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public class BoolVisibilityConverter : IValueConverter
{

View File

@@ -10,7 +10,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace RomeOnlinePartner.Utils
namespace ProManagerPartner.Utils
{
public static class UpdateHandler
{
@@ -35,7 +35,7 @@ namespace RomeOnlinePartner.Utils
private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();
public const string UpdatePath = @"http://partner.romeonline.io/";
public const string UpdatePath = @"http://partner.promanager.web-est.com/";
public static async Task<bool> AreUpdatesAvailable()
{

View File

@@ -2,7 +2,7 @@
using System.Windows;
using System.Windows.Input;
namespace RomeOnlinePartner.ViewModels
namespace ProManagerPartner.ViewModels
{
public partial class LoginViewModel : BaseViewModel
{

View File

@@ -7,7 +7,7 @@ using System.Threading.Tasks;
using System.Windows;
namespace RomeOnlinePartner.ViewModels
namespace ProManagerPartner.ViewModels
{
public partial class LoginViewModel : BaseViewModel
{

View File

@@ -6,7 +6,7 @@ using System.Security;
using System.Text;
using System.Threading.Tasks;
namespace RomeOnlinePartner.ViewModels
namespace ProManagerPartner.ViewModels
{
public partial class LoginViewModel : BaseViewModel
{

View File

@@ -2,7 +2,7 @@
using System.Windows;
using System.Windows.Input;
namespace RomeOnlinePartner.ViewModels
namespace ProManagerPartner.ViewModels
{
public partial class MainViewModel : BaseViewModel
{

View File

@@ -1,5 +1,5 @@
using RomeOnlinePartner.Models;
using RomeOnlinePartner.Utils.Growls;
using ProManagerPartner.Models;
using ProManagerPartner.Utils.Growls;
using GraphQL.Client;
using GraphQL;
using Newtonsoft.Json;
@@ -16,7 +16,7 @@ using Firebase.Auth;
using ToastNotifications.Messages;
using Microsoft.Win32;
namespace RomeOnlinePartner.ViewModels
namespace ProManagerPartner.ViewModels
{
public partial class MainViewModel : BaseViewModel
{
@@ -109,7 +109,7 @@ namespace RomeOnlinePartner.ViewModels
}
// string msg = "An update to Rome Online Partner is Available. It will be automatically downloaded and applied.";
// string msg = "An update to ProManager Partner is Available. It will be automatically downloaded and applied.";
// Utils.Notifications.notifier.ShowInformation(msg);
// logger.Debug("Updates are available! Installing.");
// try
@@ -399,7 +399,7 @@ namespace RomeOnlinePartner.ViewModels
logger.Trace(newLine);
}
private FirebaseAuthLink al = RomeOnlinePartner.Utils.Auth.authlink;
private FirebaseAuthLink al = ProManagerPartner.Utils.Auth.authlink;
public async Task TestGql()
{

View File

@@ -4,11 +4,11 @@ using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RomeOnlinePartner.Utils.Growls;
using RomeOnlinePartner.Models;
using ProManagerPartner.Utils.Growls;
using ProManagerPartner.Models;
using System.Reflection;
namespace RomeOnlinePartner.ViewModels
namespace ProManagerPartner.ViewModels
{
public partial class MainViewModel : BaseViewModel
{

View File

@@ -1,16 +1,16 @@
<Window x:Class="RomeOnlinePartner.Views.Login"
<Window x:Class="ProManagerPartner.Views.Login"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:RomeOnlinePartner.Views"
xmlns:vm="clr-namespace:RomeOnlinePartner.ViewModels"
xmlns:local="clr-namespace:ProManagerPartner.Views"
xmlns:vm="clr-namespace:ProManagerPartner.ViewModels"
mc:Ignorable="d"
Title="{x:Static p:Resources.Title_Login}"
Height="325"
Width="475"
xmlns:p="clr-namespace:RomeOnlinePartner.Properties"
xmlns:util="clr-namespace:RomeOnlinePartner.Utils"
xmlns:p="clr-namespace:ProManagerPartner.Properties"
xmlns:util="clr-namespace:ProManagerPartner.Utils"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular"
@@ -49,14 +49,9 @@
<StackPanel>
<StackPanel Orientation="Horizontal">
<Image Source="/Assets/ro-favicon.png"
<Image Source="/Assets/logo.png"
Height="48"
Width="48"
VerticalAlignment="Center" />
<TextBlock Text="{x:Static p:Resources.Title_Login_Header}"
Style="{StaticResource MaterialDesignHeadline6TextBlock}"
VerticalAlignment="Center" />
</StackPanel>
<StackPanel Orientation="Vertical"

View File

@@ -13,7 +13,7 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace RomeOnlinePartner.Views
namespace ProManagerPartner.Views
{
/// <summary>
/// Interaction logic for Login.xaml

View File

@@ -1,13 +1,13 @@
<Window x:Class="RomeOnlinePartner.Views.Main"
<Window x:Class="ProManagerPartner.Views.Main"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:p="clr-namespace:RomeOnlinePartner.Properties"
xmlns:properties="clr-namespace:RomeOnlinePartner.Properties"
xmlns:util="clr-namespace:RomeOnlinePartner.Utils"
xmlns:vm="clr-namespace:RomeOnlinePartner.ViewModels"
xmlns:p="clr-namespace:ProManagerPartner.Properties"
xmlns:properties="clr-namespace:ProManagerPartner.Properties"
xmlns:util="clr-namespace:ProManagerPartner.Utils"
xmlns:vm="clr-namespace:ProManagerPartner.ViewModels"
xmlns:tb="http://www.hardcodet.net/taskbar"
mc:Ignorable="d"
Title="{x:Static p:Resources.Title_Main}"
@@ -56,7 +56,7 @@
Height="8" />
<tb:TaskbarIcon DockPanel.Dock="Top"
IconSource="../assets/ro-favicon.ico"
IconSource="../assets/favicon.ico"
DoubleClickCommand="{Binding OpenMainWindowCommand}"
DoubleClickCommandParameter="{Binding ElementName=MainWindow}"
PopupActivation="LeftClick"
@@ -153,13 +153,13 @@
Margin="8"
Content="{x:Static p:Resources.Label_RemoveAllPaths}" />
<Separator />
<Button Command="{Binding ConfigurePaintScaleCommand, UpdateSourceTrigger=PropertyChanged}"
<!--<Button Command="{Binding ConfigurePaintScaleCommand, UpdateSourceTrigger=PropertyChanged}"
Margin="8"
Content="{x:Static p:Resources.Label_ConfigurePaintScale}" />
Content="{x:Static p:Resources.Label_ConfigurePaintScale}" />-->
<Button Command="{Binding ConfigureArmsExportCommand, UpdateSourceTrigger=PropertyChanged}"
<!--<Button Command="{Binding ConfigureArmsExportCommand, UpdateSourceTrigger=PropertyChanged}"
Margin="8"
Content="{x:Static p:Resources.Label_ConfigureArmsExport}" />
Content="{x:Static p:Resources.Label_ConfigureArmsExport}" />-->
<!--<Button Command="{Binding TestCommand}"
Margin="8"
Content="Test Command" />-->
@@ -253,7 +253,7 @@
ContentStringFormat=""
Grid.Column="1"/>
</Grid>
<Grid DockPanel.Dock="Top"
<!--<Grid DockPanel.Dock="Top"
HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*" />
@@ -268,8 +268,8 @@
<Button Command="{Binding BrowseForEmsFolderCommand, UpdateSourceTrigger=PropertyChanged}"
Margin="8"
Content="{x:Static p:Resources.Label_BrowseForEmsExport}" Grid.Column="1" />
</Grid>
<Grid DockPanel.Dock="Top"
</Grid>-->
<!--<Grid DockPanel.Dock="Top"
HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*" />
@@ -285,8 +285,8 @@
Margin="8"
Content="{x:Static p:Resources.Label_BrowseForPpcExport}"
Grid.Column="1" />
</Grid>
<Grid DockPanel.Dock="Top"
</Grid>-->
<!--<Grid DockPanel.Dock="Top"
HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*" />
@@ -301,12 +301,12 @@
<Button Command="{Binding BrowseForPaintScalePathCommand, UpdateSourceTrigger=PropertyChanged}"
Margin="8"
Content="{x:Static p:Resources.Label_BrowsePaintScalePath}" Grid.Column="1"/>
</Grid>
</Grid>-->
<Grid DockPanel.Dock="Top"
<!--<Grid DockPanel.Dock="Top"
HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*" />
@@ -326,8 +326,8 @@
<Button Command="{Binding BrowseForPaintScaleImportPathCommand, UpdateSourceTrigger=PropertyChanged}"
Margin="8"
Content="{x:Static p:Resources.Label_BrowsePaintScaleImportPath}" Grid.Column="2"/>
</Grid>
<Grid DockPanel.Dock="Top"
</Grid>-->
<!--<Grid DockPanel.Dock="Top"
HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*" />
@@ -342,7 +342,7 @@
<Button Command="{Binding BrowseForArmsPathPathCommand, UpdateSourceTrigger=PropertyChanged}"
Margin="8"
Content="{x:Static p:Resources.Label_BrowseArmsExportPath}" Grid.Column="1"/>
</Grid>
</Grid>-->
<TextBox Height="Auto"

View File

@@ -12,7 +12,7 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace RomeOnlinePartner.Views
namespace ProManagerPartner.Views
{
/// <summary>
/// Interaction logic for Main.xaml

Binary file not shown.

Before

Width:  |  Height:  |  Size: 766 B

After

Width:  |  Height:  |  Size: 5.1 KiB