All Projects → microsoft → TailwindTraders-PointOfSale

microsoft / TailwindTraders-PointOfSale

Licence: MIT license
Tailwind Traders - Point of Sale Legacy Migration to Microsoft Azure

Programming Languages

C#
18002 projects
vba
158 projects
CSS
56736 projects
HTML
75241 projects
typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to TailwindTraders-PointOfSale

Cropper
Point and shoot screen captures
Stars: ✭ 100 (+525%)
Mutual labels:  winforms
Winformanimation
A simple library for animating controls/values in .Net WinForm (.Net 3.5 and later). Key frame (Path) based and fully customizable.
Stars: ✭ 157 (+881.25%)
Mutual labels:  winforms
Quick Picture Viewer
🖼️ Lightweight, versatile desktop image viewer for Windows. The best replacement for the default Windows photo viewer.
Stars: ✭ 237 (+1381.25%)
Mutual labels:  winforms
Imagelistview
A .NET listview control for image files with asynchronously loaded thumbnails.
Stars: ✭ 113 (+606.25%)
Mutual labels:  winforms
Ookii Dialogs Winforms
Common dialog classes for Windows Forms applications
Stars: ✭ 130 (+712.5%)
Mutual labels:  winforms
Opentween
TwitterクライアントのTweenからフォークしたオープンなプロジェクト
Stars: ✭ 203 (+1168.75%)
Mutual labels:  winforms
Reactivemvvm
Cross-platform ReactiveUI sample app built for a talk at MSK .NET conf.
Stars: ✭ 94 (+487.5%)
Mutual labels:  winforms
AsteroidsWasm
Collection of applications based on a single C# .NET Standard project running in: Blazor Client (WebAssembly), Blazor Server, Electron, WPF, WinForms, Xamarin
Stars: ✭ 136 (+750%)
Mutual labels:  winforms
Netsparkle
NetSparkle is a C# software update framework for .NET developers compatible with .NET Core, WinForms, WPF, and Avalonia; uses Ed25519 or DSA signatures! View basic usage here in the README or visit our website for code docs. 2.0 is stable but still in preview.
Stars: ✭ 154 (+862.5%)
Mutual labels:  winforms
Nodeeditorwinforms
Node based user control / editor for Windows Forms
Stars: ✭ 232 (+1350%)
Mutual labels:  winforms
Winforms
A collection of custom Controls for Windows.Forms
Stars: ✭ 115 (+618.75%)
Mutual labels:  winforms
Tweetduck
A Windows Client for TweetDeck. Not affiliated with Twitter.
Stars: ✭ 128 (+700%)
Mutual labels:  winforms
Openlivewriter
An open source fork of Windows Live Writer
Stars: ✭ 2,398 (+14887.5%)
Mutual labels:  winforms
Realtaiizor
C# WinForm UI/UX Component Library
Stars: ✭ 109 (+581.25%)
Mutual labels:  winforms
Ruler
Simple on-screen pixel ruler.
Stars: ✭ 251 (+1468.75%)
Mutual labels:  winforms
Musicdecryptor
酷狗、网易等音乐缓存文件转mp3
Stars: ✭ 100 (+525%)
Mutual labels:  winforms
Circularprogressbar
Circular ProgressBar is a custom control for WinForm with animation.
Stars: ✭ 191 (+1093.75%)
Mutual labels:  winforms
SimpleCad
A basic CAD-like control surface for winforms.
Stars: ✭ 81 (+406.25%)
Mutual labels:  winforms
Krypton-Toolkit-Suite-Extended-NET-5.470
An extension to the Krypton Toolkit suite of controls for .NET framework 4.7
Stars: ✭ 51 (+218.75%)
Mutual labels:  winforms
Metroset Ui
Windows Forms Metro Skin Style, Make The Applications With Metro Styles. see more https://n-a-r-w-i-n.github.io/MetroSet-UI/
Stars: ✭ 228 (+1325%)
Mutual labels:  winforms
page_type name languages products description urlFragment
sample
Tailwind Traders Point of Sale
csharp
visual basic
dotnet
VB6
WinForms
Mobilize.net WebMAP
ASP.NET
Azure App Services
Add 150 character max description
update-this-to-unique-url-stub

Tailwind Traders - Point of Sale Legacy Migration to Azure

This repo is now archived, so there will be no additional work done here. We still encorage folks to check out the content to learn more about modernizing your legacy applicaitons to Azure.

PointOfSale

Check out the live website: https://pos.tailwindtraders.com

