如何用C#制作产品目录?

发布于 2024-08-24 19:00:41 字数 1601 浏览 11 评论 0原文

我需要开发一个产品目录(大约 4000 个产品)应用程序,并将其以 CD 或 DVD 形式提供给客户。该目录使用 PHP 和 MySQL 以网页格式存在。

重要提示:该应用程序提供给可能拥有旧电脑、旧系统的客户。对于最低要求,我会安装 Windows XP 和 Internet Explorer 6(如果需要)。

I need the following features:
1 search option (after productID AND after keyword)
2 print option (by selecting multiple products)
3 shopping cart (making a list which will be sent to an email address if there is any Internet Connection on the computer)

当我被要求这样做时,我有 2 天的时间来实现一个非常基本的版本,所以我将整个网站导出为 HTML 页面,并用 C# 开发了一个包含嵌入式浏览器的应用程序。所以整个网站现在是静态的并放在 CD 上。到目前为止一切都很好。现在存在以下问题:

1. the search option was realized by parsing the html files and reading the productID or looking for keywords inside of them. Put on a CD it was extremely slow (searching in 600MB of html files). FOR THIS I WOULD NEED A SOLUTION WITH A STATIC DATABASE (USING ACCESS OR SOMETHING) TO HAVE INDEXED ROWS, SO THE SEARCH COULD BE A VERY FAST ONE.
2. the printing option was a simply call of the embeded Internet Explorer print functions. Here are two problems: 
          a) user needs IE7 for printing the website scaled (FIT TO PAGE), otherwise the edges of the page are cut down.
          b) users of this app does not have even the basic PC usage skills, so they can't set the printing settings, so there will appear in header and footer the page numbers and titles. QUESTION: can I set these settings from CSS for printing?
3. couldn't make a a shopping cart as I don't use a database, so I have static websites and content is inside the HTML.

问:针对上述问题的最佳解决方案是什么? 即使您的回答仅针对一个问题,也请回答。谢谢

I need to develop a product catalog (about 4000 products) application, which would be given to clients on CD or DVD. The catalog exists in webpage format using PHP and MySQL.

IMPORTANT: the application is given to clients who maight have old PC, old System. For minimal requirements I would put Windows XP and Internet Explorer 6 (if needed).

I need the following features:
1 search option (after productID AND after keyword)
2 print option (by selecting multiple products)
3 shopping cart (making a list which will be sent to an email address if there is any Internet Connection on the computer)

When I was asked to do it I had 2 days to realise a very basic version, so I took the whole website and exported it in HTML pages, and developed an application in C# which contains an embeded browser. So the whole website is now static and put on a CD. Everything fine so far. Now here are the problems:

1. the search option was realized by parsing the html files and reading the productID or looking for keywords inside of them. Put on a CD it was extremely slow (searching in 600MB of html files). FOR THIS I WOULD NEED A SOLUTION WITH A STATIC DATABASE (USING ACCESS OR SOMETHING) TO HAVE INDEXED ROWS, SO THE SEARCH COULD BE A VERY FAST ONE.
2. the printing option was a simply call of the embeded Internet Explorer print functions. Here are two problems: 
          a) user needs IE7 for printing the website scaled (FIT TO PAGE), otherwise the edges of the page are cut down.
          b) users of this app does not have even the basic PC usage skills, so they can't set the printing settings, so there will appear in header and footer the page numbers and titles. QUESTION: can I set these settings from CSS for printing?
3. couldn't make a a shopping cart as I don't use a database, so I have static websites and content is inside the HTML.

QUESTION: WHICH ARE THE BEST SOLUTIONS FOR THE PROBLEMS DESCRIBED ABOVE?
PLEASE ANSWER EVEN IF YOUR ANSWER IS FOR ONE QUESTION ONLY. THANKS

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

音栖息无 2024-08-31 19:00:41

如果您有用 PHP / MySQL 编写的现有应用程序,也许使用 XAMPP 并将应用程序放在 CD 上比从头开始编写新应用程序更好。
在这种情况下,用户不需要在计算机上安装.NET Framework。

如果您必须编写C#应用程序,请将MySQL数据库转换为xml文件,并在应用程序启动时将其加载到内存中,而不是解析html文件。

If you have existing applications written in PHP / MySQL, maybe it is better to use XAMPP and put the application on a CD than to write new application from scratch.
In this case user doesn't need to install .NET Framework on his computer.

If you must write C# application, convert your MySQL database to xml file and load it into memory on application startup instead of parsing html files.

梦幻之岛 2024-08-31 19:00:41

使用 javascript 和 cookies/url 变量来传递购物车怎么样?您的嵌入式浏览器是否启用了 JavaScript?

How about using javascript and cookies/url variables, for passing the shopping cart around? Is javascript enabled in you embedded browser?

寂寞笑我太脆弱 2024-08-31 19:00:41

我知道这与您的方向完全不同,但是您可以使用 Excel 电子表格吗?

一张完整的目录和内容寻找。

一张用于单个项目显示/打印。

I know this is completely different to the direction you're going in, but could you use an Excel spreadsheet instead?

One sheet for the complete catalogue & searching.

One sheet for individual item display/printing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文