|
| 1 | +<!-- ABOUT THE PROJECT --> |
| 2 | +## About The Project |
| 3 | +<a name="readme-top"></a> |
| 4 | +<img src="Screenshot.png" width="400" /> |
| 5 | + |
| 6 | +This application will help you decode the response from the fiscal device. |
| 7 | + |
| 8 | +How: |
| 9 | +* It accepts numbers in HEX format as input.<br /> |
| 10 | +Removes all invalid characters. Removes numbers less than **127**.<br /> |
| 11 | +For example: *04H 80H 80H C0H 80H 80H B8H 05H* > *80 80 C0 80 80 B8*. |
| 12 | +* Converts to bytes *80 80 C0 80 80 B8 FF FF* > *10000000 10000000 11000000 10000000 10000000 10111000*. |
| 13 | +* Parse on existing <a href="#add-documentation">documentation</a>. |
| 14 | + |
| 15 | +Of course, you will have to make changes to the program if you are interested in other groups of <a href="#add-target-devices-to-application-process">fiscal devices</a> or other <a href="#add-manufacturer">manufacturers</a>. |
| 16 | + |
| 17 | +<!-- GETTING STARTED --> |
| 18 | +## Getting Started |
| 19 | + |
| 20 | +Something you might want to change before using the product. |
| 21 | + |
| 22 | +### Add manufacturer |
| 23 | + |
| 24 | + |
| 25 | +Create new Manufacturer in Domain/Manufacturer. |
| 26 | + ```csharp |
| 27 | + public sealed class *YourManufacturer* : BaseManufacturer |
| 28 | + { |
| 29 | + ... |
| 30 | + } |
| 31 | + ``` |
| 32 | + |
| 33 | +### Add documentation |
| 34 | + |
| 35 | +Add new line in property **AllModels**. Find at Domain/Manufacturer/*YourManufacturer*.cs |
| 36 | + ```csharp |
| 37 | + public override Dictionary<(string[], Country), Dictionary<(int, int), string>>? AllModels => new() |
| 38 | + { |
| 39 | + {(new string[] { "DP-05", "DP-25", "DP-35", "WP-50", "DP-150" }, Country.BG), Document1! }, |
| 40 | + {(new string[] { "YourModel1", "YourModel2", "YourModel3" }, Country.YourCountry), YourDocument! }, |
| 41 | + ... |
| 42 | + }; |
| 43 | + ``` |
| 44 | + P.S. Example for document you can find in *BaseManufacturer.cs* <br /> |
| 45 | + P.P.S. Usually in documantation from manufacturer FD first Bit from left have name 0.7, but we are call it 0.0 |
| 46 | + |
| 47 | +### Add target devices to application process |
| 48 | + |
| 49 | +Add new line in method **InitializeDevices**. Find at Application/MainViewModel.cs |
| 50 | + ```csharp |
| 51 | + private static List<IDeviceModels> InitializeDevices() => new List<IDeviceModels>() |
| 52 | + { |
| 53 | + new DeviceModels(Datecs.Instance, 6 , Country.BG , new string[] { "DP-05", "DP-25", "DP-35", "WP-50", "DP-150" }), |
| 54 | + new DeviceModels(YourManufacturer.Instance, 6, Country.YourCountry, new string[] { "YourModel1" }), |
| 55 | + ... |
| 56 | + }; |
| 57 | + ``` |
0 commit comments