Tailwind Traders business has technology at its heart. It blends the ease of online shopping with the familiarity of a mom-n-pop corner hardware store, and is quickly making a name for itself in the relatively new virtual hardware market. Like many modern organizations, it has evolving internal and external technology needs, and it approaches each moment of transformation with confidence.

Some of its important assets however are starting to age. This repository shows the example of a retail store Point of Sale (POS) application written in VB6 using an Access database and how it is migrated to ASP.NET and deploy to Azure using Mobilize.net Microsoft's Partner solution.

Note: This app uses backend services detailed in the Backend repository.

Table of content

New to Microsoft Azure?

You will need an Azure subscription to work with this demo code. You can:

  • Open an account for free Azure subscription. You get credits that can be used to try out paid Azure services. Even after the credits are used up, you can keep the account and use free Azure services and features, such as the Web Apps feature in Azure App Service.
  • Activate Visual Studio subscriber benefits. Your Visual Studio subscription gives you credits every month that you can use for paid Azure services.
  • Create an Azure Student Account and get free credit when you create your account.

Learn more about it with Microsoft Learn - Introduction to Azure.

Repositories

For this demo reference, we built several consumer and line-of-business applications and a set of backend services. You can find all repositories in the following locations:

Resources

Folder / Files Description
Source\VB6 POS VB6 version of the application.
Source\WinForms POS WinForms migrated version of the VB6 application.
Source\Web .NET Core Web Application of Tailwind POS.
Tools\WebMAP Mobilize.net WebMAP migration tool.
.gitignore Define what to ignore at commit time.
CHANGELOG.md List of changes to the sample.
CONTRIBUTING.md Guidelines for contributing to the sample.
README.md This README file.
LICENSE The license for the sample.

Migrations Tutorials

VB6 to WinForms

VBUC - Visual Basic Upgrade Companion

VBUC is a Moblize.net product capable of VB6 to VB.NET or WinForms migrations. For more information about this product click here.

For support and sales you can email Info or Will Vasquez.

The support forum for VBUC can he found here

To migrate TailwindPOS follow the next steps

1. Create a new VBUC project

Start the VBUC desktop app and click the new project icon.

Next, choose a proper project name and set the source directory where the VB6 project file TailwindPOS.vbp is located. Then, set the output directory for your migration.

2. Resolve References

Sometimes there might be some unresolved references that the VBUC can not resolve by itself, so they have to be set manually by right clicking it and selecting the option Set Reference Manually.

If you are having a hard time looking for unresolved references, take a look a our TLB Github Repo. The reference you are looking for might be there.

3. Upgrade Options

Choose the upgrade options for your project. This TailwindPOS demo uses the MSXML2 library, so be sure to choose the option COM Interop before confirming the options if you want to keep using the same library in the migrated app.

4. Upgrade Process

Before starting the upgrade, choose the target ASP.NET framework version and choose how you want to include our code helpers in the migrated app, for this demo we use .NET framework 4.7 and Binary Helpers Integration option.

Next, start the migration by clicking Upgrade Projects and wait for the process to end.

After the process ends, open your migrated solution and compile your app.

5. Resolve migration conflicts

After you start your migrated app, a window will show you the next warning.

This means that VBUC could not migrate some code parts, this can happen for multiple reasons. In this demo, the line conn.setCursorLocation(CursorLocationEnum.adUseClient); is not needed anymore, but the migrator does not know that. To fix this warning just comment the code line in the Main.cs file.

Finally, move the files POS.mdb and TailwindPOS.ini in the VB6 source directory of the TailwindPOS to the bin directory in the migration output directory.

6. Running the migrated app

Run the new WinForms version of TailwindPOS.

NOTE: This application uses OLEDB to access MSACCESS. You can use OleDB on .NETCore 3.1 but some of the drivers are architecture specific. You can download the Microsoft Access Database Engine 2010 Redistributable for 32 or 64. If for example you install the 32 bit version then add:

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <Prefer32Bit>true</Prefer32Bit>
    <PlatformTarget>x86</PlatformTarget>
  </PropertyGroup>

WinForms To Web

WebMAP

WebMAP is a Mobilize.net product capable of migrating WinForms apps to .NET core and Angular. For more information about this product click here.

For support and sales you can email Will Vasquez.

Prerequisites

  • Contact Mobilize.net to request a WebMAP license required in the migration process.
  • Download and install node.js.
  • Run the command npm install yarn to install yarn.
  • Install Angular by running the command npm install -g @angular/cli.

These steps are required to migrate and install dependencies of your migrated app.

