本文整理汇总了C#中BaseService.DeleteColumMode方法的典型用法代码示例。如果您正苦于以下问题:C# BaseService.DeleteColumMode方法的具体用法?C# BaseService.DeleteColumMode怎么用?C# BaseService.DeleteColumMode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseService
的用法示例。
在下文中一共展示了BaseService.DeleteColumMode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DeleteOrRemove
//public GridBuilderModel Put(GridBuilderModel model)
//{
// if (model != null)
// {
// if (model.UserID != Guid.Empty && !string.IsNullOrEmpty(model.GridControlName))
// {
// ActionService service = new ActionService(UserLogin);
// List<object> lstObj = new List<object>() { model.UserID, model.GridControlName };
// var status = string.Empty;
// var entity = service.GetDataByListParameter<Sys_ColumnModeEntity>(lstObj,
// ConstantSql.hrm_sys_sp_get_ColumnMode, ref status);
// if (entity != null)
// {
// model = entity.CopyData<GridBuilderModel>();
// model.StringXml = entity.ColumnMode;
// }
// model.ActionStatus = status;
// return model;
// }
// }
// return null;
//}
public GridBuilderModel DeleteOrRemove(string id)
{
var model = new GridBuilderModel();
if (!string.IsNullOrEmpty(id))
{
try
{
var idItem = id.Split(',');
var userId = idItem[0];
var gridName = idItem[1];
var service = new BaseService();
if (userId != null && gridName != null && gridName != "" && userId != "")
{
model.ActionStatus = service.DeleteColumMode(new Guid(userId), gridName);
}
}
catch (Exception ex)
{
model.ActionStatus = NotificationType.Error + "," + ex.Message;
}
}
return model;
}