已删除1个文件
已重命名116个文件
已复制7个文件
已修改8个文件
已添加14个文件
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/RepairRequestForm_Controller.cs ÐÞ¸Ä |
| | |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"ID:{input.ID} 表åç¶æé误"); |
| | | } |
| | | var bol = _service.Accept(input.ID, input.Note, UserManager.UserID, DateTime.Now, UserManager.UserName); |
| | | var bol = _service.Accept(input.ID, input.Note); |
| | | return bol; |
| | | } |
| | | |
| | |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"ID:{input.ID} 表åç¶æé误"); |
| | | } |
| | | var bol = _service.Reject(input.ID, input.Reason, UserManager.UserID, DateTime.Now, UserManager.UserName); |
| | | var bol = _service.Reject(input.ID, input.Reason); |
| | | return bol; |
| | | } |
| | | |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/RepairTaskForm_Controller.cs ÐÞ¸Ä |
| | |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"ID:{input.ID} 表åç¶æå¼å¸¸"); |
| | | } |
| | | var bol = _service.Assign(input.ID, input.RepairUserID, input.RepairUserName, input.Note, UserManager.UserID, DateTime.Now, UserManager.UserName); |
| | | var bol = _service.Assign(input.ID, input.RepairUserID, input.RepairUserName, input.Note); |
| | | return bol; |
| | | } |
| | | |
| | |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"ID:{input.ID} 表åç¶æå¼å¸¸"); |
| | | } |
| | | var bol = _service.Receive(input.ID, input.Note, UserManager.UserID, DateTime.Now, UserManager.UserName); |
| | | var bol = _service.Receive(input.ID, input.Note); |
| | | return bol; |
| | | } |
| | | |
| | |
| | | fileList.Add(file); |
| | | } |
| | | } |
| | | var bol = _service.Start(input.ID, input.Note, fileList, UserManager.UserID, DateTime.Now, UserManager.UserName); |
| | | var bol = _service.Start(input.ID, input.Note, fileList); |
| | | return bol; |
| | | } |
| | | |
| | |
| | | fileList.Add(file); |
| | | } |
| | | } |
| | | var bol = _service.Pause(input.ID, input.Note, fileList, UserManager.UserID, DateTime.Now, UserManager.UserName); |
| | | var bol = _service.Pause(input.ID, input.Note, fileList); |
| | | return bol; |
| | | } |
| | | |
| | |
| | | fileList.Add(file); |
| | | } |
| | | } |
| | | var bol = _service.Restart(input.ID, input.Note, fileList, UserManager.UserID, DateTime.Now, UserManager.UserName); |
| | | var bol = _service.Restart(input.ID, input.Note, fileList); |
| | | return bol; |
| | | } |
| | | |
| | |
| | | fileList.Add(file); |
| | | } |
| | | } |
| | | var bol = _service.Finish(input.ID, input.Note, fileList, UserManager.UserID, DateTime.Now, UserManager.UserName); |
| | | var bol = _service.Finish(input.ID, input.Note, fileList); |
| | | return bol; |
| | | } |
| | | |
| | |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"ID:{input.ID} 表åç¶æå¼å¸¸"); |
| | | } |
| | | var bol = _service.Success(input.ID, input.Note, UserManager.UserID, DateTime.Now, UserManager.UserName); |
| | | var bol = _service.Success(input.ID, input.Note); |
| | | return bol; |
| | | } |
| | | |
| | |
| | | global using Yw.JWT; |
| | | global using Microsoft.AspNetCore.Http; |
| | | global using Yw.Model.Repair; |
| | | global using Yw.Dto; |
| | | global using Yw.Dto.Repair; |
| | |
| | | --> |
| | | <Project> |
| | | <PropertyGroup> |
| | | <History>True|2024-01-31T05:24:07.4728291Z;True|2024-01-22T11:23:19.7067580+08:00;True|2023-12-25T10:02:24.8948808+08:00;True|2023-12-11T09:27:38.5966472+08:00;True|2023-12-04T18:25:37.5121850+08:00;True|2023-12-04T18:25:32.0321208+08:00;True|2023-07-13T12:10:11.2591498+08:00;True|2023-05-25T18:02:16.3580168+08:00;True|2023-05-25T15:44:32.4909866+08:00;</History> |
| | | <History>True|2024-03-25T06:29:53.3457703Z;True|2024-01-31T13:24:07.4728291+08:00;True|2024-01-22T11:23:19.7067580+08:00;True|2023-12-25T10:02:24.8948808+08:00;True|2023-12-11T09:27:38.5966472+08:00;True|2023-12-04T18:25:37.5121850+08:00;True|2023-12-04T18:25:32.0321208+08:00;True|2023-07-13T12:10:11.2591498+08:00;True|2023-05-25T18:02:16.3580168+08:00;True|2023-05-25T15:44:32.4909866+08:00;</History> |
| | | </PropertyGroup> |
| | | </Project> |
| | |
| | | <RootNamespace>Yw.Application</RootNamespace> |
| | | <GenerateDocumentationFile>True</GenerateDocumentationFile> |
| | | <GeneratePackageOnBuild>True</GeneratePackageOnBuild> |
| | | <Version>1.0.4</Version> |
| | | <Version>3.0.0</Version> |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="Yw.Application.Core" Version="1.4.0" /> |
| | | <PackageReference Include="Yw.Service.Assets.Core" Version="1.3.1" /> |
| | | <PackageReference Include="Yw.Service.Repair.Core" Version="1.0.2" /> |
| | | <PackageReference Include="Yw.Application.Core" Version="3.0.1" /> |
| | | <PackageReference Include="Yw.Dto.Repair.Core" Version="3.0.0" /> |
| | | </ItemGroup> |
| | | |
| | | </Project> |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/1-insert/AddRepairRequestFormInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | |
| | | /// å®ä½ |
| | | /// </summary> |
| | | public Model.Repair.Location Location { get; set; } |
| | | |
| | | |
| | | |
| | | |
| | | |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/1-insert/UploadRepairRequestFileInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/2-accept/MyRepairRequestFormAcceptedDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// æçå·²åçæ¥ä¿®ådto |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/2-accept/MyRepairRequestTaskFormAcceptedDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// æçå·²åçæ¥ä¿®ç»´ä¿®ådto |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/2-accept/MyRepairRequestTaskLogAcceptedDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// æçæ¥ä¿®ä¸ç»´ä¿®æ¥å¿è¯¦ç»ææºDTO |
| | | /// æçæ¥ä¿®ä¸ç»´ä¿®æ¥å¿è¯¦ç»ææºDTO |
| | | /// </summary> |
| | | public class MyRepairRequestTaskLogAcceptedDto |
| | | { |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/2-accept/MyRepairRequestTaskLogFileAcceptedDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// æçå·²åçæ¥ä¿®ç»´ä¿®æ¥å¿dto |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/2-accept/QueryMyRepairRequestFormAcceptedPageListInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// è·åæçå·²åçæ¥ä¿®åå页å表 |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/2-accept/RepairRequestAcceptInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// <summary> |
| | | /// æ¥ä¿®ååç |
| | | /// </summary> |
| | | public class RepairRequestAcceptInput |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/3-pending/MyRepairRequestFormPendingDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// æçå¾
åçæ¥ä¿®ådto |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/3-pending/QueryMyRepairRequestFormPendingPageListInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// è·åæçå¾
åçæ¥ä¿®åå页å表 |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/3-pending/QueryRepairRequestFormPendingPageListInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// è·åå¾
åçæ¥ä¿®ååæå表 |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/4-reject/MyRepairRequestFormRejectedMobileDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// æçè¢«é©³åæ¥ä¿®ådto |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/4-reject/QueryMyRepairRequestFormRejectedPageListInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// è·åæçè¢«é©³åæ¥ä¿®åå页å表 |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/4-reject/RepairRequestRejectInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// 驳å |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/5-just_accepted/QueryRepairRequestFormJustAcceptedPageListInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// è·åå¾
åçæ¥ä¿®ååæå表 |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/5-just_accepted/RepairRequestFormJustAcceptedDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// å¾
æ´¾åçæ¥ä¿®å |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/2-std/dto/1-detail/RepairRequestFileDetailDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/2-std/dto/1-detail/RepairRequestFormDetailDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/2-std/dto/1-detail/RepairRequestLogDetailDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/2-std/dto/1-detail/RepairRequestTaskFormDetailDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// ç»´ä¿®å详ç»ä¿¡æ¯ |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/2-std/dto/1-detail/RepairRequestTaskLogDetailDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// ç»´ä¿®åæ¥å¿è¯¦ç» |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/2-std/dto/1-detail/RepairRequestTaskLogFileDetailDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/2-std/dto/2-pending-detail/RepairRequestFormPendingDetailDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/2-std/dto/3-reject-detail/RepairRequestFormRejectedDetailDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/2-std/dto/4-accepted-detail/RepairRequestFormAcceptedDetailDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// å·²åçæ¥ä¿®å详ç»dto |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/6-page/MyRepairRequestFormDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/6-page/QueryMyRepairRequestFormPageListInput.cs ÐÞ¸Ä |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel.DataAnnotations; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// è·åæçæ¥ä¿®ååæå表 |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/6-page/QueryRepairRequestFormPageListInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// è·åæ¥ä¿®åå页å表 |
ÎļþÃû´Ó Yw.Application.Repair.Core/1-request-form/1-mgr/dto/6-page/RepairRequestFormDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/0-upload/UploadRepairTaskFormFileMobileInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// ä¸ä¼ ç»´ä¿®åæä»¶ |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/1-assign/RepairTaskAssignInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// æ´¾å |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/1-assign/my/MyRepairTaskFormAssignedDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// æç已派åçç»´ä¿®ådto |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/1-assign/my/QueryMyRepairTaskFormAssignedPageListInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// è·åæç已派åçç»´ä¿®åå页å表è¾å
¥ |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/2-receive/RepairTaskReceiveInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// æ¥å |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/3-start/RepairTaskStartInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// ç»´ä¿®åå¼å·¥ |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/4-pause/RepairTaskPauseInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// ç»´ä¿®åæå |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/5-restart/RepairTaskRestartInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// ç»´ä¿®åéæ°å¼å·¥ |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/6-finish/RepairTaskFinishInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// ç»´ä¿®åå®å·¥ |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/6-finish/my/MyRepairTaskFormHasFinishedMobileDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// æç已宿çç»´ä¿®ådto |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/6-finish/my/QueryMyRepairTaskFormHasFinishedPageListInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// è·åæç已宿çç»´ä¿®åå页å表è¾å
¥ |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/6-finish/page/QueryRepairTaskFormFinishedPageListInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// è·åç»´ä¿®åå®å·¥å页å表 |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/6-finish/page/RepairTaskFormFinishedDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/7-success/RepairTaskSuccessInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// éªæ¶éè¿ |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/8-progress/my/MyRepairTaskFormProgressMobileDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// æçè¿è¡ä¸çç»´ä¿®ådto |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/8-progress/my/QueryMyRepairTaskFormProgressPageListInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// è·åæçè¿è¡ä¸çç»´ä¿®åå页å表è¾å
¥ |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/8-progress/page/QueryRepairTaskFormProgressPageListInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// è·åç»´ä¿®åè¿åº¦å页å表 |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/8-progress/page/RepairTaskFormProgressDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/9-request/RepairTaskLogDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// ç»´ä¿®åæ¥å¿ |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/1-mgr/dto/9-request/RepairTaskRequestFormDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/2-std/dto/1-detail/RepairTaskFormDetailDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// ç»´ä¿®å详ç»ä¿¡æ¯ |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/2-std/dto/1-detail/RepairTaskLogDetailDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// ç»´ä¿®åæ¥å¿è¯¦ç» |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/2-std/dto/1-detail/RepairTaskLogFileDetailDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/2-std/dto/1-detail/RepairTaskRequestFileDetailDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/2-std/dto/1-detail/RepairTaskRequestFormDetailDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/2-std/dto/1-detail/RepairTaskRequestLogDetailDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/2-std/dto/2-assigned-detail/MyRepairTaskFormAssignedDetailMobileDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/2-std/dto/3-progress-detail/RepairTaskFormProgressDetailDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/2-task-form/2-std/dto/4-has-finished-detail/MyRepairTaskFormHasFinishedDetailMobileDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/3-repair-form/dto/RepairFormKindMapDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Repair.Core/0-core/3-dto/kind/KindInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application.Repair |
| | | namespace Yw.Dto.Repair |
| | | { |
| | | /// <summary> |
| | | /// |
¶Ô±ÈÐÂÎļþ |
| | |
| | | global using System.ComponentModel.DataAnnotations; |
| | | global using System.Text; |
| | | global using Yw.Untity; |
| | | global using Yw.Repair; |
| | | global using Yw.Dto.Repair; |
| | | global using Yw.Model.Repair; |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <!-- |
| | | https://go.microsoft.com/fwlink/?LinkID=208121. |
| | | --> |
| | | <Project> |
| | | <PropertyGroup> |
| | | <Configuration>Release</Configuration> |
| | | <Platform>Any CPU</Platform> |
| | | <PublishDir>bin\Release\net6.0\publish\</PublishDir> |
| | | <PublishProtocol>FileSystem</PublishProtocol> |
| | | </PropertyGroup> |
| | | </Project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <!-- |
| | | https://go.microsoft.com/fwlink/?LinkID=208121. |
| | | --> |
| | | <Project> |
| | | <PropertyGroup> |
| | | <History>True|2024-03-25T05:38:09.3123355Z;</History> |
| | | </PropertyGroup> |
| | | </Project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <Project Sdk="Microsoft.NET.Sdk"> |
| | | |
| | | <PropertyGroup> |
| | | <TargetFramework>net6.0</TargetFramework> |
| | | <ImplicitUsings>enable</ImplicitUsings> |
| | | <Nullable>disable</Nullable> |
| | | <Version>3.0.0</Version> |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="Yw.Dto.Assets.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.Service.Repair.Core" Version="3.0.0" /> |
| | | </ItemGroup> |
| | | |
| | | </Project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup> |
| | | <_LastSelectedProfileId>D:\WorkData\模å\Code\Repair\Yw.Dto.Repair.Core\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId> |
| | | </PropertyGroup> |
| | | </Project> |
| | |
| | | EndProject |
| | | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yw.Entry.Repair.Core", "Yw.Entry.Repair.Core\Yw.Entry.Repair.Core.csproj", "{FFC7B687-77C2-4454-BA7F-87A2B17A889B}" |
| | | EndProject |
| | | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Yw.Dto.Repair.Core", "Yw.Dto.Repair.Core\Yw.Dto.Repair.Core.csproj", "{8F2A1341-0BA0-4C9F-A10F-C987CFD6E787}" |
| | | EndProject |
| | | Global |
| | | GlobalSection(SolutionConfigurationPlatforms) = preSolution |
| | | Debug|Any CPU = Debug|Any CPU |
| | |
| | | {FFC7B687-77C2-4454-BA7F-87A2B17A889B}.Debug|Any CPU.Build.0 = Debug|Any CPU |
| | | {FFC7B687-77C2-4454-BA7F-87A2B17A889B}.Release|Any CPU.ActiveCfg = Release|Any CPU |
| | | {FFC7B687-77C2-4454-BA7F-87A2B17A889B}.Release|Any CPU.Build.0 = Release|Any CPU |
| | | {8F2A1341-0BA0-4C9F-A10F-C987CFD6E787}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
| | | {8F2A1341-0BA0-4C9F-A10F-C987CFD6E787}.Debug|Any CPU.Build.0 = Debug|Any CPU |
| | | {8F2A1341-0BA0-4C9F-A10F-C987CFD6E787}.Release|Any CPU.ActiveCfg = Release|Any CPU |
| | | {8F2A1341-0BA0-4C9F-A10F-C987CFD6E787}.Release|Any CPU.Build.0 = Release|Any CPU |
| | | EndGlobalSection |
| | | GlobalSection(SolutionProperties) = preSolution |
| | | HideSolutionNode = FALSE |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Repair |
| | | { |
| | | internal class ConfigHelper |
| | | { |
| | | |
| | | /// <summary> |
| | | /// é»è®¤è¿æ¥é
ç½® |
| | | /// </summary> |
| | | internal static ConnectionConfig DefaultConnectionConfig |
| | | { |
| | | get |
| | | { |
| | | //SnowFlakeSingle.WorkId = Settings.SqlSugar.SnowFlakeWorkId; ä¸åæºå¨é
ç½®çå¯ä¸æ°å; // åæå¡å¨ä¸éè¦æå® |
| | | return new ConnectionConfig() |
| | | { |
| | | DbType = SqlSugar.DbType.PostgreSQL,//æ°æ®åºç±»å |
| | | ConnectionString = RepairParasHelper.Repair.DataBase.PostgreSql.ConnectString, |
| | | IsAutoCloseConnection = true,//æ¯å¦èªå¨å
³é |
| | | MoreSettings = new ConnMoreSettings() |
| | | { |
| | | //PgSqlIsAutoToLower = false //æ°æ®åºåå¨å¤§ååæ®µç ï¼éè¦æè¿ä¸ªè®¾ä¸ºfalse ï¼å¹¶ä¸å®ä½ååæ®µåç§°è¦ä¸æ · |
| | | }, |
| | | AopEvents = new AopEvents |
| | | { |
| | | OnLogExecuting = (sql, p) => |
| | | { |
| | | // var sqlString = UtilMethods.GetNativeSql(sql, p); |
| | | //LogHelper.Debug(sqlString); |
| | | // Console.WriteLine(sql); |
| | | } |
| | | } |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// PostgreSqlè¿æ¥é
ç½® |
| | | /// </summary> |
| | | internal static ConnectionConfig PostgreSqlConnectionConfig |
| | | { |
| | | get |
| | | { |
| | | //SnowFlakeSingle.WorkId = Settings.SqlSugar.SnowFlakeWorkId; ä¸åæºå¨é
ç½®çå¯ä¸æ°å; // åæå¡å¨ä¸éè¦æå® |
| | | return new ConnectionConfig() |
| | | { |
| | | DbType = SqlSugar.DbType.PostgreSQL,//æ°æ®åºç±»å |
| | | ConnectionString = RepairParasHelper.Repair.DataBase.PostgreSql.ConnectString, |
| | | IsAutoCloseConnection = true,//æ¯å¦èªå¨å
³é |
| | | MoreSettings = new ConnMoreSettings() |
| | | { |
| | | //PgSqlIsAutoToLower = false //æ°æ®åºåå¨å¤§ååæ®µç ï¼éè¦æè¿ä¸ªè®¾ä¸ºfalse ï¼å¹¶ä¸å®ä½ååæ®µåç§°è¦ä¸æ · |
| | | }, |
| | | AopEvents = new AopEvents |
| | | { |
| | | OnLogExecuting = (sql, p) => |
| | | { |
| | | // var sqlString = UtilMethods.GetNativeSql(sql, p); |
| | | //LogHelper.Debug(sqlString); |
| | | // Console.WriteLine(sql); |
| | | } |
| | | } |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// SQLiteè¿æ¥é
ç½® |
| | | /// </summary> |
| | | internal static ConnectionConfig SQLiteConnectionConfig |
| | | { |
| | | get |
| | | { |
| | | //SnowFlakeSingle.WorkId = Settings.SqlSugar.SnowFlakeWorkId; ä¸åæºå¨é
ç½®çå¯ä¸æ°å; // åæå¡å¨ä¸éè¦æå® |
| | | return new ConnectionConfig() |
| | | { |
| | | DbType = SqlSugar.DbType.Sqlite,//æ°æ®åºç±»å |
| | | ConnectionString = RepairParasHelper.Repair.DataBase.SQLite.ConnectString, |
| | | IsAutoCloseConnection = true,//æ¯å¦èªå¨å
³é |
| | | MoreSettings = new ConnMoreSettings() |
| | | { |
| | | //PgSqlIsAutoToLower = false //æ°æ®åºåå¨å¤§ååæ®µç ï¼éè¦æè¿ä¸ªè®¾ä¸ºfalse ï¼å¹¶ä¸å®ä½ååæ®µåç§°è¦ä¸æ · |
| | | }, |
| | | AopEvents = new AopEvents |
| | | { |
| | | OnLogExecuting = (sql, p) => |
| | | { |
| | | // var sqlString = UtilMethods.GetNativeSql(sql, p); |
| | | //LogHelper.Debug(sqlString); |
| | | // Console.WriteLine(sql); |
| | | } |
| | | } |
| | | }; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
ÎļþÃû´Ó Yw.Service.Repair.Core/1-entity/1-request/RepairRequestFile.cs ÐÞ¸Ä |
| | |
| | | /// æ¥ä¿®æä»¶ |
| | | /// </summary> |
| | | [SugarTable("repair_request_file")] |
| | | public class RepairRequestFile : BaseEntity, System.ICloneable, ISorter |
| | | public class RepairRequestFile : BaseEntity, ISorter, System.ICloneable |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Service.Repair.Core/1-entity/2-task/RepairTaskLogFile.cs ÐÞ¸Ä |
| | |
| | | /// ç»´ä¿®æ¥å¿æä»¶ |
| | | /// </summary> |
| | | [SugarTable("repair_task_log_file")] |
| | | public class RepairTaskLogFile : BaseEntity, System.ICloneable |
| | | public class RepairTaskLogFile : BaseEntity, ISorter, System.ICloneable |
| | | { |
| | | /// <summary> |
| | | /// |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Settings |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Repair_DataBase |
| | | { |
| | | /// <summary> |
| | | /// æ°æ®åºç±»å |
| | | /// </summary> |
| | | public string DbType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// PostgreSql |
| | | /// </summary> |
| | | public Paras_Repair_DataBase_PostgreSql PostgreSql { get; set; } |
| | | |
| | | /// <summary> |
| | | /// SQLite |
| | | /// </summary> |
| | | public Paras_Repair_DataBase_SQLite SQLite { get; set; } |
| | | |
| | | |
| | | } |
| | | |
| | | } |
copy from Yw.Service.Repair.Core/3-settings/paras/Paras_Repair_DataBase.cs
copy to Yw.Service.Repair.Core/03-settings/paras/Paras_Repair_DataBase_PostgreSql.cs
Îļþ´Ó Yw.Service.Repair.Core/3-settings/paras/Paras_Repair_DataBase.cs ¸´ÖÆ |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Repair_DataBase |
| | | public class Paras_Repair_DataBase_PostgreSql |
| | | { |
| | | /// <summary> |
| | | /// è¿æ¥å符串 |
| | | /// </summary> |
| | | public string ConnectString { get; set; } |
| | | |
| | | |
| | | } |
| | | |
| | | } |
ÎļþÃû´Ó Yw.Service.Repair.Core/3-settings/paras/Paras_Repair_DataBase.cs ÐÞ¸Ä |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Repair_DataBase |
| | | public class Paras_Repair_DataBase_SQLite |
| | | { |
| | | /// <summary> |
| | | /// è¿æ¥å符串 |
| | | /// </summary> |
| | | public string ConnectString { get; set; } |
| | | |
| | | |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.DAL |
| | | { |
| | | /// <summary> |
| | | /// RepairRequestFile |
| | | /// </summary> |
| | | public interface IRepairRequestFile : IBaseDAL<Entity.RepairRequestFile>, IUpdateSorter |
| | | { |
| | | |
| | | /// <summary> |
| | | /// éè¿ FormID è·å |
| | | /// </summary> |
| | | List<Entity.RepairRequestFile> GetByFormID(long FormID); |
| | | |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.DAL |
| | | { |
| | | /// <summary> |
| | | /// RepairRequestForm |
| | | /// </summary> |
| | | public interface IRepairRequestForm : IBaseTraceDAL<Entity.RepairRequestForm> |
| | | { |
| | | |
| | | /// <summary> |
| | | /// è·åæè¿å表 |
| | | /// </summary> |
| | | List<Entity.RepairRequestForm> GetLastList(int Number = 1); |
| | | |
| | | /// <summary> |
| | | /// è·åææå¾
åççæ°æ® |
| | | /// </summary> |
| | | List<Entity.RepairRequestForm> GetPendingList(); |
| | | |
| | | /// <summary> |
| | | /// è·åå¾
åççæ°é |
| | | /// </summary> |
| | | int GetPendingCount(); |
| | | |
| | | /// <summary> |
| | | /// éè¿ FormStatus è·å |
| | | /// </summary> |
| | | List<Entity.RepairRequestForm> GetByFormStatus(int FormStatus); |
| | | |
| | | /// <summary> |
| | | /// éè¿ FormStatus è·åæ°é |
| | | /// </summary> |
| | | int GetCountByFormStatus(int FormStatus); |
| | | |
| | | /// <summary> |
| | | /// éè¿ EquipmentID è·å |
| | | /// </summary> |
| | | List<Entity.RepairRequestForm> GetByEquipmentID(long EquipmentID); |
| | | |
| | | /// <summary> |
| | | /// éè¿ EquipmentIds è·å |
| | | /// </summary> |
| | | List<Entity.RepairRequestForm> GetByEquipmentIds(List<long> EquipmentIds); |
| | | |
| | | /// <summary> |
| | | /// è·åææ¥çæ°é |
| | | /// </summary> |
| | | int GetCountOfDay(DateTime Day); |
| | | |
| | | /// <summary> |
| | | /// æ´æ° FormStatus |
| | | /// </summary> |
| | | bool UpdateFormStatus(long ID, int FormStatus); |
| | | |
| | | /// <summary> |
| | | /// æå
¥ |
| | | /// </summary> |
| | | long Insert(Entity.RepairRequestForm entity, List<Entity.RepairRequestFile> entity4FileList) |
| | | { |
| | | if (string.IsNullOrEmpty(entity.FormNo)) |
| | | { |
| | | var count = GetCountOfDay(entity.CreateTime) + 1; |
| | | entity.FormNo = $"R{entity.CreateTime.ToString("yyyyMMdd")}{count.ToString("000000")}"; |
| | | } |
| | | using (var db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | db.BeginTran(); |
| | | var formId = db.Insertable(entity).ExecuteReturnSnowflakeId(); |
| | | if (formId < 1) |
| | | { |
| | | db.RollbackTran(); |
| | | return default; |
| | | } |
| | | var entity4Log = new Entity.RepairRequestLog(); |
| | | entity4Log.FormID = formId; |
| | | entity4Log.OperateType = (int)eRequestOperation.Create; |
| | | entity4Log.OperateContent = "å建"; |
| | | entity4Log.OperateTime = entity.CreateTime; |
| | | entity4Log.OperateUserID = entity.CreateUserID; |
| | | entity4Log.OperateUserName = entity.CreateUserName; |
| | | entity4Log.OperateNote = "å建"; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
| | | { |
| | | db.RollbackTran(); |
| | | return default; |
| | | } |
| | | if (entity4FileList != null && entity4FileList.Count > 0) |
| | | { |
| | | entity4FileList.ForEach(x => x.FormID = formId); |
| | | var fileIds = db.Insertable(entity4FileList).ExecuteReturnSnowflakeIdList(); |
| | | if (fileIds == null || fileIds.Count != entity4FileList.Count) |
| | | { |
| | | db.RollbackTran(); |
| | | return default; |
| | | } |
| | | } |
| | | |
| | | db.CommitTran(); |
| | | return formId; |
| | | } |
| | | catch |
| | | { |
| | | db.RollbackTran(); |
| | | throw; |
| | | } |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 驳å |
| | | /// </summary> |
| | | bool Reject(long ID, string Reason); |
| | | |
| | | /// <summary> |
| | | /// åç |
| | | /// </summary> |
| | | bool Accept(long ID, string Note); |
| | | |
| | | /// <summary> |
| | | /// è·åæç模ç³å页å表 |
| | | /// </summary> |
| | | List<Entity.RepairRequestForm> GetMyFluzzyPageList |
| | | ( |
| | | long CreateUserID, |
| | | int? FormStatus, |
| | | int? Urgency, |
| | | DateTime? StartTime, |
| | | DateTime? EndTime, |
| | | int PageIndex, |
| | | int PageSize, |
| | | ref int Total |
| | | ); |
| | | |
| | | /// <summary> |
| | | /// è·å模ç³å页å表 |
| | | /// </summary> |
| | | List<Entity.RepairRequestForm> GetFluzzyPageList |
| | | ( |
| | | List<long> EquipmentIds, |
| | | long? CreateUserID, |
| | | int? FormStatus, |
| | | int? Urgency, |
| | | string FormNo, |
| | | DateTime? StartTime, |
| | | DateTime? EndTime, |
| | | int PageIndex, |
| | | int PageSize, |
| | | ref int Total |
| | | ); |
| | | |
| | | /// <summary> |
| | | /// è·åå¾
æ´¾åå页å表 |
| | | /// </summary> |
| | | List<Tuple<Entity.RepairRequestForm, Entity.RepairTaskForm>> GetJustAccepedPageList |
| | | ( |
| | | List<long> EquipmentIds, |
| | | long? CreateUserID, |
| | | int? Urgency, |
| | | string FormNo, |
| | | DateTime? StartTime, |
| | | DateTime? EndTime, |
| | | int PageIndex, |
| | | int PageSize, |
| | | ref int Total |
| | | ); |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.DAL |
| | | { |
| | | /// <summary> |
| | | /// RepairRequestLog |
| | | /// </summary> |
| | | public interface IRepairRequestLog : IBaseDAL<Entity.RepairRequestLog> |
| | | { |
| | | |
| | | /// <summary> |
| | | /// éè¿ FormID è·å |
| | | /// </summary> |
| | | List<Entity.RepairRequestLog> GetByFormID(long FormID); |
| | | |
| | | /// <summary> |
| | | /// éè¿ FormID å OperateType è·å |
| | | /// </summary> |
| | | Entity.RepairRequestLog GetByFormIDAndOperateType(long FormID, int OperateType); |
| | | |
| | | /// <summary> |
| | | /// éè¿ FormIds å OperateType è·å |
| | | /// </summary> |
| | | List<Entity.RepairRequestLog> GetByFormIdsAndOperateType(List<long> FormIds, int OperateType); |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.DAL |
| | | { |
| | | /// <summary> |
| | | /// RepairTaskForm |
| | | /// </summary> |
| | | public interface IRepairTaskForm : IBaseTraceDAL<Entity.RepairTaskForm> |
| | | { |
| | | |
| | | /// <summary> |
| | | /// éè¿ RequestID è·å |
| | | /// </summary> |
| | | List<Entity.RepairTaskForm> GetByRequestID(long RequestID); |
| | | |
| | | /// <summary> |
| | | /// éè¿ RequestIds è·å |
| | | /// </summary> |
| | | List<Entity.RepairTaskForm> GetByRequestIds(List<long> RequestIds); |
| | | |
| | | /// <summary> |
| | | /// è·åæ°é |
| | | /// </summary> |
| | | int GetCount(); |
| | | |
| | | /// <summary> |
| | | /// è·åæææªéªæ¶çæ°æ® |
| | | /// </summary> |
| | | List<Entity.RepairTaskForm> GetUnCheckedList(); |
| | | |
| | | /// <summary> |
| | | /// è·åææ¥çæ°é |
| | | /// </summary> |
| | | int GetCountOfDay(DateTime Day); |
| | | |
| | | /// <summary> |
| | | /// æ´æ° FormStatus |
| | | /// </summary> |
| | | bool UpdateFormStatus(long ID, int FormStatus); |
| | | |
| | | /// <summary> |
| | | /// æ´¾å |
| | | /// </summary> |
| | | bool Assign(long ID, long RepairUserID, string RepairUserName, string Note); |
| | | |
| | | /// <summary> |
| | | /// æ¥å |
| | | /// </summary> |
| | | bool Receive(long ID, string Note); |
| | | |
| | | /// <summary> |
| | | /// å¼å·¥ |
| | | /// </summary> |
| | | bool Start(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList); |
| | | |
| | | /// <summary> |
| | | /// æå |
| | | /// </summary> |
| | | bool Pause(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList); |
| | | |
| | | /// <summary> |
| | | /// éæ°å¼å·¥ |
| | | /// </summary> |
| | | bool Restart(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList); |
| | | |
| | | /// <summary> |
| | | /// å®å·¥ |
| | | /// </summary> |
| | | bool Finish(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList); |
| | | |
| | | /// <summary> |
| | | /// éªæ¶éè¿ |
| | | /// </summary> |
| | | bool Success(long ID, string Note); |
| | | |
| | | /// <summary> |
| | | /// è·å模ç³å表 |
| | | /// </summary> |
| | | List<Tuple<Entity.RepairTaskForm, Entity.RepairRequestForm>> GetFluzzyList |
| | | ( |
| | | List<long> EquipmentIds, |
| | | long? RepairUserID, |
| | | int? FormStatus, |
| | | int? Urgency, |
| | | string FormNo, |
| | | DateTime? StartTime, |
| | | DateTime? EndTime |
| | | ); |
| | | |
| | | /// <summary> |
| | | /// è·åå页å表 |
| | | /// </summary> |
| | | List<Tuple<Entity.RepairTaskForm, Entity.RepairRequestForm>> GetPageList |
| | | ( |
| | | List<long> EquipmentIds, |
| | | long? RepairUserID, |
| | | int? FormStatus, |
| | | int? Urgency, |
| | | string FormNo, |
| | | DateTime? StartTime, |
| | | DateTime? EndTime, |
| | | int PageIndex, |
| | | int PageSize, |
| | | ref int Total |
| | | ); |
| | | |
| | | /// <summary> |
| | | /// è·åè¿è¡ä¸çå页å表 |
| | | /// </summary> |
| | | List<Tuple<Entity.RepairTaskForm, Entity.RepairRequestForm>> GetProgressPageList |
| | | ( |
| | | List<long> EquipmentIds, |
| | | long? RepairUserID, |
| | | int? Urgency, |
| | | string FormNo, |
| | | DateTime? StartTime, |
| | | DateTime? EndTime, |
| | | int PageIndex, |
| | | int PageSize, |
| | | ref int Total |
| | | ); |
| | | |
| | | /// <summary> |
| | | /// è·å已宿çå页å表 |
| | | /// </summary> |
| | | List<Tuple<Entity.RepairTaskForm, Entity.RepairRequestForm>> GetHasFinishedPageList |
| | | ( |
| | | List<long> EquipmentIds, |
| | | long? RepairUserID, |
| | | int? Urgency, |
| | | string FormNo, |
| | | DateTime? StartTime, |
| | | DateTime? EndTime, |
| | | int PageIndex, |
| | | int PageSize, |
| | | ref int Total |
| | | ); |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.DAL |
| | | { |
| | | /// <summary> |
| | | /// RepairTaskLog |
| | | /// </summary> |
| | | public interface IRepairTaskLog : IBaseDAL<Entity.RepairTaskLog> |
| | | { |
| | | |
| | | /// <summary> |
| | | /// éè¿ FormID è·å |
| | | /// </summary> |
| | | List<Entity.RepairTaskLog> GetByFormID(long FormID); |
| | | |
| | | /// <summary> |
| | | /// éè¿ FormID è·åæå䏿¡ |
| | | /// </summary> |
| | | Entity.RepairTaskLog GetLastByFormID(long FormID); |
| | | |
| | | /// <summary> |
| | | /// éè¿ FormIds è·å |
| | | /// </summary> |
| | | List<Entity.RepairTaskLog> GetByFormIds(List<long> FormIds); |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.DAL |
| | | { |
| | | /// <summary> |
| | | /// RepairTaskLogFile |
| | | /// </summary> |
| | | public interface IRepairTaskLogFile : IBaseDAL<Entity.RepairTaskLogFile>, IUpdateSorter |
| | | { |
| | | |
| | | /// <summary> |
| | | /// éè¿ FormID è·å |
| | | /// </summary> |
| | | List<Entity.RepairTaskLogFile> GetByFormID(long FormID); |
| | | |
| | | /// <summary> |
| | | /// éè¿ LogID è·å |
| | | /// </summary> |
| | | List<Entity.RepairTaskLogFile> GetByLogID(long FormID, long LogID); |
| | | |
| | | /// <summary> |
| | | /// éè¿ LogID è·åæå¤§æåºç |
| | | /// </summary> |
| | | int GetMaxSortCodeByLogID(long FormID, long LogID); |
| | | |
| | | |
| | | } |
| | | } |
copy from Yw.Service.Repair.Core/4-dal/1-request/RepairRequestFile.cs
copy to Yw.Service.Repair.Core/04-dal/02-postgresql/01-request/RepairRequestFile.cs
Îļþ´Ó Yw.Service.Repair.Core/4-dal/1-request/RepairRequestFile.cs ¸´ÖÆ |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.PostgreSql |
| | | { |
| | | /// <summary> |
| | | /// RepairRequestFile |
| | | /// </summary> |
| | | public partial class RepairRequestFile : BaseDAL_Sorter<Entity.RepairRequestFile> |
| | | public partial class RepairRequestFile : BaseDAL_Sorter<Entity.RepairRequestFile>, IRepairRequestFile |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | { |
| | | get |
| | | { |
| | | return ConfigHelper.DefaultConnectionConfig; |
| | | return ConfigHelper.PostgreSqlConnectionConfig; |
| | | } |
| | | } |
| | | |
ÎļþÃû´Ó Yw.Service.Repair.Core/4-dal/1-request/RepairRequestForm.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.PostgreSql |
| | | { |
| | | /// <summary> |
| | | /// RepairRequestForm |
| | | /// </summary> |
| | | public partial class RepairRequestForm : BaseTraceDAL<Entity.RepairRequestForm> |
| | | public partial class RepairRequestForm : BaseTraceDAL<Entity.RepairRequestForm>, IRepairRequestForm |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | { |
| | | get |
| | | { |
| | | return ConfigHelper.DefaultConnectionConfig; |
| | | return ConfigHelper.PostgreSqlConnectionConfig; |
| | | } |
| | | } |
| | | |
| | |
| | | /// <summary> |
| | | /// æ´æ° FormStatus |
| | | /// </summary> |
| | | public bool UpdateFormStatus(long ID, int FormStatus, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool UpdateFormStatus(long ID, int FormStatus) |
| | | { |
| | | using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | return db.Updateable<Entity.RepairRequestForm>() |
| | | .SetColumns(x => x.FormStatus == FormStatus) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == DateTime.Now) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommandHasChange(); |
| | | } |
| | |
| | | var count = GetCountOfDay(entity.CreateTime) + 1; |
| | | entity.FormNo = $"R{entity.CreateTime.ToString("yyyyMMdd")}{count.ToString("000000")}"; |
| | | } |
| | | |
| | | entity.CreateUserID = UserRegister.UserID; |
| | | entity.CreateUserName = UserRegister.UserName; |
| | | entity.CreateTime = DateTime.Now; |
| | | using (var db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | |
| | | var count = GetCountOfDay(entity.CreateTime) + 1; |
| | | entity.FormNo = $"R{entity.CreateTime.ToString("yyyyMMdd")}{count.ToString("000000")}"; |
| | | } |
| | | entity.CreateUserID = UserRegister.UserID; |
| | | entity.CreateUserName = UserRegister.UserName; |
| | | entity.CreateTime = DateTime.Now; |
| | | using (var db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | |
| | | /// <summary> |
| | | /// 驳å |
| | | /// </summary> |
| | | public bool Reject(long ID, string Reason, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Reject(long ID, string Reason) |
| | | { |
| | | using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | var dtNow = DateTime.Now; |
| | | db.BeginTran(); |
| | | var bol = db.Updateable<Entity.RepairRequestForm>() |
| | | .SetColumns(x => x.FormStatus == (int)eRequestStatus.Rejected) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == dtNow) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommandHasChange(); |
| | | if (!bol) |
| | |
| | | entity4Log.FormID = ID; |
| | | entity4Log.OperateType = (int)eRequestOperation.Reject; |
| | | entity4Log.OperateContent = "驳å"; |
| | | entity4Log.OperateTime = UpdateTime; |
| | | entity4Log.OperateUserID = UpdateUserID; |
| | | entity4Log.OperateUserName = UpdateUserName; |
| | | entity4Log.OperateTime = dtNow; |
| | | entity4Log.OperateUserID = UserRegister.UserID; |
| | | entity4Log.OperateUserName = UserRegister.UserName; |
| | | entity4Log.OperateNote = Reason; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
| | |
| | | /// <summary> |
| | | /// åç |
| | | /// </summary> |
| | | public bool Accept(long ID, string Note, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Accept(long ID, string Note) |
| | | { |
| | | using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | var dtNow = DateTime.Now; |
| | | db.BeginTran(); |
| | | var entity = db.Queryable<Entity.RepairRequestForm>().Where(x => x.ID == ID).First(); |
| | | if (entity == null) |
| | |
| | | |
| | | var bol = db.Updateable<Entity.RepairRequestForm>() |
| | | .SetColumns(x => x.FormStatus == (int)eRequestStatus.Accepted) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == dtNow) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommandHasChange(); |
| | | if (!bol) |
| | |
| | | entity4Log.FormID = ID; |
| | | entity4Log.OperateType = (int)eRequestOperation.Accept; |
| | | entity4Log.OperateContent = "åç"; |
| | | entity4Log.OperateTime = UpdateTime; |
| | | entity4Log.OperateUserID = UpdateUserID; |
| | | entity4Log.OperateUserName = UpdateUserName; |
| | | entity4Log.OperateTime = dtNow; |
| | | entity4Log.OperateUserID = UserRegister.UserID; |
| | | entity4Log.OperateUserName = UserRegister.UserName; |
| | | entity4Log.OperateNote = Note; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
| | |
| | | #region çæç»´ä¿®å |
| | | |
| | | var taskCount = db.Queryable<Entity.RepairTaskForm>() |
| | | .Where(x => x.CreateTime >= UpdateTime.Date && x.CreateTime < UpdateTime.Date.AddDays(1)).Count(); |
| | | .Where(x => x.CreateTime >= dtNow.Date && x.CreateTime < dtNow.Date.AddDays(1)).Count(); |
| | | |
| | | var entity4Task = new Entity.RepairTaskForm(); |
| | | entity4Task.EquipmentID = entity.EquipmentID; |
| | | entity4Task.RequestID = entity.ID; |
| | | entity4Task.FormNo = $"T{UpdateTime.ToString("yyyyMMdd")}{taskCount.ToString("000000")}"; |
| | | entity4Task.FormNo = $"T{dtNow.ToString("yyyyMMdd")}{taskCount.ToString("000000")}"; |
| | | entity4Task.FormName = entity.FormName; |
| | | entity4Task.FormStatus = (int)eTaskStatus.Accepted; |
| | | entity4Task.Faq = entity.Faq; |
| | |
| | | entity4Task.Urgency = entity.Urgency; |
| | | entity4Task.Address = entity.Address; |
| | | entity4Task.Location = entity.Location; |
| | | entity4Task.CreateUserID = UpdateUserID; |
| | | entity4Task.CreateTime = UpdateTime; |
| | | entity4Task.CreateUserName = UpdateUserName; |
| | | entity4Task.CreateUserID = UserRegister.UserID; |
| | | entity4Task.CreateTime = dtNow; |
| | | entity4Task.CreateUserName = UserRegister.UserName; |
| | | |
| | | var taskId = db.Insertable(entity4Task).ExecuteReturnSnowflakeId(); |
| | | if (taskId < 1) |
| | |
| | | entity4TaskLog.FormID = taskId; |
| | | entity4TaskLog.OperateType = (int)eTaskOperation.Accept; |
| | | entity4TaskLog.OperateContent = "åç"; |
| | | entity4TaskLog.OperateTime = UpdateTime; |
| | | entity4TaskLog.OperateUserID = UpdateUserID; |
| | | entity4TaskLog.OperateUserName = UpdateUserName; |
| | | entity4TaskLog.OperateTime = dtNow; |
| | | entity4TaskLog.OperateUserID = UserRegister.UserID; |
| | | entity4TaskLog.OperateUserName = UserRegister.UserName; |
| | | entity4TaskLog.OperateNote = Note; |
| | | |
| | | var taskLogId = db.Insertable(entity4TaskLog).ExecuteReturnSnowflakeId(); |
ÎļþÃû´Ó Yw.Service.Repair.Core/4-dal/1-request/RepairRequestLog.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.PostgreSql |
| | | { |
| | | /// <summary> |
| | | /// RepairRequestLog |
| | | /// </summary> |
| | | public partial class RepairRequestLog : BaseDAL<Entity.RepairRequestLog> |
| | | public partial class RepairRequestLog : BaseDAL<Entity.RepairRequestLog>, IRepairRequestLog |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | { |
| | | get |
| | | { |
| | | return ConfigHelper.DefaultConnectionConfig; |
| | | return ConfigHelper.PostgreSqlConnectionConfig; |
| | | } |
| | | } |
| | | |
copy from Yw.Service.Repair.Core/4-dal/2-task/RepairTaskForm.cs
copy to Yw.Service.Repair.Core/04-dal/02-postgresql/02-task/RepairTaskForm.cs
Îļþ´Ó Yw.Service.Repair.Core/4-dal/2-task/RepairTaskForm.cs ¸´ÖÆ |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.PostgreSql |
| | | { |
| | | /// <summary> |
| | | /// RepairTaskForm |
| | | /// </summary> |
| | | public partial class RepairTaskForm : BaseTraceDAL<Entity.RepairTaskForm> |
| | | public partial class RepairTaskForm : BaseTraceDAL<Entity.RepairTaskForm>, IRepairTaskForm |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | { |
| | | get |
| | | { |
| | | return ConfigHelper.DefaultConnectionConfig; |
| | | return ConfigHelper.PostgreSqlConnectionConfig; |
| | | } |
| | | } |
| | | |
| | |
| | | /// <summary> |
| | | /// æ´æ° FormStatus |
| | | /// </summary> |
| | | public bool UpdateFormStatus(long ID, int FormStatus, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool UpdateFormStatus(long ID, int FormStatus) |
| | | { |
| | | using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | return db.Updateable<Entity.RepairTaskForm>() |
| | | .SetColumns(x => x.FormStatus == FormStatus) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == DateTime.Now) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommand() > 0; |
| | | } |
| | |
| | | /// <summary> |
| | | /// æ´¾å |
| | | /// </summary> |
| | | public bool Assign(long ID, long RepairUserID, string RepairUserName, string Note, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Assign(long ID, long RepairUserID, string RepairUserName, string Note) |
| | | { |
| | | using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | var dt = DateTime.Now; |
| | | db.BeginTran(); |
| | | var bol = db.Updateable<Entity.RepairTaskForm>() |
| | | .SetColumns(x => x.FormStatus == (int)eTaskStatus.Assigned) |
| | | .SetColumns(x => x.RepairUserID == RepairUserID) |
| | | .SetColumns(x => x.RepairUserName == RepairUserName) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == dt) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommand() > 0; |
| | | if (!bol) |
| | |
| | | entity4Log.FormID = ID; |
| | | entity4Log.OperateType = (int)eTaskOperation.Assign; |
| | | entity4Log.OperateContent = "æ´¾å"; |
| | | entity4Log.OperateTime = UpdateTime; |
| | | entity4Log.OperateUserID = UpdateUserID; |
| | | entity4Log.OperateUserName = UpdateUserName; |
| | | entity4Log.OperateTime = dt; |
| | | entity4Log.OperateUserID = UserRegister.UserID; |
| | | entity4Log.OperateUserName = UserRegister.UserName; |
| | | entity4Log.OperateNote = Note; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
| | |
| | | /// <summary> |
| | | /// æ¥å |
| | | /// </summary> |
| | | public bool Receive(long ID, string Note, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Receive(long ID, string Note) |
| | | { |
| | | using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | var dtNow = DateTime.Now; |
| | | db.BeginTran(); |
| | | var bol = db.Updateable<Entity.RepairTaskForm>() |
| | | .SetColumns(x => x.FormStatus == (int)eTaskStatus.Received) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == dtNow) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommandHasChange(); |
| | | if (!bol) |
| | |
| | | entity4Log.FormID = ID; |
| | | entity4Log.OperateType = (int)eTaskOperation.Receive; |
| | | entity4Log.OperateContent = "æ¥å"; |
| | | entity4Log.OperateTime = UpdateTime; |
| | | entity4Log.OperateUserID = UpdateUserID; |
| | | entity4Log.OperateUserName = UpdateUserName; |
| | | entity4Log.OperateTime = dtNow; |
| | | entity4Log.OperateUserID = UserRegister.UserID; |
| | | entity4Log.OperateUserName = UserRegister.UserName; |
| | | entity4Log.OperateNote = Note; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
| | |
| | | /// <summary> |
| | | /// å¼å·¥ |
| | | /// </summary> |
| | | public bool Start(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Start(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList) |
| | | { |
| | | using (var db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | var dtNow = DateTime.Now; |
| | | db.BeginTran(); |
| | | var entity = db.Queryable<Entity.RepairTaskForm>().Where(x => x.ID == ID).First(); |
| | | if (entity == null) |
| | |
| | | } |
| | | var bol = db.Updateable<Entity.RepairTaskForm>() |
| | | .SetColumns(x => x.FormStatus == (int)eTaskStatus.Started) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == dtNow) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommand() > 0; |
| | | if (!bol) |
| | |
| | | entity4Log.FormID = ID; |
| | | entity4Log.OperateType = (int)eTaskOperation.Start; |
| | | entity4Log.OperateContent = "å¼å·¥"; |
| | | entity4Log.OperateTime = UpdateTime; |
| | | entity4Log.OperateUserID = UpdateUserID; |
| | | entity4Log.OperateUserName = UpdateUserName; |
| | | entity4Log.OperateTime = dtNow; |
| | | entity4Log.OperateUserID = UserRegister.UserID; |
| | | entity4Log.OperateUserName = UserRegister.UserName; |
| | | entity4Log.OperateNote = Note; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
| | |
| | | /// <summary> |
| | | /// æå |
| | | /// </summary> |
| | | public bool Pause(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Pause(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList) |
| | | { |
| | | using (var db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | var dtNow = DateTime.Now; |
| | | db.BeginTran(); |
| | | var entity = db.Queryable<Entity.RepairTaskForm>().Where(x => x.ID == ID).First(); |
| | | if (entity == null) |
| | |
| | | } |
| | | var bol = db.Updateable<Entity.RepairTaskForm>() |
| | | .SetColumns(x => x.FormStatus == (int)eTaskStatus.Paused) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == dtNow) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommandHasChange(); |
| | | if (!bol) |
| | |
| | | entity4Log.FormID = ID; |
| | | entity4Log.OperateType = (int)eTaskOperation.Pause; |
| | | entity4Log.OperateContent = "æå"; |
| | | entity4Log.OperateTime = UpdateTime; |
| | | entity4Log.OperateUserID = UpdateUserID; |
| | | entity4Log.OperateUserName = UpdateUserName; |
| | | entity4Log.OperateTime = dtNow; |
| | | entity4Log.OperateUserID = UserRegister.UserID; |
| | | entity4Log.OperateUserName = UserRegister.UserName; |
| | | entity4Log.OperateNote = Note; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
| | |
| | | /// <summary> |
| | | /// éæ°å¼å·¥ |
| | | /// </summary> |
| | | public bool Restart(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Restart(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList) |
| | | { |
| | | using (var db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | var dtNow = DateTime.Now; |
| | | db.BeginTran(); |
| | | var entity = db.Queryable<Entity.RepairTaskForm>().Where(x => x.ID == ID).First(); |
| | | if (entity == null) |
| | |
| | | } |
| | | var bol = db.Updateable<Entity.RepairTaskForm>() |
| | | .SetColumns(x => x.FormStatus == (int)eTaskStatus.Restarted) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == dtNow) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommandHasChange(); |
| | | if (!bol) |
| | |
| | | entity4Log.FormID = ID; |
| | | entity4Log.OperateType = (int)eTaskOperation.Restart; |
| | | entity4Log.OperateContent = "éæ°å¼å·¥"; |
| | | entity4Log.OperateTime = UpdateTime; |
| | | entity4Log.OperateUserID = UpdateUserID; |
| | | entity4Log.OperateUserName = UpdateUserName; |
| | | entity4Log.OperateTime = dtNow; |
| | | entity4Log.OperateUserID = UserRegister.UserID; |
| | | entity4Log.OperateUserName = UserRegister.UserName; |
| | | entity4Log.OperateNote = Note; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
| | |
| | | /// <summary> |
| | | /// å®å·¥ |
| | | /// </summary> |
| | | public bool Finish(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Finish(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList) |
| | | { |
| | | using (var db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | var dtNow = DateTime.Now; |
| | | db.BeginTran(); |
| | | var entity = db.Queryable<Entity.RepairTaskForm>().Where(x => x.ID == ID).First(); |
| | | if (entity == null) |
| | |
| | | } |
| | | var bol = db.Updateable<Entity.RepairTaskForm>() |
| | | .SetColumns(x => x.FormStatus == (int)eTaskStatus.Finished) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == dtNow) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommandHasChange(); |
| | | if (!bol) |
| | |
| | | entity4Log.FormID = ID; |
| | | entity4Log.OperateType = (int)eTaskOperation.Finish; |
| | | entity4Log.OperateContent = "å®å·¥"; |
| | | entity4Log.OperateTime = UpdateTime; |
| | | entity4Log.OperateUserID = UpdateUserID; |
| | | entity4Log.OperateUserName = UpdateUserName; |
| | | entity4Log.OperateTime = dtNow; |
| | | entity4Log.OperateUserID = UserRegister.UserID; |
| | | entity4Log.OperateUserName = UserRegister.UserName; |
| | | entity4Log.OperateNote = Note; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
| | |
| | | /// <summary> |
| | | /// éªæ¶éè¿ |
| | | /// </summary> |
| | | public bool Success(long ID, string Note, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Success(long ID, string Note) |
| | | { |
| | | using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | var dtNow = DateTime.Now; |
| | | db.BeginTran(); |
| | | var bol = db.Updateable<Entity.RepairTaskForm>() |
| | | .SetColumns(x => x.FormStatus == (int)eTaskStatus.Succeed) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == dtNow) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommandHasChange(); |
| | | if (!bol) |
| | |
| | | entity4Log.FormID = ID; |
| | | entity4Log.OperateType = (int)eTaskOperation.Success; |
| | | entity4Log.OperateContent = "éªæ¶éè¿"; |
| | | entity4Log.OperateTime = UpdateTime; |
| | | entity4Log.OperateUserID = UpdateUserID; |
| | | entity4Log.OperateUserName = UpdateUserName; |
| | | entity4Log.OperateTime = dtNow; |
| | | entity4Log.OperateUserID = UserRegister.UserID; |
| | | entity4Log.OperateUserName = UserRegister.UserName; |
| | | entity4Log.OperateNote = Note; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
copy from Yw.Service.Repair.Core/4-dal/2-task/RepairTaskLog.cs
copy to Yw.Service.Repair.Core/04-dal/02-postgresql/02-task/RepairTaskLog.cs
Îļþ´Ó Yw.Service.Repair.Core/4-dal/2-task/RepairTaskLog.cs ¸´ÖÆ |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.PostgreSql |
| | | { |
| | | /// <summary> |
| | | /// RepairTaskLog |
| | | /// </summary> |
| | | public partial class RepairTaskLog : BaseDAL<Entity.RepairTaskLog> |
| | | public partial class RepairTaskLog : BaseDAL<Entity.RepairTaskLog>, IRepairTaskLog |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | { |
| | | get |
| | | { |
| | | return ConfigHelper.DefaultConnectionConfig; |
| | | return ConfigHelper.PostgreSqlConnectionConfig; |
| | | } |
| | | } |
| | | |
copy from Yw.Service.Repair.Core/4-dal/2-task/RepairTaskLogFile.cs
copy to Yw.Service.Repair.Core/04-dal/02-postgresql/02-task/RepairTaskLogFile.cs
Îļþ´Ó Yw.Service.Repair.Core/4-dal/2-task/RepairTaskLogFile.cs ¸´ÖÆ |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.PostgreSql |
| | | { |
| | | /// <summary> |
| | | /// RepairTaskLogFile |
| | | /// </summary> |
| | | public partial class RepairTaskLogFile : BaseDAL<Entity.RepairTaskLogFile> |
| | | public partial class RepairTaskLogFile : BaseDAL_Sorter<Entity.RepairTaskLogFile>, IRepairTaskLogFile |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | { |
| | | get |
| | | { |
| | | return ConfigHelper.DefaultConnectionConfig; |
| | | return ConfigHelper.PostgreSqlConnectionConfig; |
| | | } |
| | | } |
| | | |
ÎļþÃû´Ó Yw.Service.Repair.Core/4-dal/1-request/RepairRequestFile.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.SQLite |
| | | { |
| | | /// <summary> |
| | | /// RepairRequestFile |
| | | /// </summary> |
| | | public partial class RepairRequestFile : BaseDAL_Sorter<Entity.RepairRequestFile> |
| | | public partial class RepairRequestFile : BaseDAL_Sorter<Entity.RepairRequestFile>, IRepairRequestFile |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | { |
| | | get |
| | | { |
| | | return ConfigHelper.DefaultConnectionConfig; |
| | | return ConfigHelper.SQLiteConnectionConfig; |
| | | } |
| | | } |
| | | |
copy from Yw.Service.Repair.Core/4-dal/1-request/RepairRequestForm.cs
copy to Yw.Service.Repair.Core/04-dal/03-sqlite/01-request/RepairRequestForm.cs
Îļþ´Ó Yw.Service.Repair.Core/4-dal/1-request/RepairRequestForm.cs ¸´ÖÆ |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.SQLite |
| | | { |
| | | /// <summary> |
| | | /// RepairRequestForm |
| | | /// </summary> |
| | | public partial class RepairRequestForm : BaseTraceDAL<Entity.RepairRequestForm> |
| | | public partial class RepairRequestForm : BaseTraceDAL<Entity.RepairRequestForm>, IRepairRequestForm |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | { |
| | | get |
| | | { |
| | | return ConfigHelper.DefaultConnectionConfig; |
| | | return ConfigHelper.SQLiteConnectionConfig; |
| | | } |
| | | } |
| | | |
| | |
| | | /// <summary> |
| | | /// æ´æ° FormStatus |
| | | /// </summary> |
| | | public bool UpdateFormStatus(long ID, int FormStatus, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool UpdateFormStatus(long ID, int FormStatus) |
| | | { |
| | | using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | return db.Updateable<Entity.RepairRequestForm>() |
| | | .SetColumns(x => x.FormStatus == FormStatus) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == DateTime.Now) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommandHasChange(); |
| | | } |
| | |
| | | var count = GetCountOfDay(entity.CreateTime) + 1; |
| | | entity.FormNo = $"R{entity.CreateTime.ToString("yyyyMMdd")}{count.ToString("000000")}"; |
| | | } |
| | | |
| | | entity.CreateUserID = UserRegister.UserID; |
| | | entity.CreateUserName = UserRegister.UserName; |
| | | entity.CreateTime = DateTime.Now; |
| | | using (var db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | |
| | | var count = GetCountOfDay(entity.CreateTime) + 1; |
| | | entity.FormNo = $"R{entity.CreateTime.ToString("yyyyMMdd")}{count.ToString("000000")}"; |
| | | } |
| | | entity.CreateUserID = UserRegister.UserID; |
| | | entity.CreateUserName = UserRegister.UserName; |
| | | entity.CreateTime = DateTime.Now; |
| | | using (var db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | |
| | | /// <summary> |
| | | /// 驳å |
| | | /// </summary> |
| | | public bool Reject(long ID, string Reason, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Reject(long ID, string Reason) |
| | | { |
| | | using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | var dtNow = DateTime.Now; |
| | | db.BeginTran(); |
| | | var bol = db.Updateable<Entity.RepairRequestForm>() |
| | | .SetColumns(x => x.FormStatus == (int)eRequestStatus.Rejected) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == dtNow) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommandHasChange(); |
| | | if (!bol) |
| | |
| | | entity4Log.FormID = ID; |
| | | entity4Log.OperateType = (int)eRequestOperation.Reject; |
| | | entity4Log.OperateContent = "驳å"; |
| | | entity4Log.OperateTime = UpdateTime; |
| | | entity4Log.OperateUserID = UpdateUserID; |
| | | entity4Log.OperateUserName = UpdateUserName; |
| | | entity4Log.OperateTime = dtNow; |
| | | entity4Log.OperateUserID = UserRegister.UserID; |
| | | entity4Log.OperateUserName = UserRegister.UserName; |
| | | entity4Log.OperateNote = Reason; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
| | |
| | | /// <summary> |
| | | /// åç |
| | | /// </summary> |
| | | public bool Accept(long ID, string Note, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Accept(long ID, string Note) |
| | | { |
| | | using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | var dtNow = DateTime.Now; |
| | | db.BeginTran(); |
| | | var entity = db.Queryable<Entity.RepairRequestForm>().Where(x => x.ID == ID).First(); |
| | | if (entity == null) |
| | |
| | | |
| | | var bol = db.Updateable<Entity.RepairRequestForm>() |
| | | .SetColumns(x => x.FormStatus == (int)eRequestStatus.Accepted) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == dtNow) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommandHasChange(); |
| | | if (!bol) |
| | |
| | | entity4Log.FormID = ID; |
| | | entity4Log.OperateType = (int)eRequestOperation.Accept; |
| | | entity4Log.OperateContent = "åç"; |
| | | entity4Log.OperateTime = UpdateTime; |
| | | entity4Log.OperateUserID = UpdateUserID; |
| | | entity4Log.OperateUserName = UpdateUserName; |
| | | entity4Log.OperateTime = dtNow; |
| | | entity4Log.OperateUserID = UserRegister.UserID; |
| | | entity4Log.OperateUserName = UserRegister.UserName; |
| | | entity4Log.OperateNote = Note; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
| | |
| | | #region çæç»´ä¿®å |
| | | |
| | | var taskCount = db.Queryable<Entity.RepairTaskForm>() |
| | | .Where(x => x.CreateTime >= UpdateTime.Date && x.CreateTime < UpdateTime.Date.AddDays(1)).Count(); |
| | | .Where(x => x.CreateTime >= dtNow.Date && x.CreateTime < dtNow.Date.AddDays(1)).Count(); |
| | | |
| | | var entity4Task = new Entity.RepairTaskForm(); |
| | | entity4Task.EquipmentID = entity.EquipmentID; |
| | | entity4Task.RequestID = entity.ID; |
| | | entity4Task.FormNo = $"T{UpdateTime.ToString("yyyyMMdd")}{taskCount.ToString("000000")}"; |
| | | entity4Task.FormNo = $"T{dtNow.ToString("yyyyMMdd")}{taskCount.ToString("000000")}"; |
| | | entity4Task.FormName = entity.FormName; |
| | | entity4Task.FormStatus = (int)eTaskStatus.Accepted; |
| | | entity4Task.Faq = entity.Faq; |
| | |
| | | entity4Task.Urgency = entity.Urgency; |
| | | entity4Task.Address = entity.Address; |
| | | entity4Task.Location = entity.Location; |
| | | entity4Task.CreateUserID = UpdateUserID; |
| | | entity4Task.CreateTime = UpdateTime; |
| | | entity4Task.CreateUserName = UpdateUserName; |
| | | entity4Task.CreateUserID = UserRegister.UserID; |
| | | entity4Task.CreateTime = dtNow; |
| | | entity4Task.CreateUserName = UserRegister.UserName; |
| | | |
| | | var taskId = db.Insertable(entity4Task).ExecuteReturnSnowflakeId(); |
| | | if (taskId < 1) |
| | |
| | | entity4TaskLog.FormID = taskId; |
| | | entity4TaskLog.OperateType = (int)eTaskOperation.Accept; |
| | | entity4TaskLog.OperateContent = "åç"; |
| | | entity4TaskLog.OperateTime = UpdateTime; |
| | | entity4TaskLog.OperateUserID = UpdateUserID; |
| | | entity4TaskLog.OperateUserName = UpdateUserName; |
| | | entity4TaskLog.OperateTime = dtNow; |
| | | entity4TaskLog.OperateUserID = UserRegister.UserID; |
| | | entity4TaskLog.OperateUserName = UserRegister.UserName; |
| | | entity4TaskLog.OperateNote = Note; |
| | | |
| | | var taskLogId = db.Insertable(entity4TaskLog).ExecuteReturnSnowflakeId(); |
copy from Yw.Service.Repair.Core/4-dal/1-request/RepairRequestLog.cs
copy to Yw.Service.Repair.Core/04-dal/03-sqlite/01-request/RepairRequestLog.cs
Îļþ´Ó Yw.Service.Repair.Core/4-dal/1-request/RepairRequestLog.cs ¸´ÖÆ |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.SQLite |
| | | { |
| | | /// <summary> |
| | | /// RepairRequestLog |
| | | /// </summary> |
| | | public partial class RepairRequestLog : BaseDAL<Entity.RepairRequestLog> |
| | | public partial class RepairRequestLog : BaseDAL<Entity.RepairRequestLog>, IRepairRequestLog |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | { |
| | | get |
| | | { |
| | | return ConfigHelper.DefaultConnectionConfig; |
| | | return ConfigHelper.SQLiteConnectionConfig; |
| | | } |
| | | } |
| | | |
ÎļþÃû´Ó Yw.Service.Repair.Core/4-dal/2-task/RepairTaskForm.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.SQLite |
| | | { |
| | | /// <summary> |
| | | /// RepairTaskForm |
| | | /// </summary> |
| | | public partial class RepairTaskForm : BaseTraceDAL<Entity.RepairTaskForm> |
| | | public partial class RepairTaskForm : BaseTraceDAL<Entity.RepairTaskForm>, IRepairTaskForm |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | { |
| | | get |
| | | { |
| | | return ConfigHelper.DefaultConnectionConfig; |
| | | return ConfigHelper.SQLiteConnectionConfig; |
| | | } |
| | | } |
| | | |
| | |
| | | /// <summary> |
| | | /// æ´æ° FormStatus |
| | | /// </summary> |
| | | public bool UpdateFormStatus(long ID, int FormStatus, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool UpdateFormStatus(long ID, int FormStatus) |
| | | { |
| | | using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | return db.Updateable<Entity.RepairTaskForm>() |
| | | .SetColumns(x => x.FormStatus == FormStatus) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == DateTime.Now) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommand() > 0; |
| | | } |
| | |
| | | /// <summary> |
| | | /// æ´¾å |
| | | /// </summary> |
| | | public bool Assign(long ID, long RepairUserID, string RepairUserName, string Note, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Assign(long ID, long RepairUserID, string RepairUserName, string Note) |
| | | { |
| | | using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | var dt = DateTime.Now; |
| | | db.BeginTran(); |
| | | var bol = db.Updateable<Entity.RepairTaskForm>() |
| | | .SetColumns(x => x.FormStatus == (int)eTaskStatus.Assigned) |
| | | .SetColumns(x => x.RepairUserID == RepairUserID) |
| | | .SetColumns(x => x.RepairUserName == RepairUserName) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == dt) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommand() > 0; |
| | | if (!bol) |
| | |
| | | entity4Log.FormID = ID; |
| | | entity4Log.OperateType = (int)eTaskOperation.Assign; |
| | | entity4Log.OperateContent = "æ´¾å"; |
| | | entity4Log.OperateTime = UpdateTime; |
| | | entity4Log.OperateUserID = UpdateUserID; |
| | | entity4Log.OperateUserName = UpdateUserName; |
| | | entity4Log.OperateTime = dt; |
| | | entity4Log.OperateUserID = UserRegister.UserID; |
| | | entity4Log.OperateUserName = UserRegister.UserName; |
| | | entity4Log.OperateNote = Note; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
| | |
| | | /// <summary> |
| | | /// æ¥å |
| | | /// </summary> |
| | | public bool Receive(long ID, string Note, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Receive(long ID, string Note) |
| | | { |
| | | using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | var dtNow = DateTime.Now; |
| | | db.BeginTran(); |
| | | var bol = db.Updateable<Entity.RepairTaskForm>() |
| | | .SetColumns(x => x.FormStatus == (int)eTaskStatus.Received) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == dtNow) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommandHasChange(); |
| | | if (!bol) |
| | |
| | | entity4Log.FormID = ID; |
| | | entity4Log.OperateType = (int)eTaskOperation.Receive; |
| | | entity4Log.OperateContent = "æ¥å"; |
| | | entity4Log.OperateTime = UpdateTime; |
| | | entity4Log.OperateUserID = UpdateUserID; |
| | | entity4Log.OperateUserName = UpdateUserName; |
| | | entity4Log.OperateTime = dtNow; |
| | | entity4Log.OperateUserID = UserRegister.UserID; |
| | | entity4Log.OperateUserName = UserRegister.UserName; |
| | | entity4Log.OperateNote = Note; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
| | |
| | | /// <summary> |
| | | /// å¼å·¥ |
| | | /// </summary> |
| | | public bool Start(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Start(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList) |
| | | { |
| | | using (var db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | var dtNow = DateTime.Now; |
| | | db.BeginTran(); |
| | | var entity = db.Queryable<Entity.RepairTaskForm>().Where(x => x.ID == ID).First(); |
| | | if (entity == null) |
| | |
| | | } |
| | | var bol = db.Updateable<Entity.RepairTaskForm>() |
| | | .SetColumns(x => x.FormStatus == (int)eTaskStatus.Started) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == dtNow) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommand() > 0; |
| | | if (!bol) |
| | |
| | | entity4Log.FormID = ID; |
| | | entity4Log.OperateType = (int)eTaskOperation.Start; |
| | | entity4Log.OperateContent = "å¼å·¥"; |
| | | entity4Log.OperateTime = UpdateTime; |
| | | entity4Log.OperateUserID = UpdateUserID; |
| | | entity4Log.OperateUserName = UpdateUserName; |
| | | entity4Log.OperateTime = dtNow; |
| | | entity4Log.OperateUserID = UserRegister.UserID; |
| | | entity4Log.OperateUserName = UserRegister.UserName; |
| | | entity4Log.OperateNote = Note; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
| | |
| | | /// <summary> |
| | | /// æå |
| | | /// </summary> |
| | | public bool Pause(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Pause(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList) |
| | | { |
| | | using (var db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | var dtNow = DateTime.Now; |
| | | db.BeginTran(); |
| | | var entity = db.Queryable<Entity.RepairTaskForm>().Where(x => x.ID == ID).First(); |
| | | if (entity == null) |
| | |
| | | } |
| | | var bol = db.Updateable<Entity.RepairTaskForm>() |
| | | .SetColumns(x => x.FormStatus == (int)eTaskStatus.Paused) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == dtNow) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommandHasChange(); |
| | | if (!bol) |
| | |
| | | entity4Log.FormID = ID; |
| | | entity4Log.OperateType = (int)eTaskOperation.Pause; |
| | | entity4Log.OperateContent = "æå"; |
| | | entity4Log.OperateTime = UpdateTime; |
| | | entity4Log.OperateUserID = UpdateUserID; |
| | | entity4Log.OperateUserName = UpdateUserName; |
| | | entity4Log.OperateTime = dtNow; |
| | | entity4Log.OperateUserID = UserRegister.UserID; |
| | | entity4Log.OperateUserName = UserRegister.UserName; |
| | | entity4Log.OperateNote = Note; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
| | |
| | | /// <summary> |
| | | /// éæ°å¼å·¥ |
| | | /// </summary> |
| | | public bool Restart(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Restart(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList) |
| | | { |
| | | using (var db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | var dtNow = DateTime.Now; |
| | | db.BeginTran(); |
| | | var entity = db.Queryable<Entity.RepairTaskForm>().Where(x => x.ID == ID).First(); |
| | | if (entity == null) |
| | |
| | | } |
| | | var bol = db.Updateable<Entity.RepairTaskForm>() |
| | | .SetColumns(x => x.FormStatus == (int)eTaskStatus.Restarted) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == dtNow) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommandHasChange(); |
| | | if (!bol) |
| | |
| | | entity4Log.FormID = ID; |
| | | entity4Log.OperateType = (int)eTaskOperation.Restart; |
| | | entity4Log.OperateContent = "éæ°å¼å·¥"; |
| | | entity4Log.OperateTime = UpdateTime; |
| | | entity4Log.OperateUserID = UpdateUserID; |
| | | entity4Log.OperateUserName = UpdateUserName; |
| | | entity4Log.OperateTime = dtNow; |
| | | entity4Log.OperateUserID = UserRegister.UserID; |
| | | entity4Log.OperateUserName = UserRegister.UserName; |
| | | entity4Log.OperateNote = Note; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
| | |
| | | /// <summary> |
| | | /// å®å·¥ |
| | | /// </summary> |
| | | public bool Finish(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Finish(long ID, string Note, List<Entity.RepairTaskLogFile> entity4FileList) |
| | | { |
| | | using (var db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | var dtNow = DateTime.Now; |
| | | db.BeginTran(); |
| | | var entity = db.Queryable<Entity.RepairTaskForm>().Where(x => x.ID == ID).First(); |
| | | if (entity == null) |
| | |
| | | } |
| | | var bol = db.Updateable<Entity.RepairTaskForm>() |
| | | .SetColumns(x => x.FormStatus == (int)eTaskStatus.Finished) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == dtNow) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommandHasChange(); |
| | | if (!bol) |
| | |
| | | entity4Log.FormID = ID; |
| | | entity4Log.OperateType = (int)eTaskOperation.Finish; |
| | | entity4Log.OperateContent = "å®å·¥"; |
| | | entity4Log.OperateTime = UpdateTime; |
| | | entity4Log.OperateUserID = UpdateUserID; |
| | | entity4Log.OperateUserName = UpdateUserName; |
| | | entity4Log.OperateTime = dtNow; |
| | | entity4Log.OperateUserID = UserRegister.UserID; |
| | | entity4Log.OperateUserName = UserRegister.UserName; |
| | | entity4Log.OperateNote = Note; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
| | |
| | | /// <summary> |
| | | /// éªæ¶éè¿ |
| | | /// </summary> |
| | | public bool Success(long ID, string Note, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Success(long ID, string Note) |
| | | { |
| | | using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) |
| | | { |
| | | try |
| | | { |
| | | var dtNow = DateTime.Now; |
| | | db.BeginTran(); |
| | | var bol = db.Updateable<Entity.RepairTaskForm>() |
| | | .SetColumns(x => x.FormStatus == (int)eTaskStatus.Succeed) |
| | | .SetColumns(x => x.UpdateUserID == UpdateUserID) |
| | | .SetColumns(x => x.UpdateTime == UpdateTime) |
| | | .SetColumns(x => x.UpdateUserName == UpdateUserName) |
| | | .SetColumns(x => x.UpdateUserID == UserRegister.UserID) |
| | | .SetColumns(x => x.UpdateTime == dtNow) |
| | | .SetColumns(x => x.UpdateUserName == UserRegister.UserName) |
| | | .Where(x => x.ID == ID) |
| | | .ExecuteCommandHasChange(); |
| | | if (!bol) |
| | |
| | | entity4Log.FormID = ID; |
| | | entity4Log.OperateType = (int)eTaskOperation.Success; |
| | | entity4Log.OperateContent = "éªæ¶éè¿"; |
| | | entity4Log.OperateTime = UpdateTime; |
| | | entity4Log.OperateUserID = UpdateUserID; |
| | | entity4Log.OperateUserName = UpdateUserName; |
| | | entity4Log.OperateTime = dtNow; |
| | | entity4Log.OperateUserID = UserRegister.UserID; |
| | | entity4Log.OperateUserName = UserRegister.UserName; |
| | | entity4Log.OperateNote = Note; |
| | | var logId = db.Insertable(entity4Log).ExecuteReturnSnowflakeId(); |
| | | if (logId < 1) |
ÎļþÃû´Ó Yw.Service.Repair.Core/4-dal/2-task/RepairTaskLog.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.SQLite |
| | | { |
| | | /// <summary> |
| | | /// RepairTaskLog |
| | | /// </summary> |
| | | public partial class RepairTaskLog : BaseDAL<Entity.RepairTaskLog> |
| | | public partial class RepairTaskLog : BaseDAL<Entity.RepairTaskLog>, IRepairTaskLog |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | { |
| | | get |
| | | { |
| | | return ConfigHelper.DefaultConnectionConfig; |
| | | return ConfigHelper.SQLiteConnectionConfig; |
| | | } |
| | | } |
| | | |
ÎļþÃû´Ó Yw.Service.Repair.Core/4-dal/2-task/RepairTaskLogFile.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.SQLite |
| | | { |
| | | /// <summary> |
| | | /// RepairTaskLogFile |
| | | /// </summary> |
| | | public partial class RepairTaskLogFile : BaseDAL<Entity.RepairTaskLogFile> |
| | | public partial class RepairTaskLogFile : BaseDAL_Sorter<Entity.RepairTaskLogFile>, IRepairTaskLogFile |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | { |
| | | get |
| | | { |
| | | return ConfigHelper.DefaultConnectionConfig; |
| | | return ConfigHelper.SQLiteConnectionConfig; |
| | | } |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Service.Repair |
| | | { |
| | | /// <summary> |
| | | /// DALè¾
å©ç±» |
| | | /// </summary> |
| | | internal class DALCreateHelper |
| | | { |
| | | /// <summary> |
| | | /// å建DAL |
| | | /// </summary> |
| | | /// <typeparam name="T"></typeparam> |
| | | /// <returns></returns> |
| | | public static T CreateDAL<T>() |
| | | { |
| | | var dbType = Settings.RepairParasHelper.Repair.DataBase.DbType; |
| | | return Yw.DALFactory.CreateDAL<T>(dbType); |
| | | } |
| | | } |
| | | } |
ÎļþÃû´Ó Yw.Service.Repair.Core/5-service/1-request/1-form/RepairRequestForm.cs ÐÞ¸Ä |
| | |
| | | /// </summary> |
| | | public partial class RepairRequestForm |
| | | { |
| | | private readonly DAL.RepairRequestForm _dal = new DAL.RepairRequestForm(); |
| | | private readonly DAL.IRepairRequestForm _dal = DALCreateHelper.CreateDAL<DAL.IRepairRequestForm>(); |
| | | |
| | | #region Query |
| | | |
| | |
| | | /// <summary> |
| | | /// æ´æ° FormStatus |
| | | /// </summary> |
| | | public bool UpdateFormStatus(long ID, eRequestStatus FormStatus, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool UpdateFormStatus(long ID, eRequestStatus FormStatus) |
| | | { |
| | | var bol = _dal.UpdateFormStatus(ID, (int)FormStatus, UpdateUserID, UpdateTime, UpdateUserName); |
| | | var bol = _dal.UpdateFormStatus(ID, (int)FormStatus); |
| | | return bol; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 驳å |
| | | /// </summary> |
| | | public bool Reject(long ID, string Reason, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Reject(long ID, string Reason) |
| | | { |
| | | var bol = _dal.Reject(ID, Reason, UpdateUserID, UpdateTime, UpdateUserName); |
| | | var bol = _dal.Reject(ID, Reason); |
| | | return bol; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// åç |
| | | /// </summary> |
| | | public bool Accept(long ID, string Note, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Accept(long ID, string Note) |
| | | { |
| | | var bol = _dal.Accept(ID, Note, UpdateUserID, UpdateTime, UpdateUserName); |
| | | var bol = _dal.Accept(ID, Note); |
| | | return bol; |
| | | } |
| | | |
| | |
| | | public bool DeleteByID(long ID, out string Msg) |
| | | { |
| | | Msg = string.Empty; |
| | | var dal = new DAL.RepairRequestForm(); |
| | | var bol = dal.DeleteByID(ID); |
| | | var bol = _dal.DeleteByID(ID); |
| | | return bol; |
| | | } |
| | | |
ÎļþÃû´Ó Yw.Service.Repair.Core/5-service/1-request/2-file/RepairRequestFile.cs ÐÞ¸Ä |
| | |
| | | /// </summary> |
| | | public partial class RepairRequestFile |
| | | { |
| | | private readonly DAL.RepairRequestFile _dal = new DAL.RepairRequestFile(); |
| | | private readonly DAL.IRepairRequestFile _dal = DALCreateHelper.CreateDAL<DAL.IRepairRequestFile>(); |
| | | |
| | | /// <summary> |
| | | /// æ¹éæå
¥ |
ÎļþÃû´Ó Yw.Service.Repair.Core/5-service/1-request/3-log/RepairRequestLog.cs ÐÞ¸Ä |
| | |
| | | /// </summary> |
| | | public partial class RepairRequestLog |
| | | { |
| | | private readonly DAL.RepairRequestLog _dal = new DAL.RepairRequestLog(); |
| | | private readonly DAL.IRepairRequestLog _dal = DALCreateHelper.CreateDAL<DAL.IRepairRequestLog>(); |
| | | |
| | | /// <summary> |
| | | /// éè¿ FormID è·å |
ÎļþÃû´Ó Yw.Service.Repair.Core/5-service/2-task/1-form/RepairTaskForm.cs ÐÞ¸Ä |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace Yw.Service |
| | | namespace Yw.Service |
| | | { |
| | | /// <summary> |
| | | /// ç»´ä¿®å |
| | | /// </summary> |
| | | public partial class RepairTaskForm |
| | | { |
| | | private readonly DAL.RepairTaskForm _dal = new DAL.RepairTaskForm(); |
| | | private readonly DAL.IRepairTaskForm _dal = DALCreateHelper.CreateDAL<DAL.IRepairTaskForm>(); |
| | | |
| | | #region Query |
| | | |
| | |
| | | /// <summary> |
| | | /// æ´æ° FormStatus |
| | | /// </summary> |
| | | public bool UpdateFormStatus(long ID, eTaskStatus FormStatus, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool UpdateFormStatus(long ID, eTaskStatus FormStatus) |
| | | { |
| | | var bol = _dal.UpdateFormStatus(ID, (int)FormStatus, UpdateUserID, UpdateTime, UpdateUserName); |
| | | var bol = _dal.UpdateFormStatus(ID, (int)FormStatus); |
| | | return bol; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ´¾å |
| | | /// </summary> |
| | | public bool Assign(long ID, long RepairUserID, string RepairUserName, string Note, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Assign(long ID, long RepairUserID, string RepairUserName, string Note) |
| | | { |
| | | var bol = _dal.Assign(ID, RepairUserID, RepairUserName, Note, UpdateUserID, UpdateTime, UpdateUserName); |
| | | var bol = _dal.Assign(ID, RepairUserID, RepairUserName, Note); |
| | | return bol; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥å |
| | | /// </summary> |
| | | public bool Receive(long ID, string Note, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Receive(long ID, string Note) |
| | | { |
| | | var bol = _dal.Receive(ID, Note, UpdateUserID, UpdateTime, UpdateUserName); |
| | | var bol = _dal.Receive(ID, Note); |
| | | return bol; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å¼å·¥ |
| | | /// </summary> |
| | | public bool Start(long ID, string Note, List<Model.RepairTaskLogFile> fileList, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Start(long ID, string Note, List<Model.RepairTaskLogFile> fileList) |
| | | { |
| | | var entity4FileList = Model2Entities(fileList); |
| | | var bol = _dal.Start(ID, Note, entity4FileList, UpdateUserID, UpdateTime, UpdateUserName); |
| | | var bol = _dal.Start(ID, Note, entity4FileList); |
| | | return bol; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æå |
| | | /// </summary> |
| | | public bool Pause(long ID, string Note, List<Model.RepairTaskLogFile> fileList, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Pause(long ID, string Note, List<Model.RepairTaskLogFile> fileList) |
| | | { |
| | | var entity4FileList = Model2Entities(fileList); |
| | | var bol = _dal.Pause(ID, Note, entity4FileList, UpdateUserID, UpdateTime, UpdateUserName); |
| | | var bol = _dal.Pause(ID, Note, entity4FileList); |
| | | return bol; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// éæ°å¼å·¥ |
| | | /// </summary> |
| | | public bool Restart(long ID, string Note, List<Model.RepairTaskLogFile> fileList, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Restart(long ID, string Note, List<Model.RepairTaskLogFile> fileList) |
| | | { |
| | | var entity4FileList = Model2Entities(fileList); |
| | | var bol = _dal.Restart(ID, Note, entity4FileList, UpdateUserID, UpdateTime, UpdateUserName); |
| | | var bol = _dal.Restart(ID, Note, entity4FileList); |
| | | return bol; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å®å·¥ |
| | | /// </summary> |
| | | public bool Finish(long ID, string Note, List<Model.RepairTaskLogFile> fileList, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Finish(long ID, string Note, List<Model.RepairTaskLogFile> fileList) |
| | | { |
| | | var entity4FileList = Model2Entities(fileList); |
| | | var bol = _dal.Finish(ID, Note, entity4FileList, UpdateUserID, UpdateTime, UpdateUserName); |
| | | var bol = _dal.Finish(ID, Note, entity4FileList); |
| | | return bol; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// éªæ¶éè¿ |
| | | /// </summary> |
| | | public bool Success(long ID, string Note, long UpdateUserID, DateTime UpdateTime, string UpdateUserName) |
| | | public bool Success(long ID, string Note) |
| | | { |
| | | var bol = _dal.Success(ID, Note, UpdateUserID, UpdateTime, UpdateUserName); |
| | | var bol = _dal.Success(ID, Note); |
| | | return bol; |
| | | } |
| | | |
| | |
| | | public bool DeleteByID(long ID, out string Msg) |
| | | { |
| | | Msg = string.Empty; |
| | | var dal = new DAL.RepairTaskForm(); |
| | | var bol = dal.DeleteByID(ID); |
| | | var bol = _dal.DeleteByID(ID); |
| | | return bol; |
| | | } |
| | | |
ÎļþÃû´Ó Yw.Service.Repair.Core/5-service/2-task/2-log/RepairTaskLog.cs ÐÞ¸Ä |
| | |
| | | /// </summary> |
| | | public partial class RepairTaskLog |
| | | { |
| | | private readonly DAL.RepairTaskLog _dal = new DAL.RepairTaskLog(); |
| | | private readonly DAL.IRepairTaskLog _dal = DALCreateHelper.CreateDAL<DAL.IRepairTaskLog>(); |
| | | |
| | | /// <summary> |
| | | /// éè¿ FormID è·å |
ÎļþÃû´Ó Yw.Service.Repair.Core/5-service/2-task/3-file/RepairTaskLogFile.cs ÐÞ¸Ä |
| | |
| | | /// </summary> |
| | | public partial class RepairTaskLogFile |
| | | { |
| | | private readonly DAL.RepairTaskLogFile _dal = new DAL.RepairTaskLogFile(); |
| | | private readonly DAL.IRepairTaskLogFile _dal = DALCreateHelper.CreateDAL<DAL.IRepairTaskLogFile>(); |
| | | |
| | | /// <summary> |
| | | /// æ¹éæå
¥ |
| | |
| | | global using System.Collections; |
| | | global using SqlSugar; |
| | | global using AutoMapper; |
| | | global using Yw.Newtonsoft; |
| | | global using Yw.Repair; |
| | | global using Yw.Model.Repair; |
| | | global using Yw.Settings; |
| | |
| | | --> |
| | | <Project> |
| | | <PropertyGroup> |
| | | <History>True|2024-01-22T03:22:37.7738541Z;True|2023-12-25T15:19:27.1723882+08:00;True|2023-12-04T18:24:01.9884855+08:00;True|2023-07-13T11:54:33.7989040+08:00;True|2023-07-13T11:54:23.3967174+08:00;True|2023-07-06T09:49:52.7407983+08:00;True|2023-05-25T15:37:23.5406830+08:00;False|2023-05-25T15:36:09.3589239+08:00;</History> |
| | | <History>True|2024-03-25T04:19:12.1673258Z;True|2024-01-22T11:22:37.7738541+08:00;True|2023-12-25T15:19:27.1723882+08:00;True|2023-12-04T18:24:01.9884855+08:00;True|2023-07-13T11:54:33.7989040+08:00;True|2023-07-13T11:54:23.3967174+08:00;True|2023-07-06T09:49:52.7407983+08:00;True|2023-05-25T15:37:23.5406830+08:00;False|2023-05-25T15:36:09.3589239+08:00;</History> |
| | | </PropertyGroup> |
| | | </Project> |
| | |
| | | <RootNamespace>Yw</RootNamespace> |
| | | <GenerateDocumentationFile>True</GenerateDocumentationFile> |
| | | <GeneratePackageOnBuild>True</GeneratePackageOnBuild> |
| | | <Version>1.0.2</Version> |
| | | <Version>3.0.0</Version> |
| | | <Description>å¼ç¨å级</Description> |
| | | </PropertyGroup> |
| | | |
| | |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="Yw.Service.Core" Version="1.1.6" /> |
| | | <PackageReference Include="Yw.DAL.PostgreSql.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.DAL.SQLite.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.DALFactory.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.IDAL.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.Service.Core" Version="3.0.0" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | |
| | | "Repair": { |
| | | "DataBase": { |
| | | "ConnectString": "PORT=5432;DATABASE=yw_repair;HOST=localhost;PASSWORD=123456;USER ID=postgres;" |
| | | "DbType": "PostgreSql", //PostgreSqlãSQLite |
| | | "PostgreSql": { |
| | | "ConnectString": "PORT=5432;DATABASE=yw_repair;HOST=localhost;PASSWORD=123456;USER ID=postgres;" |
| | | }, |
| | | "SQLite": { |
| | | "ConnectString": "Data Source=yw_repair.db;" |
| | | } |
| | | }, |
| | | "DataFolder": "Repair" |
| | | } |