当前位置: 首页>>代码示例>>C#>>正文


C# ActionService.DeleteOrRemove方法代码示例

本文整理汇总了C#中ActionService.DeleteOrRemove方法的典型用法代码示例。如果您正苦于以下问题:C# ActionService.DeleteOrRemove方法的具体用法?C# ActionService.DeleteOrRemove怎么用?C# ActionService.DeleteOrRemove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ActionService的用法示例。


在下文中一共展示了ActionService.DeleteOrRemove方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DeleteOrRemove

        /// <summary>
        /// [Chuc.Nguyen] - Xóa hoặc chuyển đổi trạng thái của Ngân Hàng(Tra_Certificate) sang IsDelete
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Tra_TraineeCertificateModel DeleteOrRemove(string id)
        {
            ActionService service = new ActionService(UserLogin);
            var traineeCertificateServices = new Tra_TraineeCertificateServices();
            string status = string.Empty;
            var result = new Tra_TraineeCertificateModel();
            Guid[] _TraineeIds = null;
            var Ids = id.Substring(7);
            if(Ids != null)
            {
                _TraineeIds = Ids.Split(',').Select(s => Guid.Parse(s)).ToArray();
            }
            var objTraineeCertificate = new List<object>();
            objTraineeCertificate.Add(1);
            objTraineeCertificate.Add(int.MaxValue -1);
            var lstTraineeCertificate = traineeCertificateServices.GetData<Tra_TraineeCertificateEntity>(objTraineeCertificate, ConstantSql.hrm_tra_sp_get_TraineeCertificate,UserLogin, ref status).ToList();
            if (lstTraineeCertificate != null)
            {
                lstTraineeCertificate = lstTraineeCertificate.Where(s => _TraineeIds.Contains(s.TraineeID.Value)).ToList();
            }
            var lstTraineeCertificateIds = lstTraineeCertificate.Select(s => s.ID).ToList();
            var strIds = string.Join(",", lstTraineeCertificateIds.ToArray());
            if (!string.IsNullOrEmpty(strIds))
            {
                var  strRemoveIds = DeleteType.Remove.ToString() + "," + strIds;
                result = service.DeleteOrRemove<Tra_TraineeCertificateEntity, Tra_TraineeCertificateModel>(strRemoveIds);
                return result;
            }

            return result;
            
        }
开发者ID:dtafe,项目名称:vnr,代码行数:37,代码来源:Tra_TraineeCertificateController.cs

示例2: DeleteOrRemove

        public Rec_RecruitmentHistoryModel DeleteOrRemove(string id)
        {

            ActionService service = new ActionService(UserLogin);
            var result = service.DeleteOrRemove<Rec_RecruitmentHistoryEntity, Rec_RecruitmentHistoryModel>(id);
            return result;
        }
开发者ID:dtafe,项目名称:vnr,代码行数:7,代码来源:Rec_RecruitmentHistoryController.cs

示例3: DeleteOrRemove

 public FIN_ClaimCostPaymentApproveModel DeleteOrRemove(string id)
 {
     ActionService service = new ActionService(UserLogin);
     var result1 = service.DeleteOrRemove<FIN_ClaimEntity, FIN_ClaimModel>(id);
     var result = result1.CopyData<FIN_ClaimCostPaymentApproveModel>();
     return result;
 }
开发者ID:dtafe,项目名称:vnr,代码行数:7,代码来源:FIN_ClaimCostPaymentApproveController.cs

示例4: DeleteOrRemove

 public FIN_ApproveTravelCostModel DeleteOrRemove(string id)
 {
     ActionService service = new ActionService(UserLogin);
     var result1 = service.DeleteOrRemove<FIN_TravelRequestEntity, FIN_TravelRequestModel>(id);
     var result=  result1.CopyData<FIN_ApproveTravelCostModel>();
     return result;
 }
开发者ID:dtafe,项目名称:vnr,代码行数:7,代码来源:FIN_ApproveTravelCostController.cs

示例5: DeleteOrRemove

 /// <summary>
 /// [Tin.Nguyen] - Xóa hoặc chuyển đổi trạng thái của Dân Tộc(Cat_ExportItem) sang IsDelete
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public Sys_AutoBackupModel DeleteOrRemove(string id)
 {
     //var spitId = id.Split(',');
     var model = new Sys_AutoBackupModel();
     //LibraryService.StartTaskScheduler(Common.ConvertToGuid(spitId[1]));
     ActionService service = new ActionService(UserLogin);
     var result = service.DeleteOrRemove<Sys_AutoBackupEntity, Sys_AutoBackupModel>(id);
     return model;
 }
开发者ID:dtafe,项目名称:vnr,代码行数:14,代码来源:Sys_AutoBackupController.cs

示例6: DeleteOrRemove

 /// <summary>
 /// [Son.Vo] - Xóa hoặc chuyển đổi trạng thái của Att_RosterGroup (Att_RosterGroup) sang IsDelete
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public Att_RosterGroupModel DeleteOrRemove(string id)
 {
     ActionService service = new ActionService(UserLogin);
     var result = service.DeleteOrRemove<Att_RosterGroupEntity, Att_RosterGroupModel>(id);
     return result;
     //Att_RosterGroupServices service = new Att_RosterGroupServices();
     //var result = service.Remove<Att_RosterGroupEntity>(id);
     //return new Att_RosterGroupModel();
 }
