Esempio n. 1
0
 /// <summary>
 /// 修改按钮
 /// </summary>
 /// <param name="field">字段</param>
 /// <param name="url">跳转地址(参数为id)</param>
 /// <param name="title">标题名称(默认为"修改")</param>
 /// <returns></returns>
 public GridTable EditColumn(string field, string url,string title="修改")
 {
     _editColumn = new EditColumn
     {
         Field = field,
         Url = url,
         Title = title
     };
     return this;
 }
Esempio n. 2
0
 /// <summary>
 /// 删除按钮
 /// </summary>
 /// <param name="field">字段</param>
 /// <param name="url">跳转地址(参数为id)</param>
 /// <param name="title">标题名称(默认为"删除")</param>
 /// <returns></returns>
 public GridTable DeleteColumn(string field, string url, string title = "删除")
 {
     _deleteColumn = new EditColumn
     {
         Field = field,
         Url = url,
         Title = title
     };
     return this;
 }