| | |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.1" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.10" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.1" /> |
| | | <PackageReference Include="WIDESEAWCS_QuartzJob" Version="2.1.0" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.10" /> |
| | | <PackageReference Include="WIDESEAWCS_QuartzJob" Version="3.0.9" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.1" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.10" /> |
| | | </ItemGroup> |
| | | |
| | | </Project> |
| | |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.1" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.10" /> |
| | | </ItemGroup> |
| | | |
| | | </Project> |
| | |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.1" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.10" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.1" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.10" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.1" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.10" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.1" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.10" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.1" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.10" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.1" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.10" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.1" /> |
| | | <PackageReference Include="WIDESEAWCS_Core" Version="1.0.6" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.10" /> |
| | | <PackageReference Include="WIDESEAWCS_Core" Version="1.0.24" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | {"MM":"1","LogTime":"2024-11-12"} |
| | | {"MM":"1","LogTime":"2025-05-21"} |
| | |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <Content Remove="wwwroot\WIDESEAWCS_DB.DBSeed.Json\Dt_DeviceInfo.tsv" /> |
| | | <Content Remove="wwwroot\WIDESEAWCS_DB.DBSeed.Json\Dt_DeviceProtocol.tsv" /> |
| | | <Content Remove="wwwroot\WIDESEAWCS_DB.DBSeed.Json\Dt_DeviceProtocolDetail.tsv" /> |
| | | <Content Remove="wwwroot\WIDESEAWCS_DB.DBSeed.Json\Dt_DispatchInfo.tsv" /> |
| | | <Content Remove="wwwroot\WIDESEAWCS_DB.DBSeed.Json\Dt_Router.tsv" /> |
| | | <Content Remove="wwwroot\WIDESEAWCS_DB.DBSeed.Json\Dt_Task.tsv" /> |
| | | <Content Remove="wwwroot\WIDESEAWCS_DB.DBSeed.Json\Dt_TaskExecuteDetail.tsv" /> |
| | | <Content Remove="wwwroot\WIDESEAWCS_DB.DBSeed.Json\Sys_Dictionary.tsv" /> |
| | |
| | | <ItemGroup> |
| | | <EmbeddedResource Include="index.html"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="wwwroot\WIDESEAWCS_DB.DBSeed.Json\Dt_DeviceInfo.tsv"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="wwwroot\WIDESEAWCS_DB.DBSeed.Json\Dt_DeviceProtocol.tsv"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="wwwroot\WIDESEAWCS_DB.DBSeed.Json\Dt_DeviceProtocolDetail.tsv"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="wwwroot\WIDESEAWCS_DB.DBSeed.Json\Dt_DispatchInfo.tsv"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="wwwroot\WIDESEAWCS_DB.DBSeed.Json\Dt_Router.tsv"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="wwwroot\WIDESEAWCS_DB.DBSeed.Json\Dt_Task.tsv"> |
| | | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| | |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.1" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.10" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | "AllowedHosts": "*", |
| | | "ConnectionStringsEncryption": false, |
| | | "MainDB": "DB_WIDESEA", //å½å项ç®ç主åºï¼æå¯¹åºçè¿æ¥å符串çEnabledå¿
须为true |
| | | //1.MySql |
| | | //2.SqlServer |
| | | //3.Sqlite |
| | | //4.Oracle |
| | | //5.PostgreSQL |
| | | "DBType": "SqlServer", //æ°æ®åºç±»å |
| | | //è¿æ¥å符串 |
| | | //"ConnectionString": "HTI6FB1H05Krd07mNm9yBCNhofW6edA5zLs9TY~MNthRYW3kn0qKbMIsGp~3yyPDF1YZUCPBQx8U0Jfk4PH~ajNFXVIwlH85M3F~v_qKYQ3CeAz3q1mLVDn8O5uWt1~3Ut2V3KRkEwYHvW2oMDN~QIDXPxDgXN0R2oTIhc9dNu7QNaLEknblqmHhjaNSSpERdDVZIgHnMKejU_SL49tralBkZmDNi0hmkbL~837j1NWe37u9fJKmv91QPb~16JsuI9uu0EvNZ06g6PuZfOSAeFH9GMMIZiketdcJG3tHelo=", |
| | | "ConnectionString": "Data Source=.;Initial Catalog=WIDESEAWCS_TEST;User ID=sa;Password=sa123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | "ConnectionString": "Data Source=.;Initial Catalog=WIDESEAWCS_ZH;User ID=sa;Password=P@ssw0rd;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //è·¨å |
| | | "Cors": { |
| | | "PolicyName": "CorsIpAccess", //çç¥åç§° |
| | |
| | | }, |
| | | |
| | | "WMS": "http://localhost:9290/api/Task/", |
| | | |
| | | "ApiName": "WIDESEA", |
| | | "ApiLogIgnore": "WIDESEAWCS", //忽ç¥çAPIåç§°ï¼å¤ä¸ªç¨éå·åé |
| | | "ApiName": "WIDESEAWCS", |
| | | "ExpMinutes": 120, |
| | | "QuartzJobAutoStart": true |
| | | "QuartzJobAutoStart": false,//æ¯å¦èªå¨å¯å¨Job |
| | | "LogDeubgEnable": true, //æ¯å¦è®°å½è°è¯æ¥å¿ |
| | | "PrintSql": true, //æå°SQLè¯å¥ |
| | | "LogAOPEnable": true, //æ¯å¦è®°å½AOPæ¥å¿ |
| | | "WebSocketEnable": true, //æ¯å¦å¼å¯WebSocketæå¡ |
| | | "WebSocketPort": 9296 //WebSocketæå¡ç«¯å£ |
| | | } |
| | |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.1" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.10" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.1" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.10" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.1" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.10" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.1" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.10" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.1" /> |
| | | <PackageReference Include="WIDESEAWCS_QuartzJob" Version="2.1.0" /> |
| | | <PackageReference Include="WIDESEAWCS_Communicator" Version="2.2.10" /> |
| | | <PackageReference Include="WIDESEAWCS_QuartzJob" Version="3.0.9" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | } |
| | | }, |
| | | { |
| | | name: "æ å¨ å® æ", |
| | | icon: '', |
| | | name: "宿任å¡", |
| | | icon: 'el-icon-check', |
| | | class: '', |
| | | type: 'success', |
| | | value: 'TaskHandCompleted', |
| | | onClick: function () { |
| | | } |
| | | }, |
| | | { |
| | | name: "å æ¶ ä»» å¡", |
| | | icon: '', |
| | | name: "åæ¶ä»»å¡", |
| | | icon: 'el-icon-delete', |
| | | class: '', |
| | | type: 'danger', |
| | | value: 'TaskHandCancel', |
| | | onClick: function () { |
| | | } |
| | |
| | | }, |
| | | onInit() { |
| | | //设置treetableçå¯ä¸å¼å段(è¿ä¸ªå段çå¼å¨è¡¨éé¢å¿
é¡»æ¯å¯ä¸ç) |
| | | this.rowKey="Role_Id"; |
| | | // this.rowKey="Role_Id"; |
| | | }, |
| | | /***å è½½åå°æ°æ®è§Sys_RoleController.csæä»¶***/ |
| | | loadTreeChildren(tree, treeNode, resolve) { //å è½½åèç¹ |
| | |
| | | if (TaskHandCancelBtn) { |
| | | TaskHandCancelBtn.onClick = function () { |
| | | let rows = this.$refs.table.getSelected(); |
| | | if (rows.length == 0) return this.$error("è¯·éæ©æ°æ®!"); |
| | | if (rows.length > 1) return this.$error("è¯·éæ©ä¸æ¡æ°æ®!"); |
| | | if (rows.length == 0) return this.$error("è¯·éæ©éè¦åæ¶ä»»å¡!"); |
| | | if (rows.length > 1) return this.$error("è¯·éæ©ä¸æ¡ä»»å¡!"); |
| | | var param = rows[0].taskNum; |
| | | this.http |
| | | .post("api/Task/TaskCancel?taskNum="+param, "æ°æ®å¤çä¸...") |
| | | .post("api/Task/TaskCancel?taskNum="+param, "ä»»å¡å¤çä¸...") |
| | | .then((x) => { |
| | | if (x.status) { |
| | | this.$Message.success('ä»»å¡åæ¶æå.'); |
| | | this.$Message.success('ä»»å¡åæ¶æå'); |
| | | this.refresh(); |
| | | } else { |
| | | return this.$error(x.message); |
| | |
| | | if (TaskHandCompletedBtn) { |
| | | TaskHandCompletedBtn.onClick = function () { |
| | | let rows = this.$refs.table.getSelected(); |
| | | if (rows.length == 0) return this.$error("è¯·éæ©æ°æ®!"); |
| | | if (rows.length > 1) return this.$error("è¯·éæ©ä¸æ¡æ°æ®!"); |
| | | if (rows.length == 0) return this.$error("è¯·éæ©éè¦å®æä»»å¡!"); |
| | | if (rows.length > 1) return this.$error("è¯·éæ©ä¸æ¡ä»»å¡!"); |
| | | var param = rows[0].taskNum; |
| | | this.http |
| | | .post("api/Task/TaskCompleted?taskNum="+param, "æ°æ®å¤çä¸...") |
| | | .post("api/Task/TaskCompleted?taskNum="+param, "ä»»å¡å¤çä¸...") |
| | | .then((x) => { |
| | | if (x.status) { |
| | | this.$Message.success('任塿å¨å®æ'); |
| | | this.$Message.success('ä»»å¡å®ææå'); |
| | | this.refresh(); |
| | | } else { |
| | | return this.$error(x.message); |
| | |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "areaType", |
| | | title: "åºåç±»å", |
| | | type: "decimal", |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | // { |
| | | // field: "areaType", |
| | | // title: "åºåç±»å", |
| | | // type: "decimal", |
| | | // width: 90, |
| | | // align: "left", |
| | | // }, |
| | | { |
| | | field: "areaStatus", |
| | | title: "åºåç¶æ", |
| | |
| | | field: "areaDes", |
| | | title: "åºåæè¿°", |
| | | type: "int", |
| | | width: 120, |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | field: "createDate", |
| | | title: "å建æ¶é´", |
| | | type: "datetime", |
| | | width: 160, |
| | | width: 120, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | |
| | | field: "modifier", |
| | | title: "ä¿®æ¹äºº", |
| | | type: "string", |
| | | width: 100, |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "modifyDate", |
| | | title: "ä¿®æ¹æ¶é´", |
| | | type: "datetime", |
| | | width: 160, |
| | | width: 120, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | { |
| | | field: "remark", |
| | | title: "夿³¨", |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | }, |
| | | // { |
| | | // field: "remark", |
| | | // title: "夿³¨", |
| | | // type: "string", |
| | | // width: 100, |
| | | // align: "left", |
| | | // }, |
| | | ]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "Remark", |
| | | title: "夿³¨", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "creater", |
| | | title: "å建人", |
| | | type: "string", |
| | |
| | | const editFormFields = ref({ |
| | | roadwayNo: "", |
| | | areaId: "", |
| | | enalbeStatus: "", |
| | | enableStatus: "", |
| | | deviceNo: "", |
| | | inStationCode: "", |
| | | inSCStationCode: "", |
| | |
| | | { |
| | | title: "ç¦ç¨ç¶æ", |
| | | required: true, |
| | | field: "enalbeStatus", |
| | | field: "enableStatus", |
| | | type: "select", |
| | | dataKey: "enableStatusEnum", |
| | | data: [], |
| | |
| | | [ |
| | | { title: "ä»åºç¼å·", field: "warehouseCode", type: "like" }, |
| | | { title: "ä»åºåç§°", field: "warehouseName", type: "like" }, |
| | | { title: "ä»åºç±»å", field: "warehouseType", type: "like" }, |
| | | // { title: "ä»åºç±»å", field: "warehouseType", type: "like" }, |
| | | { |
| | | title: "ä»åºç¶æ", |
| | | field: "warehouseStatus", |
| | |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "warehouseType", |
| | | title: "ä»åºç±»å", |
| | | type: "string", |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | // { |
| | | // field: "warehouseType", |
| | | // title: "ä»åºç±»å", |
| | | // type: "string", |
| | | // width: 150, |
| | | // align: "left", |
| | | // }, |
| | | { |
| | | field: "warehouseStatus", |
| | | title: "ä»åºç¶æ", |
| | |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "è§è²åç§°", field: "roleName", type: "text" }, |
| | | { title: "é¨é¨ID", field: "deptId", type: "text" }, |
| | | // { title: "é¨é¨ID", field: "deptId", type: "text" }, |
| | | { |
| | | dataKey: "enable", |
| | | data: [], |
| | |
| | | title: "é¨é¨ID", |
| | | type: "int", |
| | | width: 90, |
| | | // hidden: true, |
| | | hidden: true, |
| | | align: "left", |
| | | }, |
| | | // { |
| | |
| | | type: "cascader", |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | dataKey: "ç»ç»æºæ", |
| | | data: [], |
| | | title: "ç»ç»ææ¶", |
| | | field: "deptIds", |
| | | colSize: 12, |
| | | type: "treeSelect", |
| | | }, |
| | | ], |
| | | // [ |
| | | // { |
| | | // dataKey: "ç»ç»æºæ", |
| | | // data: [], |
| | | // title: "ç»ç»ææ¶", |
| | | // field: "deptIds", |
| | | // colSize: 12, |
| | | // type: "treeSelect", |
| | | // }, |
| | | // ], |
| | | [ |
| | | { |
| | | dataKey: "enable", |
| | |
| | | }, |
| | | ], |
| | | [{ title: "夿³¨", field: "remark", colSize: 12, type: "textarea" }], |
| | | [{ title: "头å", field: "headImageUrl", type: "img" }], |
| | | // [{ title: "头å", field: "headImageUrl", type: "img" }], |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | systemType: "0", |
| | |
| | | width: 80, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "headImageUrl", |
| | | title: "头å", |
| | | type: "img", |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | // { |
| | | // field: "headImageUrl", |
| | | // title: "头å", |
| | | // type: "img", |
| | | // width: 90, |
| | | // align: "left", |
| | | // }, |
| | | { |
| | | field: "dept_Id", |
| | | title: "ä¸ç¨", |
| | |
| | | { |
| | | locationInfo.Depth = 2; |
| | | } |
| | | locationInfo.LocationCode = $"R{initializationLocationDTO.Roadway.ToString().PadLeft(2, '0')}-{locationInfo.Row.ToString().PadLeft(3, '0')}-{locationInfo.Column.ToString().PadLeft(3, '0')}-{locationInfo.Layer.ToString().PadLeft(3, '0')}-{locationInfo.Depth.ToString().PadLeft(2, '0')}"; |
| | | locationInfo.LocationName = $"R{initializationLocationDTO.Roadway.ToString().PadLeft(2, '0')}å··é{locationInfo.Row.ToString().PadLeft(3, '0')}è¡{locationInfo.Column.ToString().PadLeft(3, '0')}å{locationInfo.Layer.ToString().PadLeft(3, '0')}å±{locationInfo.Depth.ToString().PadLeft(2, '0')}æ·±"; |
| | | locationInfo.LocationCode = $"{initializationLocationDTO.Roadway.ToString().PadLeft(2, '0')}-{locationInfo.Row.ToString().PadLeft(3, '0')}-{locationInfo.Column.ToString().PadLeft(3, '0')}-{locationInfo.Layer.ToString().PadLeft(3, '0')}-{locationInfo.Depth.ToString().PadLeft(2, '0')}"; |
| | | locationInfo.LocationName = $"{initializationLocationDTO.Roadway.ToString().PadLeft(2, '0')}å··é{locationInfo.Row.ToString().PadLeft(3, '0')}è¡{locationInfo.Column.ToString().PadLeft(3, '0')}å{locationInfo.Layer.ToString().PadLeft(3, '0')}å±{locationInfo.Depth.ToString().PadLeft(2, '0')}æ·±"; |
| | | } |
| | | |
| | | locationInfos.Add(locationInfo); |
| | |
| | | |
| | | public override WebResponseContent AddData(SaveModel saveModel) |
| | | { |
| | | saveModel.MainData["warehouseType"] = 1; |
| | | saveModel.MainData["warehouseStatus"] = 1; |
| | | Dt_Warehouse warehouse = saveModel.MainData.DicToModel<Dt_Warehouse>(); |
| | | return base.AddData(warehouse); |
| | | } |
| | |
| | | [ImporterHeader(Name = "å建è
")] |
| | | [ExporterHeader(DisplayName = "å建è
")] |
| | | [SugarColumn(IsNullable = false, Length = 50, IsOnlyIgnoreUpdate = true, ColumnDescription = "å建è
")] |
| | | public string Creater { get; set; } |
| | | public string Creater { get; set; } = "System"; |
| | | |
| | | /// <summary> |
| | | /// å建æ¶é´ |
| | |
| | | /// </summary> |
| | | [Description("å
¥åºä»»å¡å¼å¸¸")] |
| | | InException = 299, |
| | | |
| | | /// <summary> |
| | | /// æ°å»ºç§»åºä»»å¡ |
| | | /// </summary> |
| | | [Description("æ°å»ºç§»åºä»»å¡")] |
| | | RelocationNew = 300, |
| | | |
| | | /// <summary> |
| | | /// ç§»åºä»»å¡å®æ |
| | | /// </summary> |
| | | [Description("ç§»åºä»»å¡å®æ")] |
| | | RelocationFinish = 310, |
| | | |
| | | /// <summary> |
| | | /// ç§»åºä»»å¡æ§è¡ä¸ |
| | | /// </summary> |
| | | [Description("ç§»åºä»»å¡æ§è¡ä¸")] |
| | | RelocationExecuting = 320, |
| | | |
| | | /// <summary> |
| | | /// ç§»åºä»»å¡åæ¶ |
| | | /// </summary> |
| | | [Description("ç§»åºä»»å¡åæ¶")] |
| | | RelocationCancel = 330, |
| | | |
| | | /// <summary> |
| | | /// ç§»åºä»»å¡å¼å¸¸ |
| | | /// </summary> |
| | | [Description("ç§»åºä»»å¡å¼å¸¸")] |
| | | RelocationException = 340, |
| | | } |
| | | |
| | | #endregion å
¥åºä»»å¡ç¶æ |
| | | |
| | | #region åºåºä»»å¡ç¶æ |
| | | /// <summary> |
| | | /// åºåºä»»å¡ç¶æ |
| | | /// </summary> |
| | |
| | | [Description("åºåºä»»å¡å¼å¸¸")] |
| | | OutException = 199 |
| | | } |
| | | #endregion |
| | | |
| | | #region ç§»åºä»»å¡ç¶æ |
| | | public enum RelocationTaskStatusEnum |
| | | { |
| | | |
| | | /// <summary> |
| | | /// æ°å»ºç§»åºä»»å¡ |
| | | /// </summary> |
| | | [Description("æ°å»ºç§»åºä»»å¡")] |
| | | RelocationNew = 300, |
| | | |
| | | /// <summary> |
| | | /// ç§»åºä»»å¡æ§è¡ä¸ |
| | | /// </summary> |
| | | [Description("ç§»åºä»»å¡æ§è¡ä¸")] |
| | | RelocationExecuting = 310, |
| | | |
| | | /// <summary> |
| | | /// ç§»åºä»»å¡å®æ |
| | | /// </summary> |
| | | [Description("ç§»åºä»»å¡å®æ")] |
| | | RelocationFinish = 320, |
| | | |
| | | /// <summary> |
| | | /// ç§»åºä»»å¡åæ¶ |
| | | /// </summary> |
| | | [Description("ç§»åºä»»å¡åæ¶")] |
| | | RelocationCancel = 398, |
| | | |
| | | /// <summary> |
| | | /// ç§»åºä»»å¡å¼å¸¸ |
| | | /// </summary> |
| | | [Description("ç§»åºä»»å¡å¼å¸¸")] |
| | | RelocationException = 399, |
| | | } |
| | | #endregion |
| | | |
| | | #region AGVä»»å¡ç¶æ |
| | | public enum AGVTaskStatusEnum |
| | | { |
| | | /// <summary> |
| | | /// æ°å»º |
| | | /// </summary> |
| | | [Description("æ°å»º")] |
| | | AGV_New = 500, |
| | | |
| | | [Description("æ§è¡ä¸")] |
| | | /// <summary> |
| | | /// AGVæ§è¡ä¸ |
| | | /// </summary> |
| | | [Description("AGVæ§è¡ä¸")] |
| | | AGV_Executing = 510, |
| | | /// <summary> |
| | | /// AGV宿 |
| | | /// </summary> |
| | | [Description("AGV宿")] |
| | | AGV_Finish = 520, |
| | | |
| | | [Description("宿")] |
| | | AGV_Finish = 520 |
| | | } |
| | | /// <summary> |
| | | /// AGVä»»å¡åæ¶ |
| | | /// </summary> |
| | | [Description("AGVä»»å¡åæ¶")] |
| | | RelocationCancel = 598, |
| | | |
| | | /// <summary> |
| | | /// AGVä»»å¡å¼å¸¸ |
| | | /// </summary> |
| | | [Description("AGVä»»å¡å¼å¸¸")] |
| | | RelocationException = 599, |
| | | } |
| | | #endregion |
| | | } |
| | |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Core.BaseRepository; |
| | | using WIDESEA_DTO.System; |
| | | using WIDESEA_Model.Models; |
| | | using WIDESEA_Model.Models.System; |
| | | |
| | | namespace WIDESEA_ISystemRepository |
| | | { |
| | | public interface ISys_DictionaryRepository : IRepository<Sys_Dictionary> |
| | | { |
| | | IEnumerable<Sys_Dictionary> GetDictionaries(IEnumerable<string> dicNos, bool executeSql = true); |
| | | IEnumerable<VueDictionaryDTO> GetDictionaries(IEnumerable<string> dicNos, List<RoleNodes> roleNodes, bool executeSql = true); |
| | | } |
| | | } |
| | |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "åºå主é®")] |
| | | public int AreaId { get; set; } |
| | | |
| | | [SugarColumn(IsNullable = true, Length = 20, ColumnDescription = "è´§ä½ç¼å·")] |
| | | [SugarColumn(IsNullable = true, Length = 30, ColumnDescription = "è´§ä½ç¼å·")] |
| | | public string LocationCode { get; set; } |
| | | |
| | | [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "è´§ä½åç§°")] |
| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseRepository; |
| | | using WIDESEA_DTO.System; |
| | | using WIDESEA_ISystemRepository; |
| | | using WIDESEA_Model.Models; |
| | | using WIDESEA_Model.Models.System; |
| | | |
| | | namespace WIDESEA_SystemRepository |
| | | { |
| | | public class Sys_DictionaryRepository : RepositoryBase<Sys_Dictionary>, ISys_DictionaryRepository |
| | | { |
| | | |
| | | |
| | | |
| | | public Sys_DictionaryRepository(IUnitOfWorkManage unitOfWorkManage) : base(unitOfWorkManage) |
| | | { |
| | | |
| | | |
| | | } |
| | | |
| | | #region æ¥è¯¢æ°æ®åºselectæ¹æ³ |
| | | public class SourceKeyVaule |
| | | { |
| | | public int id { get; set; } |
| | | public int parentId { get; set; } |
| | | public string DicName { get; set; } |
| | | public int DicValue { get; set; } |
| | | } |
| | | public IEnumerable<VueDictionaryDTO> GetDictionaries(IEnumerable<string> dicNos, List<RoleNodes> roleNodes, bool executeSql = true) |
| | | { |
| | | List<Sys_Dictionary> Dictionaries = GetAllDictionary(); |
| | | List<VueDictionaryDTO> DictionaryDTO = new List<VueDictionaryDTO>(); |
| | | |
| | | |
| | | foreach (var item in Dictionaries.Where(x => dicNos.Contains(x.DicNo))) |
| | | { |
| | | VueDictionaryDTO dictionaryDTO = new VueDictionaryDTO(); |
| | | dictionaryDTO.DicNo = item.DicNo; |
| | | dictionaryDTO.Config = item.Config; |
| | | dictionaryDTO.Data = item.DicList.OrderByDescending(o => o.OrderNo).Select(list => new { key = list.DicValue, value = list.DicName }); |
| | | if (executeSql) |
| | | { |
| | | // 2020.05.01å¢å æ ¹æ®ç¨æ·ä¿¡æ¯å è½½åå
¸æ°æ®æºsql |
| | | string sql = item.Sql; |
| | | if (!string.IsNullOrEmpty(sql)) |
| | | { |
| | | dictionaryDTO.Data = item.DicNo == "tree_roles" ? |
| | | QueryRole(GetCustomDBSql(item.DicNo, sql, roleNodes)).OrderBy(x => x.id).Select(list => new { id = list.id, parentId = list.parentId, key = list.DicValue, value = list.DicName }) : Query(GetCustomDBSql(item.DicNo, sql, roleNodes)).OrderByDescending(o => o.OrderNo).Select(list => new { key = list.DicValue, value = list.DicName }); |
| | | } |
| | | } |
| | | DictionaryDTO.Add(dictionaryDTO); |
| | | } |
| | | return DictionaryDTO; |
| | | } |
| | | |
| | | List<SourceKeyVaule> QueryRole(string sql) |
| | | { |
| | | try |
| | | { |
| | | return base.QueryDynamicDataBySql(sql, null).Select(s => new SourceKeyVaule() |
| | | { |
| | | id = s.id, |
| | | parentId = s.parentId, |
| | | DicName = s.value, |
| | | DicValue = s.key |
| | | }).ToList(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return new List<SourceKeyVaule>(); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// è·åèªå®ä¹æ°æ®æºsql |
| | | /// </summary> |
| | | /// <param name="dicNo"></param> |
| | | /// <param name="originalSql"></param> |
| | | /// <returns></returns> |
| | | public static string GetCustomDBSql(string dicNo, string originalSql, List<RoleNodes> roleNodes) |
| | | { |
| | | switch (dicNo) |
| | | { |
| | | case "roles": |
| | | //2020.05.24å¢å ç»å®table表æ¶ï¼è·åææçè§è²å表 |
| | | //注æï¼å¦ææ¯2020.05.24ä¹åè·åçæ°æ®åºèæ¬ |
| | | //请å¨èåã䏿æ¡ç»å®è®¾ç½®ãæ·»å ä¸ä¸ªåå
¸ç¼å·ãt_rolesã,é¤äºåå
¸ç¼å·ï¼å
¶ä»å
容é便填å |
| | | case "t_roles": |
| | | case "tree_roles": |
| | | originalSql = GetRolesSql(originalSql, roleNodes); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | return originalSql; |
| | | } |
| | | /// <summary> |
| | | /// è·åè§£å³çæ°æ®æºï¼åªè½çå°èªå·±ä¸ä¸çº§ææè§è² |
| | | /// </summary> |
| | | /// <param name="context"></param> |
| | | /// <param name="originalSql"></param> |
| | | /// <returns></returns> |
| | | public static string GetRolesSql(string originalSql, List<RoleNodes> roleNodes) |
| | | { |
| | | if (App.User.IsSuperAdmin) |
| | | { |
| | | return originalSql; |
| | | } |
| | | |
| | | var RoleNodes = roleNodes.Where(x => x.Id == App.User.RoleId) |
| | | .Select(s => new RoleNodes() |
| | | { |
| | | Id = s.Id, |
| | | ParentId = 0,//å°èªå·±çè§è²ä½ä¸ºrootèç¹ |
| | | RoleName = s.RoleName |
| | | }).ToList(); |
| | | List<int> roleIds = roleNodes.Select(x => x.Id).ToList(); |
| | | //roleIds.Add(App.User.RoleId); |
| | | |
| | | return originalSql = $@"SELECT RoleId as 'key',RoleId AS id,ParentId AS parentId,RoleName as 'value' FROM Sys_Role |
| | | WHERE Enable=1 and RoleId in ({string.Join(',', roleIds)})"; |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | return new List<Sys_DictionaryList>(); |
| | | } |
| | | } |
| | | |
| | |
| | | { |
| | | private readonly IUnitOfWorkManage _unitOfWorkManage; |
| | | private readonly ICacheService _cacheService; |
| | | private readonly ISys_RoleService _sys_RoleService; |
| | | |
| | | public Sys_DictionaryService(ISys_DictionaryRepository BaseDal, IUnitOfWorkManage unitOfWorkManage, ICacheService cacheService) : base(BaseDal) |
| | | public Sys_DictionaryService(ISys_DictionaryRepository BaseDal, IUnitOfWorkManage unitOfWorkManage, ICacheService cacheService, ISys_RoleService sys_RoleService) : base(BaseDal) |
| | | { |
| | | _unitOfWorkManage = unitOfWorkManage; |
| | | _cacheService = cacheService; |
| | | _sys_RoleService = sys_RoleService; |
| | | } |
| | | |
| | | public ISys_DictionaryRepository Repository => BaseDal; |
| | |
| | | List<VueDictionaryDTO> vueDictionaryDTOs = new List<VueDictionaryDTO>(); |
| | | |
| | | List<string> cacheDicNos = new List<string>(); |
| | | #region æ¥è¯¢æ°æ®åºä¸ææ¡æ°æ® |
| | | if (dicNos.Where(x => !cacheDicNos.Contains(x)).Count() > 0) |
| | | { |
| | | var selectDics = BaseDal.GetDictionaries(dicNos.Where(x => !cacheDicNos.Contains(x)), _sys_RoleService.GetAllChildren(App.User.RoleId)); |
| | | |
| | | foreach (var item in selectDics) |
| | | { |
| | | if (!_cacheService.Exists(item.DicNo)) |
| | | { |
| | | vueDictionaryDTOs.Add(item); |
| | | } |
| | | else |
| | | { |
| | | VueDictionaryDTO? vueDictionary = JsonConvert.DeserializeObject<VueDictionaryDTO>(_cacheService.Get(item.DicNo)); |
| | | if (vueDictionary != null && vueDictionary.Data.ToJson() != item.Data.ToJson()) |
| | | { |
| | | vueDictionaryDTOs.Add(item); |
| | | _cacheService.AddOrUpdate(item.DicNo, item.Serialize()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | #endregion |
| | | foreach (string n in dicNos) |
| | | { |
| | | string str = _cacheService.Get(n); |
| | |
| | | { |
| | | VueDictionaryDTO? vueDictionary = JsonConvert.DeserializeObject<VueDictionaryDTO>(str); |
| | | |
| | | if (vueDictionary != null) |
| | | if (vueDictionary != null && vueDictionaryDTOs.Where(x => x.DicNo == vueDictionary.DicNo).FirstOrDefault() == null) |
| | | { |
| | | vueDictionaryDTOs.Add(vueDictionary); |
| | | cacheDicNos.Add(n); |
| | | } |
| | | } |
| | | } |
| | | if (dicNos.Where(x => !cacheDicNos.Contains(x)).Count() > 0) |
| | | { |
| | | List<VueDictionaryDTO> selectDics = BaseDal.GetDictionaries(dicNos.Where(x => !cacheDicNos.Contains(x))).Select(s => new VueDictionaryDTO |
| | | { |
| | | DicNo = s.DicNo, |
| | | Config = s.Config, |
| | | //dbSql = s.Sql, |
| | | Data = s.DicList.OrderByDescending(o => o.OrderNo).Select(list => new { key = list.DicValue, value = list.DicName }) |
| | | }).ToList(); |
| | | |
| | | foreach (var item in selectDics) |
| | | { |
| | | if (!_cacheService.Exists(item.DicNo)) |
| | | { |
| | | _cacheService.Add(item.DicNo, item.Serialize()); |
| | | } |
| | | } |
| | | vueDictionaryDTOs.AddRange(selectDics); |
| | | } |
| | | |
| | | //object GetSourceData(string dicNo, string dbSql, object data) |
| | | //{ |
| | | // if (string.IsNullOrEmpty(dbSql)) |
| | | // { |
| | | // return data; |
| | | // } |
| | | // return BaseDal.QueryObjectDataBySql(dbSql, null); |
| | | //} |
| | | //List<VueDictionaryDTO> vueDictionaryDTOs = dicConfig.Select(item => new VueDictionaryDTO |
| | | //{ |
| | | // DicNo = item.dicNo, |
| | | // Config = item.config, |
| | | // Data = GetSourceData(item.dicNo, item.dbSql, item.list) |
| | | //}).ToList(); |
| | | |
| | | try |
| | | { |
| | |
| | | |
| | | foreach (var item in dics) |
| | | { |
| | | if (dicList.Contains(item)) |
| | | cusDics.Add(item); |
| | | dicList.Remove(item); |
| | | cusDics.Add(item); |
| | | } |
| | | |
| | | foreach (var item in cusDics) |
| | |
| | | x.AuthValue = ""; |
| | | }); |
| | | //å°åæ¶çæé设置为"" |
| | | _RoleAuthRepository.UpdateData(delAuths); |
| | | _RoleAuthRepository.DeleteData(delAuths); |
| | | |
| | | int addCount = updateAuths.Where(x => x.AuthId <= 0).Count(); |
| | | int updateCount = updateAuths.Where(x => x.AuthId > 0).Count(); |
| | |
| | | Roadway = location.RoadwayNo, |
| | | SourceAddress = location.LocationCode, |
| | | TargetAddress = locationInfos.LocationCode, |
| | | TaskStatus = InTaskStatusEnum.RelocationNew.ObjToInt(), |
| | | TaskStatus = RelocationTaskStatusEnum.RelocationNew.ObjToInt(), |
| | | TaskType = TaskTypeEnum.Relocation.ObjToInt(), |
| | | Depth= location.Depth, |
| | | TaskNum = BaseDal.GetTaskNum(nameof(SequenceEnum.SeqTaskNum)) |
| | |
| | | } |
| | | else if (task.TaskType == TaskTypeEnum.Relocation.ObjToInt()) |
| | | { |
| | | task.TaskStatus = InTaskStatusEnum.RelocationExecuting.ObjToInt(); |
| | | task.TaskStatus = RelocationTaskStatusEnum.RelocationExecuting.ObjToInt(); |
| | | } |
| | | else |
| | | { |
| | |
| | | |
| | | _basicService.LocationInfoService.RelocationFree(locationEnd, task.TaskNum); |
| | | |
| | | task.TaskStatus = InTaskStatusEnum.RelocationFinish.ObjToInt(); |
| | | task.TaskStatus = RelocationTaskStatusEnum.RelocationFinish.ObjToInt(); |
| | | BaseDal.DeleteAndMoveIntoHty(task, App.User.UserId == 0 ? OperateType.èªå¨å®æ : OperateType.äººå·¥å®æ); |
| | | |
| | | _unitOfWorkManage.CommitTran(); |
| | |
| | | _basicService.LocationInfoService.RelocationFree(locationStart, task.TaskNum); |
| | | _basicService.LocationInfoService.Repository.UpdateData(locationEnd); |
| | | |
| | | task.TaskStatus = InTaskStatusEnum.RelocationCancel.ObjToInt(); |
| | | task.TaskStatus = RelocationTaskStatusEnum.RelocationCancel.ObjToInt(); |
| | | BaseDal.DeleteAndMoveIntoHty(task, App.User.UserId == 0 ? OperateType.èªå¨å®æ : OperateType.äººå·¥å®æ); |
| | | |
| | | _unitOfWorkManage.CommitTran(); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 2025/5/28 10:55:04.16 |
| | | 请æ±å¼å¸¸ |
| | | {"è¯·æ±æ¥æ":"","æ¥æ¶æ¥æ":"","é误":"ç±äºç®æ è®¡ç®æºç§¯ææç»ï¼æ æ³è¿æ¥ã [::ffff:127.0.0.1]:9291 (localhost:9291)"} |
| | | ------------------------------- |
| | | |
| | |
| | | "MainDB": "DB_WIDESEA", //å½å项ç®ç主åºï¼æå¯¹åºçè¿æ¥å符串çEnabledå¿
须为true |
| | | //è¿æ¥å符串 |
| | | //"ConnectionString": "HTI6FB1H05Krd07mNm9yBCNhofW6edA5zLs9TY~MNthRYW3kn0qKbMIsGp~3yyPDF1YZUCPBQx8U0Jfk4PH~ajNFXVIwlH85M3F~v_qKYQ3CeAz3q1mLVDn8O5uWt1~3Ut2V3KRkEwYHvW2oMDN~QIDXPxDgXN0R2oTIhc9dNu7QNaLEknblqmHhjaNSSpERdDVZIgHnMKejU_SL49tralBkZmDNi0hmkbL~837j1NWe37u9fJKmv91QPb~16JsuI9uu0EvNZ06g6PuZfOSAeFH9GMMIZiketdcJG3tHelo=", |
| | | "ConnectionString": "Data Source=.;Initial Catalog=WIDESEAWMS_TEST;User ID=sa;Password=sa123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | "ConnectionString": "Data Source=.;Initial Catalog=WIDESEAWMS_ZH;User ID=sa;Password=P@ssw0rd;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //è·¨å |
| | | "Cors": { |
| | | "PolicyName": "CorsIpAccess", //çç¥åç§° |