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

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

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