mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-15 23:13:40 +08:00
Routine Update
This commit is contained in:
parent
4ee0a395e2
commit
e2f7e2cf42
@ -92,8 +92,7 @@ namespace OpenAuth.App
|
||||
public void DelOrg(int id)
|
||||
{
|
||||
var delOrg = _repository.FindSingle(u => u.Id == id);
|
||||
if (delOrg == null)
|
||||
throw new Exception("未能找到要删除的对象");
|
||||
if (delOrg == null) return;
|
||||
|
||||
_repository.Delete(u => u.CascadeId.Contains(delOrg.CascadeId));
|
||||
}
|
||||
|
@ -31,8 +31,13 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="Status" class="control-label x85">禁用:</label>
|
||||
<input type="checkbox" name="Status" id="Status" value="true" data-toggle="icheck">
|
||||
<label for="Status" class="control-label x85">设置状态:</label>
|
||||
|
||||
<select name="Status" id="Status" data-toggle="selectpicker" data-rule="required">
|
||||
<option value="0">正常</option>
|
||||
<option value="1">禁用</option>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -52,14 +52,10 @@
|
||||
},
|
||||
{
|
||||
name: 'Status',
|
||||
label: '禁用',
|
||||
type: 'boolean',
|
||||
label: '状态',
|
||||
type: 'select',
|
||||
align: 'center',
|
||||
render: function (value) {
|
||||
return (value && String(value) == 'true') ?
|
||||
'<span style="color:red;">是</span>' : '否'
|
||||
|
||||
}
|
||||
items:[{'0':'正常'}, {'1':'禁用'}]
|
||||
},
|
||||
{
|
||||
name: 'CreateTime',
|
||||
|
Loading…
Reference in New Issue
Block a user