dentych / i4prj4 Goto Github PK
View Code? Open in Web Editor NEWSemesterprojekt 4 - Kasseapparat
Semesterprojekt 4 - Kasseapparat
DONNISH
We have to figure out when to use our own BackendCategory and BackendProduct and when it is enough to use Category and Product from SharedLib
Exceptions are thrown when we try to create Encode a CreateProductCategoryCmd with the Protocol in SharedLib. This is because the namespace is "SharedLib.Protocol.CmdMarshallers.ProductCategoryMarshallers" where the Encoder (and Decoder) method is searching for just "SharedLib.Protocol.CmdMarshallers"
But it shows stuff, which is nice
Reproduce:
When you delete a category, all products in that category should be moved to another category chosen by the user.
CentralServer is missing handling of all category commands
Settings til ip og port mv.
When new commands have arrived we need to check if our socketevents and modelhandlers are up to date.
C.E.D. = Create, Edit, Delete
CatalogueDetailsCmd is sent back only with a list of the categories. The problem is, the categories does NOT contain a list of products, which is also needed.
Categories bliver delt vha. constructor injection i view - der skal implementeres en event aggregator i stedet for.
Error message:
An unhandled exception of type 'System.NotSupportedException' occurred in PresentationFramework.dll
Additional information: This type of CollectionView does not support changes to its SourceCollection from a thread different from the Dispatcher thread.
Specifically it fails here: https://github.com/dentych/I4PRJ4/blob/master/Backend/Backend/Models/Datamodels/BackendProductCategoryList.cs#L65
The event handlers are called from the async socketconnection thread, which then tries to update the ObservableCollection. It is denied that change with a NotSupportedException. This is because the ObservableCollection object is created and owned by another thread (main thread)..... This kind of means we have to run everything through Application.Current.Dispatcher.Invoke or something of the kind.....
FUCKING THREADS.
Could be awesome if it was possible to rightclick at a product/category and select "Edit" or "Delete". Contextmenu 👍
AddProduct and category IDs are not working as intended. It is sending wrong IDs to the server when adding new products.
Product created and category with ID '3' chosen. Backend sends a request with category ID '0' to the central server.
https://tychsen.me/up/11-4e3a.png
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.