May 23, 2019 04:31 PM
(This post was last modified: May 23, 2019 05:04 PM by gua.)
Ok guys so i got job offer. To build whole business system for one store. Let me first show u img how it need to look. Keep in mind that clients have similar stuff already in use but it is too bugy and old so they want me to build new system from scratch .
https://ibb.co/Sc4Wfr4
Here is an image.
S1 and S2 represent Store 1 and Store 2.
In S1 and S2 we need to have desktop apps built in Delphi. This app will read Database that is written in one Excel file. That excel file have product id's, categories,names,prices and much more... S1 and S2 have their own copy of database and they are 99% same.
When customer buy something in S1 , worker there first check in local excel ( database )file from delphi app and then edit excel file thru delphi app.
They synchronize local databases in S1 and S2 over DB server. Why they use this aproach:
1.They dont need to have 100% accurate realtime resoults.
2.In case they lose internet or electricity they can update local excel file and when they get power back they can send that file to remote server.
3.They only need once a day to synhronize their local dbs so they do upload and donwload only 1-2 times a day. Ofc they can do it any time but there is no need for that..
As u see in image i would like to display products and product info from the same Excel file that is used to synchronize S1 and S2, so people can browse products online and buy stuff online. When people order stuff online i need to send e mail to S1 and after that workers in S1 will update local excel file in S1 and upload it to DB again.
My questions are is this best way to do it ? I mean i need to do it this way since they want me to do this way but any suggestions is acceptable ..
Can delphi do this ? What is best technology to use on server ? I wrote php/laravel but if u have any other solutions please tell me .. Really any info is welcomed .. After writing this i will start googling but i wanted to hear your opinions first, thanks 👍
EDIT:
Lets try to brake this topic..
What is best way to perform crud operations on local excel file with delphi ? I saw file , it have around 6000 rows filled with products.
Every product have own image , but it is in separate folder and it can be loaded every time when somebody select row
Whats best way to perform search
and most important what is the best way to upload and retrieve Excel file from remote server ?
https://ibb.co/Sc4Wfr4
Here is an image.
S1 and S2 represent Store 1 and Store 2.
In S1 and S2 we need to have desktop apps built in Delphi. This app will read Database that is written in one Excel file. That excel file have product id's, categories,names,prices and much more... S1 and S2 have their own copy of database and they are 99% same.
When customer buy something in S1 , worker there first check in local excel ( database )file from delphi app and then edit excel file thru delphi app.
They synchronize local databases in S1 and S2 over DB server. Why they use this aproach:
1.They dont need to have 100% accurate realtime resoults.
2.In case they lose internet or electricity they can update local excel file and when they get power back they can send that file to remote server.
3.They only need once a day to synhronize their local dbs so they do upload and donwload only 1-2 times a day. Ofc they can do it any time but there is no need for that..
As u see in image i would like to display products and product info from the same Excel file that is used to synchronize S1 and S2, so people can browse products online and buy stuff online. When people order stuff online i need to send e mail to S1 and after that workers in S1 will update local excel file in S1 and upload it to DB again.
My questions are is this best way to do it ? I mean i need to do it this way since they want me to do this way but any suggestions is acceptable ..
Can delphi do this ? What is best technology to use on server ? I wrote php/laravel but if u have any other solutions please tell me .. Really any info is welcomed .. After writing this i will start googling but i wanted to hear your opinions first, thanks 👍
EDIT:
Lets try to brake this topic..
What is best way to perform crud operations on local excel file with delphi ? I saw file , it have around 6000 rows filled with products.
Every product have own image , but it is in separate folder and it can be loaded every time when somebody select row
Whats best way to perform search
and most important what is the best way to upload and retrieve Excel file from remote server ?
Proud to be 100.000 user on HF
![[Image: 4tAQ4Gf.png]](https://i.imgur.com/4tAQ4Gf.png)


![[Image: fpZ5a5g.png]](https://i.imgur.com/fpZ5a5g.png)