//=========================================================================
        //  FunctionName : Modify
        /// <summary>
        /// 更新方法
        /// </summary>
        /// <param name="appData">应用数据实体</param>
        /// <returns>返回数据实体对象</returns>
        //=========================================================================
        public T_BM_KCXXApplicationData Modify(T_BM_KCXXApplicationData appData)
        {
            T_BM_KCXXBusinessEntity instanceT_BM_KCXXBusinessEntity = (T_BM_KCXXBusinessEntity)CreateBusinessEntityInstance(typeof(T_BM_KCXXBusinessEntity));

            instanceT_BM_KCXXBusinessEntity.AppData = appData;
            if (instanceT_BM_KCXXBusinessEntity.AppData.OPCode == ApplicationDataBase.OPType.PK)
            {
                if (instanceT_BM_KCXXBusinessEntity.IsExistByKey() == true)
                {
                    instanceT_BM_KCXXBusinessEntity.UpdateByKey();
                    instanceT_BM_KCXXBusinessEntity.AppData.ResultCode = ApplicationDataBase.ResultState.Succeed;
                }
                else
                {
                    instanceT_BM_KCXXBusinessEntity.AppData.ResultCode = ApplicationDataBase.ResultState.Failure;
                }
            }
            else if (instanceT_BM_KCXXBusinessEntity.AppData.OPCode == ApplicationDataBase.OPType.ID)
            {
                if (instanceT_BM_KCXXBusinessEntity.IsExistByObjectID() == true)
                {
                    instanceT_BM_KCXXBusinessEntity.UpdateByObjectID();
                    instanceT_BM_KCXXBusinessEntity.AppData.ResultCode = ApplicationDataBase.ResultState.Succeed;
                }
                else
                {
                    instanceT_BM_KCXXBusinessEntity.AppData.ResultCode = ApplicationDataBase.ResultState.Failure;
                }
            }
            else if (instanceT_BM_KCXXBusinessEntity.AppData.OPCode == ApplicationDataBase.OPType.BATCH)
            {
                instanceT_BM_KCXXBusinessEntity.UpdateByObjectIDBatch();
                instanceT_BM_KCXXBusinessEntity.AppData.ResultCode = ApplicationDataBase.ResultState.Succeed;
            }
            else if (instanceT_BM_KCXXBusinessEntity.AppData.OPCode == ApplicationDataBase.OPType.ALL)
            {
                instanceT_BM_KCXXBusinessEntity.UpdateByAnyCondition();
                instanceT_BM_KCXXBusinessEntity.AppData.ResultCode = ApplicationDataBase.ResultState.Succeed;
            }
            else
            {
                if (instanceT_BM_KCXXBusinessEntity.IsExistByObjectID() == true)
                {
                    instanceT_BM_KCXXBusinessEntity.UpdateByObjectID();
                    instanceT_BM_KCXXBusinessEntity.AppData.ResultCode = ApplicationDataBase.ResultState.Succeed;
                }
                else
                {
                    instanceT_BM_KCXXBusinessEntity.AppData.ResultCode = ApplicationDataBase.ResultState.Failure;
                }
            }
            return(instanceT_BM_KCXXBusinessEntity.AppData);
        }
        //=========================================================================
        //  FunctionName : Add
        /// <summary>
        /// 添加方法
        /// </summary>
        /// <param name="appData">应用数据实体</param>
        /// <returns>返回数据实体对象</returns>
        //=========================================================================
        public T_BM_KCXXApplicationData Add(T_BM_KCXXApplicationData appData)
        {
            T_BM_KCXXBusinessEntity instanceT_BM_KCXXBusinessEntity = (T_BM_KCXXBusinessEntity)CreateBusinessEntityInstance(typeof(T_BM_KCXXBusinessEntity));

            instanceT_BM_KCXXBusinessEntity.AppData = appData;
            if (instanceT_BM_KCXXBusinessEntity.IsExistByKey() == false)
            {
                instanceT_BM_KCXXBusinessEntity.Insert();
                instanceT_BM_KCXXBusinessEntity.AppData.ResultCode = ApplicationDataBase.ResultState.Succeed;
            }
            else
            {
                instanceT_BM_KCXXBusinessEntity.AppData.ResultCode = ApplicationDataBase.ResultState.Failure;
            }
            return(instanceT_BM_KCXXBusinessEntity.AppData);
        }