Add project files.
This commit is contained in:
15
backService/BackupViewModel.cs
Normal file
15
backService/BackupViewModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
14
backService/IWorkingTest.cs
Normal file
14
backService/IWorkingTest.cs
Normal 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
4795
backService/JobWorker.cs
Normal file
File diff suppressed because it is too large
Load Diff
67
backService/WorkingTest.cs
Normal file
67
backService/WorkingTest.cs
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
15
backService/backService.csproj
Normal file
15
backService/backService.csproj
Normal 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>
|
||||
Reference in New Issue
Block a user