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