merge new changes from mahan to master
This commit is contained in:
@@ -1,231 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using _0_Framework.Application;
|
||||
using OfficeOpenXml;
|
||||
|
||||
namespace _0_Framework.Excel.Checkout;
|
||||
|
||||
using OfficeOpenXml;
|
||||
using OfficeOpenXml.Style;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
public class CustomizeCheckoutExcelGenerator
|
||||
{
|
||||
public static byte[] GenerateCheckoutTempExcelInfo(List<CustomizeCheckoutTempExcelViewModel> data, List<string> selectedParameters)
|
||||
{
|
||||
OfficeOpenXml.ExcelPackage.LicenseContext = LicenseContext.NonCommercial;
|
||||
using var package = new ExcelPackage();
|
||||
var worksheet = package.Workbook.Worksheets.Add("Sheet1");
|
||||
|
||||
|
||||
// Define headers
|
||||
Dictionary<string, string> headers = new Dictionary<string, string>
|
||||
{
|
||||
{ "Month", "ماه" },
|
||||
{ "Year", "سال" },
|
||||
{ "EmployeeFullName", "نام و نام خانوادگی" },
|
||||
{ "PersonnelCodeString", "شماره پرسنلی" },
|
||||
{ "NationalCode", "کدملی" },
|
||||
{ "SumOfWorkingDays", "روز کارکرد" },
|
||||
{ "MonthlySalary", "حقوق ماهانه" },
|
||||
{ "BaseYearsPay", "سنوات" },
|
||||
{ "MarriedAllowance", "حق تاهل" },
|
||||
{ "OvertimePay", "اضافه کاری" },
|
||||
{ "NightworkPay", "شب کاری" },
|
||||
{ "FridayPay", "جمعه کاری" },
|
||||
{ "MissionPay", "مأموریت" },
|
||||
{ "ShiftPay", "نوبت کاری" },
|
||||
{ "FamilyAllowance", "حق فرزند" },
|
||||
{ "BonusesPay", "پاداش" },
|
||||
{ "LeavePay", "مزد مرخصی" },
|
||||
{ "RewardPay", "پاداش" },
|
||||
{ "FineDeduction", "جریمه" },
|
||||
{ "InsuranceDeduction", "حق بیمه" },
|
||||
{ "TaxDeducation", "مالیات" },
|
||||
{ "InstallmentDeduction", "قسط وام" },
|
||||
{ "SalaryAidDeduction", "مساعده" },
|
||||
{ "AbsenceDeduction", "غیبت" },
|
||||
{ "EarlyExitDeduction", "تعجیل در خروج" },
|
||||
{ "LateToWorkDeduction", "تاخیر در ورود" },
|
||||
{ "TotalClaims", "جمع مطالبات" },
|
||||
{ "TotalDeductions", "جمع کسورات" },
|
||||
{ "TotalPayment", "مبلغ قابل پرداخت" },
|
||||
{ "CardNumber", "شماره کارت" },
|
||||
{ "ShebaNumber", "شماره شبا" },
|
||||
{ "BankAccountNumber", "شماره حساب" },
|
||||
|
||||
};
|
||||
Dictionary<string, string> filteredHeaders;
|
||||
if (!selectedParameters.Any())
|
||||
{
|
||||
filteredHeaders = headers;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Filter headers based on selected parameters
|
||||
filteredHeaders = headers.Where(h => selectedParameters.Contains(h.Key)).ToDictionary();
|
||||
}
|
||||
var indexCell = worksheet.Cells[1, 1];
|
||||
indexCell.Value = "ردیف";
|
||||
ApplyHeaderStyle(indexCell);
|
||||
// Add headers to worksheet
|
||||
for (int i = 0; i < filteredHeaders.Count; i++)
|
||||
{
|
||||
worksheet.Cells[1, i + 2].Value = filteredHeaders.ElementAt(i).Value;
|
||||
ApplyHeaderStyle(worksheet.Cells[1, i + 2]);
|
||||
}
|
||||
|
||||
var dataRow = 2;
|
||||
int totalPaymentColumnIndex = -1;
|
||||
foreach (var item in data)
|
||||
{
|
||||
var column = 2;
|
||||
foreach (var header in filteredHeaders)
|
||||
{
|
||||
var property = item.GetType().GetProperty(header.Key);
|
||||
var value = property.GetValue(item, null)?.ToString();
|
||||
|
||||
// Check if the property requires MoneyToDouble()
|
||||
if (RequiresMoneyToDouble(property.Name))
|
||||
{
|
||||
worksheet.Cells[dataRow, column].Value = MoneyToDouble(value);
|
||||
}
|
||||
else
|
||||
{
|
||||
worksheet.Cells[dataRow, column].Value = value;
|
||||
}
|
||||
|
||||
ApplyGeneralDataStyle(worksheet.Cells[dataRow, column]);
|
||||
ApplySpecificStyle(worksheet.Cells[dataRow, column], column); // Apply specific styles
|
||||
if (header.Key == "TotalPayment")
|
||||
{
|
||||
totalPaymentColumnIndex = column;
|
||||
}
|
||||
column++;
|
||||
}
|
||||
var rowCounter = worksheet.Cells[dataRow, 1];
|
||||
rowCounter.Value = dataRow - 1;
|
||||
ApplyGeneralDataStyle(rowCounter);
|
||||
ApplySpecificStyle(rowCounter, 1);
|
||||
|
||||
dataRow++;
|
||||
}
|
||||
|
||||
worksheet.Cells[worksheet.Dimension.Address].AutoFitColumns();
|
||||
worksheet.PrinterSettings.PaperSize = ePaperSize.A4;
|
||||
worksheet.PrinterSettings.Orientation = eOrientation.Landscape;
|
||||
worksheet.PrinterSettings.FitToPage = true;
|
||||
worksheet.PrinterSettings.FitToWidth = 1;
|
||||
worksheet.PrinterSettings.FitToHeight = 0;
|
||||
worksheet.PrinterSettings.Scale = 85;
|
||||
worksheet.View.RightToLeft = true;
|
||||
|
||||
if (totalPaymentColumnIndex != -1)
|
||||
{
|
||||
ApplyConditionalFormatting(worksheet, dataRow, totalPaymentColumnIndex);
|
||||
}
|
||||
|
||||
return package.GetAsByteArray();
|
||||
}
|
||||
|
||||
// Method to check if a property requires MoneyToDouble()
|
||||
private static bool RequiresMoneyToDouble(string propertyName)
|
||||
{
|
||||
var propertiesRequiringConversion = new HashSet<string>
|
||||
{
|
||||
"MonthlySalary", "RewardPay", "FridayPay", "OvertimePay", "ShiftPay", "NightWorkPay",
|
||||
"MarriedAllowance", "FamilyAllowance", "BonusesPay", "BaseYearsPay", "LeavePay",
|
||||
"AbsenceDeduction", "LateToWorkDeduction", "EarlyExitDeduction", "SalaryAidDeduction",
|
||||
"InstallmentDeduction", "FineDeduction", "InsuranceDeduction", "TaxDeduction",
|
||||
"TotalClaims", "TotalDeductions", "TotalPayment"
|
||||
};
|
||||
return propertiesRequiringConversion.Contains(propertyName);
|
||||
}
|
||||
|
||||
// Placeholder for the MoneyToDouble() method
|
||||
private static double MoneyToDouble(string value)
|
||||
{
|
||||
Console.WriteLine(value);
|
||||
var min = value.Length>1? value.Substring(0, 2): "";
|
||||
var test = min == "\u200e\u2212" ? value.MoneyToDouble() * -1 : value.MoneyToDouble();
|
||||
|
||||
Console.WriteLine(test);
|
||||
return test;
|
||||
}
|
||||
|
||||
private static void ApplyHeaderStyle(ExcelRange cell)
|
||||
{
|
||||
cell.Style.Font.Bold = true;
|
||||
cell.Style.Fill.PatternType = ExcelFillStyle.Solid;
|
||||
cell.Style.Fill.BackgroundColor.SetColor(System.Drawing.Color.LightGray);
|
||||
cell.Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
|
||||
cell.Style.Border.BorderAround(ExcelBorderStyle.Thin);
|
||||
}
|
||||
|
||||
private static void ApplyGeneralDataStyle(ExcelRange cell)
|
||||
{
|
||||
cell.Style.Border.BorderAround(ExcelBorderStyle.Thin);
|
||||
cell.Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
|
||||
cell.Style.VerticalAlignment = ExcelVerticalAlignment.Center;
|
||||
cell.Style.Fill.PatternType = ExcelFillStyle.Solid;
|
||||
}
|
||||
|
||||
private static void ApplySpecificStyle(ExcelRange cell, int columnIndex)
|
||||
{
|
||||
switch (columnIndex)
|
||||
{
|
||||
case int n when (n >= 1 && n <= 8):
|
||||
cell.Style.Fill.BackgroundColor.SetColor(System.Drawing.Color.LightYellow);
|
||||
break;
|
||||
case int n when (n >= 9 && n <= 19):
|
||||
cell.Style.Fill.BackgroundColor.SetColor(1, 208, 248, 208);
|
||||
cell.Style.Numberformat.Format = "#,##0";
|
||||
break;
|
||||
case int n when (n >= 20 && n <= 27):
|
||||
cell.Style.Fill.BackgroundColor.SetColor(1, 246, 176, 176);
|
||||
cell.Style.Numberformat.Format = "#,##0";
|
||||
break;
|
||||
case 28:
|
||||
cell.Style.Fill.BackgroundColor.SetColor(1, 169, 208, 142);
|
||||
cell.Style.Numberformat.Format = "#,##0";
|
||||
break;
|
||||
case 29:
|
||||
cell.Style.Fill.BackgroundColor.SetColor(1, 241, 143, 143);
|
||||
cell.Style.Numberformat.Format = "#,##0";
|
||||
break;
|
||||
case 30:
|
||||
cell.Style.Fill.BackgroundColor.SetColor(1, 168, 186, 254);
|
||||
cell.Style.Numberformat.Format = "#,##0";
|
||||
break;
|
||||
case >= 31 and <= 33:
|
||||
cell.Style.Fill.BackgroundColor.SetColor(System.Drawing.Color.LightYellow);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private static void ApplyConditionalFormatting(ExcelWorksheet worksheet, int dataRow, int totalPaymentColumnIndex)
|
||||
{
|
||||
for (int rowIndex = 2; rowIndex < dataRow; rowIndex++)
|
||||
{
|
||||
var totalPaymentValue = worksheet.Cells[rowIndex, totalPaymentColumnIndex].Value;
|
||||
if (totalPaymentValue != null && double.TryParse(totalPaymentValue.ToString(), out double payment))
|
||||
{
|
||||
if (payment < 0)
|
||||
{
|
||||
var rowRange = worksheet.Cells[rowIndex, 1, rowIndex, worksheet.Dimension.End.Column];
|
||||
rowRange.Style.Fill.PatternType = ExcelFillStyle.Solid; rowRange.Style.Fill.BackgroundColor.SetColor(Color.Red);
|
||||
foreach (var cell in rowRange)
|
||||
{
|
||||
cell.Style.Font.Color.SetColor(Color.White);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,229 @@
|
||||
using System.Drawing;
|
||||
using _0_Framework.Application;
|
||||
using OfficeOpenXml;
|
||||
using OfficeOpenXml.Style;
|
||||
|
||||
namespace CompanyManagement.Infrastructure.Excel.Checkout;
|
||||
|
||||
public class CustomizeCheckoutExcelGenerator
|
||||
{
|
||||
|
||||
public static Dictionary<string, string> Header { get; set; } = new() {
|
||||
{ "Month", "ماه" },
|
||||
{ "Year", "سال" },
|
||||
{ "EmployeeFullName", "نام و نام خانوادگی" },
|
||||
{ "PersonnelCodeString", "شماره پرسنلی" },
|
||||
{ "NationalCode", "کدملی" },
|
||||
{ "SumOfWorkingDays", "روز کارکرد" },
|
||||
{ "MonthlySalary", "حقوق ماهانه" },
|
||||
{ "BaseYearsPay", "سنوات" },
|
||||
{ "MarriedAllowance", "حق تاهل" },
|
||||
{ "OvertimePay", "اضافه کاری" },
|
||||
{ "NightworkPay", "شب کاری" },
|
||||
{ "FridayPay", "جمعه کاری" },
|
||||
{ "MissionPay", "مأموریت" },
|
||||
{ "ShiftPay", "نوبت کاری" },
|
||||
{ "FamilyAllowance", "حق فرزند" },
|
||||
{ "BonusesPay", "پاداش" },
|
||||
{ "LeavePay", "مزد مرخصی" },
|
||||
{ "RewardPay", "پاداش" },
|
||||
{ "FineDeduction", "جریمه" },
|
||||
{ "InsuranceDeduction", "حق بیمه" },
|
||||
{ "TaxDeducation", "مالیات" },
|
||||
{ "InstallmentDeduction", "قسط وام" },
|
||||
{ "SalaryAidDeduction", "مساعده" },
|
||||
{ "AbsenceDeduction", "غیبت" },
|
||||
{ "EarlyExitDeduction", "تعجیل در خروج" },
|
||||
{ "LateToWorkDeduction", "تاخیر در ورود" },
|
||||
{ "TotalClaims", "جمع مطالبات" },
|
||||
{ "TotalDeductions", "جمع کسورات" },
|
||||
{ "TotalPayment", "مبلغ قابل پرداخت" },
|
||||
{ "CardNumber", "شماره کارت" },
|
||||
{ "ShebaNumber", "شماره شبا" },
|
||||
{ "BankAccountNumber", "شماره حساب" },
|
||||
{ "BankName", "نام بانک" },
|
||||
|
||||
};
|
||||
public static byte[] GenerateCheckoutTempExcelInfo(List<CustomizeCheckoutTempExcelViewModel> data, List<string> selectedParameters)
|
||||
{
|
||||
OfficeOpenXml.ExcelPackage.LicenseContext = LicenseContext.NonCommercial;
|
||||
using var package = new ExcelPackage();
|
||||
var worksheet = package.Workbook.Worksheets.Add("Sheet1");
|
||||
|
||||
|
||||
// Define headers
|
||||
|
||||
Dictionary<string, string> filteredHeaders;
|
||||
if (!selectedParameters.Any())
|
||||
{
|
||||
filteredHeaders = Header;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Filter headers based on selected parameters
|
||||
filteredHeaders = Header.Where(h => selectedParameters.Contains(h.Key)).ToDictionary();
|
||||
}
|
||||
var indexCell = worksheet.Cells[1, 1];
|
||||
indexCell.Value = "ردیف";
|
||||
ApplyHeaderStyle(indexCell);
|
||||
// Add headers to worksheet
|
||||
for (int i = 0; i < filteredHeaders.Count; i++)
|
||||
{
|
||||
worksheet.Cells[1, i + 2].Value = filteredHeaders.ElementAt(i).Value;
|
||||
ApplyHeaderStyle(worksheet.Cells[1, i + 2]);
|
||||
}
|
||||
|
||||
var dataRow = 2;
|
||||
int totalPaymentColumnIndex = -1;
|
||||
foreach (var item in data)
|
||||
{
|
||||
var column = 2;
|
||||
foreach (var header in filteredHeaders)
|
||||
{
|
||||
var property = item.GetType().GetProperty(header.Key);
|
||||
var value = property.GetValue(item, null)?.ToString();
|
||||
|
||||
// Check if the property requires MoneyToDouble()
|
||||
if (RequiresMoneyToDouble(property.Name))
|
||||
{
|
||||
worksheet.Cells[dataRow, column].Value = MoneyToDouble(value);
|
||||
}
|
||||
else
|
||||
{
|
||||
worksheet.Cells[dataRow, column].Value = value;
|
||||
}
|
||||
|
||||
ApplyGeneralDataStyle(worksheet.Cells[dataRow, column]);
|
||||
ApplySpecificStyle(worksheet.Cells[dataRow, column], column, worksheet); // Apply specific styles
|
||||
if (header.Key == "TotalPayment")
|
||||
{
|
||||
totalPaymentColumnIndex = column;
|
||||
}
|
||||
column++;
|
||||
}
|
||||
var rowCounter = worksheet.Cells[dataRow, 1];
|
||||
rowCounter.Value = dataRow - 1;
|
||||
ApplyGeneralDataStyle(rowCounter);
|
||||
ApplySpecificStyle(rowCounter, 1, worksheet);
|
||||
|
||||
dataRow++;
|
||||
}
|
||||
|
||||
worksheet.Cells[worksheet.Dimension.Address].AutoFitColumns();
|
||||
worksheet.PrinterSettings.PaperSize = ePaperSize.A4;
|
||||
worksheet.PrinterSettings.Orientation = eOrientation.Landscape;
|
||||
worksheet.PrinterSettings.FitToPage = true;
|
||||
worksheet.PrinterSettings.FitToWidth = 1;
|
||||
worksheet.PrinterSettings.FitToHeight = 0;
|
||||
worksheet.PrinterSettings.Scale = 85;
|
||||
worksheet.View.RightToLeft = true;
|
||||
|
||||
if (totalPaymentColumnIndex != -1)
|
||||
{
|
||||
ApplyConditionalFormatting(worksheet, dataRow, totalPaymentColumnIndex);
|
||||
}
|
||||
|
||||
return package.GetAsByteArray();
|
||||
}
|
||||
|
||||
// Method to check if a property requires MoneyToDouble()
|
||||
private static bool RequiresMoneyToDouble(string propertyName)
|
||||
{
|
||||
var propertiesRequiringConversion = new HashSet<string>
|
||||
{
|
||||
"MonthlySalary", "RewardPay", "FridayPay", "OvertimePay", "ShiftPay", "NightWorkPay",
|
||||
"MarriedAllowance", "FamilyAllowance", "BonusesPay", "BaseYearsPay", "LeavePay",
|
||||
"AbsenceDeduction", "LateToWorkDeduction", "EarlyExitDeduction", "SalaryAidDeduction",
|
||||
"InstallmentDeduction", "FineDeduction", "InsuranceDeduction", "TaxDeduction",
|
||||
"TotalClaims", "TotalDeductions", "TotalPayment"
|
||||
};
|
||||
return propertiesRequiringConversion.Contains(propertyName);
|
||||
}
|
||||
|
||||
// Placeholder for the MoneyToDouble() method
|
||||
private static double MoneyToDouble(string value)
|
||||
{
|
||||
Console.WriteLine(value);
|
||||
var min = value.Length > 1 ? value.Substring(0, 2) : "";
|
||||
var test = min == "\u200e\u2212" ? value.MoneyToDouble() * -1 : value.MoneyToDouble();
|
||||
|
||||
Console.WriteLine(test);
|
||||
return test;
|
||||
}
|
||||
|
||||
private static void ApplyHeaderStyle(ExcelRange cell)
|
||||
{
|
||||
cell.Style.Font.Bold = true;
|
||||
cell.Style.Fill.PatternType = ExcelFillStyle.Solid;
|
||||
cell.Style.Fill.BackgroundColor.SetColor(System.Drawing.Color.LightGray);
|
||||
cell.Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
|
||||
cell.Style.Border.BorderAround(ExcelBorderStyle.Thin);
|
||||
}
|
||||
|
||||
private static void ApplyGeneralDataStyle(ExcelRange cell)
|
||||
{
|
||||
cell.Style.Border.BorderAround(ExcelBorderStyle.Thin);
|
||||
cell.Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;
|
||||
cell.Style.VerticalAlignment = ExcelVerticalAlignment.Center;
|
||||
cell.Style.Fill.PatternType = ExcelFillStyle.Solid;
|
||||
}
|
||||
|
||||
private static void ApplySpecificStyle(ExcelRange cell, int columnIndex, ExcelWorksheet worksheet)
|
||||
{
|
||||
var headerCell = worksheet.Cells[1, columnIndex].Value.ToString();
|
||||
|
||||
var index = Header.Values.ToList().IndexOf(headerCell);
|
||||
index += 2;
|
||||
|
||||
switch (index)
|
||||
{
|
||||
case int n when (n >= 1 && n <= 8):
|
||||
cell.Style.Fill.BackgroundColor.SetColor(System.Drawing.Color.LightYellow);
|
||||
break;
|
||||
case int n when (n >= 9 && n <= 19):
|
||||
cell.Style.Fill.BackgroundColor.SetColor(1, 208, 248, 208);
|
||||
cell.Style.Numberformat.Format = "#,##0";
|
||||
break;
|
||||
case int n when (n >= 20 && n <= 27):
|
||||
cell.Style.Fill.BackgroundColor.SetColor(1, 246, 176, 176);
|
||||
cell.Style.Numberformat.Format = "#,##0";
|
||||
break;
|
||||
case 28:
|
||||
cell.Style.Fill.BackgroundColor.SetColor(1, 169, 208, 142);
|
||||
cell.Style.Numberformat.Format = "#,##0";
|
||||
break;
|
||||
case 29:
|
||||
cell.Style.Fill.BackgroundColor.SetColor(1, 241, 143, 143);
|
||||
cell.Style.Numberformat.Format = "#,##0";
|
||||
break;
|
||||
case 30:
|
||||
cell.Style.Fill.BackgroundColor.SetColor(1, 168, 186, 254);
|
||||
cell.Style.Numberformat.Format = "#,##0";
|
||||
break;
|
||||
case >= 31 and <= 34:
|
||||
cell.Style.Fill.BackgroundColor.SetColor(System.Drawing.Color.LightYellow);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private static void ApplyConditionalFormatting(ExcelWorksheet worksheet, int dataRow, int totalPaymentColumnIndex)
|
||||
{
|
||||
for (int rowIndex = 2; rowIndex < dataRow; rowIndex++)
|
||||
{
|
||||
var totalPaymentValue = worksheet.Cells[rowIndex, totalPaymentColumnIndex].Value;
|
||||
if (totalPaymentValue != null && double.TryParse(totalPaymentValue.ToString(), out double payment))
|
||||
{
|
||||
if (payment < 0)
|
||||
{
|
||||
var rowRange = worksheet.Cells[rowIndex, 1, rowIndex, worksheet.Dimension.End.Column];
|
||||
rowRange.Style.Fill.PatternType = ExcelFillStyle.Solid; rowRange.Style.Fill.BackgroundColor.SetColor(Color.Red);
|
||||
foreach (var cell in rowRange)
|
||||
{
|
||||
cell.Style.Font.Color.SetColor(Color.White);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
namespace _0_Framework.Excel.Checkout;
|
||||
namespace CompanyManagement.Infrastructure.Excel.Checkout;
|
||||
|
||||
public class CustomizeCheckoutTempExcelViewModel
|
||||
{
|
||||
@@ -52,5 +50,7 @@ public class CustomizeCheckoutTempExcelViewModel
|
||||
public string CardNumber { get; set; }
|
||||
public string ShebaNumber { get; set; }
|
||||
|
||||
public string BankName { get; set; }
|
||||
|
||||
|
||||
}
|
||||
@@ -1,11 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using OfficeOpenXml;
|
||||
using OfficeOpenXml;
|
||||
using OfficeOpenXml.Style;
|
||||
using System.Linq;
|
||||
using OfficeOpenXml.Table.PivotTable;
|
||||
|
||||
namespace _0_Framework.Excel.EmployeeBankInfo;
|
||||
namespace CompanyManagement.Infrastructure.Excel.EmployeeBankInfo;
|
||||
|
||||
public class EmployeeBankInfoExcelGenerator
|
||||
{
|
||||
@@ -1,7 +1,5 @@
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace _0_Framework.Excel.EmployeeBankInfo;
|
||||
namespace CompanyManagement.Infrastructure.Excel.EmployeeBankInfo;
|
||||
|
||||
public class EmployeeBankInfoExcelViewModel
|
||||
{
|
||||
@@ -1,7 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
namespace _0_Framework.Excel.RollCall;
|
||||
namespace CompanyManagement.Infrastructure.Excel.RollCall;
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
namespace _0_Framework.Excel.RollCall;
|
||||
namespace CompanyManagement.Infrastructure.Excel.RollCall;
|
||||
|
||||
public class CaseHistoryRollCallForOneDayViewModel
|
||||
{
|
||||
@@ -1,11 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using _0_Framework.Excel;
|
||||
using OfficeOpenXml;
|
||||
using OfficeOpenXml.Drawing;
|
||||
|
||||
namespace _0_Framework.Excel.RollCall;
|
||||
namespace CompanyManagement.Infrastructure.Excel.RollCall;
|
||||
|
||||
public class RollCallExcelGenerator : ExcelGenerator
|
||||
{
|
||||
@@ -14,6 +14,8 @@ public class SearchCustomizeCheckout
|
||||
public string SearchEndFa { get; set; }
|
||||
|
||||
public long EmployeeId { get; set; }
|
||||
public long BankId { get; set; }
|
||||
|
||||
public CustomizeCheckoutOrderByEnum OrderBy { get; set; } = CustomizeCheckoutOrderByEnum.ContractStartDesc;
|
||||
public int PageIndex { get; set; }
|
||||
}
|
||||
|
||||
@@ -260,9 +260,10 @@ namespace CompanyManagment.EFCore.Repository
|
||||
|
||||
public IEnumerable<CustomizeCheckoutViewModel> Search(SearchCustomizeCheckout searchModel)
|
||||
{
|
||||
OperationResult op = new();
|
||||
OperationResult op = new();
|
||||
var query = _companyContext.CustomizeCheckouts.Include(x => x.Employee)
|
||||
.ThenInclude(x => x.PersonnelCodeList)
|
||||
.ThenInclude(x => x.PersonnelCodeList).
|
||||
Include(x => x.Employee).ThenInclude(x => x.EmployeeBankInformationList)
|
||||
.AsSplitQuery().Where(x => x.WorkshopId == searchModel.WorkshopId);
|
||||
#region parameters initialize
|
||||
|
||||
@@ -324,6 +325,8 @@ namespace CompanyManagment.EFCore.Repository
|
||||
query = query.Where(x => x.EmployeeId == searchModel.EmployeeId);
|
||||
|
||||
|
||||
if (searchModel.BankId > 0)
|
||||
query = query.Where(x => x.Employee.EmployeeBankInformationList.Any(y => y.BankId == searchModel.BankId));
|
||||
|
||||
switch (searchModel.OrderBy)
|
||||
{
|
||||
@@ -378,10 +381,10 @@ namespace CompanyManagment.EFCore.Repository
|
||||
ShiftPay = x.ShiftPay.ToMoney(),
|
||||
SumOfWorkingDays = x.SumOfWorkingDays.ToString(),
|
||||
TaxDeducation = x.TaxDeduction.ToMoney(),
|
||||
TotalPayment =x.TotalPayment.ToMoney(),
|
||||
TotalPayment = x.TotalPayment.ToMoney(),
|
||||
TotalPaymentD = x.TotalPayment,
|
||||
TotalLateToWorkDeduction = x.LateToWorkDeduction.ToMoney(),
|
||||
|
||||
|
||||
}).ToList();
|
||||
|
||||
|
||||
|
||||
@@ -70,7 +70,9 @@ namespace CompanyManagment.EFCore.Repository
|
||||
public IEnumerable<CustomizeCheckoutViewModel> Search(SearchCustomizeCheckout searchModel)
|
||||
{
|
||||
|
||||
var query = _companyContext.CustomizeCheckoutTemps.Include(x => x.Employee).ThenInclude(x => x.PersonnelCodeList)
|
||||
var query = _companyContext.CustomizeCheckoutTemps.Include(x => x.Employee)
|
||||
.ThenInclude(x => x.PersonnelCodeList)
|
||||
.Include(x => x.Employee).ThenInclude(x => x.EmployeeBankInformationList)
|
||||
.AsSplitQuery().Where(x => x.WorkshopId == searchModel.WorkshopId);
|
||||
#region parameters initialize
|
||||
|
||||
@@ -141,7 +143,8 @@ namespace CompanyManagment.EFCore.Repository
|
||||
if (searchModel.EmployeeId > 0)
|
||||
query = query.Where(x => x.EmployeeId == searchModel.EmployeeId);
|
||||
|
||||
|
||||
if (searchModel.BankId > 0)
|
||||
query = query.Where(x => x.Employee.EmployeeBankInformationList.Any(y => y.BankId == searchModel.BankId));
|
||||
|
||||
switch (searchModel.OrderBy)
|
||||
{
|
||||
@@ -206,7 +209,6 @@ namespace CompanyManagment.EFCore.Repository
|
||||
|
||||
|
||||
}
|
||||
|
||||
public List<CustomizeCheckoutViewModel> PrintAll(long workshopId, IEnumerable<long> customizeCheckoutIds)
|
||||
{
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
<div class="pdButtons">
|
||||
<button type="button" class="btnUploadingPD d-block mb-1" data-index="0">آپلود عکس</button>
|
||||
|
||||
<button type="button" class="btnEditEmployee d-block mb-1 disable" onclick="LoadCustomPartial('@Url.Page("./EmployeesDocuments", "EditEmployeeModal", new { employeeId = Model.EmployeeId, workshopId = Model.WorkshopId})')">ویرایش پرسنل</button>
|
||||
<button type="button" class="btnEditEmployee d-block mb-1 disable" data-index="0">ویرایش پرسنل</button>
|
||||
<button type="button" class="btnSendToChecker d-block mb-1 disable" data-index="0">ارسال به ناظر</button>
|
||||
|
||||
<button type="button" class="btnDeletingPD d-block @(!string.IsNullOrWhiteSpace(Model.EmployeePicture.PicturePath) ? Model.EmployeePicture.Status.ToString() : "") @(string.IsNullOrWhiteSpace(Model.EmployeePicture.PicturePath) ? "disable" : "")" data-index="0">حذف</button>
|
||||
@@ -134,7 +134,7 @@
|
||||
<div>
|
||||
<button type="button" class="btnUploadingPD d-block mb-1" data-index="1">آپلود عکس</button>
|
||||
|
||||
<button type="button" class="btnEditEmployee d-block mb-1 disable" onclick="LoadCustomPartial('@Url.Page("./EmployeesDocuments", "EditEmployeeModal", new { employeeId = Model.EmployeeId, workshopId = Model.WorkshopId})')">ویرایش پرسنل</button>
|
||||
<button type="button" class="btnEditEmployee d-block mb-1 disable" data-index="1">ویرایش پرسنل</button>
|
||||
<button type="button" class="btnSendToChecker d-block mb-1 disable" data-index="1">ارسال به ناظر</button>
|
||||
|
||||
<button type="button" class="btnDeletingPD d-block @(!string.IsNullOrWhiteSpace(Model.NationalCardFront.PicturePath) ? Model.NationalCardFront.Status.ToString():"") @(!string.IsNullOrWhiteSpace(Model.NationalCardFront?.PicturePath) ? "" : "disable")" data-index="1">حذف</button>
|
||||
@@ -186,7 +186,7 @@
|
||||
<div>
|
||||
<button type="button" class="btnUploadingPD d-block mb-1" data-index="2">آپلود عکس</button>
|
||||
|
||||
<button type="button" class="btnEditEmployee d-block mb-1 disable" onclick="LoadCustomPartial('@Url.Page("./EmployeesDocuments", "EditEmployeeModal", new { employeeId = Model.EmployeeId, workshopId = Model.WorkshopId})')">ویرایش پرسنل</button>
|
||||
<button type="button" class="btnEditEmployee d-block mb-1 disable" data-index="2">ویرایش پرسنل</button>
|
||||
<button type="button" class="btnSendToChecker d-block mb-1 disable" data-index="2">ارسال به ناظر</button>
|
||||
|
||||
<button type="button" class="btnDeletingPD d-block @(!string.IsNullOrWhiteSpace(Model.NationalCardRear.PicturePath) ? Model.NationalCardRear.Status.ToString():"") @(!string.IsNullOrWhiteSpace(Model.NationalCardRear.PicturePath) ? "" : "disable")" data-index="2">حذف</button>
|
||||
@@ -238,7 +238,7 @@
|
||||
<div>
|
||||
<button type="button" class="btnUploadingPD d-block mb-1" data-index="3">آپلود عکس</button>
|
||||
|
||||
<button type="button" class="btnEditEmployee d-block mb-1 disable" onclick="LoadCustomPartial('@Url.Page("./EmployeesDocuments", "EditEmployeeModal", new { employeeId = Model.EmployeeId, workshopId = Model.WorkshopId})')">ویرایش پرسنل</button>
|
||||
<button type="button" class="btnEditEmployee d-block mb-1 disable" data-index="3">ویرایش پرسنل</button>
|
||||
<button type="button" class="btnSendToChecker d-block mb-1 disable" data-index="3">ارسال به ناظر</button>
|
||||
|
||||
<button type="button" class="btnDeletingPD d-block @(Model.Gender == "مرد" && !string.IsNullOrWhiteSpace(Model.MilitaryServiceCard.PicturePath)? Model.MilitaryServiceCard.Status.ToString():"") @(!string.IsNullOrWhiteSpace(Model.MilitaryServiceCard.PicturePath) ? "" : "disable")" data-index="3">حذف</button>
|
||||
@@ -291,7 +291,7 @@
|
||||
<div>
|
||||
<button type="button" class="btnUploadingPD d-block mb-1" data-index="4">آپلود عکس</button>
|
||||
|
||||
<button type="button" class="btnEditEmployee d-block mb-1 disable" onclick="LoadCustomPartial('@Url.Page("./EmployeesDocuments", "EditEmployeeModal", new { employeeId = Model.EmployeeId, workshopId = Model.WorkshopId})')">ویرایش پرسنل</button>
|
||||
<button type="button" class="btnEditEmployee d-block mb-1 disable" data-index="4">ویرایش پرسنل</button>
|
||||
<button type="button" class="btnSendToChecker d-block mb-1 disable" data-index="4">ارسال به ناظر</button>
|
||||
|
||||
<button type="button" class="btnDeletingPD d-block @(!string.IsNullOrWhiteSpace(Model.IdCardPage1.PicturePath) ? Model.IdCardPage1.Status.ToString():"") @(!string.IsNullOrWhiteSpace(Model.IdCardPage1.PicturePath) ? "" : "disable")" data-index="4">حذف</button>
|
||||
@@ -344,7 +344,7 @@
|
||||
<div>
|
||||
<button type="button" class="btnUploadingPD d-block mb-1" data-index="5">آپلود عکس</button>
|
||||
|
||||
<button type="button" class="btnEditEmployee d-block mb-1 disable" onclick="LoadCustomPartial('@Url.Page("./EmployeesDocuments", "EditEmployeeModal", new { employeeId = Model.EmployeeId, workshopId = Model.WorkshopId})')">ویرایش پرسنل</button>
|
||||
<button type="button" class="btnEditEmployee d-block mb-1 disable" data-index="5">ویرایش پرسنل</button>
|
||||
<button type="button" class="btnSendToChecker d-block mb-1 disable" data-index="5">ارسال به ناظر</button>
|
||||
|
||||
<button type="button" class="btnDeletingPD d-block @(!string.IsNullOrWhiteSpace(Model.IdCardPage2.PicturePath) ? Model.IdCardPage2.Status.ToString():"") @(!string.IsNullOrWhiteSpace(Model.IdCardPage2.PicturePath) ? "" : "disable")" data-index="5">حذف</button>
|
||||
@@ -396,7 +396,7 @@
|
||||
<div>
|
||||
<button type="button" class="btnUploadingPD d-block mb-1" data-index="6">آپلود عکس</button>
|
||||
|
||||
<button type="button" class="btnEditEmployee d-block mb-1 disable" onclick="LoadCustomPartial('@Url.Page("./EmployeesDocuments", "EditEmployeeModal", new { employeeId = Model.EmployeeId, workshopId = Model.WorkshopId})')">ویرایش پرسنل</button>
|
||||
<button type="button" class="btnEditEmployee d-block mb-1 disable" data-index="6">ویرایش پرسنل</button>
|
||||
<button type="button" class="btnSendToChecker d-block mb-1 disable" data-index="6">ارسال به ناظر</button>
|
||||
|
||||
<button type="button" class="btnDeletingPD d-block @(!string.IsNullOrWhiteSpace(Model.IdCardPage3.PicturePath) ? Model.IdCardPage3.Status.ToString():"") @(!string.IsNullOrWhiteSpace(Model.IdCardPage3.PicturePath) ? "" : "disable")" data-index="6">حذف</button>
|
||||
@@ -448,7 +448,7 @@
|
||||
<div>
|
||||
<button type="button" class="btnUploadingPD d-block mb-1" data-index="7">آپلود عکس</button>
|
||||
|
||||
<button type="button" class="btnEditEmployee d-block mb-1 disable" onclick="LoadCustomPartial('@Url.Page("./EmployeesDocuments", "EditEmployeeModal", new { employeeId = Model.EmployeeId, workshopId = Model.WorkshopId})')">ویرایش پرسنل</button>
|
||||
<button type="button" class="btnEditEmployee d-block mb-1 disable" data-index="7">ویرایش پرسنل</button>
|
||||
<button type="button" class="btnSendToChecker d-block mb-1 disable" data-index="7">ارسال به ناظر</button>
|
||||
|
||||
<button type="button" class="btnDeletingPD d-block @(!string.IsNullOrWhiteSpace(Model.IdCardPage4.PicturePath) ? Model.IdCardPage4.Status.ToString():"") @(!string.IsNullOrWhiteSpace(Model.IdCardPage4.PicturePath) ? "" : "disable")" data-index="7">حذف</button>
|
||||
@@ -503,6 +503,9 @@
|
||||
var saveSubmitAjax = `@Url.Page("./EmployeesDocuments", "SaveSubmit")`;
|
||||
var deleteFileAjaxUrl = `@Url.Page("./EmployeesDocuments", "RemoveEmployeeDocumentByLabel")`;
|
||||
var cancelOperationUrl = `@Url.Page("./EmployeesDocuments", "CancelOperation")`;
|
||||
|
||||
var loadModalEmployeeEdit = `@Url.Page("./EmployeesDocuments", "EditEmployeeModal")`;
|
||||
|
||||
var employeeId = Number(@Model.EmployeeId);
|
||||
var workshopId = Number(@Model.WorkshopId);
|
||||
var UploadedCount = Number(@Model.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance).Where(y => y.PropertyType == typeof(EmployeeDocumentItemViewModel)).Select(y => y.GetValue(@Model) as EmployeeDocumentItemViewModel).Count(x=>x.Status == DocumentStatus.Unsubmitted && !string.IsNullOrWhiteSpace(x.PicturePath)));
|
||||
|
||||
@@ -34,6 +34,10 @@
|
||||
.dadmehr-select-search .line {
|
||||
width: 0;
|
||||
}
|
||||
|
||||
.border-red {
|
||||
border: 3px solid red !important;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
|
||||
@@ -168,11 +172,11 @@
|
||||
<a onclick="deleteDate(this, '', 0, 'first')" href="#" class="edit-date permission-removeDatefirst-edit"><i style="color: red;" class="ion-close-circled"></i></a>
|
||||
<button onclick="enableEdit()" type="button" class="edit-icon permission-editDate"><i class="fa fa-edit"></i></button>
|
||||
</td> *@
|
||||
<td>
|
||||
<td class="border-red">
|
||||
<span id="LastDayStandingTempSpan">@Model.LeftWorkTemp.LastDayStanding</span>
|
||||
<input type="hidden" id="LastDayStandingValue" name="Command.LastDayStanding" value="@Model.LeftWorkTemp.LastDayStanding" />
|
||||
</td>
|
||||
<td>
|
||||
<td class="border-red">
|
||||
<span id="LeftWorkTempSpan">@Model.LeftWorkTemp.LeftWork</span>
|
||||
<input type="hidden" id="LeftWorkTempValue" name="Command.LeftWorkTime" value="@Model.LeftWorkTemp.LeftWork" />
|
||||
</td>
|
||||
|
||||
@@ -34,6 +34,10 @@
|
||||
.dadmehr-select-search .line {
|
||||
width: 0;
|
||||
}
|
||||
|
||||
.border-red {
|
||||
border: 3px solid red !important;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
|
||||
@@ -155,7 +159,7 @@
|
||||
<tbody>
|
||||
<tr data-id="1">
|
||||
<td>1</td>
|
||||
<td>
|
||||
<td class="border-red">
|
||||
<span id="StartWorkTemp">@Model.LeftWorkTemp.StartWork</span>
|
||||
<input type="hidden" id="StartWorkTempValue" name="Command.StartDateTime" value="@Model.LeftWorkTemp.StartWork" />
|
||||
</td>
|
||||
|
||||
@@ -95,456 +95,468 @@
|
||||
<input type="hidden" id="SearchStartFa" value="@Model.SearchModel.SearchStartFa" />
|
||||
<input type="hidden" id="SearchEndFa" value="@Model.SearchModel.SearchEndFa" />
|
||||
<input type="hidden" id="OrderBy" value="@Model.SearchModel.OrderBy" />
|
||||
<input type="hidden" id="BankId" value="@Model.SearchModel.BankId" />
|
||||
|
||||
|
||||
<div class="content-container">
|
||||
<div class="container-fluid">
|
||||
<div class="row p-2">
|
||||
<div class="col p-0 m-0 d-flex align-items-center justify-content-between">
|
||||
<div class="col d-flex align-items-center justify-content-start">
|
||||
<img src="~/AssetsClient/images/checkoutList.png" alt="" class="img-fluid me-2" style="width: 45px;" />
|
||||
<div>
|
||||
<h4 class="title d-flex align-items-center">اطلاعات فیش حقوقی موقت</h4>
|
||||
<div>@Model.WorkshopFullName</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<a asp-page="/Company/CustomizeCheckout/Index" class="back-btn" type="button">
|
||||
<span>بازگشت</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btn-rounded mb-5 goToTop">
|
||||
<div class="d-flex align-items-center">
|
||||
<span>برو بالا</span>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" width="20px" class="ms-1">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="m4.5 18.75 7.5-7.5 7.5 7.5" />
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="m4.5 12.75 7.5-7.5 7.5 7.5" />
|
||||
</svg>
|
||||
</div>
|
||||
</button>
|
||||
<form role="form" method="get" name="search-theme-form1" id="search-theme-form1" autocomplete="off">
|
||||
<div class="container-fluid">
|
||||
<div class="row p-2">
|
||||
<div class="col p-0 m-0 d-flex align-items-center justify-content-between">
|
||||
<div class="col d-flex align-items-center justify-content-start">
|
||||
<img src="~/AssetsClient/images/checkoutList.png" alt="" class="img-fluid me-2" style="width: 45px;"/>
|
||||
<div>
|
||||
<h4 class="title d-flex align-items-center">اطلاعات فیش حقوقی موقت</h4>
|
||||
<div>@Model.WorkshopFullName</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<a asp-page="/Company/CustomizeCheckout/Index" class="back-btn" type="button">
|
||||
<span>بازگشت</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btn-rounded mb-5 goToTop">
|
||||
<div class="d-flex align-items-center">
|
||||
<span>برو بالا</span>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" width="20px" class="ms-1">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="m4.5 18.75 7.5-7.5 7.5 7.5"/>
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="m4.5 12.75 7.5-7.5 7.5 7.5"/>
|
||||
</svg>
|
||||
</div>
|
||||
</button>
|
||||
<form role="form" method="get" name="search-theme-form1" id="search-theme-form1" autocomplete="off">
|
||||
|
||||
<div class="container-fluid d-none d-md-block">
|
||||
<div class="row px-2">
|
||||
<div class="search-box card border-0">
|
||||
<div class="row">
|
||||
<div class="container-fluid d-none d-md-block">
|
||||
<div class="row px-2">
|
||||
<div class="search-box card border-0">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-12">
|
||||
<div class="d-grid search-section gap-2">
|
||||
<div class="d-grid grid-cols-2 gap-2 col-span-2">
|
||||
<div class="wrapper-dropdown-year btn-dropdown" id="dropdown-year">
|
||||
<span class="selected-display" id="destination-year">سال</span>
|
||||
<svg class="arrow" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="transition-all ml-auto rotate-180">
|
||||
<path d="M7 14.5l5-5 5 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
||||
</svg>
|
||||
<ul class="dropdown-year boxes" id="my-scrollbar">
|
||||
<li class="item" value-data-year="0">سال</li>
|
||||
@foreach (string year in @Model.YearlyList)
|
||||
{
|
||||
<li class="item" value-data-year="@year">@year</li>
|
||||
}
|
||||
</ul>
|
||||
<input type="hidden" id="sendDropdownYear" asp-for="@Model.SearchModel.Year" />
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="d-grid search-section gap-2">
|
||||
<div class="d-grid grid-cols-2 gap-2 col-span-2">
|
||||
<div class="wrapper-dropdown-year btn-dropdown" id="dropdown-year">
|
||||
<span class="selected-display" id="destination-year">سال</span>
|
||||
<svg class="arrow" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="transition-all ml-auto rotate-180">
|
||||
<path d="M7 14.5l5-5 5 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
||||
</svg>
|
||||
<ul class="dropdown-year boxes" id="my-scrollbar">
|
||||
<li class="item" value-data-year="0">سال</li>
|
||||
@foreach (string year in @Model.YearlyList)
|
||||
{
|
||||
<li class="item" value-data-year="@year">@year</li>
|
||||
}
|
||||
</ul>
|
||||
<input type="hidden" id="sendDropdownYear" asp-for="@Model.SearchModel.Year"/>
|
||||
</div>
|
||||
|
||||
<div class="wrapper-dropdown-month btn-dropdown" id="dropdown-month">
|
||||
<span class="selected-display" id="destination-month">ماه</span>
|
||||
<svg class="arrow" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="transition-all ml-auto rotate-180">
|
||||
<path d="M7 14.5l5-5 5 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
||||
</svg>
|
||||
<ul class="dropdown-month boxes">
|
||||
<li class="item" value-data-month="0">ماه</li>
|
||||
<li class="item" value-data-month="01">فروردین</li>
|
||||
<li class="item" value-data-month="02">اردیبهشت</li>
|
||||
<li class="item" value-data-month="03">خرداد</li>
|
||||
<li class="item" value-data-month="04">تیر</li>
|
||||
<li class="item" value-data-month="05">مرداد</li>
|
||||
<li class="item" value-data-month="06">شهریور</li>
|
||||
<li class="item" value-data-month="07">مهر</li>
|
||||
<li class="item" value-data-month="08">آبان</li>
|
||||
<li class="item" value-data-month="09">آذر</li>
|
||||
<li class="item" value-data-month="10">دی</li>
|
||||
<li class="item" value-data-month="11">بهمن</li>
|
||||
<li class="item" value-data-month="12">اسفند</li>
|
||||
</ul>
|
||||
<input type="hidden" id="sendDropdownMonth" asp-for="@Model.SearchModel.Month" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-span-2"><input type="text" class="form-control form-control-date date text-center start-date" asp-for="@Model.SearchModel.SearchStartFa" style="direction: ltr;" placeholder="تاریخ شروع" /></div>
|
||||
<div class="col-span-2"><input type="text" class="form-control form-control-date date text-center end-date" asp-for="@Model.SearchModel.SearchEndFa" style="direction: ltr;" placeholder="تاریخ پایان" /></div>
|
||||
<div class="col-span-2">
|
||||
<select class="form-select select2Option" id="getPersonnel">
|
||||
</select>
|
||||
<input type="hidden" id="SearchModel_EmployeeId" asp-for="@Model.SearchModel.EmployeeId" />
|
||||
</div>
|
||||
<div class="col-span-2">
|
||||
<div class="wrapper-dropdown" id="dropdown">
|
||||
<span class="selected-display" id="destination">مرتب سازی</span>
|
||||
<svg class="arrow" id="drp-arrow" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="transition-all ml-auto rotate-180">
|
||||
<path d="M7 14.5l5-5 5 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
||||
</svg>
|
||||
<ul class="dropdown p-2 border">
|
||||
<li class="item" value-data="@CustomizeCheckoutOrderByEnum.ContractStartDesc">شروع قرارداد - بزرگ به کوچک</li>
|
||||
<li class="item" value-data="@CustomizeCheckoutOrderByEnum.ContractStart">شروع قرارداد - کوچک به بزرگ</li>
|
||||
<li class="item" value-data="@CustomizeCheckoutOrderByEnum.ContractNo">شماره قرارداد - کوچک به بزرگ</li>
|
||||
<li class="item" value-data="@CustomizeCheckoutOrderByEnum.ContractNoDesc">شماره قرارداد - بزرگ به کوچک</li>
|
||||
</ul>
|
||||
<input type="hidden" id="sendSorting" asp-for="@Model.SearchModel.OrderBy" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex gap-2 col-span-2">
|
||||
<button class="btn-search btn-w-size btn-search-click text-nowrap d-flex align-items-center justify-content-center" id="searchBtn" type="submit">
|
||||
<span>جستجو</span>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" width="20" height="20" class="ms-1">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z" />
|
||||
</svg>
|
||||
</button>
|
||||
<a asp-page="/Company/CustomizeCheckout/CheckoutTemporary" class="btn-clear-filter btn-w-size text-nowrap d-flex align-items-center justify-content-center disable" id="filterRemove">
|
||||
<span>حذف جستجو</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="wrapper-dropdown-month btn-dropdown" id="dropdown-month">
|
||||
<span class="selected-display" id="destination-month">ماه</span>
|
||||
<svg class="arrow" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="transition-all ml-auto rotate-180">
|
||||
<path d="M7 14.5l5-5 5 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
||||
</svg>
|
||||
<ul class="dropdown-month boxes">
|
||||
<li class="item" value-data-month="0">ماه</li>
|
||||
<li class="item" value-data-month="01">فروردین</li>
|
||||
<li class="item" value-data-month="02">اردیبهشت</li>
|
||||
<li class="item" value-data-month="03">خرداد</li>
|
||||
<li class="item" value-data-month="04">تیر</li>
|
||||
<li class="item" value-data-month="05">مرداد</li>
|
||||
<li class="item" value-data-month="06">شهریور</li>
|
||||
<li class="item" value-data-month="07">مهر</li>
|
||||
<li class="item" value-data-month="08">آبان</li>
|
||||
<li class="item" value-data-month="09">آذر</li>
|
||||
<li class="item" value-data-month="10">دی</li>
|
||||
<li class="item" value-data-month="11">بهمن</li>
|
||||
<li class="item" value-data-month="12">اسفند</li>
|
||||
</ul>
|
||||
<input type="hidden" id="sendDropdownMonth" asp-for="@Model.SearchModel.Month"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-span-1"><input type="text" class="form-control form-control-date date text-center start-date" asp-for="@Model.SearchModel.SearchStartFa" style="direction: ltr;" placeholder="تاریخ شروع"/></div>
|
||||
<div class="col-span-1"><input type="text" class="form-control form-control-date date text-center end-date" asp-for="@Model.SearchModel.SearchEndFa" style="direction: ltr;" placeholder="تاریخ پایان"/></div>
|
||||
<div class="col-span-2">
|
||||
<select class="form-select select2Option" id="getPersonnel">
|
||||
</select>
|
||||
<input type="hidden" id="SearchModel_EmployeeId" asp-for="@Model.SearchModel.EmployeeId"/>
|
||||
</div>
|
||||
<div class="col-span-2">
|
||||
<div class="wrapper-dropdown" id="dropdown">
|
||||
<span class="selected-display" id="destination">مرتب سازی</span>
|
||||
<svg class="arrow" id="drp-arrow" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="transition-all ml-auto rotate-180">
|
||||
<path d="M7 14.5l5-5 5 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
||||
</svg>
|
||||
<ul class="dropdown p-2 border">
|
||||
<li class="item" value-data="@CustomizeCheckoutOrderByEnum.ContractStartDesc">شروع قرارداد - بزرگ به کوچک</li>
|
||||
<li class="item" value-data="@CustomizeCheckoutOrderByEnum.ContractStart">شروع قرارداد - کوچک به بزرگ</li>
|
||||
<li class="item" value-data="@CustomizeCheckoutOrderByEnum.ContractNo">شماره قرارداد - کوچک به بزرگ</li>
|
||||
<li class="item" value-data="@CustomizeCheckoutOrderByEnum.ContractNoDesc">شماره قرارداد - بزرگ به کوچک</li>
|
||||
</ul>
|
||||
<input type="hidden" id="sendSorting" asp-for="@Model.SearchModel.OrderBy"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-span-2">
|
||||
<select class="form-select" id="bankSelectIndex" asp-for="@Model.SearchModel.BankId" data-selected-value="@Model.SearchModel.BankId" aria-label="انتخاب بانک ...">
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="d-flex gap-2 col-span-2">
|
||||
<button class="btn-search btn-w-size btn-search-click text-nowrap d-flex align-items-center justify-content-center" id="searchBtn" type="submit">
|
||||
<span>جستجو</span>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" width="20" height="20" class="ms-1">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"/>
|
||||
</svg>
|
||||
</button>
|
||||
<a asp-page="/Company/CustomizeCheckout/CheckoutTemporary" class="btn-clear-filter btn-w-size text-nowrap d-flex align-items-center justify-content-center disable" id="filterRemove">
|
||||
<span>حذف جستجو</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<!-- Search Box -->
|
||||
<!-- End Search Box -->
|
||||
<!-- List Items -->
|
||||
<div class="container-fluid p-3">
|
||||
<div class="row px-lg-2 my-2">
|
||||
<!-- Search Box -->
|
||||
<!-- End Search Box -->
|
||||
<!-- List Items -->
|
||||
<div class="container-fluid p-3">
|
||||
<div class="row px-lg-2 my-2">
|
||||
|
||||
<div class="card p-2">
|
||||
<div class="card p-2">
|
||||
|
||||
<div class="row px-lg-2 my-2">
|
||||
<div class="col-6 col-md-4">
|
||||
<button class="btn-create mb-1 d-flex align-items-center justify-content-center gap-1" onclick="openCreateCheckoutTemporaryModal()" Permission="@SubAccountPermissionHelper.CreateCustomizeCheckoutTempPermissionCode">
|
||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<circle cx="11" cy="11" r="8.25" stroke-width="1.5" stroke="white" />
|
||||
<path d="M11 13.75L11 8.25" stroke-width="1.5" stroke="white" stroke-linecap="round" />
|
||||
<path d="M13.75 11L8.25 11" stroke-width="1.5" stroke="white" stroke-linecap="round" />
|
||||
</svg>
|
||||
ایجاد فیش حقوقی
|
||||
</button>
|
||||
</div>
|
||||
<div class="d-none d-md-block col-4 text-center">
|
||||
<span>
|
||||
لیست فیش حقوقی موقت
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-6 col-md-4 text-end">
|
||||
<div class="d-none d-md-flex align-items-center justify-content-end gap-1 my-1">
|
||||
<button onclick="printAll()" class="btn-print-all text-nowrap" type="button" Permission="@SubAccountPermissionHelper.PrintCustomizeCheckoutTempPermissionCode">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
||||
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" stroke="#1E293B" />
|
||||
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" stroke="#1E293B" />
|
||||
<path d="M7.91675 11.25L11.2501 11.25" stroke="#1E293B" stroke-linecap="round" />
|
||||
<path d="M7.91675 13.75L12.0834 13.75" stroke="#1E293B" stroke-linecap="round" />
|
||||
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" stroke="#1E293B" />
|
||||
</svg>
|
||||
<span>پرینت گروهی</span>
|
||||
</button>
|
||||
<button onclick="downloadExcelAll()" class="btn-excel text-nowrap" type="button" Permission="@SubAccountPermissionHelper.ExcelCustomizeCheckoutTempPermissionCode">
|
||||
<svg width="20" height="20" viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg" fill="#000000">
|
||||
<g id="SVGRepo_bgCarrier" stroke-width="1"></g>
|
||||
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
|
||||
<g id="SVGRepo_iconCarrier">
|
||||
<defs>
|
||||
<style>
|
||||
.cls-1 {
|
||||
fill: #0f773d;
|
||||
}</style>
|
||||
</defs> <title></title> <g id="xxx-word"> <path class="cls-1" d="M325,105H250a5,5,0,0,1-5-5V25a5,5,0,1,1,10,0V95h70a5,5,0,0,1,0,10Z"></path> <path class="cls-1" d="M325,154.83a5,5,0,0,1-5-5V102.07L247.93,30H100A20,20,0,0,0,80,50v98.17a5,5,0,0,1-10,0V50a30,30,0,0,1,30-30H250a5,5,0,0,1,3.54,1.46l75,75A5,5,0,0,1,330,100v49.83A5,5,0,0,1,325,154.83Z"></path> <path class="cls-1" d="M300,380H100a30,30,0,0,1-30-30V275a5,5,0,0,1,10,0v75a20,20,0,0,0,20,20H300a20,20,0,0,0,20-20V275a5,5,0,0,1,10,0v75A30,30,0,0,1,300,380Z"></path> <path class="cls-1" d="M275,280H125a5,5,0,1,1,0-10H275a5,5,0,0,1,0,10Z"></path> <path class="cls-1" d="M200,330H125a5,5,0,1,1,0-10h75a5,5,0,0,1,0,10Z"></path> <path class="cls-1" d="M325,280H75a30,30,0,0,1-30-30V173.17a30,30,0,0,1,30-30h.2l250,1.66a30.09,30.09,0,0,1,29.81,30V250A30,30,0,0,1,325,280ZM75,153.17a20,20,0,0,0-20,20V250a20,20,0,0,0,20,20H325a20,20,0,0,0,20-20V174.83a20.06,20.06,0,0,0-19.88-20l-250-1.66Z"></path> <path class="cls-1" d="M152.44,236H117.79V182.68h34.3v7.93H127.4v14.45h19.84v7.73H127.4v14.92h25Z"></path> <path class="cls-1" d="M190.18,236H180l-8.36-14.37L162.52,236h-7.66L168,215.69l-11.37-19.14h10.2l6.48,11.6,7.38-11.6h7.46L177,213.66Z"></path> <path class="cls-1" d="M217.4,221.51l7.66.78q-1.49,7.42-5.74,11A15.5,15.5,0,0,1,209,236.82q-8.17,0-12.56-6a23.89,23.89,0,0,1-4.39-14.59q0-8.91,4.8-14.73a15.77,15.77,0,0,1,12.81-5.82q12.89,0,15.35,13.59l-7.66,1.05q-1-7.34-7.23-7.34a6.9,6.9,0,0,0-6.58,4,20.66,20.66,0,0,0-2.05,9.59q0,6,2.13,9.22a6.74,6.74,0,0,0,6,3.24Q215.49,229,217.4,221.51Z"></path> <path class="cls-1" d="M257,223.42l8,1.09a16.84,16.84,0,0,1-6.09,8.83,18.13,18.13,0,0,1-11.37,3.48q-8.2,0-13.2-5.51t-5-14.92q0-8.94,5-14.8t13.67-5.86q8.44,0,13,5.78t4.61,14.84l0,1H238.61a22.12,22.12,0,0,0,.76,6.45,8.68,8.68,0,0,0,3,4.22,8.83,8.83,0,0,0,5.66,1.8Q254.67,229.83,257,223.42Zm-.55-11.8a9.92,9.92,0,0,0-2.56-7,8.63,8.63,0,0,0-12.36-.18,11.36,11.36,0,0,0-2.89,7.13Z"></path> <path class="cls-1" d="M282.71,236h-8.91V182.68h8.91Z"></path> </g>
|
||||
</g>
|
||||
</svg>
|
||||
<span>خروجی اکسل</span>
|
||||
</button>
|
||||
<div class="row px-lg-2 my-2">
|
||||
<div class="col-6 col-md-4">
|
||||
<button class="btn-create mb-1 d-flex align-items-center justify-content-center gap-1" onclick="openCreateCheckoutTemporaryModal()" Permission="@SubAccountPermissionHelper.CreateCustomizeCheckoutTempPermissionCode">
|
||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<circle cx="11" cy="11" r="8.25" stroke-width="1.5" stroke="white"/>
|
||||
<path d="M11 13.75L11 8.25" stroke-width="1.5" stroke="white" stroke-linecap="round"/>
|
||||
<path d="M13.75 11L8.25 11" stroke-width="1.5" stroke="white" stroke-linecap="round"/>
|
||||
</svg>
|
||||
ایجاد فیش حقوقی
|
||||
</button>
|
||||
</div>
|
||||
<div class="d-none d-md-block col-4 text-center">
|
||||
<span>
|
||||
لیست فیش حقوقی موقت
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-6 col-md-4 text-end">
|
||||
<div class="d-none d-md-flex align-items-center justify-content-end gap-1 my-1">
|
||||
<button onclick="printAll()" class="btn-print-all text-nowrap" type="button" Permission="@SubAccountPermissionHelper.PrintCustomizeCheckoutTempPermissionCode">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
||||
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" stroke="#1E293B"/>
|
||||
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" stroke="#1E293B"/>
|
||||
<path d="M7.91675 11.25L11.2501 11.25" stroke="#1E293B" stroke-linecap="round"/>
|
||||
<path d="M7.91675 13.75L12.0834 13.75" stroke="#1E293B" stroke-linecap="round"/>
|
||||
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" stroke="#1E293B"/>
|
||||
</svg>
|
||||
<span>پرینت گروهی</span>
|
||||
</button>
|
||||
<button onclick="downloadExcelAll()" class="btn-excel text-nowrap" type="button" Permission="@SubAccountPermissionHelper.ExcelCustomizeCheckoutTempPermissionCode">
|
||||
<svg width="20" height="20" viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg" fill="#000000">
|
||||
<g id="SVGRepo_bgCarrier" stroke-width="1"></g>
|
||||
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
|
||||
<g id="SVGRepo_iconCarrier">
|
||||
<defs>
|
||||
<style>
|
||||
.cls-1 {
|
||||
fill: #0f773d;
|
||||
}</style>
|
||||
</defs> <title></title> <g id="xxx-word"> <path class="cls-1" d="M325,105H250a5,5,0,0,1-5-5V25a5,5,0,1,1,10,0V95h70a5,5,0,0,1,0,10Z"></path> <path class="cls-1" d="M325,154.83a5,5,0,0,1-5-5V102.07L247.93,30H100A20,20,0,0,0,80,50v98.17a5,5,0,0,1-10,0V50a30,30,0,0,1,30-30H250a5,5,0,0,1,3.54,1.46l75,75A5,5,0,0,1,330,100v49.83A5,5,0,0,1,325,154.83Z"></path> <path class="cls-1" d="M300,380H100a30,30,0,0,1-30-30V275a5,5,0,0,1,10,0v75a20,20,0,0,0,20,20H300a20,20,0,0,0,20-20V275a5,5,0,0,1,10,0v75A30,30,0,0,1,300,380Z"></path> <path class="cls-1" d="M275,280H125a5,5,0,1,1,0-10H275a5,5,0,0,1,0,10Z"></path> <path class="cls-1" d="M200,330H125a5,5,0,1,1,0-10h75a5,5,0,0,1,0,10Z"></path> <path class="cls-1" d="M325,280H75a30,30,0,0,1-30-30V173.17a30,30,0,0,1,30-30h.2l250,1.66a30.09,30.09,0,0,1,29.81,30V250A30,30,0,0,1,325,280ZM75,153.17a20,20,0,0,0-20,20V250a20,20,0,0,0,20,20H325a20,20,0,0,0,20-20V174.83a20.06,20.06,0,0,0-19.88-20l-250-1.66Z"></path> <path class="cls-1" d="M152.44,236H117.79V182.68h34.3v7.93H127.4v14.45h19.84v7.73H127.4v14.92h25Z"></path> <path class="cls-1" d="M190.18,236H180l-8.36-14.37L162.52,236h-7.66L168,215.69l-11.37-19.14h10.2l6.48,11.6,7.38-11.6h7.46L177,213.66Z"></path> <path class="cls-1" d="M217.4,221.51l7.66.78q-1.49,7.42-5.74,11A15.5,15.5,0,0,1,209,236.82q-8.17,0-12.56-6a23.89,23.89,0,0,1-4.39-14.59q0-8.91,4.8-14.73a15.77,15.77,0,0,1,12.81-5.82q12.89,0,15.35,13.59l-7.66,1.05q-1-7.34-7.23-7.34a6.9,6.9,0,0,0-6.58,4,20.66,20.66,0,0,0-2.05,9.59q0,6,2.13,9.22a6.74,6.74,0,0,0,6,3.24Q215.49,229,217.4,221.51Z"></path> <path class="cls-1" d="M257,223.42l8,1.09a16.84,16.84,0,0,1-6.09,8.83,18.13,18.13,0,0,1-11.37,3.48q-8.2,0-13.2-5.51t-5-14.92q0-8.94,5-14.8t13.67-5.86q8.44,0,13,5.78t4.61,14.84l0,1H238.61a22.12,22.12,0,0,0,.76,6.45,8.68,8.68,0,0,0,3,4.22,8.83,8.83,0,0,0,5.66,1.8Q254.67,229.83,257,223.42Zm-.55-11.8a9.92,9.92,0,0,0-2.56-7,8.63,8.63,0,0,0-12.36-.18,11.36,11.36,0,0,0-2.89,7.13Z"></path> <path class="cls-1" d="M282.71,236h-8.91V182.68h8.91Z"></path> </g>
|
||||
</g>
|
||||
</svg>
|
||||
<span>خروجی اکسل</span>
|
||||
</button>
|
||||
|
||||
<button class="btn-print-all text-nowrap RemoveBtnAll" type="button" Permission="@SubAccountPermissionHelper.DeleteCustomizeCheckoutTempPermissionCode">
|
||||
<svg width="20" height="20" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M8.70825 13.2891L8.70825 10.5391" stroke="#BF3737" stroke-linecap="round" />
|
||||
<path d="M13.2917 13.2891L13.2917 10.5391" stroke="#BF3737" stroke-linecap="round" />
|
||||
<path d="M2.75 5.96094H19.25V5.96094C18.122 5.96094 17.558 5.96094 17.1279 6.18191C16.7561 6.37284 16.4536 6.67541 16.2626 7.04713C16.0417 7.47732 16.0417 8.0413 16.0417 9.16927V13.8776C16.0417 15.7632 16.0417 16.706 15.4559 17.2918C14.8701 17.8776 13.9273 17.8776 12.0417 17.8776H9.95833C8.07271 17.8776 7.12991 17.8776 6.54412 17.2918C5.95833 16.706 5.95833 15.7632 5.95833 13.8776V9.16927C5.95833 8.0413 5.95833 7.47732 5.73737 7.04713C5.54643 6.67541 5.24386 6.37284 4.87214 6.18191C4.44195 5.96094 3.87797 5.96094 2.75 5.96094V5.96094Z" stroke="#BF3737" stroke-linecap="round" />
|
||||
<path d="M8.70841 3.20595C8.70841 3.20595 9.16675 2.28906 11.0001 2.28906C12.8334 2.28906 13.2917 3.20573 13.2917 3.20573" stroke="#BF3737" stroke-linecap="round" />
|
||||
</svg>
|
||||
<span>حذف گروهی</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn-print-all text-nowrap RemoveBtnAll" type="button" Permission="@SubAccountPermissionHelper.DeleteCustomizeCheckoutTempPermissionCode">
|
||||
<svg width="20" height="20" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M8.70825 13.2891L8.70825 10.5391" stroke="#BF3737" stroke-linecap="round"/>
|
||||
<path d="M13.2917 13.2891L13.2917 10.5391" stroke="#BF3737" stroke-linecap="round"/>
|
||||
<path d="M2.75 5.96094H19.25V5.96094C18.122 5.96094 17.558 5.96094 17.1279 6.18191C16.7561 6.37284 16.4536 6.67541 16.2626 7.04713C16.0417 7.47732 16.0417 8.0413 16.0417 9.16927V13.8776C16.0417 15.7632 16.0417 16.706 15.4559 17.2918C14.8701 17.8776 13.9273 17.8776 12.0417 17.8776H9.95833C8.07271 17.8776 7.12991 17.8776 6.54412 17.2918C5.95833 16.706 5.95833 15.7632 5.95833 13.8776V9.16927C5.95833 8.0413 5.95833 7.47732 5.73737 7.04713C5.54643 6.67541 5.24386 6.37284 4.87214 6.18191C4.44195 5.96094 3.87797 5.96094 2.75 5.96094V5.96094Z" stroke="#BF3737" stroke-linecap="round"/>
|
||||
<path d="M8.70841 3.20595C8.70841 3.20595 9.16675 2.28906 11.0001 2.28906C12.8334 2.28906 13.2917 3.20573 13.2917 3.20573" stroke="#BF3737" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span>حذف گروهی</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="wrapper list-box table-contracts">
|
||||
<div class="wrapper list-box table-contracts">
|
||||
|
||||
<!-- Advance Search Box -->
|
||||
<div class="container-fluid d-block d-md-none">
|
||||
<div class="row d-flex align-items-center justify-content-between">
|
||||
<div class="search-box bg-white">
|
||||
<div class="col text-center">
|
||||
<button class="btn-search w-100" type="button" data-bs-toggle="modal" data-bs-target="#searchModal">
|
||||
<span>جستجو پیشرفته</span>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
||||
<circle cx="11" cy="11" r="6" stroke="white" />
|
||||
<path d="M20 20L17 17" stroke="white" stroke-linecap="round" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End Advance Search Box -->
|
||||
@if (@Model.CustomizeCheckouts.Count > 0)
|
||||
{
|
||||
<div class="d-flex d-md-none align-items-center justify-content-between gap-1 my-1">
|
||||
<div class="select-all d-flex align-items-center">
|
||||
<input type="checkbox" class="form-check-input checkAll" name="" id="checkAll1">
|
||||
<label for="checkAll1">انتخاب همه</label>
|
||||
</div>
|
||||
<div class="d-flex align-items-center justify-content-end gap-1">
|
||||
<button onclick="printAllMobile()" class="btn-print-all text-nowrap" type="button" Permission="@SubAccountPermissionHelper.PrintCustomizeCheckoutTempPermissionCode">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
||||
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" stroke="#1E293B" />
|
||||
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" stroke="#1E293B" />
|
||||
<path d="M7.91675 11.25L11.2501 11.25" stroke="#1E293B" stroke-linecap="round" />
|
||||
<path d="M7.91675 13.75L12.0834 13.75" stroke="#1E293B" stroke-linecap="round" />
|
||||
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" stroke="#1E293B" />
|
||||
</svg>
|
||||
<span>پرینت گروهی</span>
|
||||
</button>
|
||||
<button onclick="showExcelAllModal()" class="btn-excel text-nowrap" type="button" Permission="@SubAccountPermissionHelper.ExcelCustomizeCheckoutTempPermissionCode">
|
||||
<svg width="20" height="20" viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg" fill="#000000">
|
||||
<g id="SVGRepo_bgCarrier" stroke-width="1"></g>
|
||||
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
|
||||
<g id="SVGRepo_iconCarrier">
|
||||
<defs>
|
||||
<style>
|
||||
.cls-1 {
|
||||
fill: #0f773d;
|
||||
}</style>
|
||||
</defs> <title></title> <g id="xxx-word"> <path class="cls-1" d="M325,105H250a5,5,0,0,1-5-5V25a5,5,0,1,1,10,0V95h70a5,5,0,0,1,0,10Z"></path> <path class="cls-1" d="M325,154.83a5,5,0,0,1-5-5V102.07L247.93,30H100A20,20,0,0,0,80,50v98.17a5,5,0,0,1-10,0V50a30,30,0,0,1,30-30H250a5,5,0,0,1,3.54,1.46l75,75A5,5,0,0,1,330,100v49.83A5,5,0,0,1,325,154.83Z"></path> <path class="cls-1" d="M300,380H100a30,30,0,0,1-30-30V275a5,5,0,0,1,10,0v75a20,20,0,0,0,20,20H300a20,20,0,0,0,20-20V275a5,5,0,0,1,10,0v75A30,30,0,0,1,300,380Z"></path> <path class="cls-1" d="M275,280H125a5,5,0,1,1,0-10H275a5,5,0,0,1,0,10Z"></path> <path class="cls-1" d="M200,330H125a5,5,0,1,1,0-10h75a5,5,0,0,1,0,10Z"></path> <path class="cls-1" d="M325,280H75a30,30,0,0,1-30-30V173.17a30,30,0,0,1,30-30h.2l250,1.66a30.09,30.09,0,0,1,29.81,30V250A30,30,0,0,1,325,280ZM75,153.17a20,20,0,0,0-20,20V250a20,20,0,0,0,20,20H325a20,20,0,0,0,20-20V174.83a20.06,20.06,0,0,0-19.88-20l-250-1.66Z"></path> <path class="cls-1" d="M152.44,236H117.79V182.68h34.3v7.93H127.4v14.45h19.84v7.73H127.4v14.92h25Z"></path> <path class="cls-1" d="M190.18,236H180l-8.36-14.37L162.52,236h-7.66L168,215.69l-11.37-19.14h10.2l6.48,11.6,7.38-11.6h7.46L177,213.66Z"></path> <path class="cls-1" d="M217.4,221.51l7.66.78q-1.49,7.42-5.74,11A15.5,15.5,0,0,1,209,236.82q-8.17,0-12.56-6a23.89,23.89,0,0,1-4.39-14.59q0-8.91,4.8-14.73a15.77,15.77,0,0,1,12.81-5.82q12.89,0,15.35,13.59l-7.66,1.05q-1-7.34-7.23-7.34a6.9,6.9,0,0,0-6.58,4,20.66,20.66,0,0,0-2.05,9.59q0,6,2.13,9.22a6.74,6.74,0,0,0,6,3.24Q215.49,229,217.4,221.51Z"></path> <path class="cls-1" d="M257,223.42l8,1.09a16.84,16.84,0,0,1-6.09,8.83,18.13,18.13,0,0,1-11.37,3.48q-8.2,0-13.2-5.51t-5-14.92q0-8.94,5-14.8t13.67-5.86q8.44,0,13,5.78t4.61,14.84l0,1H238.61a22.12,22.12,0,0,0,.76,6.45,8.68,8.68,0,0,0,3,4.22,8.83,8.83,0,0,0,5.66,1.8Q254.67,229.83,257,223.42Zm-.55-11.8a9.92,9.92,0,0,0-2.56-7,8.63,8.63,0,0,0-12.36-.18,11.36,11.36,0,0,0-2.89,7.13Z"></path> <path class="cls-1" d="M282.71,236h-8.91V182.68h8.91Z"></path> </g>
|
||||
</g>
|
||||
</svg>
|
||||
<span>خروجی اکسل</span>
|
||||
</button>
|
||||
<button class="btn-print-all RemoveBtnAll" type="button" Permission="@SubAccountPermissionHelper.DeleteCustomizeCheckoutTempPermissionCode">
|
||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M8.70825 13.2891L8.70825 10.5391" stroke="#BF3737" stroke-linecap="round" />
|
||||
<path d="M13.2917 13.2891L13.2917 10.5391" stroke="#BF3737" stroke-linecap="round" />
|
||||
<path d="M2.75 5.96094H19.25V5.96094C18.122 5.96094 17.558 5.96094 17.1279 6.18191C16.7561 6.37284 16.4536 6.67541 16.2626 7.04713C16.0417 7.47732 16.0417 8.0413 16.0417 9.16927V13.8776C16.0417 15.7632 16.0417 16.706 15.4559 17.2918C14.8701 17.8776 13.9273 17.8776 12.0417 17.8776H9.95833C8.07271 17.8776 7.12991 17.8776 6.54412 17.2918C5.95833 16.706 5.95833 15.7632 5.95833 13.8776V9.16927C5.95833 8.0413 5.95833 7.47732 5.73737 7.04713C5.54643 6.67541 5.24386 6.37284 4.87214 6.18191C4.44195 5.96094 3.87797 5.96094 2.75 5.96094V5.96094Z" stroke="#BF3737" stroke-linecap="round" />
|
||||
<path d="M8.70841 3.20595C8.70841 3.20595 9.16675 2.28906 11.0001 2.28906C12.8334 2.28906 13.2917 3.20573 13.2917 3.20573" stroke="#BF3737" stroke-linecap="round" />
|
||||
</svg>
|
||||
<span>حذف گروهی</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Advance Search Box -->
|
||||
<div class="container-fluid d-block d-md-none">
|
||||
<div class="row d-flex align-items-center justify-content-between">
|
||||
<div class="search-box bg-white">
|
||||
<div class="col text-center">
|
||||
<button class="btn-search w-100" type="button" data-bs-toggle="modal" data-bs-target="#searchModal">
|
||||
<span>جستجو پیشرفته</span>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
||||
<circle cx="11" cy="11" r="6" stroke="white"/>
|
||||
<path d="M20 20L17 17" stroke="white" stroke-linecap="round"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End Advance Search Box -->
|
||||
@if (@Model.CustomizeCheckouts.Count > 0)
|
||||
{
|
||||
<div class="d-flex d-md-none align-items-center justify-content-between gap-1 my-1">
|
||||
<div class="select-all d-flex align-items-center">
|
||||
<input type="checkbox" class="form-check-input checkAll" name="" id="checkAll1">
|
||||
<label for="checkAll1">انتخاب همه</label>
|
||||
</div>
|
||||
<div class="d-flex align-items-center justify-content-end gap-1">
|
||||
<button onclick="printAllMobile()" class="btn-print-all text-nowrap" type="button" Permission="@SubAccountPermissionHelper.PrintCustomizeCheckoutTempPermissionCode">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
||||
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" stroke="#1E293B"/>
|
||||
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" stroke="#1E293B"/>
|
||||
<path d="M7.91675 11.25L11.2501 11.25" stroke="#1E293B" stroke-linecap="round"/>
|
||||
<path d="M7.91675 13.75L12.0834 13.75" stroke="#1E293B" stroke-linecap="round"/>
|
||||
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" stroke="#1E293B"/>
|
||||
</svg>
|
||||
<span>پرینت گروهی</span>
|
||||
</button>
|
||||
<button onclick="downloadExcelAll()" class="btn-excel text-nowrap" type="button" Permission="@SubAccountPermissionHelper.ExcelCustomizeCheckoutTempPermissionCode">
|
||||
<svg width="20" height="20" viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg" fill="#000000">
|
||||
<g id="SVGRepo_bgCarrier" stroke-width="1"></g>
|
||||
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
|
||||
<g id="SVGRepo_iconCarrier">
|
||||
<defs>
|
||||
<style>
|
||||
.cls-1 {
|
||||
fill: #0f773d;
|
||||
}</style>
|
||||
</defs> <title></title> <g id="xxx-word"> <path class="cls-1" d="M325,105H250a5,5,0,0,1-5-5V25a5,5,0,1,1,10,0V95h70a5,5,0,0,1,0,10Z"></path> <path class="cls-1" d="M325,154.83a5,5,0,0,1-5-5V102.07L247.93,30H100A20,20,0,0,0,80,50v98.17a5,5,0,0,1-10,0V50a30,30,0,0,1,30-30H250a5,5,0,0,1,3.54,1.46l75,75A5,5,0,0,1,330,100v49.83A5,5,0,0,1,325,154.83Z"></path> <path class="cls-1" d="M300,380H100a30,30,0,0,1-30-30V275a5,5,0,0,1,10,0v75a20,20,0,0,0,20,20H300a20,20,0,0,0,20-20V275a5,5,0,0,1,10,0v75A30,30,0,0,1,300,380Z"></path> <path class="cls-1" d="M275,280H125a5,5,0,1,1,0-10H275a5,5,0,0,1,0,10Z"></path> <path class="cls-1" d="M200,330H125a5,5,0,1,1,0-10h75a5,5,0,0,1,0,10Z"></path> <path class="cls-1" d="M325,280H75a30,30,0,0,1-30-30V173.17a30,30,0,0,1,30-30h.2l250,1.66a30.09,30.09,0,0,1,29.81,30V250A30,30,0,0,1,325,280ZM75,153.17a20,20,0,0,0-20,20V250a20,20,0,0,0,20,20H325a20,20,0,0,0,20-20V174.83a20.06,20.06,0,0,0-19.88-20l-250-1.66Z"></path> <path class="cls-1" d="M152.44,236H117.79V182.68h34.3v7.93H127.4v14.45h19.84v7.73H127.4v14.92h25Z"></path> <path class="cls-1" d="M190.18,236H180l-8.36-14.37L162.52,236h-7.66L168,215.69l-11.37-19.14h10.2l6.48,11.6,7.38-11.6h7.46L177,213.66Z"></path> <path class="cls-1" d="M217.4,221.51l7.66.78q-1.49,7.42-5.74,11A15.5,15.5,0,0,1,209,236.82q-8.17,0-12.56-6a23.89,23.89,0,0,1-4.39-14.59q0-8.91,4.8-14.73a15.77,15.77,0,0,1,12.81-5.82q12.89,0,15.35,13.59l-7.66,1.05q-1-7.34-7.23-7.34a6.9,6.9,0,0,0-6.58,4,20.66,20.66,0,0,0-2.05,9.59q0,6,2.13,9.22a6.74,6.74,0,0,0,6,3.24Q215.49,229,217.4,221.51Z"></path> <path class="cls-1" d="M257,223.42l8,1.09a16.84,16.84,0,0,1-6.09,8.83,18.13,18.13,0,0,1-11.37,3.48q-8.2,0-13.2-5.51t-5-14.92q0-8.94,5-14.8t13.67-5.86q8.44,0,13,5.78t4.61,14.84l0,1H238.61a22.12,22.12,0,0,0,.76,6.45,8.68,8.68,0,0,0,3,4.22,8.83,8.83,0,0,0,5.66,1.8Q254.67,229.83,257,223.42Zm-.55-11.8a9.92,9.92,0,0,0-2.56-7,8.63,8.63,0,0,0-12.36-.18,11.36,11.36,0,0,0-2.89,7.13Z"></path> <path class="cls-1" d="M282.71,236h-8.91V182.68h8.91Z"></path> </g>
|
||||
</g>
|
||||
</svg>
|
||||
<span>خروجی اکسل</span>
|
||||
</button>
|
||||
<button class="btn-print-all RemoveBtnAll" type="button" Permission="@SubAccountPermissionHelper.DeleteCustomizeCheckoutTempPermissionCode">
|
||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M8.70825 13.2891L8.70825 10.5391" stroke="#BF3737" stroke-linecap="round"/>
|
||||
<path d="M13.2917 13.2891L13.2917 10.5391" stroke="#BF3737" stroke-linecap="round"/>
|
||||
<path d="M2.75 5.96094H19.25V5.96094C18.122 5.96094 17.558 5.96094 17.1279 6.18191C16.7561 6.37284 16.4536 6.67541 16.2626 7.04713C16.0417 7.47732 16.0417 8.0413 16.0417 9.16927V13.8776C16.0417 15.7632 16.0417 16.706 15.4559 17.2918C14.8701 17.8776 13.9273 17.8776 12.0417 17.8776H9.95833C8.07271 17.8776 7.12991 17.8776 6.54412 17.2918C5.95833 16.706 5.95833 15.7632 5.95833 13.8776V9.16927C5.95833 8.0413 5.95833 7.47732 5.73737 7.04713C5.54643 6.67541 5.24386 6.37284 4.87214 6.18191C4.44195 5.96094 3.87797 5.96094 2.75 5.96094V5.96094Z" stroke="#BF3737" stroke-linecap="round"/>
|
||||
<path d="M8.70841 3.20595C8.70841 3.20595 9.16675 2.28906 11.0001 2.28906C12.8334 2.28906 13.2917 3.20573 13.2917 3.20573" stroke="#BF3737" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span>حذف گروهی</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="checkout-list Rtable Rtable--5cols Rtable--collapse tb">
|
||||
<div class="Rtable-row Rtable-row--head align-items-center sticky-div">
|
||||
<div class="Rtable-cell column-heading width1">
|
||||
<span class="d-flex justify-content-center text-white align-items-center justify-content-between">
|
||||
<input type="checkbox" class="form-check-input checkAll" name="" id="checkAll2">
|
||||
<label for="checkAll2" class="prevent-select">ردیف</label>
|
||||
</span>
|
||||
</div>
|
||||
<div class="Rtable-cell column-heading width2">شماره پرسنلی</div>
|
||||
<div class="Rtable-cell column-heading width3">سال</div>
|
||||
<div class="Rtable-cell column-heading width4">ماه</div>
|
||||
<div class="Rtable-cell column-heading width5 d-xxl-block d-none">شماره قرارداد</div>
|
||||
<div class="Rtable-cell column-heading width6">نام پرسنل</div>
|
||||
<div class="Rtable-cell column-heading width7">آغاز قرارداد</div>
|
||||
<div class="Rtable-cell column-heading width8">پایان قرارداد</div>
|
||||
<div class="Rtable-cell column-heading width9">روزهای کارکرد</div>
|
||||
<div class="Rtable-cell column-heading width9">تاخیر در ورود</div>
|
||||
<div class="Rtable-cell column-heading width9">غیبت</div>
|
||||
<div class="Rtable-cell column-heading width9">مبلغ قابل پرداخت</div>
|
||||
<div class="Rtable-cell column-heading width10 text-end">عملیات</div>
|
||||
</div>
|
||||
<div class="checkout-list Rtable Rtable--5cols Rtable--collapse tb">
|
||||
<div class="Rtable-row Rtable-row--head align-items-center sticky-div">
|
||||
<div class="Rtable-cell column-heading width1">
|
||||
<span class="d-flex justify-content-center text-white align-items-center justify-content-between">
|
||||
<input type="checkbox" class="form-check-input checkAll" name="" id="checkAll2">
|
||||
<label for="checkAll2" class="prevent-select">ردیف</label>
|
||||
</span>
|
||||
</div>
|
||||
<div class="Rtable-cell column-heading width2">شماره پرسنلی</div>
|
||||
<div class="Rtable-cell column-heading width3">سال</div>
|
||||
<div class="Rtable-cell column-heading width4">ماه</div>
|
||||
@* <div class="Rtable-cell column-heading width5 d-xxl-block d-none">شماره قرارداد</div> *@
|
||||
<div class="Rtable-cell column-heading width6">نام پرسنل</div>
|
||||
<div class="Rtable-cell column-heading width7">آغاز قرارداد</div>
|
||||
<div class="Rtable-cell column-heading width8">پایان قرارداد</div>
|
||||
<div class="Rtable-cell column-heading width9">روزهای کارکرد</div>
|
||||
<div class="Rtable-cell column-heading width9">تاخیر در ورود</div>
|
||||
<div class="Rtable-cell column-heading width9">غیبت</div>
|
||||
<div class="Rtable-cell column-heading width9">مساعده</div>
|
||||
<div class="Rtable-cell column-heading width9">مبلغ قابل پرداخت</div>
|
||||
<div class="Rtable-cell column-heading width10 text-end">عملیات</div>
|
||||
</div>
|
||||
|
||||
|
||||
@foreach (var item in @Model.CustomizeCheckouts)
|
||||
{
|
||||
<div class="Rtable-row align-items-center position-relative printAllTd">
|
||||
<div class="Rtable-cell d-md-block d-none width1">
|
||||
<div class="Rtable-cell--heading">
|
||||
ردیف
|
||||
</div>
|
||||
<label for="@i" class="Rtable-cell--content prevent-select">
|
||||
<span class="d-flex justify-content-center align-items-center justify-content-between">
|
||||
<input id="@i" type="checkbox" class="form-check-input foo" name="foo" value="@item.Id">
|
||||
<div class="row-number">
|
||||
@(i = i + 1)
|
||||
</div>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-block d-none width2">
|
||||
<div class="Rtable-cell--heading">شماره پرسنلی</div>
|
||||
<div class="Rtable-cell--content">@item.PersonnelCode</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-block d-none width3">
|
||||
<div class="Rtable-cell--heading">سال</div>
|
||||
<div class="Rtable-cell--content">@item.Year</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-block d-none width4">
|
||||
<div class="Rtable-cell--heading">ماه</div>
|
||||
<div class="Rtable-cell--content">@item.Month</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-xxl-block d-none width5">
|
||||
<div class="Rtable-cell--heading">شماره قرارداد</div>
|
||||
<div class="Rtable-cell--content">@item.ContractNo</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-block d-none width6">
|
||||
<div class="Rtable-cell--heading">نام پرسنل</div>
|
||||
<div class="Rtable-cell--content ">@item.EmployeeFullName</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-block d-none width7">
|
||||
<div class="Rtable-cell--heading">آغاز قرارداد</div>
|
||||
<div class="Rtable-cell--content ">@item.ContractStartFa</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-block d-none width8">
|
||||
<div class="Rtable-cell--heading">پایان قرارداد</div>
|
||||
<div class="Rtable-cell--content ">@item.ContractEndFa</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-flex d-none width9">
|
||||
<div class="Rtable-cell--heading">روزهای کارکرد</div>
|
||||
<div class="Rtable-cell--content ">@item.SumOfWorkingDays</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-flex d-none width9">
|
||||
<div class="Rtable-cell--heading">تاخیر در ورود</div>
|
||||
<div class="Rtable-cell--content @(item.TotalLateToWorkDeduction == "0" ? "" : "textRed")">@item.TotalLateToWorkDeduction</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-flex d-none width9">
|
||||
<div class="Rtable-cell--heading">غیبت</div>
|
||||
<div class="Rtable-cell--content @(item.AbsenceDeduction == "0" ? "" : "textRed")">@item.AbsenceDeduction</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-flex d-none width9">
|
||||
<div class="@(item.TotalPaymentD < 0 ? "bgColorMonthlySalaryMinus" : "bgColorMonthlySalaryPlus")">
|
||||
<div class="Rtable-cell--heading">مبلغ قابل پرداخت</div>
|
||||
<div class="Rtable-cell--content ">@(item.TotalPayment + " ریال")</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-flex d-none width10">
|
||||
<div class="Rtable-cell--content align-items-center d-flex d-md-block text-end">
|
||||
<button class="btn-print moreThan992" type="button" onclick="printOne(@item.Id, '@item.Year', '@item.Month')" Permission="@SubAccountPermissionHelper.CreateCustomizeCheckoutTempPermissionCode">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor">
|
||||
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" />
|
||||
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" />
|
||||
<path d="M7.91675 11.25L11.2501 11.25" stroke-linecap="round" />
|
||||
<path d="M7.91675 13.75L12.0834 13.75" stroke-linecap="round" />
|
||||
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" />
|
||||
</svg>
|
||||
</button>
|
||||
<button class="btn-print lessThan992" type="button" onclick="printOne(@item.Id, '@item.Year', '@item.Month')" Permission="@SubAccountPermissionHelper.CreateCustomizeCheckoutTempPermissionCode">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor">
|
||||
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" />
|
||||
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" />
|
||||
<path d="M7.91675 11.25L11.2501 11.25" stroke-linecap="round" />
|
||||
<path d="M7.91675 13.75L12.0834 13.75" stroke-linecap="round" />
|
||||
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" />
|
||||
</svg>
|
||||
</button>
|
||||
@foreach (var item in @Model.CustomizeCheckouts)
|
||||
{
|
||||
<div class="Rtable-row align-items-center position-relative printAllTd">
|
||||
<div class="Rtable-cell d-md-block d-none width1">
|
||||
<div class="Rtable-cell--heading">
|
||||
ردیف
|
||||
</div>
|
||||
<label for="@i" class="Rtable-cell--content prevent-select">
|
||||
<span class="d-flex justify-content-center align-items-center justify-content-between">
|
||||
<input id="@i" type="checkbox" class="form-check-input foo" name="foo" value="@item.Id">
|
||||
<div class="row-number">
|
||||
@(i = i + 1)
|
||||
</div>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-block d-none width2">
|
||||
<div class="Rtable-cell--heading">شماره پرسنلی</div>
|
||||
<div class="Rtable-cell--content">@item.PersonnelCode</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-block d-none width3">
|
||||
<div class="Rtable-cell--heading">سال</div>
|
||||
<div class="Rtable-cell--content">@item.Year</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-block d-none width4">
|
||||
<div class="Rtable-cell--heading">ماه</div>
|
||||
<div class="Rtable-cell--content">@item.Month</div>
|
||||
</div>
|
||||
@* <div class="Rtable-cell d-xxl-block d-none width5">
|
||||
<div class="Rtable-cell--heading">شماره قرارداد</div>
|
||||
<div class="Rtable-cell--content">@item.ContractNo</div>
|
||||
</div> *@
|
||||
<div class="Rtable-cell d-md-block d-none width6">
|
||||
<div class="Rtable-cell--heading">نام پرسنل</div>
|
||||
<div class="Rtable-cell--content ">@item.EmployeeFullName</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-block d-none width7">
|
||||
<div class="Rtable-cell--heading">آغاز قرارداد</div>
|
||||
<div class="Rtable-cell--content ">@item.ContractStartFa</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-block d-none width8">
|
||||
<div class="Rtable-cell--heading">پایان قرارداد</div>
|
||||
<div class="Rtable-cell--content ">@item.ContractEndFa</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-flex d-none width9">
|
||||
<div class="Rtable-cell--heading">روزهای کارکرد</div>
|
||||
<div class="Rtable-cell--content ">@item.SumOfWorkingDays</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-flex d-none width9">
|
||||
<div class="Rtable-cell--heading">تاخیر در ورود</div>
|
||||
<div class="Rtable-cell--content @(item.TotalLateToWorkDeduction == "0" ? "" : "textRed")">@item.TotalLateToWorkDeduction</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-flex d-none width9">
|
||||
<div class="Rtable-cell--heading">غیبت</div>
|
||||
<div class="Rtable-cell--content @(item.AbsenceDeduction == "0" ? "" : "textRed")">@item.AbsenceDeduction</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-flex d-none width9">
|
||||
<div class="Rtable-cell--heading">مساعده</div>
|
||||
<div class="Rtable-cell--content @(item.SalaryAidDeduction == "0" ? "" : "textRed")">@item.SalaryAidDeduction</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-flex d-none width9">
|
||||
<div class="@(item.TotalPaymentD < 0 ? "bgColorMonthlySalaryMinus" : "bgColorMonthlySalaryPlus")">
|
||||
<div class="Rtable-cell--heading">مبلغ قابل پرداخت</div>
|
||||
<div class="Rtable-cell--content ">@(item.TotalPayment + " ریال")</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-flex d-none width10">
|
||||
<div class="Rtable-cell--content align-items-center d-flex d-md-block text-end">
|
||||
<button class="btn-print moreThan992" type="button" onclick="printOne(@item.Id, '@item.Year', '@item.Month')" Permission="@SubAccountPermissionHelper.CreateCustomizeCheckoutTempPermissionCode">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor">
|
||||
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008"/>
|
||||
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z"/>
|
||||
<path d="M7.91675 11.25L11.2501 11.25" stroke-linecap="round"/>
|
||||
<path d="M7.91675 13.75L12.0834 13.75" stroke-linecap="round"/>
|
||||
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732"/>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="btn-print lessThan992" type="button" onclick="printOne(@item.Id, '@item.Year', '@item.Month')" Permission="@SubAccountPermissionHelper.CreateCustomizeCheckoutTempPermissionCode">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor">
|
||||
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008"/>
|
||||
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z"/>
|
||||
<path d="M7.91675 11.25L11.2501 11.25" stroke-linecap="round"/>
|
||||
<path d="M7.91675 13.75L12.0834 13.75" stroke-linecap="round"/>
|
||||
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732"/>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
<button type="button" class="btn-delete RemoveBtn" data-delete-id="@(item.Id)" Permission="@SubAccountPermissionHelper.DeleteCustomizeCheckoutTempPermissionCode">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 22 22" fill="none" stroke="currentColor">
|
||||
<path d="M8.70825 13.2915L8.70825 10.5415" stroke-linecap="round" />
|
||||
<path d="M13.2917 13.2915L13.2917 10.5415" stroke-linecap="round" />
|
||||
<path d="M2.75 5.9585H19.25V5.9585C18.122 5.9585 17.558 5.9585 17.1279 6.17946C16.7561 6.3704 16.4536 6.67297 16.2626 7.04469C16.0417 7.47488 16.0417 8.03886 16.0417 9.16683V13.8752C16.0417 15.7608 16.0417 16.7036 15.4559 17.2894C14.8701 17.8752 13.9273 17.8752 12.0417 17.8752H9.95833C8.07271 17.8752 7.12991 17.8752 6.54412 17.2894C5.95833 16.7036 5.95833 15.7608 5.95833 13.8752V9.16683C5.95833 8.03886 5.95833 7.47488 5.73737 7.04469C5.54643 6.67297 5.24386 6.3704 4.87214 6.17946C4.44195 5.9585 3.87797 5.9585 2.75 5.9585V5.9585Z" stroke-linecap="round" />
|
||||
<path d="M8.70841 3.20839C8.70841 3.20839 9.16675 2.2915 11.0001 2.2915C12.8334 2.2915 13.2917 3.20817 13.2917 3.20817" stroke-linecap="round" />
|
||||
</svg>
|
||||
<span class="mx-1">حذف</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="btn-delete RemoveBtn" data-delete-id="@(item.Id)" Permission="@SubAccountPermissionHelper.DeleteCustomizeCheckoutTempPermissionCode">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 22 22" fill="none" stroke="currentColor">
|
||||
<path d="M8.70825 13.2915L8.70825 10.5415" stroke-linecap="round"/>
|
||||
<path d="M13.2917 13.2915L13.2917 10.5415" stroke-linecap="round"/>
|
||||
<path d="M2.75 5.9585H19.25V5.9585C18.122 5.9585 17.558 5.9585 17.1279 6.17946C16.7561 6.3704 16.4536 6.67297 16.2626 7.04469C16.0417 7.47488 16.0417 8.03886 16.0417 9.16683V13.8752C16.0417 15.7608 16.0417 16.7036 15.4559 17.2894C14.8701 17.8752 13.9273 17.8752 12.0417 17.8752H9.95833C8.07271 17.8752 7.12991 17.8752 6.54412 17.2894C5.95833 16.7036 5.95833 15.7608 5.95833 13.8752V9.16683C5.95833 8.03886 5.95833 7.47488 5.73737 7.04469C5.54643 6.67297 5.24386 6.3704 4.87214 6.17946C4.44195 5.9585 3.87797 5.9585 2.75 5.9585V5.9585Z" stroke-linecap="round"/>
|
||||
<path d="M8.70841 3.20839C8.70841 3.20839 9.16675 2.2915 11.0001 2.2915C12.8334 2.2915 13.2917 3.20817 13.2917 3.20817" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span class="mx-1">حذف</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--Mobile Table-->
|
||||
<div class="Rtable-contract w-100 d-flex d-md-none align-items-center justify-content-between printAllTd">
|
||||
<!--Mobile Table-->
|
||||
<div class="Rtable-contract w-100 d-flex d-md-none align-items-center justify-content-between printAllTd">
|
||||
|
||||
<div class="d-flex justify-content-center align-items-center justify-content-between">
|
||||
<div class="checkbox-responsive d-flex justify-content-center align-items-center justify-content-around">
|
||||
<input type="checkbox" class="form-check-input fooMobile" name="foo" value="@item.Id">
|
||||
<span class="row-number">@(i)</span>
|
||||
</div>
|
||||
<div class="d-flex justify-content-center align-items-center justify-content-between">
|
||||
<div class="checkbox-responsive d-flex justify-content-center align-items-center justify-content-around">
|
||||
<input type="checkbox" class="form-check-input fooMobile" name="foo" value="@item.Id">
|
||||
<span class="row-number">@(i)</span>
|
||||
</div>
|
||||
|
||||
<div class="Rtable-cell--content">
|
||||
<span class="mx-sm-2">
|
||||
@item.EmployeeFullName
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Rtable-cell--content">
|
||||
<span class="mx-sm-2">
|
||||
@item.EmployeeFullName
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="Rtable-cell--content d-flex justify-content-end align-items-center">
|
||||
<div class="Rtable-cell--content d-flex justify-content-end align-items-center">
|
||||
|
||||
<div class="Rtable-cell--heading d-block text-center text-nowrap">
|
||||
<span class="d-block">آغاز قرارداد</span>
|
||||
@item.ContractStartFa
|
||||
</div>
|
||||
<div class="Rtable-cell--heading d-block text-center text-nowrap">
|
||||
<span class="d-block">پایان قرارداد</span>
|
||||
@item.ContractEndFa
|
||||
</div>
|
||||
<div class="Rtable-cell--heading d-flex text-center">
|
||||
<button class="btn-print" type="button" onclick="printOne(@item.Id, '@item.Year', '@item.Month')" Permission="@SubAccountPermissionHelper.CreateCustomizeCheckoutTempPermissionCode">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 20 20" fill="none" stroke="currentColor" >
|
||||
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008" />
|
||||
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z" />
|
||||
<path d="M7.91675 11.25L11.2501 11.25" stroke-linecap="round" />
|
||||
<path d="M7.91675 13.75L12.0834 13.75" stroke-linecap="round" />
|
||||
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732" />
|
||||
</svg>
|
||||
</button>
|
||||
<button type="button" class="btn-delete RemoveBtn" data-delete-id="@(item.Id)" Permission="@SubAccountPermissionHelper.DeleteCustomizeCheckoutTempPermissionCode">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 22 22" fill="none" stroke="currentColor">
|
||||
<path d="M8.70825 13.2915L8.70825 10.5415" stroke-linecap="round" />
|
||||
<path d="M13.2917 13.2915L13.2917 10.5415" stroke-linecap="round" />
|
||||
<path d="M2.75 5.9585H19.25V5.9585C18.122 5.9585 17.558 5.9585 17.1279 6.17946C16.7561 6.3704 16.4536 6.67297 16.2626 7.04469C16.0417 7.47488 16.0417 8.03886 16.0417 9.16683V13.8752C16.0417 15.7608 16.0417 16.7036 15.4559 17.2894C14.8701 17.8752 13.9273 17.8752 12.0417 17.8752H9.95833C8.07271 17.8752 7.12991 17.8752 6.54412 17.2894C5.95833 16.7036 5.95833 15.7608 5.95833 13.8752V9.16683C5.95833 8.03886 5.95833 7.47488 5.73737 7.04469C5.54643 6.67297 5.24386 6.3704 4.87214 6.17946C4.44195 5.9585 3.87797 5.9585 2.75 5.9585V5.9585Z" stroke-linecap="round" />
|
||||
<path d="M8.70841 3.20839C8.70841 3.20839 9.16675 2.2915 11.0001 2.2915C12.8334 2.2915 13.2917 3.20817 13.2917 3.20817" stroke-linecap="round" />
|
||||
</svg>
|
||||
<span class="mx-1">حذف</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Mobile Table -->
|
||||
<div class="Rtable-cell--heading d-block text-center text-nowrap">
|
||||
<span class="d-block">آغاز قرارداد</span>
|
||||
@item.ContractStartFa
|
||||
</div>
|
||||
<div class="Rtable-cell--heading d-block text-center text-nowrap">
|
||||
<span class="d-block">پایان قرارداد</span>
|
||||
@item.ContractEndFa
|
||||
</div>
|
||||
<div class="Rtable-cell--heading d-flex text-center">
|
||||
<button class="btn-print" type="button" onclick="printOne(@item.Id, '@item.Year', '@item.Month')" Permission="@SubAccountPermissionHelper.CreateCustomizeCheckoutTempPermissionCode">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 20 20" fill="none" stroke="currentColor">
|
||||
<path d="M15.0001 11.2493H15.139C16.0279 11.2493 16.4723 11.2493 16.759 10.9866C16.7805 10.967 16.801 10.9464 16.8207 10.9249C17.0834 10.6382 17.0834 10.1938 17.0834 9.3049V9.3049C17.0834 7.52714 17.0834 6.63826 16.558 6.06484C16.5187 6.02194 16.4775 5.98077 16.4346 5.94146C15.8612 5.41602 14.9723 5.41602 13.1945 5.41602H6.91675C5.03113 5.41602 4.08832 5.41602 3.50253 6.0018C2.91675 6.58759 2.91675 7.5304 2.91675 9.41602V10.2493C2.91675 10.7208 2.91675 10.9565 3.06319 11.1029C3.20964 11.2493 3.44534 11.2493 3.91675 11.2493H5.00008"/>
|
||||
<path d="M5.41675 16.3903L5.41675 9.91732C5.41675 8.97451 5.41675 8.5031 5.70964 8.21021C6.00253 7.91732 6.47394 7.91732 7.41675 7.91732L12.5834 7.91732C13.5262 7.91732 13.9976 7.91732 14.2905 8.21021C14.5834 8.5031 14.5834 8.97451 14.5834 9.91732L14.5834 16.3903C14.5834 16.7068 14.5834 16.8651 14.4796 16.9399C14.3758 17.0148 14.2256 16.9647 13.9253 16.8646L12.2572 16.3086C12.1712 16.2799 12.1282 16.2656 12.0839 16.2669C12.0396 16.2682 11.9975 16.285 11.9134 16.3187L10.1858 17.0097C10.0941 17.0464 10.0482 17.0647 10.0001 17.0647C9.95194 17.0647 9.90609 17.0464 9.81439 17.0097L8.0868 16.3187C8.00267 16.285 7.9606 16.2682 7.91627 16.2669C7.87194 16.2656 7.82896 16.2799 7.74299 16.3086L6.07486 16.8646C5.77455 16.9647 5.62439 17.0148 5.52057 16.9399C5.41675 16.8651 5.41675 16.7068 5.41675 16.3903Z"/>
|
||||
<path d="M7.91675 11.25L11.2501 11.25" stroke-linecap="round"/>
|
||||
<path d="M7.91675 13.75L12.0834 13.75" stroke-linecap="round"/>
|
||||
<path d="M14.5834 5.41732V5.41732C14.5834 3.97799 14.5834 3.25833 14.1954 2.76756C14.1087 2.65791 14.0095 2.55874 13.8998 2.47204C13.4091 2.08398 12.6894 2.08398 11.2501 2.08398H8.75008C7.31076 2.08398 6.5911 2.08398 6.10032 2.47204C5.99068 2.55874 5.8915 2.65791 5.8048 2.76756C5.41675 3.25833 5.41675 3.97799 5.41675 5.41732V5.41732"/>
|
||||
</svg>
|
||||
</button>
|
||||
<button type="button" class="btn-delete RemoveBtn" data-delete-id="@(item.Id)" Permission="@SubAccountPermissionHelper.DeleteCustomizeCheckoutTempPermissionCode">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 22 22" fill="none" stroke="currentColor">
|
||||
<path d="M8.70825 13.2915L8.70825 10.5415" stroke-linecap="round"/>
|
||||
<path d="M13.2917 13.2915L13.2917 10.5415" stroke-linecap="round"/>
|
||||
<path d="M2.75 5.9585H19.25V5.9585C18.122 5.9585 17.558 5.9585 17.1279 6.17946C16.7561 6.3704 16.4536 6.67297 16.2626 7.04469C16.0417 7.47488 16.0417 8.03886 16.0417 9.16683V13.8752C16.0417 15.7608 16.0417 16.7036 15.4559 17.2894C14.8701 17.8752 13.9273 17.8752 12.0417 17.8752H9.95833C8.07271 17.8752 7.12991 17.8752 6.54412 17.2894C5.95833 16.7036 5.95833 15.7608 5.95833 13.8752V9.16683C5.95833 8.03886 5.95833 7.47488 5.73737 7.04469C5.54643 6.67297 5.24386 6.3704 4.87214 6.17946C4.44195 5.9585 3.87797 5.9585 2.75 5.9585V5.9585Z" stroke-linecap="round"/>
|
||||
<path d="M8.70841 3.20839C8.70841 3.20839 9.16675 2.2915 11.0001 2.2915C12.8334 2.2915 13.2917 3.20817 13.2917 3.20817" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span class="mx-1">حذف</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Mobile Table -->
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="container-fluid">
|
||||
<div class="row p-lg-2 p-auto">
|
||||
<div class="empty text-center bg-white d-flex align-items-center justify-content-center">
|
||||
<div class="">
|
||||
<img src="~/assetsclient/images/empty.png" alt="" class="img-fluid" />
|
||||
<h5>اطلاعاتی وجود ندارد.</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="container-fluid">
|
||||
<div class="row p-lg-2 p-auto">
|
||||
<div class="empty text-center bg-white d-flex align-items-center justify-content-center">
|
||||
<div class="">
|
||||
<img src="~/assetsclient/images/empty.png" alt="" class="img-fluid"/>
|
||||
<h5>اطلاعاتی وجود ندارد.</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End List Items -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End List Items -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -575,32 +587,37 @@
|
||||
<div id="overlaySearchAdvance" class=""></div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12 text-start mb-4">
|
||||
<div class="mb-2">
|
||||
<select class="form-select select2OptionMobile" id="getPersonnelMobile" asp-for="SearchModel.EmployeeId">
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<span class="form-control text-center persianDateInputStartDate" id="start-date">تاریخ شروع</span>
|
||||
<input type="hidden" class="form-control date start-date" asp-for="@Model.SearchModel.SearchStartFa" placeholder="تاریخ شروع" style="direction: ltr">
|
||||
</div>
|
||||
<div>
|
||||
<span class="form-control text-center persianDateInputEndDate" id="end-date">تاریخ پایان</span>
|
||||
<input type="hidden" class="form-control date end-date" asp-for="@Model.SearchModel.SearchEndFa" placeholder="تاریخ پایان" style="direction: ltr">
|
||||
</div>
|
||||
<div class="col-12 text-start mb-4">
|
||||
<div class="mb-2">
|
||||
<select class="form-select select2OptionMobile" id="getPersonnelMobile" asp-for="SearchModel.EmployeeId">
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<span class="form-control text-center persianDateInputStartDate" id="start-date">تاریخ شروع</span>
|
||||
<input type="hidden" class="form-control date start-date" asp-for="@Model.SearchModel.SearchStartFa" placeholder="تاریخ شروع" style="direction: ltr">
|
||||
</div>
|
||||
<div>
|
||||
<span class="form-control text-center persianDateInputEndDate" id="end-date">تاریخ پایان</span>
|
||||
<input type="hidden" class="form-control date end-date" asp-for="@Model.SearchModel.SearchEndFa" placeholder="تاریخ پایان" style="direction: ltr">
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="text-nowrap">مرتب سازی</label>
|
||||
<select class="form-select" id="sorting" asp-for="@Model.SearchModel.OrderBy">
|
||||
<option value="@CustomizeCheckoutOrderByEnum.ContractStartDesc">شروع قرارداد - بزرگ به کوچک</option>
|
||||
<option value="@CustomizeCheckoutOrderByEnum.ContractStart">شروع قرارداد - کوچک به بزرگ</option>
|
||||
<option value="@CustomizeCheckoutOrderByEnum.ContractNo">شماره قرارداد - کوچک به بزرگ</option>
|
||||
<option value="@CustomizeCheckoutOrderByEnum.ContractNoDesc">شماره قرارداد - بزرگ به کوچک</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="text-nowrap">مرتب سازی</label>
|
||||
<select class="form-select" id="sorting" asp-for="@Model.SearchModel.OrderBy">
|
||||
<option value="@CustomizeCheckoutOrderByEnum.ContractStartDesc">شروع قرارداد - بزرگ به کوچک</option>
|
||||
<option value="@CustomizeCheckoutOrderByEnum.ContractStart">شروع قرارداد - کوچک به بزرگ</option>
|
||||
<option value="@CustomizeCheckoutOrderByEnum.ContractNo">شماره قرارداد - کوچک به بزرگ</option>
|
||||
<option value="@CustomizeCheckoutOrderByEnum.ContractNoDesc">شماره قرارداد - بزرگ به کوچک</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-12 text-start">
|
||||
<div class="mt-2">
|
||||
<select class="form-select" id="bankSelectIndexMobile" asp-for="@Model.SearchModel.BankId" aria-label="انتخاب بانک ...">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 text-start">
|
||||
<p class="mb-3">جستجو بر اساس سال و ماه</p>
|
||||
<div class="row">
|
||||
|
||||
@@ -700,7 +717,7 @@
|
||||
<button type="button" class="btn-cancel w-100" data-bs-dismiss="modal">بستن</button>
|
||||
</div>
|
||||
<div class="col-6 text-start">
|
||||
<button type="submit" class="btn-search btn-search-click w-100">جستجو</button>
|
||||
<button type="submit" class="btn-search btn-search-click-mobile w-100">جستجو</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -732,6 +749,7 @@
|
||||
|
||||
var itemsYearList = @Html.Raw(Json.Serialize(Model.YearlyList.OrderBy(x => x)));
|
||||
var employeeListAjax = `@Url.Page("./CheckoutTemporary", "EmployeeList")`;
|
||||
var bankListAjax = `@Url.Page("./CheckoutTemporary", "BankListAjax")`;
|
||||
var isTodayFirst = @(dayFa == 1 ? "true" : "false");
|
||||
var loadAllCheckoutListAjax = `@Url.Page("./CheckoutTemporary", "CheckoutList")`;
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using System.Security.Claims;
|
||||
using System.Text.RegularExpressions;
|
||||
using _0_Framework.Infrastructure;
|
||||
using CompanyManagment.App.Contracts.Bank;
|
||||
|
||||
namespace ServiceHost.Areas.Client.Pages.Company.CustomizeCheckout
|
||||
{
|
||||
@@ -19,6 +20,7 @@ namespace ServiceHost.Areas.Client.Pages.Company.CustomizeCheckout
|
||||
private readonly IEmployeeApplication _employeeApplication;
|
||||
private readonly IYearlySalaryApplication _yearlySalaryApplication;
|
||||
private readonly ICustomizeCheckoutTempApplication _customizeCheckoutTempApplication;
|
||||
private readonly IBankApplication _bankApplication;
|
||||
private readonly IPasswordHasher _passwordHasher;
|
||||
private readonly IHttpContextAccessor _httpContextAccessor;
|
||||
|
||||
@@ -29,7 +31,7 @@ namespace ServiceHost.Areas.Client.Pages.Company.CustomizeCheckout
|
||||
public List<string> YearlyList;
|
||||
|
||||
|
||||
public CheckoutTemporaryModel(IWorkshopApplication workshopApplication, IHttpContextAccessor httpContextAccessor, IYearlySalaryApplication yearlySalaryApplication, IPasswordHasher passwordHasher, ICustomizeCheckoutTempApplication customizeCheckoutTempApplication, IEmployeeApplication employeeApplication)
|
||||
public CheckoutTemporaryModel(IWorkshopApplication workshopApplication, IHttpContextAccessor httpContextAccessor, IYearlySalaryApplication yearlySalaryApplication, IPasswordHasher passwordHasher, ICustomizeCheckoutTempApplication customizeCheckoutTempApplication, IEmployeeApplication employeeApplication, IBankApplication bankApplication)
|
||||
{
|
||||
_workshopApplication = workshopApplication;
|
||||
_httpContextAccessor = httpContextAccessor;
|
||||
@@ -37,6 +39,7 @@ namespace ServiceHost.Areas.Client.Pages.Company.CustomizeCheckout
|
||||
_passwordHasher = passwordHasher;
|
||||
_customizeCheckoutTempApplication = customizeCheckoutTempApplication;
|
||||
_employeeApplication = employeeApplication;
|
||||
_bankApplication = bankApplication;
|
||||
|
||||
var workshopHash = _httpContextAccessor.HttpContext?.User.FindFirstValue("WorkshopSlug");
|
||||
_workshopId = _passwordHasher.SlugDecrypt(workshopHash);
|
||||
@@ -59,14 +62,13 @@ namespace ServiceHost.Areas.Client.Pages.Company.CustomizeCheckout
|
||||
OrderBy = searchModel.OrderBy,
|
||||
SearchStartFa = searchModel.SearchStartFa,
|
||||
SearchEndFa = searchModel.SearchEndFa,
|
||||
BankId = searchModel.BankId,
|
||||
PageIndex = CustomizeCheckouts.Count()
|
||||
};
|
||||
|
||||
YearlyList = _yearlySalaryApplication.GetYears();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public IActionResult OnGetPrintAll(CustomizeCheckoutBatchPrintViewModel sendIds)
|
||||
{
|
||||
|
||||
@@ -180,5 +182,19 @@ namespace ServiceHost.Areas.Client.Pages.Company.CustomizeCheckout
|
||||
});
|
||||
}
|
||||
|
||||
public IActionResult OnGetExcelModal()
|
||||
{
|
||||
return Partial("ModalExcelSetting");
|
||||
}
|
||||
|
||||
public IActionResult OnGetBankListAjax()
|
||||
{
|
||||
var resultData = _bankApplication.Search("");
|
||||
return new JsonResult(new
|
||||
{
|
||||
success = true,
|
||||
data = resultData,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,6 +87,7 @@
|
||||
<input type="hidden" id="SearchStartFa" value="@Model.SearchModel.SearchStartFa" />
|
||||
<input type="hidden" id="SearchEndFa" value="@Model.SearchModel.SearchEndFa" />
|
||||
<input type="hidden" id="OrderBy" value="@Model.SearchModel.OrderBy" />
|
||||
<input type="hidden" id="BankId" value="@Model.SearchModel.BankId" />
|
||||
|
||||
<div class="content-container">
|
||||
<div class="container-fluid">
|
||||
@@ -165,8 +166,8 @@
|
||||
<input type="hidden" id="sendDropdownMonth" asp-for="@Model.SearchModel.Month" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-span-2"><input type="text" class="form-control form-control-date date text-center start-date" asp-for="@Model.SearchModel.SearchStartFa" placeholder="تاریخ شروع" style="direction: ltr"></div>
|
||||
<div class="col-span-2"><input type="text" class="form-control form-control-date date text-center end-date" asp-for="@Model.SearchModel.SearchEndFa" placeholder="تاریخ پایان" style="direction: ltr"></div>
|
||||
<div class="col-span-1"><input type="text" class="form-control form-control-date date text-center start-date" asp-for="@Model.SearchModel.SearchStartFa" placeholder="تاریخ شروع" style="direction: ltr"></div>
|
||||
<div class="col-span-1"><input type="text" class="form-control form-control-date date text-center end-date" asp-for="@Model.SearchModel.SearchEndFa" placeholder="تاریخ پایان" style="direction: ltr"></div>
|
||||
<div class="col-span-2">
|
||||
<select class="form-select select2Option" id="getPersonnel" asp-for="SearchModel.EmployeeId">
|
||||
</select>
|
||||
@@ -177,15 +178,21 @@
|
||||
<svg class="arrow" id="drp-arrow" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="transition-all ml-auto rotate-180">
|
||||
<path d="M7 14.5l5-5 5 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
||||
</svg>
|
||||
<ul class="dropdown p-2 border">
|
||||
<ul class="dropdown p-2 border">
|
||||
<li class="item" value-data="@CustomizeCheckoutOrderByEnum.ContractStartDesc">شروع قرارداد - بزرگ به کوچک</li> ds
|
||||
<li class="item" value-data="@CustomizeCheckoutOrderByEnum.ContractStart">شروع قرارداد - کوچک به بزرگ</li>
|
||||
<li class="item" value-data="@CustomizeCheckoutOrderByEnum.ContractNo">شماره قرارداد - کوچک به بزرگ</li>
|
||||
<li class="item" value-data="@CustomizeCheckoutOrderByEnum.ContractNo">شماره قرارداد - کوچک به بزرگ</li>
|
||||
<li class="item" value-data="@CustomizeCheckoutOrderByEnum.ContractNoDesc">شماره قرارداد - بزرگ به کوچک</li>
|
||||
</ul>
|
||||
<input type="hidden" id="sendSorting" asp-for="@Model.SearchModel.OrderBy" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-span-2">
|
||||
<select class="form-select" id="bankSelectIndex" asp-for="@Model.SearchModel.BankId" aria-label="انتخاب بانک ...">
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="d-flex gap-2 col-span-2">
|
||||
<button class="btn-search btn-w-size btn-search-click text-nowrap d-flex align-items-center justify-content-center" id="searchBtn" type="submit">
|
||||
<span>جستجو</span>
|
||||
@@ -317,7 +324,7 @@
|
||||
</svg>
|
||||
<span>پرینت گروهی</span>
|
||||
</button>
|
||||
<button onclick="showExcelAllModal()" class="btn-excel text-nowrap" type="button" Permission="@SubAccountPermissionHelper.ExcelCustomizeCheckoutPermissionCode">
|
||||
<button onclick="excelDownloadAll()" class="btn-excel text-nowrap" type="button" Permission="@SubAccountPermissionHelper.ExcelCustomizeCheckoutPermissionCode">
|
||||
<svg width="20" height="20" viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg" fill="#000000">
|
||||
<g id="SVGRepo_bgCarrier" stroke-width="1"></g>
|
||||
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
|
||||
@@ -356,13 +363,14 @@
|
||||
<div class="Rtable-cell column-heading width2">شماره پرسنلی</div>
|
||||
<div class="Rtable-cell column-heading width3">سال</div>
|
||||
<div class="Rtable-cell column-heading width4">ماه</div>
|
||||
<div class="Rtable-cell column-heading width5 d-xxl-block d-none">شماره قرارداد</div>
|
||||
@* <div class="Rtable-cell column-heading width5 d-xxl-block d-none">شماره قرارداد</div> *@
|
||||
<div class="Rtable-cell column-heading width6">نام پرسنل</div>
|
||||
<div class="Rtable-cell column-heading width7">آغاز قرارداد</div>
|
||||
<div class="Rtable-cell column-heading width8">پایان قرارداد</div>
|
||||
<div class="Rtable-cell column-heading width9">روزهای کارکرد</div>
|
||||
<div class="Rtable-cell column-heading width9">تاخیر در ورود</div>
|
||||
<div class="Rtable-cell column-heading width9">غیبت</div>
|
||||
<div class="Rtable-cell column-heading width9">مساعده</div>
|
||||
<div class="Rtable-cell column-heading width9">مبلغ قابل پرداخت</div>
|
||||
<div class="Rtable-cell column-heading width10 text-end">عملیات</div>
|
||||
</div>
|
||||
@@ -396,10 +404,10 @@
|
||||
<div class="Rtable-cell--heading">ماه</div>
|
||||
<div class="Rtable-cell--content">@item.Month</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-xxl-block d-none width5">
|
||||
@* <div class="Rtable-cell d-xxl-block d-none width5">
|
||||
<div class="Rtable-cell--heading">شماره قرارداد</div>
|
||||
<div class="Rtable-cell--content">@item.ContractNo</div>
|
||||
</div>
|
||||
</div> *@
|
||||
<div class="Rtable-cell d-md-block d-none width6">
|
||||
<div class="Rtable-cell--heading">نام پرسنل</div>
|
||||
<div class="Rtable-cell--content ">@item.EmployeeFullName</div>
|
||||
@@ -426,6 +434,10 @@
|
||||
<div class="Rtable-cell--heading">غیبت</div>
|
||||
<div class="Rtable-cell--content @(item.AbsenceDeduction == "0" ? "" : "textRed")">@item.AbsenceDeduction</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-flex d-none width9">
|
||||
<div class="Rtable-cell--heading">مساعده</div>
|
||||
<div class="Rtable-cell--content @(item.SalaryAidDeduction == "0" ? "" : "textRed")">@item.SalaryAidDeduction</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-flex d-none width9">
|
||||
<div class="@(item.TotalPaymentD < 0 ? "bgColorMonthlySalaryMinus" : "bgColorMonthlySalaryPlus" )">
|
||||
<div class="Rtable-cell--heading">مبلغ قابل پرداخت</div>
|
||||
@@ -607,6 +619,11 @@
|
||||
<option value="@CustomizeCheckoutOrderByEnum.ContractNoDesc">شماره قرارداد - بزرگ به کوچک</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mt-2">
|
||||
<select class="form-select" id="bankSelectIndexMobile" asp-for="@Model.SearchModel.BankId" aria-label="انتخاب بانک ...">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12 text-start">
|
||||
@@ -709,7 +726,7 @@
|
||||
<button type="button" class="btn-cancel w-100" data-bs-dismiss="modal">بستن</button>
|
||||
</div>
|
||||
<div class="col-6 text-start">
|
||||
<button type="submit" class="btn-search btn-search-click w-100">جستجو</button>
|
||||
<button type="submit" class="btn-search btn-search-click-mobile w-100">جستجو</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -736,6 +753,7 @@
|
||||
|
||||
var itemsYearList = @Html.Raw(Json.Serialize(Model.YearlyList.OrderBy(x => x)));
|
||||
var employeeListAjax = `@Url.Page("./CheckoutUnofficial", "EmployeeList")`;
|
||||
var bankListAjax = `@Url.Page("./CheckoutUnofficial", "BankListAjax")`;
|
||||
var loadAllCheckoutUnofficialListAjax = `@Url.Page("./CheckoutUnofficial", "CustomizeCheckoutsList")`;
|
||||
|
||||
var PrintOneUrl = `#showmodal=@Url.Page("/Company/CustomizeCheckout/CheckoutUnofficial", "PrintOne")`;
|
||||
|
||||
@@ -11,6 +11,7 @@ using System.Security.Claims;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text.RegularExpressions;
|
||||
using _0_Framework.Infrastructure;
|
||||
using CompanyManagment.App.Contracts.Bank;
|
||||
|
||||
namespace ServiceHost.Areas.Client.Pages.Company.CustomizeCheckout;
|
||||
|
||||
@@ -20,6 +21,7 @@ public class CheckoutUnofficialModel : PageModel
|
||||
private readonly ICustomizeCheckoutApplication _customizeCheckoutApplication;
|
||||
private readonly IWorkshopApplication _workshopApplication;
|
||||
private readonly IEmployeeApplication _employeeApplication;
|
||||
private readonly IBankApplication _bankApplication;
|
||||
private readonly IAuthHelper _authHelper;
|
||||
private readonly IPasswordHasher _passwordHasher;
|
||||
private readonly IYearlySalaryApplication _yearlySalaryApplication;
|
||||
@@ -39,7 +41,7 @@ public class CheckoutUnofficialModel : PageModel
|
||||
|
||||
public List<CustomizeCheckoutViewModel> CustomizeCheckouts { get; set; }
|
||||
|
||||
public CheckoutUnofficialModel(ICustomizeCheckoutApplication customizeCheckoutApplication, IAuthHelper authHelper, IPasswordHasher passwordHasher, IHttpContextAccessor httpContextAccessor, IWorkshopApplication workshopApplication, IEmployeeApplication employeeApplication, IYearlySalaryApplication yearlySalaryApplication)
|
||||
public CheckoutUnofficialModel(ICustomizeCheckoutApplication customizeCheckoutApplication, IAuthHelper authHelper, IPasswordHasher passwordHasher, IHttpContextAccessor httpContextAccessor, IWorkshopApplication workshopApplication, IEmployeeApplication employeeApplication, IYearlySalaryApplication yearlySalaryApplication, IBankApplication bankApplication)
|
||||
{
|
||||
_customizeCheckoutApplication = customizeCheckoutApplication;
|
||||
_authHelper = authHelper;
|
||||
@@ -48,6 +50,7 @@ public class CheckoutUnofficialModel : PageModel
|
||||
_workshopApplication = workshopApplication;
|
||||
_employeeApplication = employeeApplication;
|
||||
_yearlySalaryApplication = yearlySalaryApplication;
|
||||
_bankApplication = bankApplication;
|
||||
|
||||
var workshopHash = _httpContextAccessor.HttpContext?.User.FindFirstValue("WorkshopSlug");
|
||||
_workshopId = _passwordHasher.SlugDecrypt(workshopHash);
|
||||
@@ -73,6 +76,7 @@ public class CheckoutUnofficialModel : PageModel
|
||||
SearchEndFa = searchModel.SearchEndFa,
|
||||
EmployeeId = searchModel.EmployeeId,
|
||||
OrderBy = searchModel.OrderBy,
|
||||
BankId = searchModel.BankId,
|
||||
PageIndex = CustomizeCheckouts.Count()
|
||||
};
|
||||
|
||||
@@ -413,6 +417,16 @@ public class CheckoutUnofficialModel : PageModel
|
||||
{
|
||||
return Partial("ModalExcelSetting");
|
||||
}
|
||||
|
||||
public IActionResult OnGetBankListAjax()
|
||||
{
|
||||
var resultData = _bankApplication.Search("");
|
||||
return new JsonResult(new
|
||||
{
|
||||
success = true,
|
||||
data = resultData,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public class GetCreateCustomizeCheckout
|
||||
|
||||
@@ -6,7 +6,7 @@ using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using System.Security.Claims;
|
||||
using System.Text.RegularExpressions;
|
||||
using _0_Framework.Excel.Checkout;
|
||||
using CompanyManagement.Infrastructure.Excel.Checkout;
|
||||
using CompanyManagment.App.Contracts.EmployeeBankInformation;
|
||||
|
||||
namespace ServiceHost.Areas.Client.Pages.Company.CustomizeCheckout
|
||||
@@ -285,8 +285,9 @@ namespace ServiceHost.Areas.Client.Pages.Company.CustomizeCheckout
|
||||
FineDeduction = x.FineDeduction,
|
||||
BankAccountNumber = employeeBankInformation?.BankAccountNumber,
|
||||
CardNumber = employeeBankInformation?.CardNumber,
|
||||
ShebaNumber = employeeBankInformation?.ShebaNumber
|
||||
};
|
||||
ShebaNumber = employeeBankInformation?.ShebaNumber,
|
||||
BankName = employeeBankInformation?.BankName
|
||||
};
|
||||
}).ToList();
|
||||
|
||||
var excelBytes = CustomizeCheckoutExcelGenerator.GenerateCheckoutTempExcelInfo(customizeCheckoutTempExcelViewModels, []);
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using _0_Framework.Application;
|
||||
using _0_Framework.Excel.Checkout;
|
||||
using CompanyManagment.App.Contracts.CustomizeCheckout;
|
||||
using CompanyManagment.App.Contracts.Workshop;
|
||||
using CompanyManagment.App.Contracts.YearlySalary;
|
||||
@@ -7,6 +6,7 @@ using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using System.Security.Claims;
|
||||
using System.Text.RegularExpressions;
|
||||
using CompanyManagement.Infrastructure.Excel.Checkout;
|
||||
using CompanyManagment.App.Contracts.EmployeeBankInformation;
|
||||
|
||||
namespace ServiceHost.Areas.Client.Pages.Company.CustomizeCheckout
|
||||
@@ -283,8 +283,9 @@ namespace ServiceHost.Areas.Client.Pages.Company.CustomizeCheckout
|
||||
FineDeduction = x.FineDeduction,
|
||||
BankAccountNumber = employeeBankInformation?.BankAccountNumber,
|
||||
CardNumber = employeeBankInformation?.CardNumber,
|
||||
ShebaNumber = employeeBankInformation?.ShebaNumber
|
||||
};
|
||||
ShebaNumber = employeeBankInformation?.ShebaNumber,
|
||||
BankName = employeeBankInformation?.BankName
|
||||
};
|
||||
}).ToList();
|
||||
|
||||
var excelBytes = CustomizeCheckoutExcelGenerator.GenerateCheckoutTempExcelInfo(customizeCheckoutTempExcelViewModels, []);
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using _0_Framework.Application;
|
||||
using _0_Framework.Excel.EmployeeBankInfo;
|
||||
using CompanyManagment.App.Contracts.Bank;
|
||||
using CompanyManagment.App.Contracts.Employee;
|
||||
using CompanyManagment.App.Contracts.EmployeeBankInformation;
|
||||
@@ -8,6 +7,7 @@ using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using System.Security.Claims;
|
||||
using CompanyManagement.Infrastructure.Excel.EmployeeBankInfo;
|
||||
|
||||
namespace ServiceHost.Areas.Client.Pages.Company.EmployeesBankInfo
|
||||
{
|
||||
|
||||
@@ -14,11 +14,11 @@ using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using System.Globalization;
|
||||
using System.Security.Claims;
|
||||
using System.Xml.Linq;
|
||||
using _0_Framework.Excel.RollCall;
|
||||
using _0_Framework.Infrastructure;
|
||||
using Microsoft.AspNetCore.Http.HttpResults;
|
||||
using static System.Runtime.InteropServices.JavaScript.JSType;
|
||||
using Company.Domain.empolyerAgg;
|
||||
using CompanyManagement.Infrastructure.Excel.RollCall;
|
||||
|
||||
|
||||
namespace ServiceHost.Areas.Client.Pages.Company.RollCall
|
||||
|
||||
@@ -138,12 +138,12 @@ async function loadWorkshopsWithDocumentsAwaitingUpload() {
|
||||
<div class="col-8 col-md-8 text-center d-flex">
|
||||
<div class="row w-100">
|
||||
<div class="col-12 col-md-5 text-center">
|
||||
<div class="Rtable-cell column-heading text-start text-md-end justify-content-start justify-content-md-end my-0">
|
||||
<div class="Rtable-cell column-heading justify-content-start my-0">
|
||||
<span>${item.workshopName}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-11 col-md-5 text-start pe-0">
|
||||
<div class="Rtable-cell column-heading text-start text-md-center justify-content-start justify-content-md-center my-0 ">
|
||||
<div class="Rtable-cell column-heading justify-content-start my-0">
|
||||
<span>${item.employerName}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -74,7 +74,7 @@ $("#btnEditSaveEmployee").on('click', function () {
|
||||
}
|
||||
|
||||
if (fatherName === "") {
|
||||
validateField("#FatherName", "لطفا نام خانوادگی را مشخص کنید.");
|
||||
validateField("#FatherName", "لطفا نام پدر را مشخص کنید.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -86,8 +86,8 @@ $("#btnEditSaveEmployee").on('click', function () {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (militaryService === "") {
|
||||
validateField("#militaryStatus", "لطفا نام خانوادگی را مشخص کنید.");
|
||||
if (militaryService === "" && gender === "مرد") {
|
||||
validateField("#militaryStatus", "لطفا وضعیت نظام وظیفه را مشخص کنید.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -113,6 +113,8 @@ $("#btnEditSaveEmployee").on('click', function () {
|
||||
$('.alert-success-msg').hide();
|
||||
$('.alert-success-msg p').text('');
|
||||
}, 2000);
|
||||
|
||||
$(`.btnSendToChecker[data-index="${getIndexForEmployeeEdit}"]`).removeClass("disable");
|
||||
|
||||
loading.hide();
|
||||
$('#customModal').removeClass('show');
|
||||
|
||||
@@ -16,6 +16,7 @@ var confirmIcon = `<svg width="24" height="24" viewBox="0 0 14 14" fill="none" x
|
||||
var rejectMessage = `<div class="rejectMessage">رد شده</div>`;
|
||||
var rejectIcon = `<svg width="24" height="24" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="7" cy="7" r="5.25" fill="#FF5D5D"/><path d="M9.33341 4.66602L4.66675 9.33268" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/><path d="M4.66659 4.66602L9.33325 9.33268" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
|
||||
|
||||
var getIndexForEmployeeEdit;
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
@@ -68,7 +69,6 @@ $(document).ready(function () {
|
||||
$(this).find(".resultMessage").html(rejectMessage);
|
||||
|
||||
$(this).find(".btnEditEmployee").removeClass("disable");
|
||||
$(this).find(".btnSendToChecker").removeClass("disable");
|
||||
}
|
||||
});
|
||||
|
||||
@@ -158,7 +158,6 @@ $(document).ready(function () {
|
||||
const pdBox = $(this).closest('.pdBox');
|
||||
const img = pdBox.find('.preview-image');
|
||||
var deleteButton = pdBox.find('.btnDeletingPD');
|
||||
deleteButton.removeClass('disable');
|
||||
|
||||
if (fileInputFile) {
|
||||
const fileName = fileInputFile.name.toLowerCase();
|
||||
@@ -255,6 +254,12 @@ $(document).ready(function () {
|
||||
}
|
||||
else {
|
||||
showAlertMessage('.alert-msg', 'فرمت فایل باید یکی از موارد jpeg, jpg, png یا pdf باشد.', 3500);
|
||||
return;
|
||||
}
|
||||
|
||||
deleteButton.removeClass('disable');
|
||||
if (pdBox.find('button.Rejected').length > 0) {
|
||||
pdBox.find(".btnSendToChecker").removeClass("disable");
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -379,6 +384,11 @@ $(document).ready(function () {
|
||||
});
|
||||
});
|
||||
|
||||
$(document).off('click', '.btnEditEmployee').on('click', '.btnEditEmployee', function (event) {
|
||||
getIndexForEmployeeEdit = $(this).data('index');
|
||||
LoadCustomPartial(loadModalEmployeeEdit + `&employeeId=${employeeId}&workshopId=${workshopId}`);
|
||||
});
|
||||
|
||||
$(".exitModal").click(function () {
|
||||
if (uploadFileCount > 0) {
|
||||
swal.fire({
|
||||
@@ -848,4 +858,4 @@ function canDeleteRecord() {
|
||||
let uploadedOrPending = statusCounter.confirmed + statusCounter.pending;
|
||||
|
||||
return uploadedOrPending < totalRequired;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,6 +105,7 @@ function enableEdit() {
|
||||
}
|
||||
|
||||
$("#save").on('click', function () {
|
||||
$('td').removeClass('border-red');
|
||||
$('#LastDayStandingInput').prop('disabled', true);
|
||||
$('#LeftWorkInput').prop('disabled', true);
|
||||
$('#save').addClass('disable');
|
||||
|
||||
@@ -43,7 +43,8 @@ function enableEdit() {
|
||||
$('#btnSaveData').addClass('disable');
|
||||
}
|
||||
|
||||
$("#save").on('click', function() {
|
||||
$("#save").on('click', function () {
|
||||
$('td').removeClass('border-red');
|
||||
$('#StartWorkInput').prop('disabled', true);
|
||||
$('#save').addClass('disable');
|
||||
$('#btnSaveData').removeClass('disable');
|
||||
|
||||
@@ -14,6 +14,41 @@
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
function ajaxBanks() {
|
||||
var selectBankId = $('#BankId').val();
|
||||
|
||||
$.ajax({
|
||||
url: bankListAjax,
|
||||
type: 'GET',
|
||||
success: function (response) {
|
||||
|
||||
if (response.success) {
|
||||
var banks = response.data;
|
||||
var bankOptionsHtml = '<option value="0">انتخاب بانک ...</option>';
|
||||
banks.forEach(function (bank) {
|
||||
bankOptionsHtml += `<option value="${bank.id}" ${selectBankId == bank.id ? 'selected' : ''}>${bank.bankName}</option>`;
|
||||
});
|
||||
$('#bankSelectIndex').html(bankOptionsHtml);
|
||||
$('#bankSelectIndexMobile').html(bankOptionsHtml);
|
||||
//$('#employeeSelectIndexMobile').html(employeeOptionsHtml);
|
||||
} else {
|
||||
$('.alert-msg').show();
|
||||
$('.alert-msg p').text(response.message);
|
||||
setTimeout(function () {
|
||||
$('.alert-msg').hide();
|
||||
$('.alert-msg p').text('');
|
||||
}, 3500);
|
||||
}
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
console.error(xhr.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
// *************************** عملیت مربوط اسکرول کردن مربوط به سال و ماه در دسکتاپ ********************************
|
||||
var Scrollbar = window.Scrollbar;
|
||||
Scrollbar.init(document.querySelector('#my-scrollbar'), {
|
||||
@@ -24,6 +59,7 @@ const selectedAll = document.querySelectorAll(".wrapper-dropdown");
|
||||
$(document).ready(function () {
|
||||
|
||||
ajaxPersonals();
|
||||
ajaxBanks();
|
||||
|
||||
|
||||
//$(".getPersonnel").select2({
|
||||
@@ -58,6 +94,24 @@ $(document).ready(function () {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$("#bankSelectIndex").select2({
|
||||
language: "fa",
|
||||
dir: "rtl"
|
||||
});
|
||||
|
||||
$("#bankSelectIndexMobile").select2({
|
||||
language: "fa",
|
||||
dir: "rtl",
|
||||
dropdownParent: $('#searchModal'),
|
||||
templateResult: function (data, container) {
|
||||
if (data.element) {
|
||||
$(container).addClass($(data.element).attr("class"));
|
||||
}
|
||||
return data.text;
|
||||
}
|
||||
});
|
||||
|
||||
$(".form-control-date").each(function () {
|
||||
let element = $(this);
|
||||
element.on('input', function () {
|
||||
@@ -77,7 +131,9 @@ $(document).ready(function () {
|
||||
var filterMonth = $('#Month').val();
|
||||
var filterStart = $('#SearchStartFa').val();
|
||||
var filterEnd = $('#SearchEndFa').val();
|
||||
if (filterEmployeeId !== "0" || filterYear !== "0" || filterMonth !== "0" || filterStart !== '' || filterEnd !== '') {
|
||||
var filterBank = $('#BankId').val();
|
||||
|
||||
if (filterEmployeeId !== "0" || filterYear !== "0" || filterMonth !== "0" || filterStart !== '' || filterEnd !== '' || filterBank !== "0") {
|
||||
$('.btn-clear-filter').removeClass('disable');
|
||||
} else {
|
||||
$('.btn-clear-filter').addClass('disable');
|
||||
@@ -221,7 +277,8 @@ $(".checkAll").change(function () {
|
||||
//******************** انتخاب همه ی چک باکس ها ********************
|
||||
|
||||
//******************** فیلتر کردن برای جستجو ********************
|
||||
$(document).on('click', '.btn-search-click ', function (event) {
|
||||
|
||||
$(document).on('click', '.btn-search-click, .btn-search-click-mobile', function (event) {
|
||||
event.preventDefault();
|
||||
|
||||
// جستجو سال و ماه
|
||||
@@ -1309,6 +1366,10 @@ function loadMore() {
|
||||
var end = $('#SearchEndFa').val();
|
||||
var sorting = $('#OrderBy').val();
|
||||
|
||||
var bankSelectIndex = $('#bankSelectIndex').val();
|
||||
var bankSelectIndexMobile = $('#bankSelectIndexMobile').val();
|
||||
var bankId = (bankSelectIndex === "0") ? bankSelectIndex : bankSelectIndexMobile;
|
||||
|
||||
if (b === 0 && pageIndex > 0) {
|
||||
|
||||
$.ajax({
|
||||
@@ -1324,7 +1385,8 @@ function loadMore() {
|
||||
Month: month,
|
||||
SearchStartFa: start,
|
||||
SearchEndFa: end,
|
||||
OrderBy: sorting
|
||||
OrderBy: sorting,
|
||||
BankId: bankId
|
||||
},
|
||||
headers: { "RequestVerificationToken": antiForgeryToken },
|
||||
|
||||
@@ -1361,10 +1423,6 @@ function loadMore() {
|
||||
<div class="Rtable-cell--heading">ماه</div>
|
||||
<div class="Rtable-cell--content">${item.month}</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-xxl-block d-none width5">
|
||||
<div class="Rtable-cell--heading">شماره قرارداد</div>
|
||||
<div class="Rtable-cell--content">${item.contractNo}</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-block d-none width6">
|
||||
<div class="Rtable-cell--heading">نام پرسنل</div>
|
||||
<div class="Rtable-cell--content ">${item.employeeFullName}</div>
|
||||
@@ -1389,6 +1447,10 @@ function loadMore() {
|
||||
<div class="Rtable-cell--heading">غیبت</div>
|
||||
<div class="Rtable-cell--content ${item.absenceDeduction === "0" ? "" : "textRed"}">${item.absenceDeduction}</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-flex d-none width9">
|
||||
<div class="Rtable-cell--heading">مساعده</div>
|
||||
<div class="Rtable-cell--content ${item.salaryAidDeduction === "0" ? "" : "textRed"}">${item.salaryAidDeduction}</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-flex d-none width9">
|
||||
<div class="${item.totalPaymentD < 0 ? "bgColorMonthlySalaryMinus" : "bgColorMonthlySalaryPlus"}">
|
||||
<div class="Rtable-cell--heading">مبلغ قابل پرداخت</div>
|
||||
@@ -1764,9 +1826,6 @@ function ajaxPersonals() {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$(document).on('click', '.RemoveBtn', function () {
|
||||
var id = $(this).data("delete-id");
|
||||
var button = this;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
let $checkAll = $("#checkAll2");
|
||||
let $checkboxes = $(".foo");
|
||||
|
||||
|
||||
|
||||
$checkAll.on("change", function () {
|
||||
$checkboxes.prop("checked", this.checked);
|
||||
});
|
||||
@@ -214,7 +216,9 @@ $(document).ready(function () {
|
||||
var filterMonth = $('#Month').val();
|
||||
var filterStart = $('#SearchStartFa').val();
|
||||
var filterEnd = $('#SearchEndFa').val();
|
||||
if (filterEmployeeId !== "0" || filterYear !== "0" || filterMonth !== "0" || filterStart !== '' || filterEnd !== '') {
|
||||
var filterBank = $('#BankId').val();
|
||||
|
||||
if (filterEmployeeId !== "0" || filterYear !== "0" || filterMonth !== "0" || filterStart !== '' || filterEnd !== '' || filterBank !== "0") {
|
||||
$('.btn-clear-filter').removeClass('disable');
|
||||
} else {
|
||||
$('.btn-clear-filter').addClass('disable');
|
||||
@@ -1185,12 +1189,42 @@ if ($(window).width() < 768) {
|
||||
}
|
||||
}
|
||||
|
||||
function ajaxBanks() {
|
||||
var selectBankId = $('#BankId').val();
|
||||
|
||||
$.ajax({
|
||||
url: bankListAjax,
|
||||
type: 'GET',
|
||||
success: function (response) {
|
||||
|
||||
if (response.success) {
|
||||
var banks = response.data;
|
||||
var bankOptionsHtml = '<option value="0">انتخاب بانک ...</option>';
|
||||
banks.forEach(function (bank) {
|
||||
bankOptionsHtml += `<option value="${bank.id}" ${selectBankId == bank.id ? 'selected' : ''}>${bank.bankName}</option>`;
|
||||
});
|
||||
$('#bankSelectIndex').html(bankOptionsHtml);
|
||||
$('#bankSelectIndexMobile').html(bankOptionsHtml);
|
||||
//$('#employeeSelectIndexMobile').html(employeeOptionsHtml);
|
||||
} else {
|
||||
$('.alert-msg').show();
|
||||
$('.alert-msg p').text(response.message);
|
||||
setTimeout(function () {
|
||||
$('.alert-msg').hide();
|
||||
$('.alert-msg p').text('');
|
||||
}, 3500);
|
||||
}
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
console.error(xhr.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
ajaxPersonals();
|
||||
ajaxBanks();
|
||||
|
||||
if ($(window).width() < 768) {
|
||||
$('#search-theme-form1').remove();
|
||||
@@ -1217,6 +1251,24 @@ $(document).ready(function () {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$("#bankSelectIndex").select2({
|
||||
language: "fa",
|
||||
dir: "rtl"
|
||||
});
|
||||
|
||||
$("#bankSelectIndexMobile").select2({
|
||||
language: "fa",
|
||||
dir: "rtl",
|
||||
dropdownParent: $('#searchModal'),
|
||||
templateResult: function (data, container) {
|
||||
if (data.element) {
|
||||
$(container).addClass($(data.element).attr("class"));
|
||||
}
|
||||
return data.text;
|
||||
}
|
||||
});
|
||||
|
||||
$(".form-control-date").each(function () {
|
||||
let element = $(this);
|
||||
element.on('input', function () {
|
||||
@@ -1311,6 +1363,9 @@ function loadMore() {
|
||||
var end = $('#SearchEndFa').val();
|
||||
var sorting = $('#OrderBy').val();
|
||||
|
||||
var bankSelectIndex = $('#bankSelectIndex').val();
|
||||
var bankSelectIndexMobile = $('#bankSelectIndexMobile').val();
|
||||
var bankId = (bankSelectIndex === "0") ? bankSelectIndex : bankSelectIndexMobile;
|
||||
|
||||
if (b === 0 && pageIndex > 0) {
|
||||
|
||||
@@ -1327,7 +1382,8 @@ function loadMore() {
|
||||
Month: month,
|
||||
SearchStartFa: start,
|
||||
SearchEndFa: end,
|
||||
OrderBy: sorting
|
||||
OrderBy: sorting,
|
||||
BankId: bankId
|
||||
},
|
||||
headers: { "RequestVerificationToken": antiForgeryToken },
|
||||
success: function (response) {
|
||||
@@ -1362,10 +1418,6 @@ function loadMore() {
|
||||
<div class="Rtable-cell--heading">ماه</div>
|
||||
<div class="Rtable-cell--content">${item.month}</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-xxl-block d-none width5">
|
||||
<div class="Rtable-cell--heading">شماره قرارداد</div>
|
||||
<div class="Rtable-cell--content">${item.contractNo}</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-block d-none width6">
|
||||
<div class="Rtable-cell--heading">نام پرسنل</div>
|
||||
<div class="Rtable-cell--content ">${item.employeeFullName}</div>
|
||||
@@ -1390,6 +1442,10 @@ function loadMore() {
|
||||
<div class="Rtable-cell--heading">غیبت</div>
|
||||
<div class="Rtable-cell--content ${item.absenceDeduction === "0" ? "" : "textRed"}">${item.absenceDeduction}</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-flex d-none width9">
|
||||
<div class="Rtable-cell--heading">مساعده</div>
|
||||
<div class="Rtable-cell--content ${item.salaryAidDeduction === "0" ? "" : "textRed"}">${item.salaryAidDeduction}</div>
|
||||
</div>
|
||||
<div class="Rtable-cell d-md-flex d-none width9">
|
||||
<div class="${item.totalPaymentD < 0 ? "bgColorMonthlySalaryMinus" : "bgColorMonthlySalaryPlus" }">
|
||||
<div class="Rtable-cell--heading">مبلغ قابل پرداخت</div>
|
||||
|
||||
Reference in New Issue
Block a user