基于单一UI代码的多种产品 [英] Single UI code based for multiple products

查看:58
本文介绍了基于单一UI代码的多种产品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我有两个具有相同业务功能的产品,但是两个产品使用不同的主题"或用户界面.我的问题是基于我们需要在几周内创建两个单独的产品的时间.

这里的问题是维护和部署.我们对一个进行更改,而必须手动对另一个进行更改. HTML中的硬编码值太多,而且许多ID都被命名为相同的ID(对于我们到达这里的故事来说太长了;外包意味着任何事情).

无论如何,我现在正在创建一个UI项目解决方案,我想在其中存储HTML标签,这些标签将根据输入的域在数据库或XML中区分产品类型.然后,我可以确定要从数据库中提取哪些CSS/图像/HTML标记等来呈现UI.

我的问题是如何将其设置为可扩展;易于管理;并且更易于部署.我尚未使用MVP模式.我想一次做一个步骤.

在此方面的任何帮助,我将不胜感激.

谢谢,

Hello,

I have two products which have the same business functionality, however both products use a different "theme" or user interface. My problem is based on time we needed to create two separate products in a matter of weeks.

The issue here is maintenance and deployment. We make a change to one and have to make a change to the other manually. There are too many hard coded values in the HTML and a lot of the IDs are named the same (too long of a story to how we got here; outsourcing mean anything).

Anyhow I''m now creating a single UI project solution where I want to store the HTML tags that will differentiate product types in either a database or XML based on the domain that is entered. I can then determine which CSS/Images/HTML tags etc. to pull from the database to render the UI.

My question is how do I set this up to be scaleable; easy to manage; and easier to deployed. I''m not using the MVP pattern yet. I want to do one step at a time.

I would appreciate any help on this.

Thank You,

推荐答案

因此,基本上,您已经积累了技术债务,现在正试图偿还.抱歉,但是如果我知道一个简单的解决方案,我不会告诉你!

但是,到目前为止,您可能想看一下 ASP.NET主题.

您将必须合并html,然后使用每个主题的资源(图像和css)来呈现两个UI.

不查看您的代码,我不知道这是否是最适合您的解决方案.我只是认为我会提到它,以防万一您没有考虑它.

祝你好运:)

尼克
So basically, you have built up a technological debt and are now trying to pay it off. Sorry, but if I knew an easy solution to this I wouldn''t tell you!

But, from what you''ve said so far, you might like to look at ASP.NET Themes.

You would have to merge the html and then use the resources ( images and css ) from each theme to present the two UIs.

Without looking at your code, I don''t know if this is the best solution for you. I just thought I''d mention it in case you haven''t considered it.

Good luck :)

Nick




感谢您的回复.我已经将它们分开的几件事.问题是用户界面(目前).我有两个独立的UI项目,需要将它们合并为一个.我拥有所有包含大量硬代码的HTML代码,我的目标是使这种UI具有通用性,即两种产品的UI功能都相同,但具有不同的配色方案和图像.

处理此问题的最佳方法是什么?

谢谢,
Hi,

Thanks for the response. A couple of things I already have them separated out. The issue is the UI (for now). I have two separate UI projects that I need to consolidate into one. I have all this HTML code that has a lot of hard codes and my goal is to make this UI generic where the UI functionality is the same in both products but with different color schemes and images.

What is the best way of handling this?

Thanks,


将功能分成几层,通常的UI,业务逻辑和数据访问层是一种古老但仍然很出色的模型.继续构建您的公共UI,保留现有(和假定的功能)业务逻辑层,并构建两个数据访问层以适应两个不同的系统.这将需要很多工作,但是最后您只需要为两个数据访问层维护不同的代码库即可.
Separate the functions into layers, the usual UI, business logic, and data access layers being one old but still excellent model. Keep on building your common UI, retain the existing (and presumed functional) business logic layer, and construct two data access layers to accomodate the two different systems. It''s going to be a lot of work, but in the end you''ll only have to maintain different codebases for the two data access layers.


这篇关于基于单一UI代码的多种产品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