| | |
| | | { |
| | | if (_service.IsExistCode(input.Code)) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"Code:{input.Code} ç¼ç å·²åå¨"); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"Code:{input.Code} ç¼ç å·²åå¨"); |
| | | } |
| | | var model = input.Adapt<AddSysUnitLangInput, Model.SysUnitLang>(); |
| | | model.SortCode = _service.GetMaxSortCode() + 1; |
| | |
| | | { |
| | | if (_service.IsExistCodeExceptID(input.Code, input.ID)) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"Code:{input.Code} ç¼ç å·²åå¨"); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"Code:{input.Code} ç¼ç å·²åå¨"); |
| | | } |
| | | var model = _service.GetByID(input.ID); |
| | | if (model == null) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.D001, $"ID:{input.ID} æ°æ®ä¸åå¨"); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, $"ID:{input.ID} æ°æ®ä¸åå¨"); |
| | | } |
| | | var rhs = new Model.SysUnitLang(model); |
| | | input.Adapt(rhs); |
| | |
| | | var bol = _service.DeleteByID(input.ID, out string msg); |
| | | if (!bol) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.D999, msg); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D999, msg); |
| | | } |
| | | return bol; |
| | | } |
| | |
| | | { |
| | | if (_service.IsExistCode(input.Code)) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"Code:{input.Code} ç¼ç å·²åå¨"); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"Code:{input.Code} ç¼ç å·²åå¨"); |
| | | } |
| | | var model = input.Adapt<AddSysUnitTypeInput, Model.SysUnitType>(); |
| | | model.SortCode = _service.GetMaxSortCode() + 1; |
| | |
| | | var model = _service.GetByID(input.ID); |
| | | if (model == null) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.D001, $"ID:{input.ID} æ°æ®ä¸åå¨"); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, $"ID:{input.ID} æ°æ®ä¸åå¨"); |
| | | } |
| | | if (_service.IsExistCodeExceptID(input.Code, input.ID)) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"Code:{input.Code} ç¼ç å·²åå¨"); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"Code:{input.Code} ç¼ç å·²åå¨"); |
| | | } |
| | | var rhs = new Model.SysUnitType(model); |
| | | input.Adapt(rhs); |
| | |
| | | var bol = _service.DeleteByID(input.ID, out string msg); |
| | | if (!bol) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.D999, msg); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D999, msg); |
| | | } |
| | | return bol; |
| | | } |
| | |
| | | var type = new Service.SysUnitType().GetByID(input.TypeID); |
| | | if (type == null) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.D001, $"TypeID:{input.TypeID} æ°æ®ä¸åå¨"); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, $"TypeID:{input.TypeID} æ°æ®ä¸åå¨"); |
| | | } |
| | | if (_service.IsExistCode(input.TypeID, input.Code)) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"Code:{input.Code} ç¼ç å·²åå¨"); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"Code:{input.Code} ç¼ç å·²åå¨"); |
| | | } |
| | | var model = input.Adapt<AddSysUnitValueInput, Model.SysUnitValue>(); |
| | | model.SortCode = _service.GetMaxSortCode(input.TypeID) + 1; |
| | |
| | | var model = _service.GetByID(input.ID); |
| | | if (model == null) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.D001, $"ID:{input.ID} æ°æ®ä¸åå¨"); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, $"ID:{input.ID} æ°æ®ä¸åå¨"); |
| | | } |
| | | if (_service.IsExistCodeExceptID(model.TypeID, input.Code, input.ID)) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"Code:{input.Code} ç¼ç å·²åå¨"); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"Code:{input.Code} ç¼ç å·²åå¨"); |
| | | } |
| | | var rhs = new Model.SysUnitValue(model); |
| | | input.Adapt(rhs); |
| | |
| | | var bol = _service.DeleteByID(input.ID, out string msg); |
| | | if (!bol) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.D999, msg); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D999, msg); |
| | | } |
| | | return bol; |
| | | } |
| | |
| | | --> |
| | | <Project> |
| | | <PropertyGroup> |
| | | <History>True|2024-03-24T08:04:31.1520708Z;True|2024-03-20T13:28:31.4429012+08:00;True|2024-03-08T16:08:21.6186021+08:00;True|2024-01-27T09:16:19.1123592+08:00;True|2024-01-21T14:04:53.3821335+08:00;True|2024-01-20T18:00:33.8425629+08:00;True|2024-01-20T17:58:31.8270324+08:00;True|2024-01-20T12:19:49.4239246+08:00;True|2024-01-14T13:50:48.6498781+08:00;True|2023-12-02T14:29:46.1910954+08:00;True|2023-11-15T09:23:23.1277615+08:00;True|2023-11-13T11:14:23.7047654+08:00;True|2023-11-07T15:28:54.3174797+08:00;True|2023-10-27T13:22:55.8696581+08:00;True|2023-10-21T18:17:31.4681547+08:00;True|2023-10-18T17:29:57.6963038+08:00;True|2023-09-15T12:09:34.4888678+08:00;True|2023-09-14T15:15:33.6113596+08:00;True|2023-08-21T13:09:54.7440181+08:00;True|2023-07-25T15:08:42.3375388+08:00;True|2023-07-17T10:31:53.5181752+08:00;True|2023-07-17T10:31:44.6652344+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-30T06:43:35.7624433Z;True|2024-03-24T16:04:31.1520708+08:00;True|2024-03-20T13:28:31.4429012+08:00;True|2024-03-08T16:08:21.6186021+08:00;True|2024-01-27T09:16:19.1123592+08:00;True|2024-01-21T14:04:53.3821335+08:00;True|2024-01-20T18:00:33.8425629+08:00;True|2024-01-20T17:58:31.8270324+08:00;True|2024-01-20T12:19:49.4239246+08:00;True|2024-01-14T13:50:48.6498781+08:00;True|2023-12-02T14:29:46.1910954+08:00;True|2023-11-15T09:23:23.1277615+08:00;True|2023-11-13T11:14:23.7047654+08:00;True|2023-11-07T15:28:54.3174797+08:00;True|2023-10-27T13:22:55.8696581+08:00;True|2023-10-21T18:17:31.4681547+08:00;True|2023-10-18T17:29:57.6963038+08:00;True|2023-09-15T12:09:34.4888678+08:00;True|2023-09-14T15:15:33.6113596+08:00;True|2023-08-21T13:09:54.7440181+08:00;True|2023-07-25T15:08:42.3375388+08:00;True|2023-07-17T10:31:53.5181752+08:00;True|2023-07-17T10:31:44.6652344+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>3.0.0</Version> |
| | | <Version>3.0.1</Version> |
| | | <Description>å¼ç¨å级</Description> |
| | | </PropertyGroup> |
| | | |
| | |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="Yw.Application.Core" Version="3.0.1" /> |
| | | <PackageReference Include="Yw.Dto.Unit.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.Application.Core" Version="3.0.5" /> |
| | | <PackageReference Include="Yw.Dto.Unit.Core" Version="3.0.1" /> |
| | | </ItemGroup> |
| | | |
| | | </Project> |
| | |
| | | --> |
| | | <Project> |
| | | <PropertyGroup> |
| | | <History>True|2024-03-24T07:58:01.8436381Z;True|2024-03-20T13:14:26.0945194+08:00;</History> |
| | | <History>True|2024-03-30T06:42:12.5290823Z;True|2024-03-24T15:58:01.8436381+08:00;True|2024-03-20T13:14:26.0945194+08:00;</History> |
| | | </PropertyGroup> |
| | | </Project> |
| | |
| | | <TargetFramework>net6.0</TargetFramework> |
| | | <ImplicitUsings>enable</ImplicitUsings> |
| | | <Nullable>disable</Nullable> |
| | | <Version>3.0.0</Version> |
| | | <Version>3.0.1</Version> |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="Yw.Dto.Core" Version="3.0.1" /> |
| | | <PackageReference Include="Yw.Service.Unit.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.Dto.Core" Version="3.0.5" /> |
| | | <PackageReference Include="Yw.Service.Unit.Core" Version="3.0.1" /> |
| | | </ItemGroup> |
| | | |
| | | </Project> |
| | |
| | | /// <summary> |
| | | /// ç³»ç»åä½è¯è¨ |
| | | /// </summary> |
| | | public class SysUnitLang : BaseModel, System.ICloneable |
| | | public class SysUnitLang : BaseModel, ICode, ISorter, System.ICloneable |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | /// <summary> |
| | | /// ç³»ç»åä½ç±»å |
| | | /// </summary> |
| | | public class SysUnitType : BaseModel, System.ICloneable |
| | | public class SysUnitType : BaseModel, ICode, ISorter, System.ICloneable |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | /// <summary> |
| | | /// ç³»ç»åä½å¼ |
| | | /// </summary> |
| | | public class SysUnitValue : BaseModel, System.ICloneable |
| | | public class SysUnitValue : BaseModel, ICode, ISorter, System.ICloneable |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | /// æ°æ®åº |
| | | /// </summary> |
| | | public Paras_Unit_DataBase DataBase { get; set; } |
| | | |
| | | /// <summary> |
| | | /// CAL |
| | | /// </summary> |
| | | public Paras_Unit_CAL CAL { get; set; } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Settings |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Unit_CAL |
| | | { |
| | | /// <summary> |
| | | /// CALç±»å |
| | | /// </summary> |
| | | public string CALType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// HttpClient |
| | | /// </summary> |
| | | public Paras_Unit_CAL_HttpClient HttpClient { get; set; } |
| | | |
| | | /// <summary> |
| | | /// LocalClient |
| | | /// </summary> |
| | | public Paras_Unit_CAL_LocalClient LocalClient { get; set; } |
| | | |
| | | |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Settings |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Unit_CAL_HttpClient |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public string HttpUrl { get; set; } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Settings |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Unit_CAL_LocalClient |
| | | { |
| | | |
| | | } |
| | | } |
| | |
| | | --> |
| | | <Project> |
| | | <PropertyGroup> |
| | | <History>True|2024-03-24T07:57:00.6285019Z;True|2024-03-20T20:29:28.4545096+08:00;True|2024-03-20T11:57:05.1553144+08:00;True|2024-03-08T16:07:15.2641115+08:00;True|2024-01-21T14:04:10.1964644+08:00;True|2024-01-20T17:53:52.5924005+08:00;True|2024-01-20T12:18:53.6738460+08:00;True|2024-01-14T13:38:56.7132086+08:00;True|2023-12-02T14:19:36.0851107+08:00;True|2023-11-13T11:13:38.2876503+08:00;True|2023-11-07T15:26:15.8664916+08:00;True|2023-10-27T13:21:57.8245827+08:00;True|2023-10-21T18:15:57.8975745+08:00;True|2023-10-18T17:28:42.7347523+08:00;True|2023-09-15T12:08:33.6892307+08:00;True|2023-09-14T15:13:47.6095636+08:00;True|2023-08-21T13:08:28.2298969+08:00;True|2023-07-17T10:30:15.0370305+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-30T06:40:53.5629250Z;True|2024-03-24T15:57:00.6285019+08:00;True|2024-03-20T20:29:28.4545096+08:00;True|2024-03-20T11:57:05.1553144+08:00;True|2024-03-08T16:07:15.2641115+08:00;True|2024-01-21T14:04:10.1964644+08:00;True|2024-01-20T17:53:52.5924005+08:00;True|2024-01-20T12:18:53.6738460+08:00;True|2024-01-14T13:38:56.7132086+08:00;True|2023-12-02T14:19:36.0851107+08:00;True|2023-11-13T11:13:38.2876503+08:00;True|2023-11-07T15:26:15.8664916+08:00;True|2023-10-27T13:21:57.8245827+08:00;True|2023-10-21T18:15:57.8975745+08:00;True|2023-10-18T17:28:42.7347523+08:00;True|2023-09-15T12:08:33.6892307+08:00;True|2023-09-14T15:13:47.6095636+08:00;True|2023-08-21T13:08:28.2298969+08:00;True|2023-07-17T10:30:15.0370305+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>3.0.0</Version> |
| | | <Version>3.0.1</Version> |
| | | <Description>å¼ç¨å级</Description> |
| | | </PropertyGroup> |
| | | |
| | |
| | | <PackageReference Include="Yw.DAL.SQLite.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.DALFactory.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.DynamicExpresso.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.Service.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.Service.Core" Version="3.0.2" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | "SQLite": { |
| | | "ConnectString": "Data Source=yw_unit.db;" |
| | | } |
| | | }, |
| | | "CAL": { |
| | | "CALType": "HttpClient", //HttpClientãLocalClient |
| | | "HttpClient": { |
| | | "HttpUrl": "http://47.100.245.85:8190" |
| | | }, |
| | | "LocalClient": { |
| | | } |
| | | } |
| | | } |
| | | |