365 lines
12 KiB
Plaintext
365 lines
12 KiB
Plaintext
@page
|
|
@model ServiceHost.Areas.Admin.Pages.Company.FileEmployer.IndexModel
|
|
|
|
@{
|
|
//string colaps = "in";
|
|
//string act = "active";
|
|
var i = 1;
|
|
}
|
|
|
|
@{
|
|
Layout = "Shared/_AdminLayout";
|
|
ViewData["title"] = "کارفرمای پرونده";
|
|
<style>
|
|
.thh0 {
|
|
width: 8px !important;
|
|
}
|
|
|
|
.thh {
|
|
width: 40px !important;
|
|
}
|
|
|
|
.thh2 {
|
|
width: 130px !important;
|
|
}
|
|
|
|
.thhNastionalId {
|
|
width: 30px !important;
|
|
}
|
|
|
|
.inpt {
|
|
width: 100%;
|
|
border: 1px solid #c7c7c7;
|
|
}
|
|
|
|
.searchpanel {
|
|
background-color: #747272;
|
|
}
|
|
|
|
select {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.faSize {
|
|
font-size: 22px !important;
|
|
}
|
|
|
|
.rad {
|
|
border-radius: 8px !important;
|
|
/* padding: 10px; */
|
|
padding: 2px 5px 0px 5px;
|
|
}
|
|
</style>
|
|
}
|
|
@*@section Styles
|
|
{
|
|
|
|
<link href="~/lib/select2/css/select2.css" rel="stylesheet" />
|
|
}*@
|
|
<div class="row">
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-12 m-r-10">
|
|
|
|
<p class="pull-right">
|
|
<a permission="10210" href="#showmodal=@Url.Page("./Index", "CreateReal")" class="btn btn-success btn-rounded waves-effect waves-light m-b-5" style=" background-color: #f5f5f5; border-color: #0f9500; font-family: 'Web_Yekan' !important; color: #0f9500 !important; border-top-left-radius: 0px; border-bottom-left-radius: 0px "> <i class="fa fa-user-plus" style="padding-left: 3px; font-size: 14px; color: #0f9500 !important "></i> ایجاد کارفرمای حقیقی </a>
|
|
|
|
</p>
|
|
<p class="pull-right">
|
|
<a permission="10211" href="#showmodal=@Url.Page("./Index", "CreateLegal")" class="btn btn-success btn-rounded waves-effect waves-light m-b-5" style=" background-color: #f5f5f5; border-color: #1d92e5; font-family: 'Web_Yekan' !important; color: #1d92e5 !important; border-top-right-radius: 0px; border-bottom-right-radius: 0px "> <i class="fa fa-group" style="padding-left: 3px; font-size: 14px; color: #1d92e5 !important "></i> ایجاد کارفرمای حقوقی </a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-12">
|
|
<div permission="10411" class="panel-group panel-group-joined" id="accordion-test">
|
|
|
|
|
|
<div class="panel panel-default" style="border-radius: 15px !important; background-color: #dcdbaf">
|
|
<div class="panel-heading" style="background-color: #5a593a !important">
|
|
<h4 class="panel-title" style="color: #edebeb !important; display: inline;">
|
|
<a data-toggle="collapse" data-parent="#accordion-test" href="#collapseOne" class="collapsed" style="display: inline;">
|
|
جستجوی کارفرما
|
|
</a>
|
|
</h4>
|
|
|
|
</div>
|
|
<div id="collapseOne" class="panel-collapse collapse in ">
|
|
<div class="panel-body" style="padding-top: 15px; padding-bottom: 15px;">
|
|
@*===================================================================================================================*@
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<form class="form-inline" role="form" method="get" autocomplete="off">
|
|
<div class="form-group col-lg-12">
|
|
<div class="row">
|
|
<div class="col-lg-3 pull-right">
|
|
<label class="sr-only" asp-for="SearchModel.FName"></label>
|
|
<input class="form-control inpt" autocomplete="off" asp-for="SearchModel.FName" placeholder="نام " style="width: 100%">
|
|
</div>
|
|
<div class="col-lg-3 pull-right">
|
|
<label class="sr-only" asp-for="SearchModel.LName"></label>
|
|
<input class="form-control inpt" autocomplete="off" asp-for="SearchModel.LName" placeholder="نام خانوادگی " style="width: 100%">
|
|
|
|
</div>
|
|
<div class="col-lg-3 pull-right">
|
|
<label class="sr-only" asp-for="SearchModel.NationalCode"></label>
|
|
<input class="form-control inpt" autocomplete="off" asp-for="SearchModel.NationalCode" placeholder="کد ملی " style="width: 100%">
|
|
|
|
</div>
|
|
<div class="col-lg-3 pull-right">
|
|
|
|
<label class="sr-only" asp-for="SearchModel.IdNumber"></label>
|
|
<input class="form-control inpt" autocomplete="off" asp-for="SearchModel.IdNumber" placeholder="شماره شناسنامه " style="width: 100%">
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row" style="margin-top: 15px">
|
|
|
|
|
|
<div class="col-lg-9">
|
|
|
|
|
|
<label class="sr-only" asp-for="SearchModel.IsActive"></label>
|
|
<select class="form-control activer" asp-for="SearchModel.IsActive" style="background-color: #dddddd; border-radius: 25px; border: 1px solid #bfbfbf;">
|
|
<option value="true"> فعال </option>
|
|
<option value="false"> غیرفعال</option>
|
|
<option value="both"> هردو</option>
|
|
</select>
|
|
<label class="sr-only" asp-for="SearchModel.IsLegal"></label>
|
|
<select class="form-control activer" asp-for="SearchModel.IsLegal" style="background-color: #dddddd; border-radius: 25px; border: 1px solid #bfbfbf;">
|
|
<option value="both"> حقیقی/حقوقی </option>
|
|
<option value="true"> حقوقی</option>
|
|
<option value="false"> حقیقی</option>
|
|
</select>
|
|
|
|
|
|
@*<label class="sr-only" asp-for="SearchModel.IsActive"></label>
|
|
<select class="form-control" asp-for="SearchModel.IsActive" style="background-color: #dddddd; border-radius: 25px; border: 1px solid #bfbfbf;">
|
|
<option value=""> نوع </option>
|
|
<option [ngValue]="True"> فعال</option>
|
|
<option [ngValue]="False"> غیرفعال</option>
|
|
</select>*@
|
|
</div>
|
|
|
|
<div class="col-lg-3">
|
|
<button type="submit" class="btn btn-success btn-rounded waves-effect waves-light m-b-5" style="border-bottom-left-radius: 0px; border-top-left-radius: 0px; background-color: #5a593a; border-color: #5a593a; font-family: 'Web_Yekan' !important; margin-left: -3px "> <i class="fa fa-search" style="padding-left: 3px; font-size: 14px;"></i> جستجو</button>
|
|
<a class="btn btn-info btn-rounded waves-effect waves-light m-b-5" style="border-bottom-right-radius: 0px; border-top-right-radius: 0px; background-color: #545353; border-color: #545353; font-family: 'Web_Yekan' !important;" asp-page="./Index">مشاهده همه</a>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</form>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
@*==================================================================personal=====*@
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
|
<div permission="10412" class="panel panel-default">
|
|
<div class="panel-heading" style="background-color: #5a593a">
|
|
<h3 class="panel-title"><i class="fa fa-list" style="padding-left: 3px; font-size: 14px"></i> لیست کارفرما</h3>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="row">
|
|
<div class="col-md-12 col-sm-12 col-xs-12">
|
|
<table id="datatable" class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th style="font-size: 14px !important; width: 5px !important">#</th>
|
|
|
|
|
|
<th style="font-size: 14px !important">نام حقیقی / نام حقوقی</th>
|
|
|
|
|
|
<th style="font-size: 14px !important">کد ملی / شناسه ملی</th>
|
|
@*<th>شمارهشناسنامه / شماره ثبت</th>*@
|
|
<th class="thh" style="display: none"> شماره شناسنامه </th>
|
|
<th class="thh" style="display: none"> شماره ثبت </th>
|
|
<th style="font-size: 14px !important;">عملیات</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model.Employers)
|
|
{
|
|
<tr>
|
|
|
|
<td style="font-size: 14px !important; text-align: center; width: 5px !important">@i </td>
|
|
|
|
|
|
<td style="font-family: 'Web_Yekan' !important; font-size: 14px !important; text-align: center;">
|
|
|
|
|
|
@item.FullName
|
|
|
|
|
|
</td>
|
|
|
|
|
|
<td style="font-family: 'IranText' !important; font-size: 14px !important; text-align: center">
|
|
@if (item.IsLegal == "false")
|
|
{
|
|
@item.NationalCode
|
|
}
|
|
else
|
|
{
|
|
@item.NationalId
|
|
}
|
|
|
|
</td>
|
|
|
|
|
|
<td style="font-family: 'IranText' !important; font-size: 14px !important; display: none">@item.IdNumber</td>
|
|
<td style="font-family: 'IranText' !important; font-size: 14px !important; display: none">@item.RegisterId</td>
|
|
@{
|
|
i++;
|
|
}
|
|
<td style="width: 150px !important">
|
|
@if (item.IsActive == "true")
|
|
{
|
|
<a permission="20116" id="googleLink" asp-page="./Index" asp-page-handler="DeActive" asp-route-id="@item.Id" class="btn btn-danger pull-left m-rl-5 fff rad">
|
|
<i class="fa faSize fa-trash"></i>
|
|
</a>
|
|
}
|
|
else
|
|
{
|
|
<a permission="20116" asp-page="./Index" asp-page-handler="IsActive" asp-route-id="@item.Id" class="btn btn-success pull-left m-rl-5 rad">
|
|
<i class="fa faSize fa-rotate-left"></i>
|
|
</a>
|
|
}
|
|
@if (item.IsLegal == "false")
|
|
{
|
|
<a class="btn btn-warning pull-left m-rl-5 rad" permission="10114"
|
|
href="#showmodal=@Url.Page("./Index", "EditReal", new { item.Id })">
|
|
<i class="fa faSize fa-edit"></i>
|
|
</a>
|
|
<a class="btn btn-info pull-left m-rl-5 rad" permission="10115"
|
|
href="#showmodal=@Url.Page("./Index", "RealDetails", new { item.Id })">
|
|
<i class="fa faSize fa-edit"></i>
|
|
</a>
|
|
}
|
|
else
|
|
{
|
|
<a class="btn btn-warning pull-left m-rl-5 rad" permission="10114"
|
|
href="#showmodal=@Url.Page("./Index", "EditLegal", new { item.Id })">
|
|
<i class="fa faSize fa-edit"></i>
|
|
</a>
|
|
<a class="btn btn-info pull-left m-rl-5 rad" permission="10115"
|
|
href="#showmodal=@Url.Page("./Index", "LegalDetails", new { item.Id })">
|
|
<i class="fa faSize fa-edit"></i>
|
|
</a>
|
|
}
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
}
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
@section Script {
|
|
<script src="~/AdminTheme/assets/js/site2.js"></script>
|
|
<script src="~/adminTheme/assets/datatables/jquery.dataTables.min.js"></script>
|
|
<script src="~/adminTheme/assets/datatables/dataTables.bootstrap.js"></script>
|
|
|
|
@*<script src="~/lib/select2/js/select2.js"></script>
|
|
<script src="~/lib/select2/js/i18n/fa.js"></script>
|
|
<script>
|
|
$(document).ready(function () {
|
|
$(".select-city").select2({
|
|
language: "fa",
|
|
dir: "rtl"
|
|
});
|
|
})
|
|
</script>*@
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$('#datatable').dataTable({
|
|
"lengthMenu": [[25, 10, 50, 100, -1], [25, 10, 50, 100, "All"]]
|
|
});
|
|
});
|
|
|
|
|
|
</script>
|
|
|
|
<script>
|
|
$('.activer').on('change',
|
|
function(e) {
|
|
e.preventDefault();
|
|
$('.search').click();
|
|
|
|
});
|
|
</script>
|
|
@*<script>
|
|
$("#myTab a").click(function (e) {
|
|
e.preventDefault();
|
|
$(this).tab('show');
|
|
|
|
});
|
|
|
|
$("#myTab2 a").click(function (e) {
|
|
e.preventDefault();
|
|
$(this).tab('show');
|
|
|
|
});
|
|
// store the currently selected tab in the hash value
|
|
$("ul.nav-tabs > li > a").on("shown.bs.tab", function (e) {
|
|
var id = $(e.target).attr("href").substr(1);
|
|
window.location.hash = id;
|
|
});
|
|
|
|
// on load of the page: switch to the currently selected tab
|
|
var hash = window.location.hash;
|
|
$('#myTab a[href="' + hash + '"]').tab('show', 'active');
|
|
var hash2 = window.location.hash;
|
|
$('#myTab2 a[href="' + hash2 + '"]').tab('show', 'active');
|
|
|
|
|
|
|
|
|
|
</script>*@
|
|
|
|
|
|
|
|
|
|
} |