| | |
| | | if (DALInterface.None == dalInterface || 0 == dalInterface) |
| | | return null;//传入值为无效值时直接放回空 |
| | | |
| | | string cashKey = dalInterface.ToString();//获取缓存键 |
| | | object dal = CACHE.RetrieveObject(cashKey);//从缓存获取访问对象 |
| | | |
| | | //string cashKey = dalInterface.ToString();//获取缓存键 |
| | | //object dal = CACHE.RetrieveObject(cashKey);//从缓存获取访问对象 |
| | | object dal = null; |
| | | if (null == dal && null != OBJECT_PATH && OBJECT_PATH.ContainsKey(dalInterface))//没有被缓存且有对该接口进行配置 |
| | | { |
| | | string path = string.Format("{0}.{1}", GetDALPath(), OBJECT_PATH[dalInterface]); |
| | | Assembly abl = GetDALAssembly(); |
| | | dal = abl.CreateInstance(path); |
| | | |
| | | CACHE.AddObject(cashKey, dal); |
| | | //CACHE.AddObject(cashKey, dal); |
| | | } |
| | | else |
| | | { |
| | |
| | | OBJECT_PATH.Add(DALInterface.IOA_CommodityDAL, "OA_CommodityDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_CommoditySpeciAssociateDAL, "OA_CommoditySpeciAssociateDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_CorporateClientsDAL, "OA_CorporateClientsDAL"); |
| | | //新增加办公系统合作客户的合同表 |
| | | OBJECT_PATH.Add(DALInterface.IOA_CorporateClientsContractDAL, "OA_SpecificationDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_CustomerAccessRecordDAL, "OA_CustomerAccessRecordDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_CustomerCommunicationsDAL, "OA_CustomerCommunicationsDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_FirmAccountDAL, "OA_FirmAccountDAL"); |
| | |
| | | OBJECT_PATH.Add(DALInterface.IOA_ProcurementDAL, "OA_ProcurementDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_RemittanceAdviceDAL, "OA_RemittanceAdviceDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_SpecificationDAL, "OA_SpecificationDAL"); |
| | | |
| | | OBJECT_PATH.Add(DALInterface.IOA_StaffDAL, "OA_StaffDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_StaffRoleRelDAL, "OA_StaffRoleRelDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_SubjectSetDAL, "OA_SubjectSetDAL"); |
| | |
| | | OBJECT_PATH.Add(DALInterface.IPVCFastCostDAL, "PVCFastCostDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IPVCAfterCostDAL, "PVCAfterCostDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IPaperTypeDAL, "PaperTypeDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IWorkBookTypeDAL, "WorkBookTypeDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IStickyHandBagCostDAL, "StickyHandBagCostDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IStickEnvelopeCostDAL, "StickEnvelopeCostDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IRopeCostDAL, "RopeCostDAL"); |
| | |
| | | /// 办公系统合作客户-数据库操作接口 |
| | | /// </summary> |
| | | IOA_CorporateClientsDAL = 76, |
| | | |
| | | /// <summary> |
| | | /// 办公系统合作客户合同附件-数据库操作接口 廖新增加 |
| | | /// </summary> |
| | | IOA_CorporateClientsContractDAL = 1176, |
| | | /// <summary> |
| | | /// 办公系统意向客户访问记录-数据库操作接口 |
| | | /// </summary> |
| | |
| | | |
| | | IPaperTypeDAL = 262, |
| | | |
| | | IWorkBookTypeDAL = 500, |
| | | |
| | | IStickyHandBagCostDAL = 263, |
| | | |
| | | IStickEnvelopeCostDAL = 264, |