本文整理匯總了C#中ActionService.GetDataByListParameter方法的典型用法代碼示例。如果您正苦於以下問題:C# ActionService.GetDataByListParameter方法的具體用法?C# ActionService.GetDataByListParameter怎麽用?C# ActionService.GetDataByListParameter使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ActionService
的用法示例。
在下文中一共展示了ActionService.GetDataByListParameter方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Post
public GridBuilderModel Post(GridBuilderModel model)
{
if (model != null)
{
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);
model.ActionStatus = status;
if (entity != null && model.IsGet)
{
model = entity.CopyData<GridBuilderModel>();
model.StringXml = entity.ColumnMode;
return model;
}
if (!string.IsNullOrEmpty(model.StringXml))
{
XmlDocument doc = JsonConvert.DeserializeXmlNode(model.StringXml);
var baseService = new BaseService();
Sys_ColumnModeEntity newEntity = new Sys_ColumnModeEntity()
{
UserInfoID = model.UserID,
GridControlName = model.GridControlName,
ColumnMode = doc.InnerXml + "|" + model.PageSize
};
if (entity != null)
{
newEntity.ID = entity.ID;
baseService.Edit<Sys_ColumnModeEntity>(newEntity);
}
else
{
baseService.Add<Sys_ColumnModeEntity>(newEntity);
}
return model;
}
}
return model;
}