Add project files.

This commit is contained in:
samsys
2024-07-05 21:36:15 +03:30
parent 7d8d80b770
commit 75bc2360ea
6029 changed files with 1453374 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace backService
{
public class BackupViewModel
{
public string FullPath { get; set; }
public string FileName { get; set; }
public DateTime CreationDate { get; set; }
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CompanyManagment.App.Contracts.Contract;
namespace backService
{
public interface IWorkingTest
{
List<EditContract> Correct();
}
}

4795
backService/JobWorker.cs Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,67 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using _0_Framework.Application;
using CompanyManagment.App.Contracts.Contract;
using CompanyManagment.EFCore;
namespace backService
{
public class WorkingTest : IWorkingTest
{
private readonly CompanyContext _context;
public WorkingTest(CompanyContext context)
{
_context = context;
}
public List<EditContract> Correct()
{
var autoExNewTime = new DateTime(2023, 09, 01);
#region correctContractsAndChekouts
var a = new List<EditContract>();
var b = new EditContract()
{
ContractEnd = "14010101",
};
a.Add(b);
return a;
//var contracts = _context.Contracts.Where(x => x.WorkingHoursWeekly != "44" &&
// x.WorkingHoursWeekly != "48 - 24"
// && x.WorkingHoursWeekly != "36 - 12" &&
// x.WorkingHoursWeekly != "24 - 24" &&
// x.WorkingHoursWeekly != "24 - 12")
// .Where(x => x.CreationDate >= autoExNewTime && x.IsActiveString == "true").Select(x => new EditContract()
// {
// Id = x.id,
// EmployeeId = x.EmployeeId,
// WorkshopIds = x.WorkshopIds,
// DayliWage = x.DayliWage,
// ConsumableItems = x.ConsumableItems,
// FamilyAllowance = x.FamilyAllowance,
// HousingAllowance = x.HousingAllowance,
// AgreementSalary = x.AgreementSalary,
// WeeklyWorkingTime = x.WorkingHoursWeekly,
// ContractNo = x.ContractNo,
// ContarctStart = x.ContarctStart.ToFarsi(),
// ContractEnd = x.ContractEnd.ToFarsi(),
// GetWorkDate = x.GetWorkDate.ToFarsi(),
// GetWorkDateHide = x.GetWorkDate.ToFarsi()
// });
//return contracts.ToList();
#endregion
}
}
}

View File

@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Company.Domain\Company.Domain.csproj" />
<ProjectReference Include="..\CompanyManagment.App.Contracts\CompanyManagment.App.Contracts.csproj" />
<ProjectReference Include="..\CompanyManagment.Application\CompanyManagment.Application.csproj" />
<ProjectReference Include="..\CompanyManagment.EFCore\CompanyManagment.EFCore.csproj" />
<ProjectReference Include="..\PersonalContractingParty.Config\PersonalContractingParty.Config.csproj" />
</ItemGroup>
</Project>