52 lines
2.0 KiB
Plaintext
52 lines
2.0 KiB
Plaintext
|
|
@*
|
||
|
|
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
|
||
|
|
暂时未使用
|
||
|
|
*@
|
||
|
|
@{
|
||
|
|
@model List<TBL_HOTEL_GROUP_INFO>;
|
||
|
|
int root = int.Parse(ViewData["ROOT"].ToString());
|
||
|
|
var data = Model.Where(x => x.PARENT_ID == root);
|
||
|
|
}
|
||
|
|
|
||
|
|
@if (data != null)
|
||
|
|
{
|
||
|
|
foreach (var item in data)
|
||
|
|
{
|
||
|
|
|
||
|
|
<div class="card p-1 "
|
||
|
|
style="margin-bottom:5PX;box-shadow:none;
|
||
|
|
@(root == 0?"padding-right:0PX !important; margin-right:0PX !important;":"margin-left:10PX;")">
|
||
|
|
<div data-id='@item.HOTEL_GROUP_ID ' data-name='@item.HOTEL_GROUP_NAME ' onclick=" "
|
||
|
|
@* SEL(this,@item.HOTEL_GROUP__ID,' @item.HOTEL_GROUP_NAME ')*@
|
||
|
|
class="card-header border-0 ui-sortable-handle p-0 m-0 " style="cursor: pointer;">
|
||
|
|
<h3 class="card-title p-1 ">
|
||
|
|
<i class="fa fa-university"></i>
|
||
|
|
@item.HOTEL_GROUP_ID
|
||
|
|
@item.HOTEL_GROUP_NAME
|
||
|
|
</h3>
|
||
|
|
<!-- card tools -->
|
||
|
|
@if (Model.FirstOrDefault(x => x.PARENT_ID == item.HOTEL_GROUP_ID) != null)
|
||
|
|
{
|
||
|
|
<div class="card-tools p-1 m-0 " style=" @(root == 0?"":"padding-right:0PX !important;margin-right:0PX !important")">
|
||
|
|
<button type="button" class="btn btn-info btn-xs" data-card-widget="collapse" title="折叠">
|
||
|
|
<i class="fas fa-minus"></i>
|
||
|
|
</button>
|
||
|
|
</div>
|
||
|
|
}
|
||
|
|
<!-- /.card-tools -->
|
||
|
|
</div>
|
||
|
|
@if (Model.FirstOrDefault(x => x.PARENT_ID == item.HOTEL_GROUP_ID) != null)
|
||
|
|
{
|
||
|
|
<div class="card-body p-0 m-0 " style="display: block;">
|
||
|
|
<h1 style="display:none;">
|
||
|
|
@(ViewData["ROOT"] = @item.HOTEL_GROUP_ID)
|
||
|
|
</h1>
|
||
|
|
|
||
|
|
@await Html.PartialAsync("~/Views/Shared/_Index.cshtml",Model,ViewData)
|
||
|
|
|
||
|
|
</div>
|
||
|
|
}
|
||
|
|
</div>
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|