1.Migration process

Run the convertion tool using the following command.

./Mobilize.WFNetMAP.ConversionTool.exe -i <YourSolutionFile.sln> -o <output directory> -l <License Path>  --ByRefFeature "off" --UseProductionNugets

2. Installing dependencies

First, add the new dependencies registry by running the following command.

npm config set registry https://www.myget.org/F/mobilizewebmap/auth/559d63b6-5f30-45eb-8acb-d5f7cb2858bc/npm/

After the registry was added, install the app Angular dependencies, go to the tailwindpos-angular folder located inside the migrated app directory and run the following command

yarn

This will automatically install all the required dependencies needed for the project. After the installation finished, run the following command to build the Angular application.

ng build

4. Running the app

Before compiling and running the app, copy the files POS.mdb and TailwindPOS.ini to the migrated app root directory. After doing that just run your fresh new TailwindPOS web app.

5. Modifying styles

You can modify your app styles according to your preferences. In the directory Documents/TailwindTradersBrandingResources there is a modified style.css file, copy this file to tailwindpos-angular\src directory and recompile the app by running the command

ng build

6. Deployment to Microsoft Azure

Migrated web apps can be easily deployed to Azure cloud just follow the next steps.

7. Migrate your Database - Access to SQL

A web application with a MS Access database?. It sounds like an outdated app, specially if you are looking to deploy the app into cloud. So before deploying your fresh new app, migrate the POS.mdb Access database to an instance of Microsoft SQL Server in Azure. For that your should first download and install MS SQL Migration Assistant for Access (SSMA). Then follow the next steps.

  1. Create a new SSMA project.

  2. Connect to Access.

  3. Connect to SQL server.

  1. Start the migration.

  1. Check your migrated DB in your Azure portal.

Before starting your Azure deployment, first go to the App.config file of the web app and change it to the following.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="AdoFactories" type="UpgradeHelpers.DB.AdoFactoriesConfigurationSection, UpgradeHelpers.DB.Essentials" allowExeDefinition="MachineToApplication" allowLocation="true" />
    <section name="AdoIdentityColumns" type="UpgradeHelpers.DB.AdoIdentityColumnsConfigurationSection, UpgradeHelpers.DB.Essentials" allowExeDefinition="MachineToApplication" allowLocation="true" />
  </configSections>
  <connectionStrings>
  </connectionStrings>
  <AdoFactories>
    <!--
    
    The following section declares some of the most common factories. It can be modified in order to accomplish your needs.
	The factory declaration with the "isdefault" attribute set to true will be used by the upgraded application as the current provider factory.
    
    The database type attribute can take one of the following values
      * SQLServer: when the application interacts wiht Ms SQL Server
      * Oracle: when the application interacts wiht Oracle
      * Access: when the application interacts wiht Ms Access
      * Undefined: when none of the previous is being used
    
    -->
    <Factories>
      <add name="SQLServer" factorytype="System.Data.SqlClient" isdefault="true" databasetype="SQLServer" />
      <!-- MS SQL Server -->
      <add name="Oracle" factorytype="System.Data.OracleClient" isdefault="false" databasetype="Oracle" />
      <!-- Oracle -->
      <add name="Oledb" factorytype="System.Data.OleDb" isdefault="false" databasetype="Access" />
      <!-- Any database through Oledb -->
      <add name="ODBC" factorytype="System.Data.Odbc" isdefault="false" databasetype="Access" />
      <!-- Any database through ODBC -->
    </Factories>
  </AdoFactories>
  <AdoIdentityColumns>
  </AdoIdentityColumns>
</configuration>

Then change the connection string in the TailwindPOS.ini file.

[Connection String]
DatabaseConnectionString = Your SQL Server Connection String

Note: Also include the TailwindPOS.ini file in the project and set its property Copy to output directory to Copy Always

Finally publish and your application is now running in an Azure App Service.

About Mobilize.net

Mobilize.Net accelerates and simplifies the transformation of software applications to .NET, web, mobile, and cloud platforms. Millions of developers have used Mobilize.Net technology to successfully modernize billions of lines of code. Mobilize.Net solutions enable customers to reduce risk, cost, and time while moving applications to the platforms businesses demand today. Mobilize.Net migration technology is Microsoft's chosen solution for Visual Studio and MSDN customers. The privately-held Mobilize.Net is based in Bellevue, WA, and is led by former Microsoft Corporate Vice President, Tom Button. For more information, please go to https://www.mobilize.net.

For support and sales you can email Will Vasquez.

MobilizeLogo

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].