1142 lines
35 KiB
Plaintext
1142 lines
35 KiB
Plaintext
@page
|
||
@using CompanyManagment.App.Contracts.File1
|
||
@model ServiceHost.Areas.Admin.Pages.Company.FilePage.IndexModel
|
||
@{
|
||
//string colaps = "in";
|
||
//string act = "active";
|
||
var i = 1;
|
||
|
||
string[] turns =
|
||
{
|
||
"اول", "دوم", "سوم", "چهارم", "پنجم", "ششم", "هفتم", "هشتم", "نهم", "دهم"
|
||
, "یازدهم", "دوازدهم", "سیزدهم", "چهاردهم", "پانزدهم", "شانزدهم", "هفدهم", "هجدهم", "نوزدهم", "بیستم"
|
||
, "بیست و یکم", "بیست و دوم", "بیست و سوم", "بیست و چهارم", "بیست و پنجم", "بیست و ششم", "بیست و هفتم", "بیست و هشتم", "بیست و نهم", "سی ام",
|
||
"سی و یکم", "سی و دوم", "سی و سوم", "سی و چهارم", " سی و پنجم", " سی و ششم", " سی و هفتم", "سی و هشتم", " سی و نهم", " چهلم"
|
||
};
|
||
|
||
}
|
||
|
||
@{
|
||
//Layout = "~/Pages/Shared/_Layout.cshtml";
|
||
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;
|
||
}
|
||
|
||
.select2-container .select2-selection--single {
|
||
height: 34px;
|
||
}
|
||
|
||
table tbody tr {
|
||
height: 33.64px;
|
||
}
|
||
|
||
table.dataTable tbody > tr > td p {
|
||
font-size: 12px !important;
|
||
text-align: center !important;
|
||
vertical-align: middle;
|
||
|
||
}
|
||
|
||
table.table-bordered tbody td {
|
||
border-bottom-width: 1.5px;
|
||
}
|
||
|
||
table.dataTable thead > tr > th {
|
||
padding-left: 8px;
|
||
padding-right: 8px;
|
||
padding-top: 30px;
|
||
vertical-align: middle;
|
||
}
|
||
|
||
.ionRad {
|
||
border-radius: 8px !important;
|
||
padding: 1px 5px;
|
||
}
|
||
|
||
.ionSize {
|
||
font-size: 14.5px !important;
|
||
top: 2px !important;
|
||
position: relative;
|
||
}
|
||
.wrapped {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
max-width: 120px;
|
||
direction: rtl !important;
|
||
}
|
||
.tooltip-container {
|
||
cursor: pointer;
|
||
position: relative;
|
||
display: inline-block;
|
||
}
|
||
|
||
.tooltip {
|
||
opacity: 0;
|
||
z-index: 99;
|
||
color: #fff;
|
||
width: max-content;
|
||
display: block;
|
||
font-size: 14px;
|
||
font-family: 'IranSans';
|
||
padding: 5px 10px;
|
||
border-radius: 3px;
|
||
text-align: center;
|
||
/*text-shadow: 1px 1px 2px #111;*/
|
||
background: #e67e22;
|
||
border: 1px solid #e67e22;
|
||
box-shadow: 0 0 3px rgba(0,0,0,0.5);
|
||
-webkit-transition: all .2s ease-in-out;
|
||
-moz-transition: all .2s ease-in-out;
|
||
-o-transition: all .2s ease-in-out;
|
||
-ms-transition: all .2s ease-in-out;
|
||
transition: all .2s ease-in-out;
|
||
-webkit-transform: scale(0);
|
||
-moz-transform: scale(0);
|
||
-o-transform: scale(0);
|
||
-ms-transform: scale(0);
|
||
transform: scale(0);
|
||
position: absolute;
|
||
/*right: -75px;*/
|
||
bottom: 30px;
|
||
}
|
||
|
||
.tooltip:before, .tooltip:after {
|
||
content: '';
|
||
border-left: 10px solid transparent;
|
||
border-right: 10px solid transparent;
|
||
border-top: 10px solid #e67e22;
|
||
position: absolute;
|
||
bottom: -10px;
|
||
left: 70%;
|
||
}
|
||
|
||
.tooltip-container:hover .tooltip {
|
||
opacity: 1;
|
||
-webkit-transform: scale(1);
|
||
-moz-transform: scale(1);
|
||
-o-transform: scale(1);
|
||
-ms-transform: scale(1);
|
||
transform: scale(1);
|
||
}
|
||
</style>
|
||
|
||
|
||
<div class="row">
|
||
|
||
|
||
<div class="row">
|
||
<div class="col-sm-12 m-r-10">
|
||
<p class="pull-right">
|
||
<a id="btnPopModal" href="#showmodal=@Url.Page("/Company/FilePage/Index", "CreateFile")" 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; margin-right: 10px "> <i class="fa fa-user-plus" style="padding-left: 3px; font-size: 14px; color: #0f9500 !important "></i> ایجاد پرونده جدید </a>
|
||
</p>
|
||
<p class="pull-left">
|
||
<a id="btnPopModal" href="#showmodal=@Url.Page("/Company/FilePage/Index", "CreateOrEditFileTiming")" class="btn btn-success btn-rounded waves-effect waves-light m-b-5" style=" background-color: #f5f5f5; border-color: #448bdb; font-family: 'Web_Yekan' !important; color: #448bdb !important; margin-left: 10px "> <i class="fa fa-calendar" style="padding-right: 3px; font-size: 14px; color: #448bdb !important "></i> زمانبندی </a>
|
||
</p>
|
||
|
||
<p class="pull-left">
|
||
<a id="ExcelDownload" href="@Url.Page("/Company/FilePage/Index", "ExcelFileDetails")" class="btn btn-success btn-rounded waves-effect waves-light m-b-5" style=" background-color: #f5f5f5; border-color: #448bdb; font-family: 'Web_Yekan' !important; color: #448bdb !important; margin-left: 10px "> <i class="fa fa-file" style="padding-right: 3px; font-size: 14px; color: #448bdb !important "></i> دانلود اکسل </a>
|
||
</p>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="col-sm-12">
|
||
<div class="panel-group panel-group-joined" id="accordion-test">
|
||
|
||
<div class="panel panel-default" style="border-radius: 15px !important; background: #b79d52;">
|
||
<div class="panel-heading" style="background-color: #564301 !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-sm-12">
|
||
<form class="form-inline" role="form" method="GET" name="search-theme-form" id="search-theme-form" autocomplete="off">
|
||
<input type="text" asp-for="fileSearchModel.IsSearch" value="true" hidden>
|
||
<div class="form-group col-sm-12">
|
||
<div class="row">
|
||
<div class="col-sm-3 pull-right m-b-15">
|
||
<select class="form-control select-city" asp-for="fileSearchModel.ArchiveNo" style="width: 100%">
|
||
<option value="">شماره بایگانی</option>
|
||
|
||
@foreach (var item in Model.fileSearchModel.ArchiveNo_FileClass_UserIdList)
|
||
{
|
||
<option value="@item.ArchiveNo">@item.ArchiveNo</option>
|
||
}
|
||
|
||
</select>
|
||
</div>
|
||
<div class="col-sm-3 pull-right m-b-15">
|
||
<select class="form-control select-city" asp-for="fileSearchModel.FileClass" style="width: 100%">
|
||
<option value="">کلاسه پرونده</option>
|
||
|
||
@foreach (var item in Model.fileSearchModel.ArchiveNo_FileClass_UserIdList)
|
||
{
|
||
<option value="@item.FileClass">@item.FileClass</option>
|
||
}
|
||
|
||
</select>
|
||
</div>
|
||
<div class="col-sm-3 pull-right m-b-15">
|
||
<select class="form-control select-city" asp-for="fileSearchModel.UserId_RequesterOrSummoned" style="width: 100%">
|
||
<option value="">اصیل دعوی</option>
|
||
|
||
@foreach (var item in Model.fileSearchModel.UsersList)
|
||
{
|
||
<option value="@item.Id-@item.RequesterOrSummoned">@item.FullName</option>
|
||
}
|
||
|
||
</select>
|
||
</div>
|
||
<div class="col-sm-12"></div>
|
||
<div class="col-sm-3 pull-right m-b-15">
|
||
<input class="form-control inpt" asp-for="fileSearchModel.diagnosisBoard.Branch" style="width: 100%" placeholder="شعبه رسیدگی هیات تشخیص">
|
||
</div>
|
||
<div class="col-sm-3 pull-right m-b-15">
|
||
<input class="form-control inpt" asp-for="fileSearchModel.diagnosisBoard.BoardChairman" style="width: 100%" placeholder="رئیس هیات تشخیص">
|
||
</div>
|
||
<div class="col-sm-3 pull-right m-b-15">
|
||
<input class="form-control inpt" asp-for="fileSearchModel.disputeResolutionBoard.Branch" style="width: 100%" placeholder="شعبه رسیدگی هیات تشخیص">
|
||
</div>
|
||
<div class="col-sm-3 pull-right m-b-15">
|
||
<input class="form-control inpt" asp-for="fileSearchModel.disputeResolutionBoard.BoardChairman" style="width: 100%" placeholder="رئیس هیات حل اختلاف">
|
||
</div>
|
||
<div class="col-sm-12"></div>
|
||
<div class="col-sm-3 pull-right m-b-15">
|
||
<input class="form-control inpt" dir="ltr" maxlength="10" onchange="validDate(this);" style="width: 100%; text-align: right" asp-for="fileSearchModel.diagnosisProceedingSession.FromDate" placeholder="تاریخ رسیدگی هیات تشخیص (از)">
|
||
</div>
|
||
<div class="col-sm-3 pull-right m-b-15">
|
||
<input class="form-control inpt" dir="ltr" maxlength="10" onchange="validDate(this);" style="width: 100%; text-align: right" asp-for="fileSearchModel.diagnosisProceedingSession.ToDate" style="width: 100%" placeholder="تاریخ رسیدگی هیات تشخیص (تا)">
|
||
</div>
|
||
<div class="col-sm-3 pull-right m-b-15">
|
||
<input class="form-control inpt" dir="ltr" maxlength="10" onchange="validDate(this);" style="width: 100%; text-align: right" asp-for="fileSearchModel.disputeResolutionProceedingSession.FromDate" placeholder="تاریخ رسیدگی هیات حل اختلاف (از)">
|
||
</div>
|
||
<div class="col-sm-3 pull-right m-b-15">
|
||
<input class="form-control inpt" dir="ltr" maxlength="10" onchange="validDate(this);" style="width: 100%; text-align: right" asp-for="fileSearchModel.disputeResolutionProceedingSession.ToDate" placeholder="تاریخ رسیدگی هیات حل اختلاف (تا)">
|
||
</div>
|
||
<div class="col-sm-3 pull-right m-b-15">
|
||
<select class="form-control select-city" asp-for="fileSearchModel.Status" style="width: 100%">
|
||
<option value="2">فعال</option>
|
||
<option value="1">غیرفعال</option>
|
||
<option value="3">خروج موقت</option>
|
||
<option value="0">همه</option>
|
||
</select>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<div class="row" style="margin-top: 15px">
|
||
|
||
|
||
<div class="col-lg-9">
|
||
</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: #950000; border-color: #950000; 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>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-sm-12">
|
||
<div class="panel panel-default">
|
||
<div class="panel-heading" style="background: #564301">
|
||
<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-sm-12 col-sm-12 col-xs-12">
|
||
<table id="datatable" class="table table-striped table-bordered">
|
||
<thead>
|
||
<tr>
|
||
<th style="display: none">#</th>
|
||
<th>#</th>
|
||
<th style=" font-size: 10px; text-align: center"> بایگانی </th>
|
||
<th style=" font-size: 10px; text-align: center"> کلاسه پرونده </th>
|
||
<th style=" font-size: 10px; text-align: center"> حقیقی / حقوقی </th>
|
||
<th style=" font-size: 10px; text-align: center"> تاریخ ثبت دادخواست </th>
|
||
<th style=" font-size: 10px; text-align: center"> نوبت رسیدگی </th>
|
||
<th style=" font-size: 10px; text-align: center"> مدارک </th>
|
||
<th style=" font-size: 10px; text-align: center"> تحقیق </th>
|
||
<th style=" font-size: 10px; text-align: center"> نوبت رسیدگی </th>
|
||
<th style=" font-size: 10px; text-align: center"> دادنامه تشخیص </th>
|
||
<th style=" font-size: 10px; text-align: center"> تاریخ ثبت دادخواست </th>
|
||
<th style=" font-size: 10px; text-align: center"> نوبت رسیدگی </th>
|
||
<th style=" font-size: 10px; text-align: center"> مدارک </th>
|
||
<th style=" font-size: 10px; text-align: center"> تحقیق </th>
|
||
<th style=" font-size: 10px; text-align: center"> نوبت رسیدگی </th>
|
||
<th style=" font-size: 10px; text-align: center"> دادنامه حل اختلاف </th>
|
||
<th style=" font-size: 10px; text-align: center">عملیات</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
|
||
@foreach (var item in Model.viewModels)
|
||
{
|
||
var background = "";
|
||
var status = 0;
|
||
var activationStatus = 0;
|
||
var style = "";
|
||
var exitStyle = "";
|
||
if (item.HasMandate == 1)
|
||
{
|
||
background = "background-color : #eb7070;";
|
||
}
|
||
|
||
<tr style="@(item.Status == FileEnums.DEACTIVE ? "background-color: rgba(255, 165, 0, 0.42)" : "")">
|
||
|
||
@if (item.Status != FileEnums.TEMPORARY_EXIT)
|
||
{
|
||
status = FileEnums.TEMPORARY_EXIT;
|
||
}
|
||
else
|
||
{
|
||
style = "background-color: #ffffff; border: 1px solid #000; transform: rotate(180deg);";
|
||
exitStyle = "background-color: #e4b801";
|
||
status = FileEnums.ACTIVE;
|
||
}
|
||
<td style="display: none">
|
||
<p>@i</p>
|
||
</td>
|
||
<td class="p-0" style="@exitStyle">
|
||
<table class="table m-0" style="background: transparent">
|
||
<tbody>
|
||
<tr>
|
||
<td style="border-top: 0;">
|
||
<a title="@(item.Status != FileEnums.TEMPORARY_EXIT ? "خارج کردن پرونده از بایگانی" : "وارد کردن پرونده به بایگانی")" class="btn btn-warning ionRad" onclick="setFileStatus(@item.Id, @status)" style="@style; position: relative; right: 6px">
|
||
<i class="fa faSize fa-sign-out"></i>
|
||
</a>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p>@i</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<button title="مشخصات کاربر" class="btn btn-primary ionRad" data-toggle="modal" data-target="#UserInfoModal-@item.Id" style=" position: relative; right: 6px">
|
||
<i class="fa faSize fa-info" style="padding: 0 4px;"></i>
|
||
</button>
|
||
<div id="UserInfoModal-@item.Id" class="modal fade" role="dialog">
|
||
<div class="modal-dialog">
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="row">
|
||
<fieldset class="m-b-15" style="border: 1px solid #999797; border-radius: 10px; padding: revert">
|
||
|
||
@if (item.Client == 1)
|
||
{
|
||
<legend style="margin-bottom: 5px; font-size: large; border-bottom: 0px; color: #505458; width: 215px; text-align: center;"> @item.EmployeeDetail.EmployeeFullName </legend>
|
||
<div class="col-sm-12 col-sm-12 col-xs-12">
|
||
<table id="datatable" class="table table-striped table-bordered">
|
||
<thead>
|
||
<tr>
|
||
<td>
|
||
<p>نام کاربری اداره کار</p>
|
||
</td>
|
||
<td>
|
||
<p>رمز عبور اداره کار</p>
|
||
</td>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>
|
||
<p>@item.EmployeeDetail.MclsUserName</p>
|
||
</td>
|
||
<td>
|
||
<p>@item.EmployeeDetail.MclsPassword</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
<thead>
|
||
<tr>
|
||
<td>
|
||
<p>نام کاربری E Service</p>
|
||
</td>
|
||
<td>
|
||
<p>رمز عبور E Service</p>
|
||
</td>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>
|
||
<p>@item.EmployeeDetail.EserviceUserName</p>
|
||
</td>
|
||
<td>
|
||
<p>@item.EmployeeDetail.EservicePassword</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
<thead>
|
||
<tr>
|
||
<td>
|
||
<p>نام کاربری سامانه مالیات</p>
|
||
</td>
|
||
<td>
|
||
<p>رمز عبور سامانه مالیات</p>
|
||
</td>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>
|
||
<p>@item.EmployeeDetail.TaxOfficeUserName</p>
|
||
</td>
|
||
<td>
|
||
<p>@item.EmployeeDetail.TaxOfficepassword</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
<thead>
|
||
<tr>
|
||
<td>
|
||
<p>نام کاربری سامانه ثنا</p>
|
||
</td>
|
||
<td>
|
||
<p>رمز عبور سامانه ثنا</p>
|
||
</td>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>
|
||
<p>@item.EmployeeDetail.SanaUserName</p>
|
||
</td>
|
||
<td>
|
||
<p>@item.EmployeeDetail.SanaPassword</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
}
|
||
else
|
||
{
|
||
<legend style="margin-bottom: 5px; font-size: large; border-bottom: 0px; color: #505458; width: 170px; text-align: center;"> @item.EmployerDetail.FullName </legend>
|
||
<div class="col-sm-12 col-sm-12 col-xs-12">
|
||
<table id="datatable" class="table table-striped table-bordered">
|
||
<thead>
|
||
<tr>
|
||
<td>
|
||
<p>نام کاربری اداره کار</p>
|
||
</td>
|
||
<td>
|
||
<p>رمز عبور اداره کار</p>
|
||
</td>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>
|
||
<p>@item.EmployerDetail.MclsUserName</p>
|
||
</td>
|
||
<td>
|
||
<p>@item.EmployerDetail.MclsPassword</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
<thead>
|
||
<tr>
|
||
<td>
|
||
<p>نام کاربری E Service</p>
|
||
</td>
|
||
<td>
|
||
<p>رمز عبور E Service</p>
|
||
</td>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>
|
||
<p>@item.EmployerDetail.EserviceUserName</p>
|
||
</td>
|
||
<td>
|
||
<p>@item.EmployerDetail.EservicePassword</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
<thead>
|
||
<tr>
|
||
<td>
|
||
<p>نام کاربری سامانه مالیات</p>
|
||
</td>
|
||
<td>
|
||
<p>رمز عبور سامانه مالیات</p>
|
||
</td>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>
|
||
<p>@item.EmployerDetail.TaxOfficeUserName</p>
|
||
</td>
|
||
<td>
|
||
<p>@item.EmployerDetail.TaxOfficepassword</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
<thead>
|
||
<tr>
|
||
<td>
|
||
<p>نام کاربری سامانه ثنا</p>
|
||
</td>
|
||
<td>
|
||
<p>رمز عبور سامانه ثنا</p>
|
||
</td>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>
|
||
<p>@item.EmployerDetail.SanaUserName</p>
|
||
</td>
|
||
<td>
|
||
<p>@item.EmployerDetail.SanaPassword</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
}
|
||
|
||
</fieldset>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</td>
|
||
<td style="@exitStyle">
|
||
<p>@item.ArchiveNo</p>
|
||
</td>
|
||
<td style="@background">
|
||
<p>@(item.FileClass ?? "-")</p>
|
||
</td>
|
||
|
||
@if (item.Client == 1)
|
||
{
|
||
<td class="p-0" style="@background">
|
||
<table class="table m-0" style="background: transparent">
|
||
<tbody>
|
||
<tr>
|
||
<td style="border-top: 0">
|
||
<div class="tooltip-container">
|
||
<p class="wrapped">
|
||
@(item.ReqesterFullname ?? "-")
|
||
</p>
|
||
<span class="tooltip">
|
||
@(item.ReqesterFullname ?? "-")
|
||
</span>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<div class="tooltip-container">
|
||
<p class="wrapped">
|
||
@(item.SummonedFullname ?? "-")
|
||
</p>
|
||
<span class="tooltip">
|
||
@(item.SummonedFullname ?? "-")
|
||
</span>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</td>
|
||
}
|
||
else
|
||
{
|
||
<td class="p-0" style="@background">
|
||
<table class="table m-0" style="background: transparent">
|
||
<tbody>
|
||
<tr>
|
||
<td style="border-top: 0">
|
||
<div class="tooltip-container">
|
||
<p class="wrapped">
|
||
@(item.SummonedFullname ?? "-")
|
||
</p>
|
||
<span class="tooltip">
|
||
@(item.SummonedFullname ?? "-")
|
||
</span>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<div class="tooltip-container">
|
||
<p class="wrapped">
|
||
@(item.ReqesterFullname ?? "-")
|
||
</p>
|
||
<span class="tooltip">
|
||
@(item.ReqesterFullname ?? "-")
|
||
</span>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</td>
|
||
}
|
||
|
||
<td>
|
||
<p>@item.DiagnosisBoard.DisputeResolutionPetitionDate</p>
|
||
</td>
|
||
<td class="p-0">
|
||
@if (item.DiagnosisBoard.Id != 0 && item.FirstDiagnosisPS.Id != 0)
|
||
{
|
||
<table class="table m-0" style="background: transparent">
|
||
<tbody>
|
||
<tr>
|
||
<td style="border-top: 0">
|
||
<p>@(item.FirstDiagnosisPS.Date ?? "-")</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p> نوبت اول </p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p> @item.DiagnosisBoard.Branch - @item.DiagnosisBoard.BoardChairman </p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
}
|
||
else
|
||
{
|
||
<table class="table m-0" style="background: transparent">
|
||
<tbody>
|
||
<tr>
|
||
<td style="text-align: center; border-top: 0">-</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align: center">-</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align: center">-</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
}
|
||
</td>
|
||
|
||
<td style="font-size: 14px !important; text-align: center">
|
||
|
||
@if (item.DiagnosisEvidenceId == 0)
|
||
{
|
||
style = "background-color: #fff; border-color: #009688; color: #009688 !important";
|
||
}
|
||
else
|
||
{
|
||
style = "background-color: #009688; border-color: #009688;";
|
||
}
|
||
|
||
<a class="btn btn-inverse ionRad" href="#showmodal=@Url.Page("./Index", "CreateOrEditEvidence", new { fileId = item.Id, boardTypeId = 1 })" onclick="setUrl(this)" style="@style">
|
||
<i class="fa fa-clipboard ionSize"></i>
|
||
</a>
|
||
</td>
|
||
<td style="font-size: 14px !important; text-align: center">
|
||
|
||
|
||
@if (item.DiagnosisMasterPetitionId == 0)
|
||
{
|
||
style = "background-color: #fff; border-color: #ff7700; color: #ff7700 !important";
|
||
}
|
||
else
|
||
{
|
||
style = "background-color: #ff7700; border-color: #ff7700;";
|
||
}
|
||
|
||
<a class="btn btn-inverse ionRad" href="#showmodal=@Url.Page("./Index", "CreateOrEditMasterPetition", new { fileId = item.Id, boardTypeId = 1 })" onclick="setUrl(this)" style="@style">
|
||
<i class="fa fa-search ionSize"></i>
|
||
</a>
|
||
</td>
|
||
<td class="p-0">
|
||
@if (item.DiagnosisBoard.Id != 0 && item.LastDiagnosisPS.Id != 0)
|
||
{
|
||
<table class="table m-0" style="background: transparent">
|
||
<tbody>
|
||
<tr>
|
||
<td style="border-top: 0">
|
||
<p>@(item.LastDiagnosisPS.Date ?? "-")</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p> نوبت @turns[item.DiagnosisPsCount] </p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p> @item.DiagnosisBoard.Branch - @item.DiagnosisBoard.BoardChairman </p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
}
|
||
else
|
||
{
|
||
<table class="table m-0" style="background: transparent">
|
||
<tbody>
|
||
<tr>
|
||
<td style="text-align: center; border-top: 0">-</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align: center">-</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align: center">-</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
}
|
||
</td>
|
||
<td class="p-0" @(item.DiagnosisPetition.PetitionIssuanceDate != null ? "style=background-color:#448bdb" : "")>
|
||
<table class="table m-0" style="background: transparent">
|
||
<tbody>
|
||
<tr>
|
||
<td style="border-top: 0">
|
||
<p>@(item.DiagnosisPetition.PetitionIssuanceDate ?? "-")</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p>@(item.DiagnosisPetition.TotalPenalty ?? "-")</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="p-0" style="text-align: center">
|
||
@*@if(item.DiagnosisPetition.PetitionIssuanceDate != null)
|
||
{*@
|
||
<a class="btn btn-inverse ionRad" href="#showmodal=@Url.Page("./Index", "CreateOrEditPetition", new { fileId = item.Id, boardTypeId = 1 })" onclick="setUrl(this)" style="background-color: #00c1f3; border-color: #00c1f3;">
|
||
<i class="fa fa-file ionSize"></i>
|
||
</a>
|
||
@*}*@
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</td>
|
||
<td style="font-size: 14px !important; text-align: center">
|
||
<p>@(item.DisputeResolutionBoard.DisputeResolutionPetitionDate ?? "-")</p>
|
||
</td>
|
||
<td class="p-0">
|
||
@if (item.DisputeResolutionBoard.Id != 0 && item.FirstDisputeResolutionPS.Id != 0)
|
||
{
|
||
<table class="table m-0" style="background: transparent">
|
||
<tbody>
|
||
<tr>
|
||
<td style="border-top: 0">
|
||
<p>@(item.FirstDisputeResolutionPS.Date ?? "-")</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p> نوبت اول </p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p> @item.DisputeResolutionBoard.Branch - @item.DisputeResolutionBoard.BoardChairman </p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
}
|
||
else
|
||
{
|
||
<table class="table m-0" style="background: transparent">
|
||
<tbody>
|
||
<tr>
|
||
<td style="text-align: center; border-top: 0">-</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align: center">-</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align: center">-</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
}
|
||
</td>
|
||
<td style="font-size: 14px !important; text-align: center">
|
||
|
||
@if (item.DisputeResolutionEvidenceId == 0)
|
||
{
|
||
style = "background-color: #fff; border-color: #009688; color: #009688 !important";
|
||
}
|
||
else
|
||
{
|
||
style = "background-color: #009688; border-color: #009688;";
|
||
}
|
||
|
||
<a class="btn btn-inverse ionRad" href="#showmodal=@Url.Page("./Index", "CreateOrEditEvidence", new { fileId = item.Id, boardTypeId = 2 })" onclick="setUrl(this)" style="@style">
|
||
<i class="fa fa-clipboard ionSize"></i>
|
||
</a>
|
||
</td>
|
||
<td style="font-size: 14px !important; text-align: center">
|
||
|
||
@if (item.DisputeResolutionMasterPetitionId == 0)
|
||
{
|
||
style = "background-color: #fff; border-color: #ff7700; color: #ff7700 !important";
|
||
}
|
||
else
|
||
{
|
||
style = "background-color: #ff7700; border-color: #ff7700;";
|
||
}
|
||
|
||
<a class="btn btn-inverse ionRad" href="#showmodal=@Url.Page("./Index", "CreateOrEditMasterPetition", new { fileId = item.Id, boardTypeId = 2 })" onclick="setUrl(this)" style="@style">
|
||
<i class="fa fa-search ionSize"></i>
|
||
</a>
|
||
</td>
|
||
<td class="p-0">
|
||
@if (item.DisputeResolutionBoard.Id != 0 && item.LastDisputeResolutionPS.Id != 0)
|
||
{
|
||
<table class="table m-0" style="background: transparent">
|
||
<tbody>
|
||
<tr>
|
||
<td style="border-top: 0">
|
||
<p>@(item.LastDisputeResolutionPS.Date ?? "-")</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p> نوبت @turns[item.DisputeResolutionPsCount] </p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p> @item.DisputeResolutionBoard.Branch - @item.DisputeResolutionBoard.BoardChairman </p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
}
|
||
else
|
||
{
|
||
<table class="table m-0" style="background: transparent">
|
||
<tbody>
|
||
<tr>
|
||
<td style="text-align: center; border-top: 0">-</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align: center">-</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="text-align: center">-</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
}
|
||
</td>
|
||
<td class="p-0" @(item.DisputeResolutionPetition.PetitionIssuanceDate != null ? "style=background-color:#448bdb" : "")>
|
||
<table class="table m-0" style="background: transparent">
|
||
<tbody>
|
||
<tr>
|
||
<td style="border-top: 0">
|
||
<p>@(item.DisputeResolutionPetition.PetitionIssuanceDate ?? "-")</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p>@(item.DisputeResolutionPetition.TotalPenalty ?? "-")</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="p-0" style="text-align: center">
|
||
@*@if(item.DisputeResolutionPetition.PetitionIssuanceDate != null)
|
||
{*@
|
||
<a class="btn btn-inverse ionRad" href="#showmodal=@Url.Page("./Index", "CreateOrEditPetition", new { fileId = item.Id, boardTypeId = 2 })" onclick="setUrl(this)" style="background-color: #00c1f3; border-color: #00c1f3;">
|
||
<i class="fa fa-file ionSize"></i>
|
||
</a>
|
||
@*}*@
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</td>
|
||
|
||
@{
|
||
i++;
|
||
}
|
||
|
||
<td class="p-0">
|
||
<table class="table m-0" style="background: transparent">
|
||
<tbody style="text-align: center">
|
||
<tr>
|
||
<td class="p-0" style="border-top: 0">
|
||
<a class="btn btn-warning ionRad" href="#showmodal=@Url.Page("/Company/FilePage/Index", "EditFile", new { item.Id })">
|
||
<i class="fa fa-edit ionSize"></i>
|
||
</a>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="p-0">
|
||
<a class="btn btn-success ionRad" href="#showmodal=@Url.Page("/Company/FilePage/Index", "FileSummary", new { item.Id })">
|
||
<i class="fa fa-file-text ionSize"></i>
|
||
</a>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="p-0">
|
||
@if (item.Status == FileEnums.DEACTIVE)
|
||
{
|
||
style = "background-color: #fff; border-color: #ef5350; color: #ef5350 !important";
|
||
status = FileEnums.ACTIVE;
|
||
}
|
||
else
|
||
{
|
||
style = "background-color: #ef5350; border-color: #ef5350;";
|
||
status = FileEnums.DEACTIVE;
|
||
}
|
||
<a title="@(item.Status == FileEnums.DEACTIVE ? "فعال کردن پرونده" : "غیرفعال کردن پرونده")" class="btn btn-danger ionRad" onclick="setFileStatus(@item.Id, @status)" style="@style">
|
||
<i class="ion-briefcase ionSize"></i>
|
||
</a>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
}
|
||
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
|
||
@section Script {
|
||
<script src="~/AdminTheme/assets/js/site4.js"></script>
|
||
<script src="~/adminTheme/assets/datatables/jquery.dataTables.min.js"></script>
|
||
<script src="~/adminTheme/assets/datatables/dataTables.bootstrap.js"></script>
|
||
|
||
<script type="text/javascript">
|
||
|
||
$(document).ready(function() {
|
||
$('#datatable').dataTable({
|
||
"lengthMenu": [[25, 10, 50, 100, -1], [25, 10, 50, 100, "All"]]
|
||
});
|
||
|
||
//$('#datatable2').dataTable({
|
||
// "lengthMenu": [[25, 10, 50, 100, -1], [25, 10, 50, 100, "All"]]
|
||
//});
|
||
|
||
const URL = "";
|
||
|
||
});
|
||
|
||
//CreateDatePicker('#fileSearchModel_diagnosisProceedingSession_FromDate');
|
||
//CreateDatePicker('#fileSearchModel_diagnosisProceedingSession_ToDate');
|
||
//CreateDatePicker('#fileSearchModel_disputeResolutionProceedingSession_FromDate');
|
||
//CreateDatePicker('#fileSearchModel_disputeResolutionProceedingSession_ToDate');
|
||
|
||
</script>
|
||
|
||
<script>
|
||
|
||
var listArray = [];
|
||
|
||
@foreach (var item in Model.fileSearchModel.ArchiveNo_FileClass_UserIdList)
|
||
{
|
||
@:listArray.push({ ArchiveNo: @item.ArchiveNo, FileClass: "@item.FileClass", UserId: @item.UserId });
|
||
}
|
||
|
||
$('#fileSearchModel_ArchiveNo').on('select2:select',
|
||
function(e) {
|
||
//loadDataByArchiveNo()
|
||
});
|
||
|
||
$('#fileSearchModel_FileClass').on('select2:select',
|
||
function(e) {
|
||
//loadDataByFileClass()
|
||
});
|
||
|
||
$('#fileSearchModel_UserId').on('select2:select',
|
||
function(e) {
|
||
//loadDataByUserId()
|
||
});
|
||
|
||
function loadDataByArchiveNo() {
|
||
const archiveNo = $('#fileSearchModel_ArchiveNo').val();
|
||
|
||
if (archiveNo == "") {
|
||
|
||
$("#fileSearchModel_FileClass").val("").trigger('change');
|
||
$("#fileSearchModel_UserId").val(0).trigger('change');
|
||
return;
|
||
}
|
||
|
||
|
||
for (let i = 0; i < listArray.length; i++) {
|
||
if (listArray[i].ArchiveNo == archiveNo) {
|
||
$("#fileSearchModel_FileClass").val(listArray[i].FileClass).trigger('change');
|
||
$("#fileSearchModel_UserId").val(listArray[i].UserId).trigger('change');
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
function loadDataByFileClass() {
|
||
const fileClass = $('#fileSearchModel_FileClass').val();
|
||
|
||
if (fileClass == "") {
|
||
|
||
$("#fileSearchModel_ArchiveNo").val("").trigger('change');
|
||
$("#fileSearchModel_UserId").val(0).trigger('change');
|
||
return;
|
||
}
|
||
|
||
for (let i = 0; i < listArray.length; i++) {
|
||
if (listArray[i].FileClass == fileClass) {
|
||
$("#fileSearchModel_ArchiveNo").val(listArray[i].ArchiveNo).trigger('change');
|
||
$("#fileSearchModel_UserId").val(listArray[i].UserId).trigger('change');
|
||
}
|
||
}
|
||
}
|
||
|
||
function loadDataByUserId() {
|
||
const userId = $('#fileSearchModel_UserId').val();
|
||
|
||
//if (userId == 0) {
|
||
|
||
// $("#fileSearchModel_ArchiveNo").val("").trigger('change');
|
||
// $("#fileSearchModel_FileClass").val("").trigger('change');
|
||
// return;
|
||
//}
|
||
|
||
for (let i = 0; i < listArray.length; i++) {
|
||
if (listArray[i].UserId == userId) {
|
||
$("#fileSearchModel_ArchiveNo").val(listArray[i].ArchiveNo).trigger('change');
|
||
$("#fileSearchModel_FileClass").val(listArray[i].FileClass).trigger('change');
|
||
return;
|
||
}
|
||
}
|
||
|
||
$("#fileSearchModel_ArchiveNo").val("").trigger('change');
|
||
$("#fileSearchModel_FileClass").val("").trigger('change');
|
||
return;
|
||
}
|
||
|
||
function setFileStatus(id, status) {
|
||
|
||
var message = "";
|
||
|
||
switch (status) {
|
||
case @FileEnums.ACTIVE:
|
||
message = "آیا انجام این کار اطمینان دارید؟";
|
||
break;
|
||
|
||
case @FileEnums.DEACTIVE:
|
||
message = "آیا انجام این کار اطمینان دارید؟";
|
||
break;
|
||
|
||
case @FileEnums.TEMPORARY_EXIT:
|
||
message = "آیا پرونده موقتا از بایگانی جاری خارج شود؟";
|
||
break;
|
||
}
|
||
|
||
swal({
|
||
title: "",
|
||
text: message,
|
||
type: "warning",
|
||
showCancelButton: true,
|
||
confirmButtonColor: "#DD6B55",
|
||
confirmButtonText: "بله",
|
||
cancelButtonText: "خیر",
|
||
closeOnConfirm: true,
|
||
closeOnCancel: true
|
||
},
|
||
function(isConfirm) {
|
||
if (isConfirm) {
|
||
|
||
$.ajax({
|
||
dataType: 'json',
|
||
type: 'POST',
|
||
url: '@Url.Page("./Index", "SetFileStatus")',
|
||
headers: { "RequestVerificationToken": $('@Html.AntiForgeryToken()').val() },
|
||
data: { "id": id, "status": status },
|
||
|
||
success: function(response) {
|
||
console.log(response);
|
||
$.Notification.autoHideNotify('success', 'top center', 'پیام سیستم ', response.message);
|
||
setTimeout(function() {
|
||
|
||
location.reload();
|
||
},
|
||
1200);
|
||
|
||
},
|
||
failure: function(response) {
|
||
console.log(5, response);
|
||
$.Notification.autoHideNotify('error', 'top center', 'پیام سیستم ', response.message);
|
||
}
|
||
});
|
||
|
||
}
|
||
});
|
||
}
|
||
</script>
|
||
} |