Routine update

This commit is contained in:
yubaolee 2015-11-22 00:35:20 +08:00
parent 12bd4591bb
commit 36a466143e
2 changed files with 96 additions and 113 deletions

View File

@ -1,7 +1,6 @@
@model OpenAuth.App.ViewModel.Module
@model OpenAuth.Domain.Module
@{
ViewBag.Title = "title";
ViewBag.Title = "Module编辑界面";
Layout = null;
}
@ -14,11 +13,10 @@
</tr>
<tr>
<td>
@Html.HiddenFor(m =>m.Id)
@Html.HiddenFor(m => m.Id)
<tr>
<td>
<label for="CascadeId" class="control-label x90">节点语义ID</label>
<input type="text" name="CascadeId" id="CascadeId" value="@Model.CascadeId"
data-rule="required" size="20">
@ -27,7 +25,6 @@
<tr>
<td>
<label for="Name" class="control-label x90">功能模块名称:</label>
<input type="text" name="Name" id="Name" value="@Model.Name"
data-rule="required" size="20">
@ -36,7 +33,6 @@
<tr>
<td>
<label for="Url" class="control-label x90">主页面URL</label>
<input type="text" name="Url" id="Url" value="@Model.Url"
data-rule="required" size="20">
@ -45,7 +41,6 @@
<tr>
<td>
<label for="HotKey" class="control-label x90">热键:</label>
<input type="text" name="HotKey" id="HotKey" value="@Model.HotKey"
data-rule="required" size="20">
@ -54,10 +49,14 @@
<tr>
<td>
<tr>
<td>
<label for="ParentId" class="control-label x85">父节点流水号:</label>
<label for="ParentId" class="control-label x90">父节点流水号:</label>
<input type="text" name="ParentId" id="ParentId" value="@Model.ParentId"
data-rule="required" size="20">
<select name="ParentId" id="ParentId" data-toggle="selectpicker" data-rule="required">
<option value="0" @if (Model.ParentId == 0) { <text> selected="selected" </text> }>默认</option>
<option value="1" @if (Model.ParentId == 1) { <text> selected="selected" </text> }>状态1</option>
</select>
</td>
</tr>
<tr>
@ -68,8 +67,8 @@
<label for="IsLeaf" class="control-label x85">是否叶子节点:</label>
<select name="IsLeaf" id="IsLeaf" data-toggle="selectpicker" data-rule="required">
<option value="0" @if (Model.IsLeaf == 0) { <text> selected="selected" </text> }>否</option>
<option value="1" @if (Model.IsLeaf == 1) { <text> selected="selected" </text> }>是</option>
<option value="0" @if (Model.IsLeaf) { <text> selected="selected" </text> }>否</option>
<option value="1" @if (!Model.IsLeaf) { <text> selected="selected" </text> }>是</option>
</select>
</td>
</tr>
@ -81,15 +80,14 @@
<label for="IsAutoExpand" class="control-label x85">是否自动展开:</label>
<select name="IsAutoExpand" id="IsAutoExpand" data-toggle="selectpicker" data-rule="required">
<option value="0" @if (Model.IsAutoExpand == 0) { <text> selected="selected" </text> }>否</option>
<option value="1" @if (Model.IsAutoExpand == 1) { <text> selected="selected" </text> }>是</option>
<option value="0" @if (Model.IsAutoExpand) { <text> selected="selected" </text> }>否</option>
<option value="1" @if (!Model.IsAutoExpand) { <text> selected="selected" </text> }>是</option>
</select>
</td>
</tr>
<tr>
<td>
<label for="IconName" class="control-label x90">节点图标文件名称:</label>
<input type="text" name="IconName" id="IconName" value="@Model.IconName"
data-rule="required" size="20">
@ -98,16 +96,19 @@
<tr>
<td>
<tr>
<td>
<label for="Status" class="control-label x85">当前状态:</label>
<label for="Status" class="control-label x90">当前状态:</label>
<input type="text" name="Status" id="Status" value="@Model.Status"
data-rule="required" size="20">
<select name="Status" id="Status" data-toggle="selectpicker" data-rule="required">
<option value="0" @if (Model.Status == 0) { <text> selected="selected" </text> }>默认</option>
<option value="1" @if (Model.Status == 1) { <text> selected="selected" </text> }>状态1</option>
</select>
</td>
</tr>
<tr>
<td>
<label for="ParentName" class="control-label x90">父节点名称:</label>
<input type="text" name="ParentName" id="ParentName" value="@Model.ParentName"
data-rule="required" size="20">
@ -116,7 +117,6 @@
<tr>
<td>
<label for="Vector" class="control-label x90">矢量图标:</label>
<input type="text" name="Vector" id="Vector" value="@Model.Vector"
data-rule="required" size="20">
@ -125,24 +125,16 @@
<tr>
<td>
<label for="SortNo" class="control-label x90">排序号:</label>
<input type="text" name="SortNo" id="SortNo" value="@Model.SortNo"
data-rule="required" size="20">
</td>
</tr>
<tr>
<td>
<label for="Organizations" class="control-label x90">所属机构</label>
<input id="OrganizationIds" name="OrganizationIds" value="@Model.OrganizationIds" style="display: none" />
<input type="text" name="Organizations" id="Organizations"
data-toggle="selectztree" size="20" data-tree="#j_select_tree1" value="@Model.Organizations">
<ul id="j_select_tree1" class="ztree hide" data-toggle="ztree" >
</ul>
<label for="SortNo" class="control-label x85">排序号:</label>
<select name="SortNo" id="SortNo" data-toggle="selectpicker" data-rule="required">
<option value="0" @if (Model.SortNo == 0) { <text> selected="selected" </text> }>默认</option>
<option value="1" @if (Model.SortNo == 1) { <text> selected="selected" </text> }>状态1</option>
</select>
</td>
</tr>
</tbody>
</table>
</form>

View File

@ -1,4 +1,4 @@
@{
@{
string _prefix = "Module";
var _treeId = _prefix + "Tree";
var _gridId = _prefix + "Grid";
@ -40,63 +40,54 @@
columns: [
{
name: 'Id',
label: '功能模块流水号'
, hide: true
label: '功能模块流水号',
hide: true
},
{
name: 'CascadeId',
label: '节点语义ID'
label: '节点语义ID',
width: 80
},
{
name: 'Name',
label: '功能模块名称'
label: '功能模块名称',
width: 80
},
{
name: 'Url',
label: '主页面URL'
},
{
name: 'HotKey',
label: '热键'
label: '主页面URL',
width: 80
},
{
name: 'ParentId',
label: '父节点流水号'
},
{
name: 'IsLeaf',
label: '是否叶子节点'
,type: 'select',
align: 'center',
width: 80,
items: [{ '0': '否' }, { '1': '是' }]
},
{
name: 'IsAutoExpand',
label: '是否自动展开'
,type: 'select',
align: 'center',
width: 80,
items: [{ '0': '否' }, { '1': '是' }]
label: '父节点流水号',
hide:true
},
{
name: 'IconName',
width: 80,
label: '节点图标文件名称'
},
{
name: 'Status',
width: 80,
label: '当前状态'
},
{
name: 'ParentName',
width: 80,
label: '父节点名称'
},
{
name: 'Vector',
width: 80,
label: '矢量图标'
},
{
name: 'SortNo',
width: 80,
label: '排序号'
},
],