1124 lines
60 KiB
Plaintext
1124 lines
60 KiB
Plaintext
@page
|
||
@using CompanyManagment.App.Contracts.PersonalContractingParty
|
||
@model ServiceHost.Areas.Admin.Pages.Company.ContractingParties.IndexModel
|
||
|
||
@{
|
||
//string colaps = "in";
|
||
//string act = "active";
|
||
int i = 1;
|
||
string withOutContract = "withOutInstitutionContract";
|
||
string adminVersion = _0_Framework.Application.Version.AdminVersion;
|
||
}
|
||
|
||
@{string employerList = "";
|
||
Layout = "Shared/_AdminLayout";
|
||
ViewData["title"] = "طرف حساب ها";
|
||
<style>
|
||
.sizeSet {
|
||
padding: 2px !important;
|
||
text-align: center !important;
|
||
}
|
||
.faSize {
|
||
font-size: 21px !important;
|
||
}
|
||
.rad {
|
||
border-radius: 8px !important;
|
||
/* padding: 10px; */
|
||
padding: 2px 5px 0px 5px;
|
||
}
|
||
|
||
.ionSize {
|
||
font-size: 20px !important;
|
||
top: 2px !important;
|
||
position: relative;
|
||
}
|
||
|
||
.ionRad {
|
||
border-radius: 8px !important;
|
||
padding: 0px 7px 0px 7px !important;
|
||
background-color: #ff7700 !important;
|
||
border-color: #ff7700 !important;
|
||
}
|
||
.thh0 {
|
||
width: 8px !important;
|
||
}
|
||
|
||
.thh {
|
||
width: 40px !important;
|
||
}
|
||
|
||
.thh2 {
|
||
width: 130px !important;
|
||
}
|
||
|
||
.thhNastionalId {
|
||
width: 30px !important;
|
||
}
|
||
|
||
.inpt {
|
||
width: 100%;
|
||
border: 1px solid #c7c7c7;
|
||
}
|
||
.partyType {
|
||
background-color: #dddddd !important;
|
||
border-radius: 25px;
|
||
border: 1px solid #bfbfbf;
|
||
margin-left: 5px;
|
||
}
|
||
.searchpanel {
|
||
background-color: #747272;
|
||
}
|
||
select {
|
||
cursor: pointer;
|
||
}
|
||
.withOutInstitutionContract {
|
||
background-color: #ffbfbf !important;
|
||
}
|
||
.btn-table {
|
||
margin: 0 5px;
|
||
border-radius: 8px;
|
||
padding: 4px 8px 2px 8px;
|
||
box-shadow: 0 0 6px 0px #838383;
|
||
font-size: 20px;
|
||
}
|
||
.addActualEmployer{
|
||
background-color: #f5f5f5;
|
||
border-color: #0f9500;
|
||
font-family: 'Web_Yekan' !important;
|
||
color: #0f9500 !important;
|
||
border-top-left-radius: 0px;
|
||
border-bottom-left-radius: 0px;
|
||
}
|
||
.addLegalEmployer{
|
||
background-color: #f5f5f5;
|
||
border-color: #1d92e5;
|
||
font-family: 'Web_Yekan' !important;
|
||
color: #1d92e5 !important;
|
||
border-top-right-radius: 0px;
|
||
border-bottom-right-radius: 0px;
|
||
}
|
||
.addActualEmployer:hover, .addActualEmployer:focus{
|
||
background-color: #f5f5f5;
|
||
border-color: #0f9500;
|
||
color: #0f9500 !important;
|
||
box-shadow: 0 2px 5px 0 rgba(0,0,0,.16), 0 2px 10px 0 rgba(0,0,0,.12);
|
||
}
|
||
.addLegalEmployer:hover, .addLegalEmployer:focus{
|
||
background-color: #f5f5f5;
|
||
border-color: #1d92e5;
|
||
color: #1d92e5 !important;
|
||
box-shadow: 0 2px 5px 0 rgba(0,0,0,.16), 0 2px 10px 0 rgba(0,0,0,.12);
|
||
}
|
||
#datatable thead .sorting:after {
|
||
opacity: 0;
|
||
}
|
||
|
||
#datatable > tbody > tr > td {
|
||
padding: 4px 8px;
|
||
}
|
||
|
||
.blockCount {
|
||
font-size: 14px;
|
||
vertical-align: middle;
|
||
position: relative;
|
||
top: -2px;
|
||
display: inline-flex;
|
||
width: 10px;
|
||
}
|
||
@@media (max-width: 768px){
|
||
.in-containers {
|
||
margin: 3px 0;
|
||
font-size: 11px;
|
||
}
|
||
}
|
||
.searchFilter , .searchFilter:hover , .searchFilter:focus , .searchFilter:active{
|
||
border-bottom-left-radius: 0px;
|
||
border-top-left-radius: 0px;
|
||
background-color: #1b9998;
|
||
border-color: #1b9998;
|
||
font-family: 'Web_Yekan' !important;
|
||
margin-left: -3px;
|
||
}
|
||
.searchButtons{
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 0 8px;
|
||
}
|
||
table.dataTable thead .sorting:after, table.dataTable thead .sorting_asc:after, table.dataTable thead .sorting_desc:after {
|
||
opacity: 0;
|
||
}
|
||
.table-bordered>thead>tr>th {
|
||
font-size: 14px;
|
||
text-align: center;
|
||
}
|
||
.operation-td {
|
||
display: flex;
|
||
justify-content: flex-start;
|
||
flex-direction: row-reverse;
|
||
}
|
||
.name-td {
|
||
font-family: 'Web_Yekan' !important;
|
||
font-size: 14px !important;
|
||
max-width: 100px;
|
||
position: relative;
|
||
}
|
||
|
||
.bgRed , .bgRed:hover{
|
||
background-color:red;
|
||
border: red;
|
||
}
|
||
.bgOrange, .bgOrange:hover{
|
||
background-color:#ff8404;
|
||
border: #ff8404;
|
||
}
|
||
.bgGreen, .bgGreen:hover{
|
||
background-color: #2e951b;
|
||
border: #2e951b;
|
||
}
|
||
.bgGray, .bgGray:hover{
|
||
background-color:#b5b5b5 !important;
|
||
color: #646464;
|
||
}
|
||
.selectContainer{
|
||
width: 73%;
|
||
margin: auto;
|
||
}
|
||
@@media(max-width: 1000px){
|
||
.selectContainer{
|
||
width: 100%;
|
||
margin: auto;
|
||
}
|
||
}
|
||
@*select2 css start*@
|
||
::-webkit-scrollbar {
|
||
width: 8px;
|
||
}
|
||
|
||
::-webkit-scrollbar-track {
|
||
background: #dfdfdf;
|
||
border-radius: 5px;
|
||
}
|
||
|
||
::-webkit-scrollbar-thumb {
|
||
background: #b991b9;
|
||
border-radius: 5px;
|
||
}
|
||
.opt {
|
||
background-color: #fff7ff;
|
||
border-radius: 10px;
|
||
text-align: right;
|
||
padding: 2px 5px;
|
||
text-overflow: ellipsis;
|
||
overflow-x: hidden;
|
||
width: 100%;
|
||
}
|
||
.noResult{
|
||
background-color: #fff7ff;
|
||
border-radius: 10px;
|
||
text-align: right;
|
||
padding: 2px 5px;
|
||
}
|
||
.opt:hover ,.noResult:hover{
|
||
background-color: #ddcadd !important;
|
||
}
|
||
.selectDiv {
|
||
position: relative;
|
||
z-index: 2;
|
||
border-radius: 10px;
|
||
min-height: 20px;
|
||
max-height: 190px;
|
||
overflow: hidden scroll;
|
||
width: 100%;
|
||
background-color: rgb(255 255 255);
|
||
display: block;
|
||
box-shadow: 0px -1px 12px 0px rgba(0,0,0,.16), 2px 1px 10px 0 rgba(0,0,0,.12);
|
||
}
|
||
|
||
.selectedOption {
|
||
color: #343434 !important;
|
||
background-color: #fff0ff !important;
|
||
}
|
||
|
||
.keyboardSelected {
|
||
color: #343434 !important;
|
||
background-color: #ddcadd !important;
|
||
}
|
||
@*button container start*@
|
||
@@keyframes buttonsContainerIn {
|
||
0% {
|
||
transform: translateX(-150px);
|
||
}
|
||
|
||
100% {
|
||
transform: translateX(0);
|
||
}
|
||
}
|
||
@@keyframes buttonsContainerOut {
|
||
0% {
|
||
transform: translateX(0);
|
||
}
|
||
|
||
100% {
|
||
transform: translateX(-150px);
|
||
}
|
||
}
|
||
.tooltipfullBtns {
|
||
opacity: 0;
|
||
z-index: 1;
|
||
color: #ffffff;
|
||
display: block;
|
||
font-size: 12px;
|
||
padding: 5px 10px;
|
||
border-radius: 15px;
|
||
text-align: center;
|
||
background: #fbb306;
|
||
border: 1px solid #fbb306;
|
||
box-shadow: 0 0 11px rgb(139 139 139 / 79%);
|
||
-webkit-transition: all .2s ease-in-out;
|
||
-moz-transition: all .2s ease-in-out;
|
||
-o-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: -35px;
|
||
bottom: 40px;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.tooltipfullBtns:before, .tooltipfullBtns:after {
|
||
content: '';
|
||
border-left: 7px solid transparent;
|
||
border-right: 7px solid transparent;
|
||
border-top: 10px solid #fbb306;
|
||
position: absolute;
|
||
bottom: -10px;
|
||
left: 40%;
|
||
}
|
||
.ellipsed{
|
||
display: block;
|
||
width: 100%;
|
||
text-overflow: ellipsis;
|
||
overflow-x: clip;
|
||
white-space: nowrap;
|
||
}
|
||
.tooltipfull-container {
|
||
cursor: pointer;
|
||
position: absolute;
|
||
display: inline-block;
|
||
right: 9px;
|
||
top: 13px;
|
||
}
|
||
.tooltipfull {
|
||
opacity: 0;
|
||
z-index: 99;
|
||
color: #fff;
|
||
width: fit-content;
|
||
white-space: nowrap;
|
||
display: block;
|
||
font-size: 12px;
|
||
font-family: 'IranSans';
|
||
padding: 5px 10px;
|
||
border-radius: 15px;
|
||
text-align: center;
|
||
/* text-shadow: 1px 1px 2px #111; */
|
||
background: #524651;
|
||
border: 1px solid #524651;
|
||
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: -2px;
|
||
bottom: 30px;
|
||
}
|
||
|
||
.tooltipfull-container:hover .tooltipfull, a:hover .tooltipfull {
|
||
opacity: 1;
|
||
-webkit-transform: scale(1);
|
||
-moz-transform: scale(1);
|
||
-o-transform: scale(1);
|
||
-ms-transform: scale(1);
|
||
transform: scale(1);
|
||
}
|
||
|
||
.tooltipfull:before, .tooltipfull:after {
|
||
content: '';
|
||
border-left: 10px solid transparent;
|
||
border-right: 10px solid transparent;
|
||
border-top: 10px solid #524651;
|
||
position: absolute;
|
||
bottom: -10px;
|
||
right: 20px;
|
||
}
|
||
.fulltext {
|
||
opacity: 0;
|
||
white-space: nowrap;
|
||
}
|
||
.buttons-container.active {
|
||
opacity: 1;
|
||
animation: roadRunnerIn 0.3s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
|
||
}
|
||
|
||
.buttons-container.reverse {
|
||
/*transform: translateX(-150px);*/
|
||
transition: opacity 0.3s ease-out;
|
||
animation: roadRunnerOut 0.2s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
|
||
}
|
||
@@keyframes roadRunnerIn {
|
||
0% {
|
||
transform: translateX(-150px) skewX(30deg) scaleX(1.3);
|
||
}
|
||
|
||
70% {
|
||
transform: translateX(30px) skewX(0deg) scaleX(.9);
|
||
}
|
||
|
||
100% {
|
||
transform: translateX(0px) skewX(0deg) scaleX(1);
|
||
}
|
||
}
|
||
|
||
@@keyframes roadRunnerOut {
|
||
0% {
|
||
transform: translateX(0px) skewX(0deg) scaleX(1);
|
||
}
|
||
|
||
30% {
|
||
transform: translateX(-50px) skewX(0deg) scaleX(.9);
|
||
}
|
||
|
||
100% {
|
||
transform: translateX(-150px) skewX(30deg) scaleX(1.3);
|
||
}
|
||
}
|
||
.flexible-div {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
justify-content: left;
|
||
}
|
||
.operationBtns {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-evenly;
|
||
}
|
||
.buttons-container {
|
||
opacity: 0;
|
||
display: none;
|
||
position: absolute;
|
||
background: #ffffffe0;
|
||
box-shadow: 0 0 6px 0px #939393;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
padding: 10px 0px;
|
||
width: 6rem;
|
||
/*right: -10rem;*/
|
||
height: auto;
|
||
border-radius: 10px;
|
||
justify-content: center;
|
||
transform: translateX(-150px);
|
||
z-index: 99;
|
||
/*animation: roadRunnerIn .3s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;*/
|
||
}
|
||
.op-td {
|
||
max-width: 300px;
|
||
position: relative;
|
||
}
|
||
.employee-operations {
|
||
background: #1e88b3;
|
||
color: #ffffff;
|
||
width: 7rem;
|
||
padding: 7px 8px;
|
||
font-size: 12px;
|
||
position: relative;
|
||
border-radius: 8px !important;
|
||
animation: blink 1s infinite;
|
||
}
|
||
@@keyframes blink{
|
||
0% {
|
||
background: #1886b3;
|
||
}
|
||
50% {
|
||
background: #2594c1;
|
||
}
|
||
100% {
|
||
background: #1886b3;
|
||
}
|
||
}
|
||
.employee-operations:hover,
|
||
.employee-operations:focus,
|
||
.employee-operations:active {
|
||
background: #1482af;
|
||
color: white;
|
||
}
|
||
|
||
.employee-operations:before {
|
||
content: '';
|
||
border-top: 6px solid transparent;
|
||
border-bottom: 6px solid transparent;
|
||
position: absolute;
|
||
left: 69px;
|
||
top: 8px;
|
||
border-left: 13px solid #1e88b3;
|
||
}
|
||
|
||
.more-buttons.active .employee-operations:before {
|
||
opacity: 1;
|
||
}
|
||
|
||
.more-buttons .employee-operations:before {
|
||
opacity: 0;
|
||
}
|
||
.operationBtns a i.fa-trash {
|
||
transform: translate(-1px, -1px);
|
||
}
|
||
.operationBtns a i.fa-info-circle {
|
||
color: #26731c;
|
||
transform: translate(-1px, 0px);
|
||
}
|
||
.btn-table-block, .btn-table-details{
|
||
color: #ffffff;
|
||
width: 15rem;
|
||
height: 4.2rem;
|
||
box-shadow: 0 0 3px 0 black;
|
||
margin: 4px 0;
|
||
font-size: 11px;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.btn-table-block i, .btn-table-details i{
|
||
font-size: 22px;
|
||
margin: 0 0px 0 7px;
|
||
}
|
||
.mobile-view{
|
||
display:none;
|
||
}
|
||
.screen-view {
|
||
display: flex;
|
||
}
|
||
table.dataTable thead > tr > th {
|
||
padding: 8px;
|
||
}
|
||
.searchAll, .searchAll:hover , .searchAll:focus , .searchAll:active{
|
||
border-bottom-right-radius: 0px;
|
||
border-top-right-radius: 0px;
|
||
background-color: #545353;
|
||
border-color: #545353;
|
||
font-family: 'Web_Yekan' !important;
|
||
}
|
||
.searchFilter i{
|
||
padding-left: 3px;
|
||
font-size: 14px;
|
||
}
|
||
@@media(max-width: 768px){
|
||
.top-btns {
|
||
display: flex;
|
||
justify-content: space-around;
|
||
}
|
||
.name-td {
|
||
font-size: 12px !important;
|
||
max-width: 200px;
|
||
}
|
||
table.dataTable thead > tr > th {
|
||
padding-left: 0px;
|
||
padding-right: 0px;
|
||
text-align: center;
|
||
font-size: 12px;
|
||
}
|
||
.employee-operations {
|
||
background: #2fb2ed;
|
||
width: 3rem;
|
||
font-size: 12px;
|
||
}
|
||
.xs-middle {
|
||
margin: auto;
|
||
float: none;
|
||
display: flex;
|
||
justify-content: center;
|
||
column-gap: 4px;
|
||
}
|
||
.xs-middle .btn-rounded {
|
||
padding: 6px 5px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.employee-operations:before {
|
||
left: 28px;
|
||
}
|
||
div.dataTables_length, div.dataTables_filter{
|
||
display: none;
|
||
}
|
||
.pagination>li>a{
|
||
padding: 6px 10px;
|
||
}
|
||
div.dataTables_paginate ul.pagination {
|
||
font-size: 10px;
|
||
padding: 0;
|
||
}
|
||
.searchButtons{
|
||
flex-wrap: wrap;
|
||
}
|
||
.addLegalEmployer, .addActualEmployer{
|
||
border-top-right-radius: 2em;
|
||
border-bottom-right-radius: 2em;
|
||
border-top-left-radius: 2em;
|
||
border-bottom-left-radius: 2em;
|
||
padding: 5px 3px;
|
||
font-size: 12px;
|
||
}
|
||
.addActualEmployer{
|
||
margin-left: 5px;
|
||
}
|
||
.mobile-view {
|
||
display: flex;
|
||
}
|
||
.screen-view {
|
||
display: none;
|
||
}
|
||
.fa-minus-circle {
|
||
font-size: 15px;
|
||
transform: translate(2px, -1px);
|
||
}
|
||
.btn-table {
|
||
margin: 3px 5px;
|
||
border-radius: 8px;
|
||
padding: 5px;
|
||
box-shadow: 0 0 6px 0px #838383;
|
||
font-size: 18px;
|
||
width: 4rem;
|
||
}
|
||
.buttons-container {
|
||
padding: 2px 0px;
|
||
}
|
||
.partyType{
|
||
margin-right: 0;
|
||
margin-left: 0px;
|
||
padding: 0;
|
||
}
|
||
.form-control{
|
||
font-size: 11px;
|
||
}
|
||
.right-one {
|
||
padding-left: 0;
|
||
}
|
||
.left-one {
|
||
padding-right: 0;
|
||
}
|
||
#activing{
|
||
padding: 0;
|
||
}
|
||
.searchFilter{
|
||
margin-left: -4px;
|
||
}
|
||
.searchFilter, .searchAll {
|
||
padding: 6px 9px;
|
||
font-size: 10px;
|
||
}
|
||
.searchFilter i, #activing, .partyType {
|
||
font-size: 10px;
|
||
}
|
||
}
|
||
a.disabled {
|
||
pointer-events: none;
|
||
cursor: default;
|
||
background-color: grey !important;
|
||
border-color: grey !important;
|
||
}
|
||
</style>
|
||
var selctedOption = "selectedOption";
|
||
}
|
||
|
||
@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 top-btns">
|
||
<p class="pull-right">
|
||
<a permission="10110" href="#showmodal=@Url.Page("./Index", "Create")" class="btn btn-success btn-rounded waves-effect waves-light m-b-5 addActualEmployer"> <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="10111" href="#showmodal=@Url.Page("./Index", "InsertLegal")" class="btn btn-success btn-rounded waves-effect waves-light m-b-5 addLegalEmployer"> <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="10112" class="panel-group panel-group-joined" id="accordion-test">
|
||
<div class="panel panel-default" style="border-radius: 15px !important; background-color: #d5e5e5">
|
||
<div class="panel-heading" style="background-color: #1b9998 !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-xs-12" style="width: 100%;margin-right: 0;">
|
||
<div class="row">
|
||
<div class="col-lg-4 col-md-6 col-xs-6 pull-right in-containers right-one" style="height: 40px">
|
||
<label class="sr-only"></label>
|
||
<input type="hidden" class="sendEmployeeId" asp-for="SearchModel2.id"/>
|
||
<input type="hidden" asp-for="SearchModel2.EmployeeName" />
|
||
<input type="search" id="empSearch" value="@Model.LName" class="form-control @{if(!string.IsNullOrWhiteSpace(@Model.LName)){@selctedOption}}" autocomplete="off" placeholder="نام و نام خانوادگی / نام شرکت " style="width: 100%;position: relative">
|
||
<div id="emp" class="selectDiv" style="display: none;">
|
||
<ul class="searchResult m-t-10" style="list-style-type: none; padding: 5px">
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-lg-4 col-md-6 col-xs-6 pull-right in-containers left-one" style="height: 40px">
|
||
<label class="sr-only"></label>
|
||
<input type="hidden" class="sendNationalcode" asp-for="SearchModel2.Nationalcode" />
|
||
<input type="search" id="empSearchNationalcode" value="@Model.Nationalcode" class="form-control @{if(!string.IsNullOrWhiteSpace(@Model.Nationalcode)){@selctedOption}} " autocomplete="off" placeholder=" شماره / شناسه ملی " style="width: 100%;position: relative">
|
||
<div id="empNationalcode" class="selectDiv" style="display: none;">
|
||
<ul class="searchResultNationalcode m-t-10" style="list-style-type: none; padding: 5px">
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="col-lg-4 col-md-12 col-sm-12 col-xs-12 pull-right in-containers" style="height: 40px">
|
||
<label class="sr-only"></label>
|
||
<input type="hidden" class="sendContractingPartyID" asp-for="SearchModel2.RepresentativeId" />
|
||
<input type="hidden" asp-for="SearchModel2.RepresentativeName" />
|
||
<input type="search" id="empSearchContractingPartyID" value="@Model.RepresentativeName" class="form-control @{if(!string.IsNullOrWhiteSpace(@Model.RepresentativeName)){@selctedOption}} " autocomplete="off" placeholder=" معرف " style="width: 100%;position: relative">
|
||
<div id="empContractingPartyID" class="selectDiv" style="display: none;">
|
||
<ul class="searchResultContractingPartyID m-t-10" style="list-style-type: none; padding: 5px">
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<hr style=" margin-top: 12px;margin-bottom: 12px;">
|
||
<div class="row" style="margin-top: 15px">
|
||
<div class="col-lg-8 col-xs-6" style="display: flex;padding-right: 0;">
|
||
<label class="sr-only" asp-for="SearchModel2.IsActiveString"></label>
|
||
<select id="activing" class="form-control" asp-for="SearchModel2.IsActiveString" style="background-color: #dddddd; border-radius: 25px; border: 1px solid #bfbfbf;">
|
||
<option selected="selected" value="true"> فعال </option>
|
||
<option value="false"> غیرفعال</option>
|
||
<option value="both"> هردو</option>
|
||
</select>
|
||
<label class="sr-only" asp-for="SearchModel2.IsLegal"></label>
|
||
<select class="form-control partyType" asp-for="SearchModel2.IsLegal">
|
||
<option value=""> نوع طرف حساب</option>
|
||
<option value="حقوقی"> حقوقی</option>
|
||
<option value="حقیقی"> حقیقی</option>
|
||
</select>
|
||
</div>
|
||
<div class="col-lg-4 col-xs-6" style="padding-left: 0;">
|
||
<a href="#" class="btn btn-searchContractingParties btn-success btn-rounded waves-effect waves-light searchFilter"> <i class="fa fa-search"></i> جستجو</a>
|
||
<button id="btnSearch" type="submit" style="display:none" >جستجو</button>
|
||
<a class="btn btn-info btn-rounded waves-effect waves-light searchAll" asp-page="./Index">حذف فیلتر </a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
@*==================================================================personal=====*@
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-md-12">
|
||
<div permission="10113" class="panel panel-default">
|
||
<div class="panel-heading" style="background-color: #1b9998 !important;">
|
||
<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 class="sorting_asc_disabled sorting_desc_disabled">
|
||
<th class="sorting_asc_disabled sorting_desc_disabled" style="max-width: 20px;">#</th>
|
||
<th style="font-size: 14px !important;max-width:50px;text-align: center;" class="hidden-xs sorting_asc_disabled sorting_desc_disabled">کد طرف حساب</th>
|
||
<th style="font-size: 14px !important;max-width: 50px;text-align: center;" class="hidden-xs sorting_asc_disabled sorting_desc_disabled">کد ملی / شناسه ملی</th>
|
||
<th class="sorting_asc_disabled sorting_desc_disabled" style="font-size: 14px !important;text-align: center;max-width: 150px;">نام طرف حساب</th>
|
||
<th style="font-size: 14px !important;text-align: center;max-width: 500px;" class="hidden-xs sorting_asc_disabled sorting_desc_disabled">نام کارفرما</th>
|
||
@*<th>شمارهشناسنامه / شماره ثبت</th>*@
|
||
<th class="thh sorting_asc_disabled sorting_desc_disabled" style="display: none"> شماره شناسنامه </th>
|
||
<th class="thh sorting_asc_disabled sorting_desc_disabled" style="display: none"> شماره ثبت </th>
|
||
<th class="sorting_asc_disabled sorting_desc_disabled" style="font-size: 14px !important;max-width: 40px;">عملیات</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
@foreach (var item in Model.Personals)
|
||
{
|
||
employerList = "";
|
||
|
||
<tr class="@{if(@item.HasInstitutionContract != true){@withOutContract}} @(item.IsBlock == "true"?"bgGray":"")">
|
||
<td style="font-size: 14px !important; text-align: center;">@i </td>
|
||
<td style="font-family: 'IranSans' !important; font-size: 14px !important; text-align: center;max-width:80px" class="hidden-xs">
|
||
@item.ArchiveCode
|
||
</td>
|
||
<td style="font-family: 'IranText' !important; font-size: 14px !important; text-align: center;" class="hidden-xs">
|
||
@if (item.IsLegal == "حقیقی")
|
||
{
|
||
@item.Nationalcode
|
||
}
|
||
else
|
||
{
|
||
@item.NationalId
|
||
}
|
||
</td>
|
||
<td style="font-family: 'Web_Yekan' !important; text-align: right;" class="name-td">
|
||
<span class="ellipsed">
|
||
@if (item.IsLegal == "حقیقی")
|
||
{
|
||
@item.FName
|
||
<span> </span>
|
||
@item.LName
|
||
}
|
||
else
|
||
{
|
||
@item.LName
|
||
}
|
||
</span>
|
||
<div class="tooltipfull-container">
|
||
<p class="fulltext">
|
||
@if (item.IsLegal == "حقیقی")
|
||
{
|
||
@item.FName
|
||
<span> </span>
|
||
@item.LName
|
||
}
|
||
else
|
||
{
|
||
@item.LName
|
||
}
|
||
</p>
|
||
<span class="tooltipfull">
|
||
@if (item.IsLegal == "حقیقی")
|
||
{
|
||
@item.FName
|
||
<span> </span>
|
||
@item.LName
|
||
}
|
||
else
|
||
{
|
||
@item.LName
|
||
}
|
||
</span>
|
||
</div>
|
||
</td>
|
||
<td style="font-family: 'Web_Yekan' !important; text-align: right;" class="name-td hidden-xs">
|
||
<span class="ellipsed">
|
||
@if (item.EmployerList != null && item.EmployerList.Count > 0)
|
||
{
|
||
|
||
for (int j=0;j<item.EmployerList.Count ; j++)
|
||
{
|
||
employerList += "<span>" + item.EmployerList[j].FullName + "</span>";
|
||
if (j < item.EmployerList.Count-1)
|
||
{
|
||
employerList += "<span> - </span>";
|
||
}
|
||
}
|
||
@Html.Raw(employerList)
|
||
}
|
||
</span>
|
||
<div class="tooltipfull-container">
|
||
<p class="fulltext">
|
||
@if (item.EmployerList != null && item.EmployerList.Count > 0)
|
||
{
|
||
@Html.Raw(employerList)
|
||
}
|
||
</p>
|
||
<span class="tooltipfull">
|
||
@if (item.EmployerList != null && item.EmployerList.Count > 0)
|
||
{
|
||
if (item.EmployerList.Count > 10)
|
||
{
|
||
<span>این طرف حساب بیشتر از 10 کارفرما دارد.</span>
|
||
}
|
||
else
|
||
{
|
||
@Html.Raw(employerList)
|
||
}
|
||
}
|
||
</span>
|
||
</div>
|
||
</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>
|
||
|
||
<td>
|
||
<div class="operation-td screen-view">
|
||
@if (item.IsActiveString == "true")
|
||
{
|
||
|
||
if (item.HasInstitutionContract)
|
||
{
|
||
<a permission="10114" onclick="removeHasInstitutionContract(@item.id,'@item.HasInstitutionContract',@item.EmployerList.Count())" class="@(item.IsBlock=="true"?"disabled":"") btn pull-left btn-danger btn-table">
|
||
<i class="fa fa-trash"></i>
|
||
</a>
|
||
}
|
||
else
|
||
{
|
||
<a permission="10114" onclick="remove(@item.id)" class="@(item.IsBlock=="true"?"disabled":"") btn pull-left btn-danger btn-table">
|
||
<i class="fa fa-trash"></i>
|
||
</a>
|
||
}
|
||
}
|
||
else
|
||
{
|
||
<a permission="10114" onclick="acitve(@item.id)" class="@(item.IsBlock=="true"?"disabled":"") btn pull-left btn-danger btn-table">
|
||
<i class="fa fa-rotate-left"></i>
|
||
</a>
|
||
}
|
||
@if (item.IsLegal == "حقیقی")
|
||
{
|
||
<a class="@(item.IsBlock=="true"?"disabled":"") btn btn-warning pull-left rad btn-table" permission="10114" style="margin-left:5px"
|
||
href="#showmodal=@Url.Page("./Index", "Edit", new { Id = item.id })">
|
||
<i class="fa faSize fa-edit"></i>
|
||
</a>
|
||
|
||
@if (item.IsBlock == "true")
|
||
{
|
||
<a onclick="disableBlock(@item.id,@item.BlockTimes)" class="btn btn-inverse pull-left rad btn-table" permission="10114" style="margin-left:5px" class="btn pull-right btn-danger btn-table">
|
||
<span class="blockCount">@item.BlockTimes</span>
|
||
<i class="fa fa-minus-circle"></i>
|
||
</a>
|
||
}
|
||
else if(item.BlockTimes==2)
|
||
{
|
||
<a onclick="block(@item.id)" class="btn btn-inverse bgRed pull-left rad btn-table" permission="10114" style="margin-left:5px" class="btn pull-right btn-danger btn-table">
|
||
<span class="blockCount">@item.BlockTimes</span>
|
||
<i class="fa fa-minus-circle"></i>
|
||
</a>
|
||
}
|
||
else if(item.BlockTimes==1)
|
||
{
|
||
<a onclick="block(@item.id)" class="btn btn-inverse bgOrange pull-left rad btn-table" permission="10114" style="margin-left:5px" class="btn pull-right btn-danger btn-table">
|
||
<span class="blockCount">@item.BlockTimes</span>
|
||
<i class="fa fa-minus-circle"></i>
|
||
</a>
|
||
}
|
||
else if(item.BlockTimes==0 || item.IsBlock != "true")
|
||
{
|
||
<a onclick="block(@item.id)" class="btn btn-inverse bgGreen pull-left rad btn-table" permission="10114" style="margin-left:5px" class="btn pull-right btn-danger btn-table">
|
||
<span class="blockCount">@item.BlockTimes</span>
|
||
<i class="fa fa-minus-circle"></i>
|
||
</a>
|
||
}
|
||
<a class="btn pull-left rad btn-table" permission="10115" style="margin-left:5px;background-color: #176a0c;border: 1px solid #176a0c;color: white;"
|
||
href="#showmodal=@Url.Page("./Index", "Details", new { Id = item.id })">
|
||
<i class="fa faSize fa-info-circle"></i>
|
||
</a>
|
||
}
|
||
else
|
||
{
|
||
<a class="@(item.IsBlock=="true"?"disabled":"") btn btn-warning pull-left rad btn-table" permission="10114" style="margin-left:5px"
|
||
href="#showmodal=@Url.Page("./Index", "LegalEdit", new { Id = item.id })">
|
||
<i class="fa faSize fa-edit"></i>
|
||
</a>
|
||
@if (item.IsBlock == "true")
|
||
{
|
||
<a onclick="disableBlock(@item.id,@item.BlockTimes)" class="btn btn-inverse pull-left rad btn-table" permission="10114" style="margin-left:5px" class="btn pull-right btn-danger btn-table">
|
||
<span class="blockCount">@item.BlockTimes</span>
|
||
<i class="fa fa-minus-circle"></i>
|
||
</a>
|
||
}
|
||
else if(item.BlockTimes==2)
|
||
{
|
||
<a onclick="block(@item.id)" class="btn btn-inverse bgRed pull-left rad btn-table" permission="10114" style="margin-left:5px" class="btn pull-right btn-danger btn-table">
|
||
<span class="blockCount">@item.BlockTimes</span>
|
||
<i class="fa fa-minus-circle"></i>
|
||
</a>
|
||
}
|
||
else if(item.BlockTimes==1)
|
||
{
|
||
<a onclick="block(@item.id)" class="btn btn-inverse bgOrange pull-left rad btn-table" permission="10114" style="margin-left:5px" class="btn pull-right btn-danger btn-table">
|
||
<span class="blockCount">@item.BlockTimes</span>
|
||
<i class="fa fa-minus-circle"></i>
|
||
</a>
|
||
}
|
||
else if(item.BlockTimes==0 )
|
||
{
|
||
<a onclick="block(@item.id)" class="btn btn-inverse bgGreen pull-left rad btn-table" permission="10114" style="margin-left:5px" class="btn pull-right btn-danger btn-table">
|
||
<span class="blockCount">@item.BlockTimes</span>
|
||
<i class="fa fa-minus-circle"></i>
|
||
</a>
|
||
}
|
||
<a class="btn btn-info pull-left rad btn-table" permission="10115" style="margin-left:5px;background-color: #176a0c;border: 1px solid #176a0c;color: white;"
|
||
href="#showmodal=@Url.Page("./Index", "LegalDetails", new { Id = item.id })">
|
||
<i class="fa faSize fa-info-circle"></i>
|
||
</a>
|
||
}
|
||
</div>
|
||
<div class="flexible-div op-td mobile-view" style="justify-content: flex-end;">
|
||
<div class="more-buttons flexible-div">
|
||
<a class="btn pull-left rad employee-operations"><i class="fa fa-bars" aria-hidden="true"></i> </a>
|
||
<div class="buttons-container">
|
||
|
||
|
||
@if (item.IsLegal == "حقیقی")
|
||
{
|
||
<a class="btn pull-left rad btn-table" permission="10115" style="margin-left:5px;background-color: #176a0c;border: 1px solid #176a0c;color: white;"
|
||
href="#showmodal=@Url.Page("./Index", "Details", new { Id = item.id })">
|
||
<i class="fa faSize fa-info-circle"></i>
|
||
</a>
|
||
|
||
@if (item.IsBlock == "true")
|
||
{
|
||
<a onclick="disableBlock(@item.id,@item.BlockTimes)" class="btn btn-inverse pull-left rad btn-table" permission="10114" style="margin-left:5px" class="btn pull-right btn-danger btn-table">
|
||
<span class="blockCount">@item.BlockTimes</span>
|
||
<i class="fa fa-minus-circle"></i>
|
||
</a>
|
||
}
|
||
else if(item.BlockTimes==2)
|
||
{
|
||
<a onclick="block(@item.id)" class="btn btn-inverse bgRed pull-left rad btn-table" permission="10114" style="margin-left:5px" class="btn pull-right btn-danger btn-table">
|
||
<span class="blockCount">@item.BlockTimes</span>
|
||
<i class="fa fa-minus-circle"></i>
|
||
</a>
|
||
}
|
||
else if(item.BlockTimes==1)
|
||
{
|
||
<a onclick="block(@item.id)" class="btn btn-inverse bgOrange pull-left rad btn-table" permission="10114" style="margin-left:5px" class="btn pull-right btn-danger btn-table">
|
||
<span class="blockCount">@item.BlockTimes</span>
|
||
<i class="fa fa-minus-circle"></i>
|
||
</a>
|
||
}
|
||
else if(item.BlockTimes==0 || item.IsBlock != "true")
|
||
{
|
||
<a onclick="block(@item.id)" class="btn btn-inverse bgGreen pull-left rad btn-table" permission="10114" style="margin-left:5px" class="btn pull-right btn-danger btn-table">
|
||
<span class="blockCount">@item.BlockTimes</span>
|
||
<i class="fa fa-minus-circle"></i>
|
||
</a>
|
||
}
|
||
<a class="btn btn-warning pull-left rad btn-table @(item.IsBlock=="true"?"disabled":"")" permission="10114" style="margin-left:5px"
|
||
href="#showmodal=@Url.Page("./Index", "Edit", new { Id = item.id })">
|
||
<i class="fa faSize fa-edit"></i>
|
||
</a>
|
||
}
|
||
else
|
||
{
|
||
<a class="btn btn-info pull-left rad btn-table" permission="10115" style="margin-left:5px;background-color: #176a0c;border: 1px solid #176a0c;color: white;"
|
||
href="#showmodal=@Url.Page("./Index", "LegalDetails", new { Id = item.id })">
|
||
<i class="fa faSize fa-info-circle"></i>
|
||
</a>
|
||
@if (item.IsBlock == "true")
|
||
{
|
||
<a onclick="disableBlock(@item.id,@item.BlockTimes)" class="btn btn-inverse pull-left rad btn-table" permission="10114" style="margin-left:5px" class="btn pull-right btn-danger btn-table">
|
||
<span class="blockCount">@item.BlockTimes</span>
|
||
<i class="fa fa-minus-circle"></i>
|
||
</a>
|
||
}
|
||
else if(item.BlockTimes==2)
|
||
{
|
||
<a onclick="block(@item.id)" class="btn btn-inverse bgRed pull-left rad btn-table" permission="10114" style="margin-left:5px" class="btn pull-right btn-danger btn-table">
|
||
<span class="blockCount">@item.BlockTimes</span>
|
||
<i class="fa fa-minus-circle"></i>
|
||
</a>
|
||
}
|
||
else if(item.BlockTimes==1)
|
||
{
|
||
<a onclick="block(@item.id)" class="btn btn-inverse bgOrange pull-left rad btn-table" permission="10114" style="margin-left:5px" class="btn pull-right btn-danger btn-table">
|
||
<span class="blockCount">@item.BlockTimes</span>
|
||
<i class="fa fa-minus-circle"></i>
|
||
</a>
|
||
}
|
||
else if(item.BlockTimes==0 )
|
||
{
|
||
<a onclick="block(@item.id)" class="btn btn-inverse bgGreen pull-left rad btn-table" permission="10114" style="margin-left:5px" class="btn pull-right btn-danger btn-table">
|
||
<span class="blockCount">@item.BlockTimes</span>
|
||
<i class="fa fa-minus-circle"></i>
|
||
</a>
|
||
}
|
||
|
||
<a class="btn btn-warning pull-left rad btn-table" permission="10114" style="margin-left:5px"
|
||
href="#showmodal=@Url.Page("./Index", "LegalEdit", new { Id = item.id })">
|
||
<i class="fa faSize fa-edit"></i>
|
||
</a>
|
||
}
|
||
@if (item.IsActiveString == "true")
|
||
{
|
||
if (item.HasInstitutionContract)
|
||
{
|
||
<a permission="10114" onclick="removeHasInstitutionContract(@item.id,'@item.HasInstitutionContract',@item.EmployerList.Count())" class="@(item.IsBlock=="true"?"disabled":"") btn pull-left btn-danger btn-table">
|
||
<i class="fa fa-trash"></i>
|
||
</a>
|
||
}
|
||
else
|
||
{
|
||
<a permission="10114" onclick="remove(@item.id)" class="@(item.IsBlock=="true"?"disabled":"") btn pull-left btn-danger btn-table">
|
||
<i class="fa fa-trash"></i>
|
||
</a>
|
||
}
|
||
}
|
||
else
|
||
{
|
||
<a permission="10114" onclick="acitve(@item.id)" class="@(item.IsBlock=="true"?"disabled":"") btn pull-left btn-danger btn-table">
|
||
<i class="fa fa-rotate-left"></i>
|
||
</a>
|
||
}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
{
|
||
i++;
|
||
}
|
||
}
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
@section Script {
|
||
<script src="~/AdminTheme/assets/js/site.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>
|
||
var antiForgeryToken ='@Html.AntiForgeryToken()';
|
||
var contractPartyListAjaxUrl = '@Url.Page("./Index", "ContractPartyList")';
|
||
var representativeListAjaxUrl = '@Url.Page("./Index", "RepresentativeList")';
|
||
var personalContractingPartyNationalcodeAjaxUrl = '@Url.Page("./Index", "PersonalContractingPartyNationalcode")';
|
||
var deletePersonalContractingPartiesAjaxUrl = '@Url.Page("./Index", "DeletePersonalContractingParties")';
|
||
var indexUrl = '@Url.Page("/Company/ContractingParties/Index")';
|
||
var checkHasContractAjaxUrl = '@Url.Page("./Index", "CheckHasContract")';
|
||
var activePersonalContractingPartiesAjaxUrl = '@Url.Page("./Index", "ActivePersonalContractingParties")';
|
||
var blockPersonalContractingPartiesAjaxUrl = '@Url.Page("./Index", "BlockPersonalContractingParties")';
|
||
var disableBlockPersonalContractingPartiesAjaxUrl = '@Url.Page("./Index", "DisableBlockPersonalContractingParties")';
|
||
|
||
</script>
|
||
<script src="~/AssetsAdmin/page/ContractingParty/js/index.js?ver=@adminVersion"></script>
|
||
|
||
|
||
|
||
}
|
||
|
||
|
||
|
||
|
||
|