username@email.com
2024-12-11 5cccbb67654e468245dac77ca9de0b445771e329
CY_ECommercePlatform/AbstractFactory/Factory.cs
@@ -110,16 +110,16 @@
            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
            {
@@ -231,6 +231,7 @@
            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");
@@ -258,6 +259,12 @@
            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.IOA_KaipiaonewcuishouDAL, "OA_KaipiaonewcuishouDAL");
            OBJECT_PATH.Add(DALInterface.IOA_KaipiaonewhuikuanDAL, "OA_KaipiaonewhuikuanDAL");
            OBJECT_PATH.Add(DALInterface.IOA_KaipiaoJineQuerenDAL, "OA_KaipiaoJineQuerenDAL");
            OBJECT_PATH.Add(DALInterface.IOA_KaipiaonewDAL, "OA_KaipiaonewDAL");
            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
@@ -350,6 +357,7 @@
            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");
@@ -746,7 +754,7 @@
        /// </summary>
        IOA_WorkPlanDAL = 100,
        /// <summary>
        /// 车辆年审记录数据访问接口
        /// 车辆年检记录数据访问接口
        /// </summary>
        IOA_CarExaminedDAL = 101,
        /// <summary>
@@ -757,6 +765,10 @@
        /// 车辆保养记录数据访问接口
        /// </summary>
        IOA_CarMaintenanceDAL = 103,
        /// <summary>
        /// 车辆维修记录数据访问接口
        /// </summary>
        IOA_CarrepairDAL = 666,
        /// <summary>
        /// 车辆管理数据访问接口
        /// </summary>
@@ -865,6 +877,32 @@
        /// 开票申请
        /// </summary>
        IOA_KipiaoshenqingDAL = 1131,
        /// <summary>
        /// 开票申请
        /// </summary>
        IOA_KaipiaonewcuishouDAL = 1931,
        /// <summary>
        /// 开票申请
        /// </summary>
        IOA_KaipiaonewhuikuanDAL = 1933,
        /// <summary>
        /// 开票申请
        /// </summary>
        IOA_KaipiaoJineQuerenDAL = 1934,
        /// <summary>
        /// 开票申请
        /// </summary>
        IOA_KaipiaonewDAL = 1932,
        /// <summary>
        /// 计划订单
        /// </summary>
        ICoreCmsPlanOrderDAL = 1231,
        /// <summary>
        /// 计划订单明细
        /// </summary>
        ICoreCmsPlanOrderItemDAL = 1331,
        /// <summary>
        /// 预计收款时间
        /// </summary>
@@ -1098,6 +1136,8 @@
        IPaperTypeDAL = 262,
        IWorkBookTypeDAL = 500,
        IStickyHandBagCostDAL = 263,
        IStickEnvelopeCostDAL = 264,