| | |
| | | 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.IOA_CarExaminedDAL, "OA_CarExaminedDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_CarInsuranceDAL, "OA_CarInsuranceDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_CarMaintenanceDAL, "OA_CarMaintenanceDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_CarrepairDAL, "OA_CarrepairDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_CarManageDAL, "OA_CarManageDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_CarTransferDAL, "OA_CarTransferDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_CarViolationDAL, "OA_CarViolationDAL"); |
| | |
| | | OBJECT_PATH.Add(DALInterface.IOA_WageAwardPunishDAL, "OA_WageAwardPunishDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_DeliverPlanDAL, "OA_DeliverPlanDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_KipiaoshenqingDAL, "OA_KipiaoshenqingDAL"); |
| | | OBJECT_PATH.Add(DALInterface.ICoreCmsPlanOrderDAL, "CoreCmsPlanOrderDAL"); |
| | | OBJECT_PATH.Add(DALInterface.ICoreCmsPlanOrderItemDAL, "CoreCmsPlanOrderItemDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_YujihuikuanDAL, "OA_YujihuikuanDAL"); |
| | | OBJECT_PATH.Add(DALInterface.IOA_CuikuanjiluDAL, "OA_CuikuanjiluDAL"); |
| | | #endregion |
| | |
| | | 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> |
| | |
| | | /// </summary> |
| | | IOA_WorkPlanDAL = 100, |
| | | /// <summary> |
| | | /// 车辆年审记录数据访问接口 |
| | | /// 车辆年检记录数据访问接口 |
| | | /// </summary> |
| | | IOA_CarExaminedDAL = 101, |
| | | /// <summary> |
| | |
| | | /// 车辆保养记录数据访问接口 |
| | | /// </summary> |
| | | IOA_CarMaintenanceDAL = 103, |
| | | /// <summary> |
| | | /// 车辆维修记录数据访问接口 |
| | | /// </summary> |
| | | IOA_CarrepairDAL = 666, |
| | | /// <summary> |
| | | /// 车辆管理数据访问接口 |
| | | /// </summary> |
| | |
| | | /// 开票申请 |
| | | /// </summary> |
| | | IOA_KipiaoshenqingDAL = 1131, |
| | | |
| | | /// <summary> |
| | | /// 计划订单 |
| | | /// </summary> |
| | | ICoreCmsPlanOrderDAL = 1231, |
| | | |
| | | /// <summary> |
| | | /// 计划订单明细 |
| | | /// </summary> |
| | | ICoreCmsPlanOrderItemDAL = 1331, |
| | | /// <summary> |
| | | /// 预计收款时间 |
| | | /// </summary> |
| | |
| | | |
| | | IPaperTypeDAL = 262, |
| | | |
| | | IWorkBookTypeDAL = 500, |
| | | |
| | | IStickyHandBagCostDAL = 263, |
| | | |
| | | IStickEnvelopeCostDAL = 264, |