开发者ID:dtafe,项目名称:vnr,代码行数:14,代码来源:Att_RosterGroupController.cs

示例7: DeleteOrRemove

        /// <summary>
        /// [Chuc.Nguyen] - Xóa hoặc chuyển đổi trạng thái của Nhân Viên (Hre_Profile) sang IsDelete
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Hre_ProfileModel DeleteOrRemove(string id)
        {
            //Xóa cache lưu lại của cây phòng ban
            HttpContext.Current.Cache.Remove("List_OrgStructureTreeView");
            HttpContext.Current.Cache.Remove("List_OrgStructureTreeViewSumProfile");

            ActionService service = new ActionService(UserLogin);
            var result = service.DeleteOrRemove<Hre_ProfileEntity, Hre_ProfileModel>(id);
            return result;
        }
开发者ID:dtafe,项目名称:vnr,代码行数:15,代码来源:Hre_ProfileController.cs

示例8: DeleteOrRemove

 public Eva_PerformanceModel DeleteOrRemove(string id)
 {
     ActionService service = new ActionService(UserLogin);
     var result = service.DeleteOrRemove<Eva_PerformanceEntity, Eva_PerformanceModel>(id);
     var performanceService = new Eva_PerformanceServices();
     var idItem = id.Split(',');
     for (int i = 1; i < idItem.Count(); i++)
     {
         var idInt = Guid.Parse(idItem[i]).TryGetValue<Guid>();
         if (idInt != Guid.Empty)
         {
             performanceService.DeletePerformance(idInt);
         }
     }
     return result;
 }
开发者ID:dtafe,项目名称:vnr,代码行数:16,代码来源:Eva_Performance360Controller.cs

示例9: DeleteOrRemove

 public Can_MealRecordMissingModel DeleteOrRemove(string id)
 {
     ActionService service = new ActionService(UserLogin);
     var result = service.DeleteOrRemove<Can_MealRecordMissingEntity, Can_MealRecordMissingModel>(id);
     return result;
 }
开发者ID:dtafe,项目名称:vnr,代码行数:6,代码来源:Can_MealRecordMissingController.cs

示例10: DeleteOrRemove

 /// <summary>
 /// [Kiet.Chung] - Xóa hoặc chuyển đổi trạng thái của WorkPlace(Cat_YouthUnionPosition) sang IsDelete
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public Cat_ArmedForceTypesModel DeleteOrRemove(string id)
 {
     ActionService service = new ActionService(UserLogin);
     var result = service.DeleteOrRemove<Cat_ArmedForceTypesEntity, Cat_ArmedForceTypesModel>(id);
     return result;
 }
开发者ID:dtafe,项目名称:vnr,代码行数:11,代码来源:Cat_ArmedForceTypesController.cs

示例11: DeleteOrRemove

 /// <summary>
 /// [Tin.Nguyen] - Xóa hoặc chuyển đổi trạng thái của Loại Thiết Bị(Cat_Category) sang IsDelete
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public CatCategoryModel DeleteOrRemove(string id)
 {
     ActionService service = new ActionService(UserLogin);
     var result = service.DeleteOrRemove<Cat_CategoryEntity, CatCategoryModel>(id);
     return result;
 }
开发者ID:dtafe,项目名称:vnr,代码行数:11,代码来源:CatCategoryController.cs

示例12: DeleteOrRemove

 /// <summary>Xóa hoặc chuyển đổi trạng thái (Cat_MasterDataGroup) sang IsDelete</summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public Cat_MasterDataGroupModel DeleteOrRemove(string id)
 {
     ActionService service = new ActionService(UserLogin);
     var result = service.DeleteOrRemove<Cat_MasterDataGroupEntity, Cat_MasterDataGroupModel>(id);
     return result;
 }
开发者ID:dtafe,项目名称:vnr,代码行数:9,代码来源:Cat_MasterDataGroupController.cs

示例13: DeleteOrRemove

 public Eva_PerformanceEvaDetailModel DeleteOrRemove(string id)
 {
     ActionService service = new ActionService(UserLogin);
     var result = service.DeleteOrRemove<Eva_PerformanceEvaDetailEntity, Eva_PerformanceEvaDetailModel>(id);
     return result;
 }
开发者ID:dtafe,项目名称:vnr,代码行数:6,代码来源:Eva_PerformanceEvaDetaiController.cs

示例14: DeleteOrRemove

 /// <summary>
 /// [Chuc.Nguyen] - Xóa hoặc chuyển đổi trạng thái của Tai Nạn(Hre_Accident) sang IsDelete
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public FIN_ClaimModel DeleteOrRemove(string id)
 {
     ActionService service = new ActionService(UserLogin);
     var result = service.DeleteOrRemove<FIN_ClaimEntity, FIN_ClaimModel>(id);
     return result;
 }
开发者ID:dtafe,项目名称:vnr,代码行数:11,代码来源:FIN_ClaimController.cs

示例15: DeleteOrRemove

 public Eva_BonusSalaryModel DeleteOrRemove(string id)
 {
     var service = new ActionService(UserLogin);
     var result = service.DeleteOrRemove<Eva_BonusSalaryEntity, Eva_BonusSalaryModel>(id);
     return result;
 }
开发者ID:dtafe,项目名称:vnr,代码行数:6,代码来源:Eva_BonusSalaryController.cs


注:本文中的ActionService.DeleteOrRemove方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。