请帮助,如何使用MVC4进行多公司登录 [英] Please Help, How to Make Login multi company using MVC4
问题描述
请帮助,使用VS.2010制作源代码. mvc4 Net,带有SQLServer数据库,用于带有SQL存储过程的Login Multi Company形式.下表如下:
TabelUserPayroll
* CompanyID
* UnitID
* UserLogin
* UserPassword
* ActiveYN
TabelUserPersmissions
* CompanyID
* UnitID
* UserLogin
* IPAddress
* PermissionAccess
* PermissionView
* PermissionAdd
* PermissionEdit
* PermissionDelete
* PermissionReports
TabelMasterCompany
* CompanyID
* UnitID
*名称公司
*货币ID
TabelMasterCompanyUnit
* CompanyID
* UnitID
* UnitNameCompany
*货币ID
TabelHeader
* CompanyID
* UnitID
*购买编号
*供应商
*仓库
*货币ID
*总计
TabelDetail
* CompanyID
* UnitID
*购买编号
* ItemID
*数量
* Price
Please help, making the source code using VS.2010. mvc4 Net, with a SQLServer database, for form Login Multi Company with SQL Stored Procedures. The table-table as follows:
TabelUserPayroll
*CompanyID
*UnitID
*UserLogin
*UserPassword
*ActiveYN
TabelUserPersmissions
*CompanyID
*UnitID
*UserLogin
*IPAddress
*PermissionAccess
*PermissionView
*PermissionAdd
*PermissionEdit
*PermissionDelete
*PermissionReports
TabelMasterCompany
*CompanyID
*UnitID
*NameCompany
*CurrencyID
TabelMasterCompanyUnit
*CompanyID
*UnitID
*UnitNameCompany
*CurrencyID
TabelHeader
*CompanyID
*UnitID
*PurchaseNumber
*Vendor
*WareHouse
*CurrencyID
*Total
TabelDetail
*CompanyID
*UnitID
*PurchaseNumber
*ItemID
*Qty
*Price
推荐答案
我在一家为不同的信用合作社/银行提供站点的公司工作.解决此问题的方法是,首先通过URL识别每个金融机构(FI),然后显示该FI的所有相关数据.
I work at a company that makes sites for different credit unions / banks. The way we solved this was by identifying each Financial Institution (FI) first by the url and then displaying all related data for that fi.
sampleurl.com/default.aspx?fi=FI1
sampleurl.com/default.aspx?fi=FI2
对于自定义主题部分,我创建了一个动态CSS样式表,其中包含该fi的所有颜色信息,例如链接颜色,背景颜色图像等.所有这些都在运行时添加.诚然,我们的方法是使用WebForms,一旦想到如何布局,将它们转换为MVC不应太难.
以下是一些示例:
Obee信用合作社
我们的演示站点
For the custom theme portion, I created a dynamic CSS stylesheet that contains all of the color information for that fi, like link color, background color images and so on.... All of which is added at runtime. Granted, our approach is using WebForms once having the idea of how things should be laid out converting them to MVC shouldn''t be too hard.
Here are some samples:
Obee Credit Union
Our Demo Site
这篇关于请帮助,如何使用MVC4进行多公司登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!