├── .gitattributes ├── .gitignore ├── .nuget ├── .tfignore ├── LICENSE ├── README.md ├── docs ├── OpenSource │ ├── AppImg │ │ ├── API1.png │ │ ├── API2.png │ │ ├── API3.png │ │ ├── PDA1.png │ │ ├── PDA2.png │ │ ├── PDA3.png │ │ ├── PDA4.png │ │ ├── PDA5.png │ │ ├── PDA6.png │ │ ├── PDA7.png │ │ ├── Web1.png │ │ ├── Web2.png │ │ ├── Web3.png │ │ ├── Web4.png │ │ ├── Web5.png │ │ └── Web6.png │ └── QQGroup1QrCode.png ├── 初始化文件 │ ├── ZEQP_WMS.sql │ └── 清空数据库.sql ├── 实施文档 │ └── WMS安装说明书.pdf └── 数据库设计 │ ├── Base_Table.pdm │ ├── Base_Table.sws │ └── WMS仓库管理系统.pdm └── src ├── CodeSpace.code-workspace ├── Coldairarrow.Api ├── .config │ └── dotnet-tools.json ├── 00Filter │ ├── BaseActionFilterAsync.cs │ ├── JWT校验 │ │ ├── CheckJWTAttribute.cs │ │ └── NoCheckJWTAttribute.cs │ ├── 全局错误过滤 │ │ └── GlobalExceptionFilter.cs │ ├── 参数校验 │ │ └── ValidFilterAttribute.cs │ ├── 对外接口签名校验 │ │ ├── CheckSignAttribute.cs │ │ └── IgnoreSignAttribute.cs │ ├── 接口权限 │ │ ├── ApiPermissionAttribute.cs │ │ └── NoApiPermissionAttribute.cs │ ├── 接口请求日志 │ │ └── ApiLogAttribute.cs │ └── 格式化返回结果 │ │ ├── FormatResponseAttribute.cs │ │ └── NoFormatResponseAttribute.cs ├── 01Middleware │ └── CorsMiddleware.cs ├── 05.Coldairarrow.Api.csproj ├── BuildCodeTemplate │ ├── Business.txt │ ├── Controller.txt │ ├── EditForm.txt │ ├── IBusiness.txt │ └── List.txt ├── Controllers │ ├── Base │ │ ├── Base_EnumController.cs │ │ ├── Base_EnumItemController.cs │ │ ├── Base_ParameterController.cs │ │ └── Base_UserStorController.cs │ ├── BaseApiController.cs │ ├── BaseController.cs │ ├── Base_Manage │ │ ├── Base_ActionController.cs │ │ ├── Base_AppSecretController.cs │ │ ├── Base_DbLinkController.cs │ │ ├── Base_DepartmentController.cs │ │ ├── Base_RoleController.cs │ │ ├── Base_UserController.cs │ │ ├── Base_UserController_partial.cs │ │ ├── Base_UserLogController.cs │ │ ├── BuildCodeController.cs │ │ ├── HomeController.cs │ │ └── UploadController.cs │ ├── IT │ │ ├── IT_LocalDetailController.cs │ │ ├── IT_LocalMaterialController.cs │ │ └── IT_RecordBookController.cs │ ├── PB │ │ ├── PB_AddressController.cs │ │ ├── PB_AddressController_Partial.cs │ │ ├── PB_AreaMaterialController.cs │ │ ├── PB_BarCodeController.cs │ │ ├── PB_BarCodeRuleController.cs │ │ ├── PB_BarCodeSerialController.cs │ │ ├── PB_BarCodeTypeController.cs │ │ ├── PB_CustomerController.cs │ │ ├── PB_CustomerController_Partial.cs │ │ ├── PB_EquipmentController.cs │ │ ├── PB_FeedPointController.cs │ │ ├── PB_LanewayController.cs │ │ ├── PB_LocalTrayController.cs │ │ ├── PB_LocationController.cs │ │ ├── PB_MaterialController.cs │ │ ├── PB_MaterialController_Partial.cs │ │ ├── PB_MaterialPointController.cs │ │ ├── PB_MaterialTypeController.cs │ │ ├── PB_MaterialTypeController_Partial.cs │ │ ├── PB_MeasureController.cs │ │ ├── PB_MeasureController_Partial.cs │ │ ├── PB_RackController.cs │ │ ├── PB_StorAreaController.cs │ │ ├── PB_StorAreaController_Partial.cs │ │ ├── PB_StorageController.cs │ │ ├── PB_SupplierController.cs │ │ ├── PB_SupplierController_Partial.cs │ │ ├── PB_TrayController.cs │ │ ├── PB_TrayMaterialController.cs │ │ ├── PB_TrayTypeController.cs │ │ └── PB_TrayZoneController.cs │ ├── PD │ │ └── PD_PlanController.cs │ ├── Report │ │ ├── IntroduceController.cs │ │ └── MaterialSummaryController.cs │ ├── TD │ │ ├── TD_AllocateController.cs │ │ ├── TD_AllocateDetailController.cs │ │ ├── TD_BadController.cs │ │ ├── TD_BadDetailController.cs │ │ ├── TD_CheckAreaController.cs │ │ ├── TD_CheckAreaController_Partial.cs │ │ ├── TD_CheckController.cs │ │ ├── TD_CheckController_Partial.cs │ │ ├── TD_CheckDataController.cs │ │ ├── TD_CheckDataController_Partial.cs │ │ ├── TD_CheckMaterialController.cs │ │ ├── TD_CheckMaterialController_Partial.cs │ │ ├── TD_InStorDetailController.cs │ │ ├── TD_InStorageController.cs │ │ ├── TD_MoveController.cs │ │ ├── TD_MoveDetailController.cs │ │ ├── TD_OutStorDetailController.cs │ │ ├── TD_OutStorageController.cs │ │ ├── TD_RecDetailController.cs │ │ ├── TD_ReceivingController.cs │ │ ├── TD_SendController.cs │ │ └── TD_SendDetailController.cs │ └── TestController.cs ├── Deploy.ps1 ├── DeployUbuntu.ps1 ├── Dockerfile ├── Program.cs ├── Properties │ ├── PublishProfiles │ │ ├── 114.115.162.100.pubxml │ │ ├── FolderProfile.pubxml │ │ ├── WMSAPI.pubxml │ │ └── zengzihan.pubxml │ └── launchSettings.json ├── Startup.cs ├── appsettings.Development.json ├── appsettings.Production.json ├── appsettings.json └── wwwroot │ └── Upload │ └── _.txt ├── Coldairarrow.Business ├── 04.Coldairarrow.Business.csproj ├── AOP │ ├── DataAddLogAttribute.cs │ ├── DataDeleteLogAttribute.cs │ ├── DataEditLogAttribute.cs │ ├── DataRepeatValidateAttribute.cs │ └── WriteDataLogAttribute.cs ├── Base │ ├── Base_EnumBusiness.cs │ ├── Base_EnumItemBusiness.cs │ ├── Base_ParameterBusiness.cs │ └── Base_UserStorBusiness.cs ├── BaseBusiness.T.cs ├── BaseBusiness.T.partial.cs ├── Base_Manage │ ├── Base_ActionBusiness.cs │ ├── Base_AppSecretBusiness.cs │ ├── Base_DbLinkBusiness.cs │ ├── Base_DepartmentBusiness.cs │ ├── Base_RoleBusiness.cs │ ├── Base_UserBusiness.cs │ ├── Base_UserBusiness_partial.cs │ ├── Base_UserLogBusiness.cs │ ├── BuildCodeBusiness.cs │ ├── HomeBusiness.cs │ └── PermissionBusiness.cs ├── Cache │ ├── BaseCache.T.cs │ ├── Base_UserCache.cs │ ├── IBaseCache.T.cs │ └── IBase_UserCache.cs ├── IT │ ├── IT_LocalDetailBusiness.cs │ ├── IT_LocalDetailBusiness_partial.cs │ ├── IT_LocalMaterialBusiness.cs │ ├── IT_LocalMaterialBusiness_Partial.cs │ ├── IT_RecordBookBusiness.cs │ └── IT_RecordBookBusiness_partial.cs ├── Operator.cs ├── PB │ ├── NoCheckJWTAttribute.cs │ ├── PB_AddressBusiness.cs │ ├── PB_AddressBusiness_Partial.cs │ ├── PB_AreaMaterialBusiness.cs │ ├── PB_AreaMaterialBusiness_partial.cs │ ├── PB_BarCodeBusiness.cs │ ├── PB_BarCodeRuleBusiness.cs │ ├── PB_BarCodeSerialBusiness.cs │ ├── PB_BarCodeSerialBusiness_partial.cs │ ├── PB_BarCodeTypeBusiness.cs │ ├── PB_BarCodeTypeBusiness_partial.cs │ ├── PB_CustomerBusiness.cs │ ├── PB_CustomerBusiness_Partial.cs │ ├── PB_EquipmentBusiness.cs │ ├── PB_FeedPointBusiness.cs │ ├── PB_FeedPointBusiness_partial.cs │ ├── PB_LanewayBusiness.cs │ ├── PB_LocalTrayBusiness.cs │ ├── PB_LocationBusiness.cs │ ├── PB_LocationBusiness_partial.cs │ ├── PB_MaterialBusiness.cs │ ├── PB_MaterialBusiness_partial.cs │ ├── PB_MaterialPointBusiness.cs │ ├── PB_MaterialPointBusiness_partial.cs │ ├── PB_MaterialTypeBusiness.cs │ ├── PB_MaterialTypeBusiness_Partial.cs │ ├── PB_MeasureBusiness.cs │ ├── PB_MeasureBusiness_Partial.cs │ ├── PB_RackBusiness.cs │ ├── PB_StorAreaBusiness.cs │ ├── PB_StorAreaBusiness_Partial.cs │ ├── PB_StorageBusiness.cs │ ├── PB_SupplierBusiness.cs │ ├── PB_SupplierBusiness_Partial.cs │ ├── PB_TrayBusiness.cs │ ├── PB_TrayBusiness_partial.cs │ ├── PB_TrayMaterialBusiness.cs │ ├── PB_TrayTypeBusiness.cs │ ├── PB_TrayTypeBusiness_partial.cs │ └── PB_TrayZoneBusiness.cs ├── PD │ └── PD_PlanBusiness.cs ├── Report │ ├── Report_IntroduceBusiness.cs │ └── Report_MaterialSummaryBussiness.cs └── TD │ ├── TD_AllocateBusiness.cs │ ├── TD_AllocateBusiness_partial.cs │ ├── TD_AllocateDetailBusiness.cs │ ├── TD_AllocateDetailBusiness_partial.cs │ ├── TD_BadBusiness.cs │ ├── TD_BadBusiness_partial.cs │ ├── TD_BadDetailBusiness.cs │ ├── TD_BadDetailBusiness_partial.cs │ ├── TD_CheckAreaBusiness.cs │ ├── TD_CheckAreaBusiness_Partial.cs │ ├── TD_CheckBusiness.cs │ ├── TD_CheckBusiness_Partial.cs │ ├── TD_CheckDataBusiness.cs │ ├── TD_CheckDataBusiness_Partial.cs │ ├── TD_CheckMaterialBusiness.cs │ ├── TD_CheckMaterialBusiness_Partial.cs │ ├── TD_InStorDetailBusiness.cs │ ├── TD_InStorDetailBusiness_partial.cs │ ├── TD_InStorageBusiness.cs │ ├── TD_InStorageBusiness_partial.cs │ ├── TD_MoveBusiness.cs │ ├── TD_MoveBusiness_partial.cs │ ├── TD_MoveDetailBusiness.cs │ ├── TD_MoveDetailBusiness_partial.cs │ ├── TD_OutStorDetailBusiness.cs │ ├── TD_OutStorDetailBusiness_partial.cs │ ├── TD_OutStorageBusiness.cs │ ├── TD_OutStorageBusiness_partial.cs │ ├── TD_RecDetailBusiness.cs │ ├── TD_RecDetailBusiness_partial.cs │ ├── TD_ReceivingBusiness.cs │ ├── TD_ReceivingBusiness_partial.cs │ ├── TD_SendBusiness.cs │ ├── TD_SendBusiness_partial.cs │ ├── TD_SendDetailBusiness.cs │ └── TD_SendDetailBusiness_partial.cs ├── Coldairarrow.Console ├── 06.Coldairarrow.Console.csproj ├── Program.cs ├── Properties │ └── PublishProfiles │ │ └── FolderProfile.pubxml ├── ServiceInstall │ ├── install.bat │ ├── nssm.exe │ └── uninstall.bat ├── appsettings.Development.json └── appsettings.json ├── Coldairarrow.Entity ├── 02.Coldairarrow.Entity.csproj ├── Base │ ├── Base_Enum.cs │ ├── Base_EnumItem.cs │ ├── Base_EnumItem_partial.cs │ ├── Base_Enum_partial.cs │ ├── Base_Parameter.cs │ └── Base_UserStor.cs ├── Base_Manage │ ├── Base_Action.cs │ ├── Base_AppSecret.cs │ ├── Base_DbLink.cs │ ├── Base_Department.cs │ ├── Base_Role.cs │ ├── Base_RoleAction.cs │ ├── Base_User.cs │ ├── Base_UserLog.cs │ └── Base_UserRole.cs ├── DTO │ ├── Base_UserDTO.cs │ └── Base_UserDTO_partial.cs ├── Enum │ ├── ActionType.cs │ └── RoleTypes.cs ├── IT │ ├── IT_LocalDetail.cs │ ├── IT_LocalDetail_partial.cs │ ├── IT_LocalMaterial.cs │ ├── IT_LocalMaterial_Partial.cs │ ├── IT_RecordBook.cs │ └── IT_RecordBook_Partial.cs ├── PB │ ├── PB_Address.cs │ ├── PB_AreaMaterial.cs │ ├── PB_AreaMaterial_partial.cs │ ├── PB_BarCode.cs │ ├── PB_BarCodeRule.cs │ ├── PB_BarCodeRule_partial.cs │ ├── PB_BarCodeSerial.cs │ ├── PB_BarCodeSerial_partial.cs │ ├── PB_BarCodeType.cs │ ├── PB_BarCodeType_partial.cs │ ├── PB_Customer.cs │ ├── PB_Equipment.cs │ ├── PB_FeedPoint.cs │ ├── PB_FeedPoint_partial.cs │ ├── PB_Laneway.cs │ ├── PB_LocalTray.cs │ ├── PB_LocalTray_Partial.cs │ ├── PB_Location.cs │ ├── PB_Location_Partial.cs │ ├── PB_Material.cs │ ├── PB_MaterialPoint.cs │ ├── PB_MaterialPoint_partial.cs │ ├── PB_MaterialType.cs │ ├── PB_Material_Partial.cs │ ├── PB_Measure.cs │ ├── PB_Rack.cs │ ├── PB_StorArea.cs │ ├── PB_Storage.cs │ ├── PB_Supplier.cs │ ├── PB_Tray.cs │ ├── PB_TrayMaterial.cs │ ├── PB_TrayType.cs │ └── PB_TrayZone.cs ├── PD │ ├── PD_Plan.cs │ └── PD_Plan_Partial.cs └── TD │ ├── TD_Allocate.cs │ ├── TD_AllocateDetail.cs │ ├── TD_AllocateDetail_partial.cs │ ├── TD_Allocate_partial.cs │ ├── TD_Bad.cs │ ├── TD_BadDetail.cs │ ├── TD_BadDetail_partial.cs │ ├── TD_Bad_partial.cs │ ├── TD_Check.cs │ ├── TD_CheckArea.cs │ ├── TD_CheckData.cs │ ├── TD_CheckData_Parital.cs │ ├── TD_CheckMaterial.cs │ ├── TD_CheckMaterial_Partial.cs │ ├── TD_Check_Parital.cs │ ├── TD_InStorDetail.cs │ ├── TD_InStorDetail_partial.cs │ ├── TD_InStorage.cs │ ├── TD_InStorage_partial.cs │ ├── TD_Move.cs │ ├── TD_MoveDetail.cs │ ├── TD_MoveDetail_partial.cs │ ├── TD_Move_partial.cs │ ├── TD_OutStorDetail.cs │ ├── TD_OutStorDetail_partial.cs │ ├── TD_OutStorage.cs │ ├── TD_OutStorage_Partial.cs │ ├── TD_RecDetail.cs │ ├── TD_RecDetail_partial.cs │ ├── TD_Receiving.cs │ ├── TD_Receiving_partial.cs │ ├── TD_Send.cs │ ├── TD_SendDetail.cs │ ├── TD_SendDetail_partial.cs │ └── TD_Send_partial.cs ├── Coldairarrow.IBusiness ├── 03.Coldairarrow.IBusiness.csproj ├── Base │ ├── IBase_EnumBusiness.cs │ ├── IBase_EnumItemBusiness.cs │ ├── IBase_ParameterBusiness.cs │ └── IBase_UserStorBusiness.cs ├── Base_Manage │ ├── IBase_ActionBusiness.cs │ ├── IBase_AppSecretBusiness.cs │ ├── IBase_DbLinkBusiness.cs │ ├── IBase_DepartmentBusiness.cs │ ├── IBase_RoleBusiness.cs │ ├── IBase_UserBusiness.cs │ ├── IBase_UserBusiness_partial.cs │ ├── IBase_UserLogBusiness.cs │ ├── IBuildCodeBusiness.cs │ ├── IHomeBusiness.cs │ └── IPermissionBusiness.cs ├── DTO │ ├── AuditDTO.cs │ ├── AutoInStorageByTary.cs │ ├── InAutoByTary.cs │ ├── ManualInStorage.cs │ ├── MaterialTypeTreeDTO.cs │ ├── OutAutoByTary.cs │ ├── PBAddressConditionDTO.cs │ ├── PBAreaMateriaConditionDTO.cs │ ├── PBCustomerCoditionDTO.cs │ ├── PBLocalTrayConditionDTO.cs │ ├── PBMaterialConditionDTO.cs │ ├── PBSupplierCoditionDTO.cs │ ├── PBTrayMateriaConditionDTO.cs │ ├── SelectQueryDTO.cs │ ├── TDCheckConditionDTO.cs │ ├── TDCheckDataConditionDTO.cs │ ├── TDCheckDataDTO.cs │ ├── TDCheckNumModifyDTO.cs │ ├── TDCheckQueryDTO.cs │ └── TraySelectQueryDTO.cs ├── IOperator.cs ├── IT │ ├── IIT_LocalDetailBusiness.cs │ ├── IIT_LocalDetailBusiness_partial.cs │ ├── IIT_LocalMaterialBusiness.cs │ ├── IIT_LocalMaterialBusiness_Partial.cs │ ├── IIT_RecordBookBusiness.cs │ └── IIT_RecordBookBusiness_partial.cs ├── PB │ ├── IPB_AddressBusiness.cs │ ├── IPB_AddressBusiness_Partial.cs │ ├── IPB_AreaMaterialBusiness.cs │ ├── IPB_AreaMaterialBusiness_partial.cs │ ├── IPB_BarCodeBusiness.cs │ ├── IPB_BarCodeRuleBusiness.cs │ ├── IPB_BarCodeSerialBusiness.cs │ ├── IPB_BarCodeSerialBusiness_partial.cs │ ├── IPB_BarCodeTypeBusiness.cs │ ├── IPB_BarCodeTypeBusiness_partial.cs │ ├── IPB_CustomerBusiness.cs │ ├── IPB_CustomerBusiness_Partial.cs │ ├── IPB_EquipmentBusiness.cs │ ├── IPB_FeedPointBusiness.cs │ ├── IPB_FeedPointBusiness_partial.cs │ ├── IPB_LanewayBusiness.cs │ ├── IPB_LocalTrayBusiness.cs │ ├── IPB_LocationBusiness.cs │ ├── IPB_LocationBusiness_partial.cs │ ├── IPB_MaterialBusiness.cs │ ├── IPB_MaterialBusiness_Partial.cs │ ├── IPB_MaterialPointBusiness.cs │ ├── IPB_MaterialPointBusiness_partial.cs │ ├── IPB_MaterialTypeBusiness.cs │ ├── IPB_MaterialTypeBusiness_Partial.cs │ ├── IPB_MeasureBusiness.cs │ ├── IPB_MeasureBusiness_Partial.cs │ ├── IPB_RackBusiness.cs │ ├── IPB_StorAreaBusiness.cs │ ├── IPB_StorAreaBusiness_Partial.cs │ ├── IPB_StorageBusiness.cs │ ├── IPB_SupplierBusiness.cs │ ├── IPB_SupplierBusiness_Partial.cs │ ├── IPB_TrayBusiness.cs │ ├── IPB_TrayBusiness_partial.cs │ ├── IPB_TrayMaterialBusiness.cs │ ├── IPB_TrayTypeBusiness.cs │ ├── IPB_TrayTypeBusiness_partial.cs │ └── IPB_TrayZoneBusiness.cs ├── PD │ ├── IPD_PlanBusiness.cs │ └── IPD_PlanBusiness_Partial.cs ├── Report │ ├── IReport_IntroduceBussiness.cs │ └── IReport_MaterialSummaryBussiness.cs └── TD │ ├── ITD_AllocateBusiness.cs │ ├── ITD_AllocateBusiness_partial.cs │ ├── ITD_AllocateDetailBusiness.cs │ ├── ITD_AllocateDetailBusiness_partial.cs │ ├── ITD_BadBusiness.cs │ ├── ITD_BadBusiness_partial.cs │ ├── ITD_BadDetailBusiness.cs │ ├── ITD_BadDetailBusiness_partial.cs │ ├── ITD_CheckAreaBusiness.cs │ ├── ITD_CheckAreaBusiness_Partial.cs │ ├── ITD_CheckBusiness.cs │ ├── ITD_CheckBusiness_Partial.cs │ ├── ITD_CheckDataBusiness.cs │ ├── ITD_CheckDataBusiness_Partial.cs │ ├── ITD_CheckMaterialBusiness.cs │ ├── ITD_CheckMaterialBusiness_Partial.cs │ ├── ITD_InStorDetailBusiness.cs │ ├── ITD_InStorDetailBusiness_partial.cs │ ├── ITD_InStorageBusiness.cs │ ├── ITD_InStorageBusiness_partial.cs │ ├── ITD_MoveBusiness.cs │ ├── ITD_MoveBusiness_partial.cs │ ├── ITD_MoveDetailBusiness.cs │ ├── ITD_MoveDetailBusiness_partial.cs │ ├── ITD_OutStorDetailBusiness.cs │ ├── ITD_OutStorDetailBusiness_partial.cs │ ├── ITD_OutStorageBusiness.cs │ ├── ITD_OutStorageBusiness_partial.cs │ ├── ITD_RecDetailBusiness.cs │ ├── ITD_RecDetailBusiness_partial.cs │ ├── ITD_ReceivingBusiness.cs │ ├── ITD_ReceivingBusiness_partial.cs │ ├── ITD_SendBusiness.cs │ ├── ITD_SendBusiness_partial.cs │ ├── ITD_SendDetailBusiness.cs │ └── ITD_SendDetailBusiness_partial.cs ├── Coldairarrow.Pad ├── .env ├── .env.docker ├── .env.live ├── .gitignore ├── Deploy.ps1 ├── README.md ├── babel.config.js ├── package-lock.json ├── package.json ├── public │ ├── Dockerfile │ ├── Web.config │ ├── default.conf │ ├── favicon.ico │ ├── favicon.png │ ├── index.html │ └── loading │ │ ├── loading.css │ │ ├── loading.html │ │ └── option2 │ │ ├── html_code_segment.html │ │ ├── loading.css │ │ └── loading.svg └── src │ ├── App.vue │ ├── api │ ├── Home │ │ └── UserSvc.js │ ├── PB │ │ ├── EnumSvc.js │ │ ├── LocalSvc.js │ │ ├── MaterialSvc.js │ │ ├── PlanSvc.js │ │ ├── StorageSvc.js │ │ └── TraySvc.js │ ├── Report │ │ └── LocalMaterialSvc.js │ └── TD │ │ ├── InStorageSvc.js │ │ ├── OutStorageSvc.js │ │ ├── ReceiveSvc.js │ │ └── SendSvc.js │ ├── assets │ ├── logo.png │ └── logo.svg │ ├── components │ ├── BarcodeReader.vue │ ├── BaseEnumName.vue │ ├── BaseEnumSelect.vue │ ├── HelloWorld.vue │ ├── InputBarcode.vue │ ├── InputLocation.vue │ ├── InputMaterial.vue │ ├── InputTray.vue │ ├── LocalChoose.vue │ ├── MaterialChoose.vue │ ├── StorageSwitch.vue │ ├── TrayChoose.vue │ └── UserMenu.vue │ ├── config.js │ ├── layouts │ ├── BaseLayout.vue │ └── UserLayout.vue │ ├── main.js │ ├── router.js │ ├── utils │ ├── TokenCache.js │ └── axios-plugin.js │ └── views │ ├── Home │ ├── Index.vue │ ├── Login.vue │ └── Test.vue │ ├── InStorage │ ├── AutoIn.vue │ ├── Detail.vue │ ├── InBlankTray.vue │ ├── InManualTray.vue │ ├── List.vue │ ├── ManualIn.vue │ ├── Receive.vue │ ├── ReceiveDetail.vue │ └── ReceiveList.vue │ ├── OutStorage │ ├── AutoOut.vue │ ├── Detail.vue │ ├── List.vue │ ├── ManualOut.vue │ ├── OutBlankTray.vue │ ├── OutManualTray.vue │ ├── Send.vue │ ├── SendDetail.vue │ └── SendList.vue │ ├── PB │ ├── LocalList.vue │ ├── MaterialDetail.vue │ ├── MaterialList.vue │ ├── PlanDetail.vue │ ├── PlanList.vue │ └── TrayList.vue │ └── Report │ └── LocalMaterialReport.vue ├── Coldairarrow.UnitTests ├── 10.Coldairarrow.UnitTests.csproj ├── BaseTest.cs ├── DemoTest.cs ├── appsettings.Development.json └── appsettings.json ├── Coldairarrow.Util ├── 01.Coldairarrow.Util.csproj ├── AOP │ ├── Abstraction │ │ ├── BaseAOPAttribute.cs │ │ ├── CastleAOPContext.cs │ │ ├── CastleInterceptor.cs │ │ └── IAOPContext.cs │ └── TransactionalAttribute.cs ├── ClassLibrary │ ├── BloomFilter.cs │ ├── ConsistentHash.cs │ ├── MurmurHash2.cs │ ├── ParentChildrenMapping.cs │ ├── ShareMemory.cs │ ├── TaskQeury.cs │ └── UsingLock.cs ├── DI │ ├── IScopeDependency.cs │ ├── ISingletonDependency.cs │ └── ITransientDependency.cs ├── DataAccess │ ├── DbHelper.cs │ ├── DbHelperFactory.cs │ ├── DbProviderFactoryHelper.cs │ ├── MySqlHelper.cs │ ├── OracleHelper.cs │ ├── PostgreSqlHelper.cs │ └── SqlServerHelper.cs ├── Extention │ ├── Extention.ActionExecutingContext.cs │ ├── Extention.Byte.cs │ ├── Extention.DataTable.cs │ ├── Extention.DateTime.cs │ ├── Extention.Delegate.cs │ ├── Extention.Enum.cs │ ├── Extention.ExpandoObject.cs │ ├── Extention.Expression.cs │ ├── Extention.Guid.cs │ ├── Extention.HttpRequest.cs │ ├── Extention.IEnumerable.cs │ ├── Extention.IHostBuilder.cs │ ├── Extention.IQueryable.cs │ ├── Extention.IServiceCollection.cs │ ├── Extention.Int.cs │ ├── Extention.Json.cs │ ├── Extention.Object.cs │ ├── Extention.Stream.cs │ └── Extention.String.cs ├── GlobalData.cs ├── Helper │ ├── AsposeOfficeHelper.cs │ ├── AsyncHelper.cs │ ├── BaiduApiHelper.cs │ ├── ConfigHelper.cs │ ├── DbSearchHelper.cs │ ├── DelegateHelper.cs │ ├── EncodingHelper.cs │ ├── EnumHelper.cs │ ├── ExceptionHelper.cs │ ├── FileHelper.cs │ ├── FileZipHelper.cs │ ├── GuidHelper.cs │ ├── HttpClientHelper.cs │ ├── HttpHelper.cs │ ├── ImgHelper.cs │ ├── ImgVerifyCodeHelper.cs │ ├── IpHelper.cs │ ├── JWTHelper.cs │ ├── JobHelper.cs │ ├── LinqHelper.cs │ ├── LogHelper.cs │ ├── LoopHelper.cs │ ├── PathHelper.cs │ ├── QRCodeHelper.cs │ ├── RandomHelper.cs │ ├── TreeHelper.cs │ ├── TypeBuilderHelper.cs │ └── XmlHelper.cs ├── Primitives │ ├── AjaxResult.T.cs │ ├── AjaxResult.cs │ ├── BusException.cs │ ├── CacheType.cs │ ├── ConditionDTO.cs │ ├── DbTableInfo.cs │ ├── DeleteMode.cs │ ├── DynamicModel.cs │ ├── ErrorResult.cs │ ├── FileEntry.cs │ ├── IdInputDTO.cs │ ├── JWTPayload.cs │ ├── LogType.cs │ ├── MapAttribute.cs │ ├── OptionListInputDTO.cs │ ├── PageInput.T.cs │ ├── PageInput.cs │ ├── PageResult.cs │ ├── SelectOption.cs │ ├── TableInfo.cs │ └── TreeModel.cs └── lib │ └── Aspose.Cells.dll ├── Coldairarrow.Web ├── .editorconfig ├── .env ├── .env.docker ├── .env.live ├── .env.preview ├── .gitattributes ├── .gitignore ├── .prettierrc ├── .travis.yml ├── Deploy.ps1 ├── LICENSE ├── babel.config.js ├── config │ └── plugin.config.js ├── jest.config.js ├── jsconfig.json ├── package-lock.json ├── package.json ├── public │ ├── Dockerfile │ ├── Web.config │ ├── avatar2.jpg │ ├── color.less │ ├── default.conf │ ├── favicon.ico │ ├── index.html │ ├── loading │ │ ├── loading.css │ │ ├── loading.html │ │ └── option2 │ │ │ ├── html_code_segment.html │ │ │ ├── loading.css │ │ │ └── loading.svg │ └── logo.png ├── src │ ├── App.vue │ ├── assets │ │ ├── antLogo.svg │ │ ├── background.svg │ │ ├── fullLogo.png │ │ ├── icons │ │ │ └── bx-analyse.svg │ │ ├── logo.png │ │ ├── logo.svg │ │ └── zeqp.gif │ ├── components │ │ ├── BaseEnum │ │ │ ├── BaseEnumName.vue │ │ │ └── BaseEnumSelect.vue │ │ ├── CSelect │ │ │ └── CSelect.vue │ │ ├── CUploadFile │ │ │ └── CUploadFile.vue │ │ ├── CUploadImg │ │ │ └── CUploadImg.vue │ │ ├── ChartCard │ │ │ ├── ChartCard.vue │ │ │ └── Trend.vue │ │ ├── EditableCell │ │ │ └── EditableCell.vue │ │ ├── Exception │ │ │ ├── ExceptionPage.vue │ │ │ ├── index.js │ │ │ └── type.js │ │ ├── GlobalFooter │ │ │ ├── GlobalFooter.vue │ │ │ └── index.js │ │ ├── GlobalHeader │ │ │ ├── GlobalHeader.vue │ │ │ └── index.js │ │ ├── IT │ │ │ ├── LocalMaterialChoose.vue │ │ │ └── LocalMaterialSelect.vue │ │ ├── IconSelector │ │ │ ├── IconSelector.vue │ │ │ ├── README.md │ │ │ ├── icons.js │ │ │ └── index.js │ │ ├── Location │ │ │ ├── LocationChoose.vue │ │ │ ├── LocationSelect.vue │ │ │ └── LocationSelect_Old.vue │ │ ├── Material │ │ │ ├── MaterialChoose.vue │ │ │ └── MaterialSelect.vue │ │ ├── Menu │ │ │ ├── SideMenu.vue │ │ │ ├── index.js │ │ │ ├── menu.js │ │ │ └── menu.render.js │ │ ├── MultiTab │ │ │ ├── MultiTab.vue │ │ │ ├── index.js │ │ │ └── index.less │ │ ├── NoticeIcon │ │ │ ├── NoticeIcon.vue │ │ │ └── index.js │ │ ├── PB │ │ │ ├── CustomerChoose.vue │ │ │ ├── CustomerSelect.vue │ │ │ ├── LeadingShow.vue │ │ │ ├── MaterialTypeSelect.vue │ │ │ ├── MeasureSelect.vue │ │ │ ├── StorAreaSelect.vue │ │ │ ├── StorAreaShow.vue │ │ │ ├── SupplierChoose.vue │ │ │ └── SupplierSelect.vue │ │ ├── PageHeader │ │ │ ├── PageHeader.vue │ │ │ └── index.js │ │ ├── SettingDrawer │ │ │ ├── SettingDrawer.vue │ │ │ ├── SettingItem.vue │ │ │ ├── index.js │ │ │ ├── settingConfig.js │ │ │ └── themeColor.js │ │ ├── Storage │ │ │ ├── AllStorageSelect.vue │ │ │ ├── AreaSelect.vue │ │ │ ├── LanewaySelect.vue │ │ │ ├── RackSelect.vue │ │ │ ├── StorageSelect.vue │ │ │ └── StorageSwitch.vue │ │ ├── Tray │ │ │ ├── TrayChoose.vue │ │ │ ├── TraySelect.vue │ │ │ ├── TraySelect_Old.vue │ │ │ └── ZoneSelect.vue │ │ ├── User │ │ │ └── UserSelect.vue │ │ ├── WangEditor │ │ │ └── WangEditor.vue │ │ ├── _util │ │ │ └── util.js │ │ ├── global.less │ │ ├── index.js │ │ ├── index.less │ │ └── tools │ │ │ ├── Breadcrumb.vue │ │ │ ├── ChangePwdForm.vue │ │ │ ├── DetailList.vue │ │ │ ├── HeadInfo.vue │ │ │ ├── Logo.vue │ │ │ ├── TwoStepCaptcha.vue │ │ │ ├── UserMenu.vue │ │ │ └── index.js │ ├── config │ │ ├── defaultSettings.js │ │ └── router.config.js │ ├── core │ │ ├── bootstrap.js │ │ ├── directives │ │ │ └── action.js │ │ ├── icons.js │ │ ├── lazy_lib │ │ │ └── components_use.js │ │ ├── lazy_use.js │ │ └── use.js │ ├── layouts │ │ ├── BasicLayout.vue │ │ ├── BlankLayout.vue │ │ ├── PageView.vue │ │ ├── RouteView.vue │ │ ├── UserLayout.vue │ │ └── index.js │ ├── main.js │ ├── permission.js │ ├── router │ │ ├── README.md │ │ └── index.js │ ├── store │ │ ├── getters.js │ │ ├── index.js │ │ ├── modules │ │ │ └── app.js │ │ └── mutation-types.js │ ├── utils │ │ ├── cache │ │ │ ├── OperatorCache.js │ │ │ ├── ParameterCache.js │ │ │ └── TokenCache.js │ │ ├── device.js │ │ ├── domUtil.js │ │ ├── filter.js │ │ ├── helper │ │ │ ├── ProcessHelper.js │ │ │ ├── TreeHelper.js │ │ │ └── TypeHelper.js │ │ ├── mixin.js │ │ ├── plugin │ │ │ ├── axios-plugin.js │ │ │ ├── operator-plugin.js │ │ │ └── parameter-plugin.js │ │ ├── routerUtil.js │ │ ├── util.js │ │ └── utils.less │ └── views │ │ ├── Base │ │ ├── Base_Enum │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── Base_EnumItem │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── Base_Parameter │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ └── Base_UserStor │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── Base_Manage │ │ ├── Base_Action │ │ │ ├── EditForm.vue │ │ │ ├── List.vue │ │ │ └── PermissionList.vue │ │ ├── Base_AppSecret │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── Base_DbLink │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── Base_Department │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── Base_Role │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── Base_User │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── Base_UserLog │ │ │ └── List.vue │ │ └── BuildCode │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── Develop │ │ ├── Editor.vue │ │ ├── IconSelectorView.vue │ │ ├── SelectSearch.vue │ │ ├── UploadFile.vue │ │ └── UploadImg.vue │ │ ├── Home │ │ ├── Introduce.vue │ │ ├── Login.vue │ │ └── Statis.vue │ │ ├── IT │ │ ├── IT_LocalDetail │ │ │ └── List.vue │ │ ├── IT_LocalMaterial │ │ │ └── List.vue │ │ └── IT_RecordBook │ │ │ └── List.vue │ │ ├── PB │ │ ├── PB_Address │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_AreaMaterial │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_BarCode │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_BarCodeRule │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_BarCodeType │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_Customer │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_Equipment │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_FeedPoint │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_Laneway │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_LocalTray │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_LocalTrayType │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_Location │ │ │ ├── EditForm.vue │ │ │ ├── LeadingForm.vue │ │ │ └── List.vue │ │ ├── PB_Material │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_MaterialPoint │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_MaterialType │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_Measure │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_Rack │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_StorArea │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_Storage │ │ │ ├── ConfigFrom.vue │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_Supplier │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_Tray │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_TrayMaterial │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PB_TrayType │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ └── PB_TrayZone │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── PD │ │ └── PD_Plan │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── Report │ │ ├── InStorage │ │ │ └── Report.vue │ │ ├── MaterialSummary │ │ │ └── Report.vue │ │ └── OutStorage │ │ │ └── Report.vue │ │ ├── TD │ │ ├── TD_Allocate │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── TD_AllocateDetail │ │ │ ├── AllocateChoose.vue │ │ │ └── List.vue │ │ ├── TD_Bad │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── TD_BadDetail │ │ │ ├── BadChoose.vue │ │ │ └── List.vue │ │ ├── TD_Check │ │ │ ├── Audite.vue │ │ │ ├── Check.vue │ │ │ ├── CheckDataList.vue │ │ │ ├── EditForm.vue │ │ │ ├── List.vue │ │ │ ├── MaterialList.vue │ │ │ ├── RandomMaterial.vue │ │ │ └── Show.vue │ │ ├── TD_CheckArea │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── TD_CheckData │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── TD_CheckMaterial │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── TD_InStorDetail │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── TD_InStorage │ │ │ ├── EditForm.vue │ │ │ ├── InBlankTray.vue │ │ │ └── List.vue │ │ ├── TD_Move │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── TD_MoveDetail │ │ │ ├── List.vue │ │ │ └── MoveChoose.vue │ │ ├── TD_OutStorDetail │ │ │ ├── List.vue │ │ │ └── LocalMaterialList.vue │ │ ├── TD_OutStorage │ │ │ ├── EditForm.vue │ │ │ ├── List.vue │ │ │ └── OutBlankTray.vue │ │ ├── TD_RecDetail │ │ │ └── List.vue │ │ ├── TD_Receiving │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ ├── TD_Send │ │ │ ├── EditForm.vue │ │ │ └── List.vue │ │ └── TD_SendDetail │ │ │ ├── List.vue │ │ │ └── SendMaterialList.vue │ │ └── exception │ │ ├── 403.vue │ │ ├── 404.vue │ │ └── 500.vue ├── tests │ └── unit │ │ └── .eslintrc.js ├── vue.config.js ├── webstorm.config.js └── yarn.lock ├── Deploy.ps1 ├── DeployIIS.ps1 ├── DeployUbuntu.ps1 ├── ZEQP.WMS.sln └── clear.bat /.nuget: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.tfignore: -------------------------------------------------------------------------------- 1 | \packages 2 | !\packages\repositories.config -------------------------------------------------------------------------------- /docs/OpenSource/AppImg/API1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/docs/OpenSource/AppImg/API1.png -------------------------------------------------------------------------------- /docs/OpenSource/AppImg/API2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/docs/OpenSource/AppImg/API2.png -------------------------------------------------------------------------------- /docs/OpenSource/AppImg/API3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/docs/OpenSource/AppImg/API3.png -------------------------------------------------------------------------------- /docs/OpenSource/AppImg/PDA1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/docs/OpenSource/AppImg/PDA1.png -------------------------------------------------------------------------------- /docs/OpenSource/AppImg/PDA2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/docs/OpenSource/AppImg/PDA2.png -------------------------------------------------------------------------------- /docs/OpenSource/AppImg/PDA3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/docs/OpenSource/AppImg/PDA3.png -------------------------------------------------------------------------------- /docs/OpenSource/AppImg/PDA4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/docs/OpenSource/AppImg/PDA4.png -------------------------------------------------------------------------------- /docs/OpenSource/AppImg/PDA5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/docs/OpenSource/AppImg/PDA5.png -------------------------------------------------------------------------------- /docs/OpenSource/AppImg/PDA6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/docs/OpenSource/AppImg/PDA6.png -------------------------------------------------------------------------------- /docs/OpenSource/AppImg/PDA7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/docs/OpenSource/AppImg/PDA7.png -------------------------------------------------------------------------------- /docs/OpenSource/AppImg/Web1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/docs/OpenSource/AppImg/Web1.png -------------------------------------------------------------------------------- /docs/OpenSource/AppImg/Web2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/docs/OpenSource/AppImg/Web2.png -------------------------------------------------------------------------------- /docs/OpenSource/AppImg/Web3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/docs/OpenSource/AppImg/Web3.png -------------------------------------------------------------------------------- /docs/OpenSource/AppImg/Web4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/docs/OpenSource/AppImg/Web4.png -------------------------------------------------------------------------------- /docs/OpenSource/AppImg/Web5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/docs/OpenSource/AppImg/Web5.png -------------------------------------------------------------------------------- /docs/OpenSource/AppImg/Web6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/docs/OpenSource/AppImg/Web6.png -------------------------------------------------------------------------------- /docs/OpenSource/QQGroup1QrCode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/docs/OpenSource/QQGroup1QrCode.png -------------------------------------------------------------------------------- /docs/实施文档/WMS安装说明书.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/docs/实施文档/WMS安装说明书.pdf -------------------------------------------------------------------------------- /docs/数据库设计/Base_Table.sws: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/CodeSpace.code-workspace: -------------------------------------------------------------------------------- 1 | { 2 | "folders": [ 3 | { 4 | "path": "Coldairarrow.Web" 5 | }, 6 | { 7 | "path": "Coldairarrow.Pad" 8 | } 9 | ] 10 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Api/.config/dotnet-tools.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "isRoot": true, 4 | "tools": { 5 | "dotnet-ef": { 6 | "version": "3.1.5", 7 | "commands": [ 8 | "dotnet-ef" 9 | ] 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Api/00Filter/JWT校验/NoCheckJWTAttribute.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Api 2 | { 3 | /// 4 | /// 忽略JWT校验 5 | /// 6 | public class NoCheckJWTAttribute : BaseActionFilterAsync 7 | { 8 | 9 | } 10 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Api/00Filter/参数校验/ValidFilterAttribute.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Mvc.Filters; 2 | using System.Linq; 3 | using System.Threading.Tasks; 4 | 5 | namespace Coldairarrow.Api 6 | { 7 | public class ValidFilterAttribute : BaseActionFilterAsync 8 | { 9 | public override async Task OnActionExecuting(ActionExecutingContext context) 10 | { 11 | if (!context.ModelState.IsValid) 12 | { 13 | var msgList = context.ModelState.Values.SelectMany(x => x.Errors).Select(x => x.ErrorMessage); 14 | 15 | context.Result = Error(string.Join(",", msgList)); 16 | } 17 | 18 | await Task.CompletedTask; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Coldairarrow.Api/00Filter/对外接口签名校验/IgnoreSignAttribute.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Api 2 | { 3 | /// 4 | /// 忽略接口签名校验 5 | /// 6 | public class IgnoreSignAttribute : BaseActionFilterAsync 7 | { 8 | 9 | } 10 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Api/00Filter/接口权限/NoApiPermissionAttribute.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Api 2 | { 3 | /// 4 | /// 忽略接口权限校验 5 | /// 6 | public class NoApiPermissionAttribute : BaseActionFilterAsync 7 | { 8 | 9 | } 10 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Api/00Filter/格式化返回结果/NoFormatResponseAttribute.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Mvc.Filters; 2 | using System; 3 | 4 | namespace Coldairarrow.Api 5 | { 6 | /// 7 | /// 返回结果不进行格式化 8 | /// 9 | public class NoFormatResponseAttribute : Attribute, IActionFilter 10 | { 11 | /// 12 | /// Action执行之前执行 13 | /// 14 | /// 过滤器上下文 15 | public void OnActionExecuting(ActionExecutingContext context) 16 | { 17 | 18 | } 19 | 20 | /// 21 | /// Action执行完毕之后执行 22 | /// 23 | /// 24 | public void OnActionExecuted(ActionExecutedContext context) 25 | { 26 | 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Api/BuildCodeTemplate/IBusiness.txt: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.%areaName%; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.%areaName% 7 | { 8 | public partial interface I%entityName%Business 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task<%entityName%> GetTheDataAsync(string id); 12 | Task AddDataAsync(%entityName% data); 13 | Task UpdateDataAsync(%entityName% data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Api/Controllers/BaseApiController.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Mvc; 2 | 3 | namespace Coldairarrow.Api 4 | { 5 | /// 6 | /// Mvc对外接口基控制器 7 | /// 8 | [CheckJWT] 9 | [ApiController] 10 | [ApiLog] 11 | public class BaseApiController : BaseController 12 | { 13 | 14 | } 15 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Api/Controllers/Base_Manage/Base_UserController_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Business.Base_Manage; 2 | using Coldairarrow.Entity.Base_Manage; 3 | using Coldairarrow.Util; 4 | using Microsoft.AspNetCore.Mvc; 5 | using System.Collections.Generic; 6 | using System.Threading.Tasks; 7 | 8 | namespace Coldairarrow.Api.Controllers.Base_Manage 9 | { 10 | public partial class Base_UserController : BaseApiController 11 | { 12 | [HttpGet] 13 | public async Task> GetSelectData(string keyword, string selected) 14 | { 15 | return await _userBus.GetSelectUser(keyword, selected); 16 | } 17 | 18 | [HttpGet] 19 | public async Task GetCurUser() 20 | { 21 | return await _userBus.GetCurUser(); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Api/Controllers/PB/PB_AddressController_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Business.PB; 2 | using Coldairarrow.Entity.PB; 3 | using Coldairarrow.IBusiness.DTO; 4 | using Coldairarrow.Util; 5 | using Microsoft.AspNetCore.Mvc; 6 | using System.Collections.Generic; 7 | using System.Threading.Tasks; 8 | 9 | namespace Coldairarrow.Api.Controllers.PB 10 | { 11 | public partial class PB_AddressController 12 | { 13 | [HttpPost] 14 | public async Task> QueryDataList(PageInput input) 15 | { 16 | return await _pB_AddressBus.QueryDataListAsync(input); 17 | } 18 | 19 | [HttpPost] 20 | public async Task ModifyDefault(string id) 21 | { 22 | await _pB_AddressBus.ModifyDefaultAsync(id); 23 | } 24 | 25 | [HttpPost] 26 | public async Task ModifyEnable(string id) 27 | { 28 | await _pB_AddressBus.ModifyEnableAsync(id); 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Api/Controllers/PB/PB_CustomerController_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Business.PB; 2 | using Coldairarrow.Entity.PB; 3 | using Coldairarrow.IBusiness.DTO; 4 | using Coldairarrow.Util; 5 | using Microsoft.AspNetCore.Mvc; 6 | using System.Collections.Generic; 7 | using System.Threading.Tasks; 8 | 9 | namespace Coldairarrow.Api.Controllers.PB 10 | { 11 | public partial class PB_CustomerController 12 | { 13 | [HttpPost] 14 | public async Task> QueryDataList(PageInput input) 15 | { 16 | return await _pB_CustomerBus.QueryDataListAsync(input); 17 | } 18 | 19 | [HttpPost] 20 | public async Task> QueryAllData() 21 | { 22 | return await _pB_CustomerBus.QueryAllDataAsync(); 23 | } 24 | 25 | [HttpPost] 26 | public async Task> GetQueryData(SelectQueryDTO search) 27 | { 28 | return await _pB_CustomerBus.GetQueryData(search); 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Api/Controllers/PB/PB_MaterialController_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Business.PB; 2 | using Coldairarrow.Entity.PB; 3 | using Coldairarrow.IBusiness.DTO; 4 | using Coldairarrow.Util; 5 | using Microsoft.AspNetCore.Mvc; 6 | using System.Collections.Generic; 7 | using System.Threading.Tasks; 8 | 9 | namespace Coldairarrow.Api.Controllers.PB 10 | { 11 | public partial class PB_MaterialController 12 | { 13 | [HttpPost] 14 | public async Task> QueryDataList(PageInput input) 15 | { 16 | return await _pB_MaterialBus.QueryDataListAsync(input); 17 | } 18 | [HttpGet] 19 | public async Task GetByBarcode(string barcode) 20 | { 21 | return await _pB_MaterialBus.GetByBarcode(barcode); 22 | } 23 | [HttpGet] 24 | public async Task GetByCode(string code) 25 | { 26 | return await _pB_MaterialBus.GetByCode(code); 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Api/Controllers/PB/PB_MaterialTypeController_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Business.PB; 2 | using Coldairarrow.Entity.PB; 3 | using Coldairarrow.IBusiness.DTO; 4 | using Coldairarrow.Util; 5 | using Microsoft.AspNetCore.Mvc; 6 | using System.Collections.Generic; 7 | using System.Threading.Tasks; 8 | 9 | namespace Coldairarrow.Api.Controllers.PB 10 | { 11 | public partial class PB_MaterialTypeController 12 | { 13 | [HttpPost] 14 | public async Task> GetTreeDataList(string parentId) 15 | { 16 | return await _pB_MaterialTypeBus.GetTreeDataListAsync(parentId); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Api/Controllers/PB/PB_MeasureController_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Business.PB; 2 | using Coldairarrow.Entity.PB; 3 | using Coldairarrow.Util; 4 | using Microsoft.AspNetCore.Mvc; 5 | using System.Collections.Generic; 6 | using System.Threading.Tasks; 7 | 8 | namespace Coldairarrow.Api.Controllers.PB 9 | { 10 | public partial class PB_MeasureController 11 | { 12 | [HttpPost] 13 | public async Task> QueryAllData() 14 | { 15 | return await _pB_MeasureBus.QueryAllDataAsync(); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Api/Controllers/PB/PB_StorAreaController_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Business.PB; 2 | using Coldairarrow.Entity.PB; 3 | using Coldairarrow.Util; 4 | using Microsoft.AspNetCore.Mvc; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | using System.Threading.Tasks; 8 | 9 | namespace Coldairarrow.Api.Controllers.PB 10 | { 11 | public partial class PB_StorAreaController 12 | { 13 | /// 14 | /// 查询货区 15 | /// 16 | [HttpPost] 17 | public async Task> Query() 18 | { 19 | return await _pB_StorAreaBus.QueryAsync(_Op.Property.DefaultStorageId); 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Api/Controllers/TD/TD_CheckAreaController_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Business.TD; 2 | using Coldairarrow.Entity.TD; 3 | using Coldairarrow.Util; 4 | using Microsoft.AspNetCore.Mvc; 5 | using System.Collections.Generic; 6 | using System.Threading.Tasks; 7 | 8 | namespace Coldairarrow.Api.Controllers.TD 9 | { 10 | public partial class TD_CheckAreaController 11 | { 12 | [HttpPost] 13 | public async Task> Query(string checkId) 14 | { 15 | return await _tD_CheckAreaBus.QueryAsync(checkId); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Api/Controllers/TD/TD_CheckMaterialController_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Business.TD; 2 | using Coldairarrow.Entity.PB; 3 | using Coldairarrow.Entity.TD; 4 | using Coldairarrow.Util; 5 | using Microsoft.AspNetCore.Mvc; 6 | using System.Collections.Generic; 7 | using System.Threading.Tasks; 8 | 9 | namespace Coldairarrow.Api.Controllers.TD 10 | { 11 | public partial class TD_CheckMaterialController 12 | { 13 | [HttpPost] 14 | public async Task> Query(string checkId) 15 | { 16 | 17 | return await _tD_CheckMaterialBus.QueryAsync(checkId); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Api/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 2 | #RUN echo "http://mirrors.aliyun.com/alpine/v3.10/main/" > /etc/apk/repositories \ 3 | #&& apk add --no-cache icu-libs \ 4 | #&& apk add --no-cache --repository http://mirrors.aliyun.com/alpine/edge/testing/ libgdiplus \ 5 | #&& apk add --no-cache tzdata \ 6 | #&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ 7 | #&& echo "Asia/Shanghai" > /etc/timezone \ 8 | #&& apk del tzdata 9 | ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false 10 | WORKDIR /app 11 | COPY . . 12 | EXPOSE 5000 13 | ENTRYPOINT ["dotnet","Coldairarrow.Api.dll"] -------------------------------------------------------------------------------- /src/Coldairarrow.Api/Program.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Util; 2 | using Microsoft.AspNetCore.Hosting; 3 | using Microsoft.Extensions.Hosting; 4 | 5 | namespace Coldairarrow.Api 6 | { 7 | public class Program 8 | { 9 | public static void Main(string[] args) 10 | { 11 | Host.CreateDefaultBuilder(args) 12 | .UseIdHelper() 13 | .UseLog() 14 | .UseCache() 15 | .ConfigureWebHostDefaults(webBuilder => 16 | { 17 | webBuilder 18 | .UseUrls("http://*:5000") 19 | .UseStartup(); 20 | }) 21 | .Build() 22 | .Run(); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Coldairarrow.Api/Properties/PublishProfiles/FolderProfile.pubxml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | FileSystem 9 | FileSystem 10 | Release 11 | Any CPU 12 | 13 | True 14 | False 15 | bea1bf0d-b063-4931-89c7-22f92973143a 16 | bin\Release\netcoreapp3.1\publish\ 17 | False 18 | 19 | -------------------------------------------------------------------------------- /src/Coldairarrow.Api/Properties/PublishProfiles/WMSAPI.pubxml: -------------------------------------------------------------------------------- 1 |  2 | 5 | 6 | 7 | False 8 | False 9 | True 10 | Release 11 | Any CPU 12 | FileSystem 13 | E:\WMSDeploy\Install\WMSAPI 14 | FileSystem 15 | 16 | -------------------------------------------------------------------------------- /src/Coldairarrow.Api/Properties/PublishProfiles/zengzihan.pubxml: -------------------------------------------------------------------------------- 1 |  2 | 5 | 6 | 7 | False 8 | False 9 | True 10 | Release 11 | Any CPU 12 | FileSystem 13 | D:\ZEQPWMS\WMSAPI 14 | FileSystem 15 | 16 | -------------------------------------------------------------------------------- /src/Coldairarrow.Api/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "profiles": { 3 | "Coldairarrow.Api": { 4 | "commandName": "Project", 5 | "launchBrowser": true, 6 | "launchUrl": "swagger", 7 | "environmentVariables": { 8 | "ASPNETCORE_ENVIRONMENT": "Development" 9 | }, 10 | "applicationUrl": "http://localhost:5000" 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Api/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/Coldairarrow.Api/wwwroot/Upload/_.txt: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /src/Coldairarrow.Business/AOP/DataAddLogAttribute.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.IBusiness; 2 | using Coldairarrow.Util; 3 | using Microsoft.Extensions.DependencyInjection; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business 7 | { 8 | public class DataAddLogAttribute : WriteDataLogAttribute 9 | { 10 | public DataAddLogAttribute(UserLogType logType, string nameField, string dataName) 11 | : base(logType, nameField, dataName) 12 | { 13 | } 14 | 15 | public override async Task After(IAOPContext context) 16 | { 17 | var op = context.ServiceProvider.GetService(); 18 | var obj = context.Arguments[0]; 19 | op.WriteUserLog(_logType, $"添加{_dataName}:{obj.GetPropertyValue(_nameField)?.ToString()}"); 20 | 21 | await Task.CompletedTask; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Coldairarrow.Business/AOP/DataEditLogAttribute.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.IBusiness; 2 | using Coldairarrow.Util; 3 | using Microsoft.Extensions.DependencyInjection; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business 7 | { 8 | public class DataEditLogAttribute : WriteDataLogAttribute 9 | { 10 | public DataEditLogAttribute(UserLogType logType, string nameField, string dataName) 11 | : base(logType, nameField, dataName) 12 | { 13 | } 14 | 15 | public override async Task After(IAOPContext context) 16 | { 17 | var op = context.ServiceProvider.GetService(); 18 | var obj = context.Arguments[0]; 19 | op.WriteUserLog(_logType, $"修改{_dataName}:{obj.GetPropertyValue(_nameField)?.ToString()}"); 20 | 21 | await Task.CompletedTask; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Coldairarrow.Business/AOP/WriteDataLogAttribute.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Util; 2 | using System; 3 | 4 | namespace Coldairarrow.Business 5 | { 6 | public abstract class WriteDataLogAttribute : BaseAOPAttribute 7 | { 8 | public WriteDataLogAttribute(UserLogType logType, string nameField, string dataName) 9 | { 10 | _logType = logType; 11 | _dataName = dataName; 12 | _nameField = nameField; 13 | } 14 | protected UserLogType _logType { get; } 15 | protected string _dataName { get; } 16 | protected string _nameField { get; } 17 | protected Type _entityType { get; } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Coldairarrow.Business/BaseBusiness.T.partial.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq.Dynamic.Core; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Coldairarrow.Business 9 | { 10 | public abstract partial class BaseBusiness 11 | { 12 | public async Task GetByCode(string code) 13 | { 14 | return await this.Db.GetIQueryable().Where("Code == @0", code).FirstOrDefaultAsync(); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Coldairarrow.Business/Cache/IBaseCache.T.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Threading.Tasks; 3 | 4 | namespace Coldairarrow.Business.Cache 5 | { 6 | public interface IBaseCache where T : class 7 | { 8 | Task GetCacheAsync(string idKey); 9 | Task UpdateCacheAsync(string idKey); 10 | Task UpdateCacheAsync(List idKeys); 11 | } 12 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Business/Cache/IBase_UserCache.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity; 2 | using Coldairarrow.Util; 3 | using System.Threading.Tasks; 4 | 5 | namespace Coldairarrow.Business.Cache 6 | { 7 | public interface IBase_UserCache : IBaseCache 8 | { 9 | Task UpdateCacheAsync(string id, Base_UserDTO user); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/Coldairarrow.Business/PB/NoCheckJWTAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Coldairarrow.Business.PB 4 | { 5 | internal class NoCheckJWTAttribute : Attribute 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Business/PB/PB_BarCodeSerialBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using EFCore.Sharding; 4 | using LinqKit; 5 | using Microsoft.EntityFrameworkCore; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using System.Linq.Dynamic.Core; 9 | using System.Threading.Tasks; 10 | 11 | namespace Coldairarrow.Business.PB 12 | { 13 | public partial class PB_BarCodeSerialBusiness : BaseBusiness, IPB_BarCodeSerialBusiness, ITransientDependency 14 | { 15 | public async Task AddDataAsync(List list) 16 | { 17 | await InsertAsync(list); 18 | } 19 | 20 | public async Task UpdateDataAsync(List list) 21 | { 22 | await UpdateAsync(list); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Business/PB/PB_MeasureBusiness_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using EFCore.Sharding; 4 | using LinqKit; 5 | using Microsoft.EntityFrameworkCore; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using System.Linq.Dynamic.Core; 9 | using System.Threading.Tasks; 10 | 11 | namespace Coldairarrow.Business.PB 12 | { 13 | public partial class PB_MeasureBusiness 14 | { 15 | public async Task> QueryAllDataAsync() 16 | { 17 | var q = GetIQueryable(); 18 | var where = LinqHelper.True(); 19 | 20 | 21 | return await q.Where(where).ToListAsync(); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Business/PB/PB_StorAreaBusiness_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using EFCore.Sharding; 4 | using LinqKit; 5 | using Microsoft.EntityFrameworkCore; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using System.Linq.Dynamic.Core; 9 | using System.Threading.Tasks; 10 | 11 | namespace Coldairarrow.Business.PB 12 | { 13 | public partial class PB_StorAreaBusiness 14 | { 15 | public async Task> QueryAsync(string storageId) 16 | { 17 | var q = GetIQueryable(); 18 | 19 | return await q.Where(p => p.StorId == storageId).ToListAsync(); 20 | } 21 | 22 | public async Task GetInnerArea(string storageId) 23 | { 24 | var q = GetIQueryable(); 25 | 26 | return await q.Where(p => p.StorId == storageId && p.Type == "In").FirstOrDefaultAsync(); 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Business/TD/TD_AllocateDetailBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using EFCore.Sharding; 4 | using LinqKit; 5 | using Microsoft.EntityFrameworkCore; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using System.Linq.Dynamic.Core; 9 | using System.Threading.Tasks; 10 | 11 | namespace Coldairarrow.Business.TD 12 | { 13 | public partial class TD_AllocateDetailBusiness : BaseBusiness, ITD_AllocateDetailBusiness, ITransientDependency 14 | { 15 | public async Task AddDataAsync(List list) 16 | { 17 | await InsertAsync(list); 18 | } 19 | 20 | public async Task UpdateDataAsync(List list) 21 | { 22 | await UpdateAsync(list); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Business/TD/TD_BadDetailBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using EFCore.Sharding; 4 | using LinqKit; 5 | using Microsoft.EntityFrameworkCore; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using System.Linq.Dynamic.Core; 9 | using System.Threading.Tasks; 10 | 11 | namespace Coldairarrow.Business.TD 12 | { 13 | public partial class TD_BadDetailBusiness : BaseBusiness, ITD_BadDetailBusiness, ITransientDependency 14 | { 15 | 16 | 17 | public async Task AddDataAsync(List list) 18 | { 19 | await InsertAsync(list); 20 | } 21 | 22 | public async Task UpdateDataAsync(List list) 23 | { 24 | await UpdateAsync(list); 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Business/TD/TD_InStorageBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using EFCore.Sharding; 4 | using LinqKit; 5 | using Microsoft.EntityFrameworkCore; 6 | using System; 7 | using System.Collections.Generic; 8 | using System.Linq; 9 | using System.Linq.Dynamic.Core; 10 | using System.Threading.Tasks; 11 | 12 | namespace Coldairarrow.Business.TD 13 | { 14 | public partial class TD_InStorageBusiness : BaseBusiness, ITD_InStorageBusiness, ITransientDependency 15 | { 16 | 17 | #region 外部接口 18 | 19 | 20 | 21 | #endregion 22 | 23 | #region 私有成员 24 | 25 | #endregion 26 | } 27 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Business/TD/TD_MoveDetailBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using EFCore.Sharding; 4 | using LinqKit; 5 | using Microsoft.EntityFrameworkCore; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using System.Linq.Dynamic.Core; 9 | using System.Threading.Tasks; 10 | 11 | namespace Coldairarrow.Business.TD 12 | { 13 | public partial class TD_MoveDetailBusiness : BaseBusiness, ITD_MoveDetailBusiness, ITransientDependency 14 | { 15 | 16 | 17 | public async Task AddDataAsync(List list) 18 | { 19 | await InsertAsync(list); 20 | } 21 | 22 | public async Task UpdateDataAsync(List list) 23 | { 24 | await UpdateAsync(list); 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Business/TD/TD_RecDetailBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using EFCore.Sharding; 4 | using LinqKit; 5 | using Microsoft.EntityFrameworkCore; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using System.Linq.Dynamic.Core; 9 | using System.Threading.Tasks; 10 | 11 | namespace Coldairarrow.Business.TD 12 | { 13 | public partial class TD_RecDetailBusiness : BaseBusiness, ITD_RecDetailBusiness, ITransientDependency 14 | { 15 | public async Task AddDataAsync(List list) 16 | { 17 | await InsertAsync(list); 18 | } 19 | 20 | public async Task UpdateDataAsync(List list) 21 | { 22 | await UpdateAsync(list); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Console/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Coldairarrow.Console1 4 | { 5 | class Program 6 | { 7 | static void Main() 8 | { 9 | Console.WriteLine("完成"); 10 | Console.WriteLine(); 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Console/Properties/PublishProfiles/FolderProfile.pubxml: -------------------------------------------------------------------------------- 1 |  2 | 5 | 6 | 7 | FileSystem 8 | Release 9 | Any CPU 10 | netcoreapp3.0 11 | bin\Release\netcoreapp3.0\publish\ 12 | 13 | -------------------------------------------------------------------------------- /src/Coldairarrow.Console/ServiceInstall/install.bat: -------------------------------------------------------------------------------- 1 | cd /d %~dp0 2 | set serviceName="AService" 3 | set exePath="SocketPassthrough.exe" 4 | nssm install %serviceName% %~dp0\%exePath% 5 | nssm start %serviceName% -------------------------------------------------------------------------------- /src/Coldairarrow.Console/ServiceInstall/nssm.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/src/Coldairarrow.Console/ServiceInstall/nssm.exe -------------------------------------------------------------------------------- /src/Coldairarrow.Console/ServiceInstall/uninstall.bat: -------------------------------------------------------------------------------- 1 | cd /d %~dp0 2 | set serviceName="AService" 3 | nssm stop %serviceName% 4 | nssm remove %serviceName% confirm -------------------------------------------------------------------------------- /src/Coldairarrow.Console/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/Coldairarrow.Console/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/src/Coldairarrow.Console/appsettings.json -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/Base/Base_EnumItem_partial.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | using Microsoft.EntityFrameworkCore.Metadata.Builders; 3 | using System; 4 | using System.ComponentModel.DataAnnotations; 5 | using System.ComponentModel.DataAnnotations.Schema; 6 | 7 | namespace Coldairarrow.Entity.Base 8 | { 9 | /// 10 | /// 字典值 11 | /// 12 | public partial class Base_EnumItem 13 | { 14 | [ForeignKey(nameof(EnumId))] 15 | public Base_Enum Enum { get; set; } 16 | } 17 | 18 | public class Base_EnumItemEntityTypeConfig : IEntityTypeConfiguration 19 | { 20 | public void Configure(EntityTypeBuilder builder) 21 | { 22 | builder.HasQueryFilter(w => w.Deleted == false); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/Base/Base_Enum_partial.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | using Microsoft.EntityFrameworkCore.Metadata.Builders; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.ComponentModel.DataAnnotations; 6 | using System.ComponentModel.DataAnnotations.Schema; 7 | 8 | namespace Coldairarrow.Entity.Base 9 | { 10 | /// 11 | /// 数据字典 12 | /// 13 | public partial class Base_Enum 14 | { 15 | public List EnumItems { get; set; } 16 | 17 | } 18 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/Base_Manage/Base_Role.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel.DataAnnotations; 3 | using System.ComponentModel.DataAnnotations.Schema; 4 | 5 | namespace Coldairarrow.Entity.Base_Manage 6 | { 7 | /// 8 | /// 系统角色表 9 | /// 10 | [Table("Base_Role")] 11 | public class Base_Role 12 | { 13 | 14 | /// 15 | /// 主键 16 | /// 17 | [Key, Column(Order = 1)] 18 | public String Id { get; set; } 19 | 20 | /// 21 | /// 创建时间 22 | /// 23 | public DateTime CreateTime { get; set; } 24 | 25 | /// 26 | /// 创建人Id 27 | /// 28 | public String CreatorId { get; set; } 29 | 30 | /// 31 | /// 否已删除 32 | /// 33 | public Boolean Deleted { get; set; } 34 | 35 | /// 36 | /// 角色名 37 | /// 38 | public String RoleName { get; set; } 39 | 40 | } 41 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/DTO/Base_UserDTO_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.Base_Manage; 2 | using Coldairarrow.Entity.PB; 3 | using System.Collections.Generic; 4 | 5 | namespace Coldairarrow.Entity 6 | { 7 | public partial class Base_UserDTO 8 | { 9 | /// 10 | /// 默认仓库ID 11 | /// 12 | public string DefaultStorageId { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/Enum/ActionType.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Entity 2 | { 3 | /// 4 | /// 类型,菜单=0,页面=1,权限=2 5 | /// 6 | public enum ActionType 7 | { 8 | 菜单 = 0, 9 | 页面 = 1, 10 | 权限 = 2 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/Enum/RoleTypes.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Coldairarrow.Entity 4 | { 5 | /// 6 | /// 系统角色类型 7 | /// 8 | [Flags] 9 | public enum RoleTypes 10 | { 11 | 超级管理员 = 1, 12 | 部门管理员 = 2 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/IT/IT_LocalDetail_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using System; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.ComponentModel.DataAnnotations.Schema; 5 | 6 | namespace Coldairarrow.Entity.IT 7 | { 8 | /// 9 | /// 库存明细表 10 | /// 11 | public partial class IT_LocalDetail 12 | { 13 | [ForeignKey(nameof(LocalId))] 14 | public PB_Location Location { get; set; } 15 | 16 | [ForeignKey(nameof(TrayId))] 17 | public PB_Tray Tray { get; set; } 18 | 19 | [ForeignKey(nameof(ZoneId))] 20 | public PB_TrayZone TrayZone { get; set; } 21 | 22 | [ForeignKey(nameof(MaterialId))] 23 | public PB_Material Material { get; set; } 24 | 25 | [ForeignKey(nameof(MeasureId))] 26 | public PB_Measure Measure { get; set; } 27 | } 28 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/IT/IT_LocalMaterial_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using System; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.ComponentModel.DataAnnotations.Schema; 5 | 6 | namespace Coldairarrow.Entity.IT 7 | { 8 | /// 9 | /// 库存表 10 | /// 11 | public partial class IT_LocalMaterial 12 | { 13 | [ForeignKey(nameof(LocalId))] 14 | public PB_Location Location { set; get; } 15 | 16 | [ForeignKey(nameof(MaterialId))] 17 | public PB_Material Material { set; get; } 18 | 19 | [ForeignKey(nameof(StorId))] 20 | public PB_Storage Storage { set; get; } 21 | 22 | [ForeignKey(nameof(ZoneId))] 23 | public PB_TrayZone TrayZone { set; get; } 24 | 25 | [ForeignKey(nameof(TrayId))] 26 | public PB_Tray Tray { set; get; } 27 | 28 | [ForeignKey(nameof(MeasureId))] 29 | public PB_Measure Measure { set; get; } 30 | } 31 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/IT/IT_RecordBook_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using System; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.ComponentModel.DataAnnotations.Schema; 5 | 6 | namespace Coldairarrow.Entity.IT 7 | { 8 | /// 9 | /// 台账表 10 | /// 11 | public partial class IT_RecordBook 12 | { 13 | [ForeignKey(nameof(FromLocalId))] 14 | public PB_Location FromLocation { get; set; } 15 | 16 | [ForeignKey(nameof(ToLocalId))] 17 | public PB_Location ToLocation { get; set; } 18 | 19 | [ForeignKey(nameof(FromStorId))] 20 | public PB_Storage FromStorage { get; set; } 21 | 22 | [ForeignKey(nameof(ToStorId))] 23 | public PB_Storage ToStorage { get; set; } 24 | 25 | [ForeignKey(nameof(MaterialId))] 26 | public PB_Material Material { get; set; } 27 | 28 | [ForeignKey(nameof(MeasureId))] 29 | public PB_Measure Measure { get; set; } 30 | 31 | 32 | 33 | } 34 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/PB/PB_AreaMaterial.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | using Microsoft.EntityFrameworkCore.Metadata.Builders; 3 | using System; 4 | using System.ComponentModel.DataAnnotations; 5 | using System.ComponentModel.DataAnnotations.Schema; 6 | 7 | namespace Coldairarrow.Entity.PB 8 | { 9 | /// 10 | /// 货区物料关系表 11 | /// 12 | [Table("PB_AreaMaterial")] 13 | public partial class PB_AreaMaterial 14 | { 15 | 16 | /// 17 | /// 货区ID 18 | /// 19 | [Key, Column(Order = 1)] 20 | public String AreaId { get; set; } 21 | 22 | /// 23 | /// 物料ID 24 | /// 25 | [Key, Column(Order = 2)] 26 | public String MaterialId { get; set; } 27 | 28 | } 29 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/PB/PB_BarCodeRule_partial.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | using Microsoft.EntityFrameworkCore.Metadata.Builders; 3 | using System; 4 | using System.ComponentModel.DataAnnotations; 5 | using System.ComponentModel.DataAnnotations.Schema; 6 | 7 | namespace Coldairarrow.Entity.PB 8 | { 9 | /// 10 | /// 条码规则 11 | /// 12 | public partial class PB_BarCodeRule 13 | { 14 | [ForeignKey(nameof(TypeId))] 15 | public PB_BarCodeType BarCodeType { get; set; } 16 | } 17 | 18 | public class PB_BarCodeRuleEntityTypeConfig : IEntityTypeConfiguration 19 | { 20 | public void Configure(EntityTypeBuilder builder) 21 | { 22 | builder.HasQueryFilter(w => w.Deleted == false); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/PB/PB_BarCodeSerial_partial.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel.DataAnnotations; 3 | using System.ComponentModel.DataAnnotations.Schema; 4 | 5 | namespace Coldairarrow.Entity.PB 6 | { 7 | /// 8 | /// 条码参数流水 9 | /// 10 | public partial class PB_BarCodeSerial 11 | { 12 | [ForeignKey(nameof(TypeId))] 13 | public PB_BarCodeType BarCodeType { get; set; } 14 | } 15 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/PB/PB_BarCodeType_partial.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | using Microsoft.EntityFrameworkCore.Metadata.Builders; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.ComponentModel.DataAnnotations; 6 | using System.ComponentModel.DataAnnotations.Schema; 7 | 8 | namespace Coldairarrow.Entity.PB 9 | { 10 | /// 11 | /// 条码类型管理 12 | /// 13 | public partial class PB_BarCodeType 14 | { 15 | public List BarCodeRules { get; set; } 16 | public List BarCodeSerials { get; set; } 17 | } 18 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/PB/PB_FeedPoint_partial.cs: -------------------------------------------------------------------------------- 1 | using Dynamitey.DynamicObjects; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.ComponentModel.DataAnnotations; 5 | using System.ComponentModel.DataAnnotations.Schema; 6 | 7 | namespace Coldairarrow.Entity.PB 8 | { 9 | /// 10 | /// 进料点/出料点 11 | /// 12 | public partial class PB_FeedPoint 13 | { 14 | [ForeignKey(nameof(StorId))] 15 | public PB_Storage Storage { get; set; } 16 | 17 | [ForeignKey(nameof(LaneId))] 18 | public PB_Laneway Laneway { get; set; } 19 | public List MaterialPoints { get; set; } 20 | } 21 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/PB/PB_LocalTray_Partial.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | using Microsoft.EntityFrameworkCore.Metadata.Builders; 3 | using System; 4 | using System.ComponentModel.DataAnnotations; 5 | using System.ComponentModel.DataAnnotations.Schema; 6 | 7 | namespace Coldairarrow.Entity.PB 8 | { 9 | /// 10 | /// 托盘类型与货位对应关系 11 | /// 12 | public partial class PB_LocalTray 13 | { 14 | //[ForeignKey(nameof(AreaId))] 15 | //public PB_StorArea PB_StorArea { get; set; } 16 | 17 | } 18 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/PB/PB_MaterialPoint.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | using Microsoft.EntityFrameworkCore.Metadata.Builders; 3 | using System; 4 | using System.ComponentModel.DataAnnotations; 5 | using System.ComponentModel.DataAnnotations.Schema; 6 | 7 | namespace Coldairarrow.Entity.PB 8 | { 9 | /// 10 | /// 货区物料关系表 11 | /// 12 | [Table("PB_MaterialPoint")] 13 | public partial class PB_MaterialPoint 14 | { 15 | 16 | /// 17 | /// 货区ID 18 | /// 19 | [Key, Column(Order = 1)] 20 | public String PointId { get; set; } 21 | 22 | /// 23 | /// 物料ID 24 | /// 25 | [Key, Column(Order = 2)] 26 | public String MaterialId { get; set; } 27 | 28 | } 29 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/PD/PD_Plan_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using System.ComponentModel.DataAnnotations.Schema; 3 | 4 | namespace Coldairarrow.Entity.PD 5 | { 6 | public partial class PD_Plan 7 | { 8 | [ForeignKey(nameof(MaterialId))] 9 | public PB_Material Material { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/TD/TD_Allocate_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.Base_Manage; 2 | using Coldairarrow.Entity.PB; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.ComponentModel.DataAnnotations; 6 | using System.ComponentModel.DataAnnotations.Schema; 7 | 8 | namespace Coldairarrow.Entity.TD 9 | { 10 | /// 11 | /// 调拨表 12 | /// 13 | public partial class TD_Allocate 14 | { 15 | [ForeignKey(nameof(ToStorId))] 16 | public PB_Storage ToStorage { get; set; } 17 | [ForeignKey(nameof(CreatorId))] 18 | public Base_User CreateUser { get; set; } 19 | 20 | [ForeignKey(nameof(AuditUserId))] 21 | public Base_User AuditUser { get; set; } 22 | 23 | public List AllocateDetails { get; set; } 24 | } 25 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/TD/TD_Bad_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.Base_Manage; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.ComponentModel.DataAnnotations; 5 | using System.ComponentModel.DataAnnotations.Schema; 6 | 7 | namespace Coldairarrow.Entity.TD 8 | { 9 | /// 10 | /// 报损表 11 | /// 12 | public partial class TD_Bad 13 | { 14 | [ForeignKey(nameof(CreatorId))] 15 | public Base_User CreateUser { get; set; } 16 | 17 | [ForeignKey(nameof(AuditUserId))] 18 | public Base_User AuditUser { get; set; } 19 | 20 | public List BadDetails { get; set; } 21 | } 22 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/TD/TD_CheckData_Parital.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using System; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.ComponentModel.DataAnnotations.Schema; 5 | 6 | namespace Coldairarrow.Entity.TD 7 | { 8 | /// 9 | /// 盘差表 10 | /// 11 | public partial class TD_CheckData 12 | { 13 | [ForeignKey(nameof(StorId))] 14 | public PB_Storage Storage { set; get; } 15 | 16 | [ForeignKey(nameof(localId))] 17 | public PB_Location Location { set; get; } 18 | 19 | [ForeignKey(nameof(MaterialId))] 20 | public PB_Material Material { set; get; } 21 | 22 | [ForeignKey(nameof(ZoneId))] 23 | public PB_TrayZone Zone { set; get; } 24 | 25 | [ForeignKey(nameof(TrayId))] 26 | public PB_Tray Tray { set; get; } 27 | } 28 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/TD/TD_CheckMaterial.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | using Microsoft.EntityFrameworkCore.Metadata.Builders; 3 | using System; 4 | using System.ComponentModel.DataAnnotations; 5 | using System.ComponentModel.DataAnnotations.Schema; 6 | 7 | namespace Coldairarrow.Entity.TD 8 | { 9 | /// 10 | /// 盘点信息表 11 | /// 12 | [Table("TD_CheckMaterial")] 13 | public partial class TD_CheckMaterial 14 | { 15 | 16 | /// 17 | /// 盘点ID 18 | /// 19 | [Key, Column(Order = 1)] 20 | public String CheckId { get; set; } 21 | 22 | /// 23 | /// 物料ID 24 | /// 25 | [Key, Column(Order = 2)] 26 | public String MaterialId { get; set; } 27 | 28 | } 29 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/TD/TD_CheckMaterial_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Microsoft.EntityFrameworkCore; 3 | using Microsoft.EntityFrameworkCore.Metadata.Builders; 4 | using System; 5 | using System.ComponentModel.DataAnnotations; 6 | using System.ComponentModel.DataAnnotations.Schema; 7 | 8 | namespace Coldairarrow.Entity.TD 9 | { 10 | /// 11 | /// 盘点信息表 12 | /// 13 | public partial class TD_CheckMaterial 14 | { 15 | [ForeignKey(nameof(MaterialId))] 16 | public PB_Material Material { set; get; } 17 | } 18 | 19 | public class TD_CheckMaterialEntityTypeConfig : IEntityTypeConfiguration 20 | { 21 | public void Configure(EntityTypeBuilder builder) 22 | { 23 | builder 24 | .HasKey(t => new { t.MaterialId, t.CheckId }); 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/TD/TD_Check_Parital.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel.DataAnnotations; 3 | using System.ComponentModel.DataAnnotations.Schema; 4 | using Coldairarrow.Entity.Base_Manage; 5 | 6 | namespace Coldairarrow.Entity.TD 7 | { 8 | public partial class TD_Check 9 | { 10 | [ForeignKey(nameof(AuditUserId))] 11 | public Base_User AuditUser { get; set; } 12 | } 13 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/TD/TD_InStorage_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.Base_Manage; 2 | using Coldairarrow.Entity.PB; 3 | using Dynamitey.DynamicObjects; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.ComponentModel.DataAnnotations; 7 | using System.ComponentModel.DataAnnotations.Schema; 8 | 9 | namespace Coldairarrow.Entity.TD 10 | { 11 | /// 12 | /// 入库表 13 | /// 14 | public partial class TD_InStorage 15 | { 16 | public List InStorDetails { get; set; } 17 | 18 | [ForeignKey(nameof(SupId))] 19 | public PB_Supplier Supplier { get; set; } 20 | 21 | [ForeignKey(nameof(CreatorId))] 22 | public Base_User CreateUser { get; set; } 23 | 24 | [ForeignKey(nameof(AuditUserId))] 25 | public Base_User AuditUser { get; set; } 26 | } 27 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/TD/TD_Move_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.Base_Manage; 2 | using Coldairarrow.Entity.PB; 3 | using Dynamitey.DynamicObjects; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.ComponentModel.DataAnnotations; 7 | using System.ComponentModel.DataAnnotations.Schema; 8 | 9 | namespace Coldairarrow.Entity.TD 10 | { 11 | /// 12 | /// 移库表 13 | /// 14 | public partial class TD_Move 15 | { 16 | [ForeignKey(nameof(CreatorId))] 17 | public Base_User CreateUser { get; set; } 18 | 19 | [ForeignKey(nameof(AuditUserId))] 20 | public Base_User AuditUser { get; set; } 21 | 22 | public List MoveDetails { get; set; } 23 | } 24 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/TD/TD_OutStorage_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.Base_Manage; 2 | using Coldairarrow.Entity.IT; 3 | using Coldairarrow.Entity.PB; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.ComponentModel.DataAnnotations; 7 | using System.ComponentModel.DataAnnotations.Schema; 8 | 9 | namespace Coldairarrow.Entity.TD 10 | { 11 | /// 12 | /// 出库表 13 | /// 14 | public partial class TD_OutStorage 15 | { 16 | public List OutStorDetails { get; set; } 17 | 18 | //public List LocalMaterias { get; set; } 19 | 20 | [ForeignKey(nameof(CusId))] 21 | public PB_Customer Customer { get; set; } 22 | 23 | [ForeignKey(nameof(AddrId))] 24 | public PB_Address Address { get; set; } 25 | 26 | [ForeignKey(nameof(CreatorId))] 27 | public Base_User CreateUser { get; set; } 28 | 29 | [ForeignKey(nameof(AuditUserId))] 30 | public Base_User AuditUser { get; set; } 31 | } 32 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/TD/TD_RecDetail_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Microsoft.EntityFrameworkCore; 3 | using Microsoft.EntityFrameworkCore.Metadata.Builders; 4 | using System; 5 | using System.ComponentModel.DataAnnotations; 6 | using System.ComponentModel.DataAnnotations.Schema; 7 | 8 | namespace Coldairarrow.Entity.TD 9 | { 10 | /// 11 | /// 收货明细 12 | /// 13 | public partial class TD_RecDetail 14 | { 15 | [ForeignKey(nameof(RecId))] 16 | public TD_Receiving Receiving { get; set; } 17 | 18 | [ForeignKey(nameof(MaterialId))] 19 | public PB_Material Material { get; set; } 20 | 21 | [ForeignKey(nameof(MeasureId))] 22 | public PB_Measure Measure { get; set; } 23 | } 24 | 25 | public class TD_RecDetailEntityTypeConfig : IEntityTypeConfiguration 26 | { 27 | public void Configure(EntityTypeBuilder builder) 28 | { 29 | builder.HasQueryFilter(w => w.Deleted == false); 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/TD/TD_Receiving_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Dynamitey.DynamicObjects; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.ComponentModel.DataAnnotations; 6 | using System.ComponentModel.DataAnnotations.Schema; 7 | 8 | namespace Coldairarrow.Entity.TD 9 | { 10 | /// 11 | /// 收货表 12 | /// 13 | public partial class TD_Receiving 14 | { 15 | [ForeignKey(nameof(SupId))] 16 | public PB_Supplier Supplier { get; set; } 17 | 18 | public List RecDetails { get; set; } 19 | } 20 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Entity/TD/TD_Send_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.Base_Manage; 2 | using Coldairarrow.Entity.PB; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.ComponentModel.DataAnnotations; 6 | using System.ComponentModel.DataAnnotations.Schema; 7 | 8 | namespace Coldairarrow.Entity.TD 9 | { 10 | /// 11 | /// 发货表 12 | /// 13 | public partial class TD_Send 14 | { 15 | public List SendDetails { get; set; } 16 | 17 | [ForeignKey(nameof(CusId))] 18 | public PB_Customer Customer { get; set; } 19 | 20 | [ForeignKey(nameof(AddrId))] 21 | public PB_Address Address { get; set; } 22 | 23 | [ForeignKey(nameof(CreatorId))] 24 | public Base_User CreateUser { get; set; } 25 | 26 | [ForeignKey(nameof(AuditUserId))] 27 | public Base_User AuditUser { get; set; } 28 | } 29 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/Base/IBase_EnumBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.Base; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.Base 7 | { 8 | public interface IBase_EnumBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task GetByCodeAsync(string code); 13 | Task AddDataAsync(Base_Enum data); 14 | Task UpdateDataAsync(Base_Enum data); 15 | Task DeleteDataAsync(List ids); 16 | } 17 | 18 | public class Base_EnumQM 19 | { 20 | public string Keyword { get; set; } 21 | } 22 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/Base/IBase_EnumItemBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.Base; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.Base 7 | { 8 | public interface IBase_EnumItemBusiness 9 | { 10 | Task> GetDataListAsync(Base_EnumItemPageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(Base_EnumItem data); 13 | Task UpdateDataAsync(Base_EnumItem data); 14 | Task DeleteDataAsync(List ids); 15 | Task> GetDataListAsync(string enumCode); 16 | } 17 | 18 | public class Base_EnumItemQM 19 | { 20 | public string Keyword { get; set; } 21 | } 22 | public class Base_EnumItemPageInput : PageInput 23 | { 24 | public string EnumId { get; set; } 25 | } 26 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/Base/IBase_ParameterBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.Base; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.Base 7 | { 8 | public interface IBase_ParameterBusiness 9 | { 10 | Task> GetDataListAsync(PB_ParameterPageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task> GetConfig(); 13 | Task AddDataAsync(Base_Parameter data); 14 | Task UpdateDataAsync(Base_Parameter data); 15 | Task DeleteDataAsync(List ids); 16 | } 17 | public class PB_ParameterQM 18 | { 19 | public string Keyword { get; set; } 20 | } 21 | public class PB_ParameterPageInput : PageInput 22 | { 23 | public string Id { get; set; } 24 | } 25 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/Base_Manage/IBase_AppSecretBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.Base_Manage; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.Base_Manage 7 | { 8 | public interface IBase_AppSecretBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task GetAppSecretAsync(string appId); 13 | Task AddDataAsync(Base_AppSecret newData); 14 | Task UpdateDataAsync(Base_AppSecret theData); 15 | Task DeleteDataAsync(List ids); 16 | } 17 | 18 | public class AppSecretsInputDTO 19 | { 20 | public string keyword { get; set; } 21 | } 22 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/Base_Manage/IBase_DbLinkBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.Base_Manage; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.Base_Manage 7 | { 8 | public interface IBase_DbLinkBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(Base_DbLink newData); 13 | Task UpdateDataAsync(Base_DbLink theData); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/Base_Manage/IBase_UserBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.Base_Manage; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.Base_Manage 7 | { 8 | public partial interface IBase_UserBusiness 9 | { 10 | Task> GetSelectUser(string keyword, string selected); 11 | Task GetCurUser(); 12 | } 13 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/Base_Manage/IBase_UserLogBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.Base_Manage; 2 | using Coldairarrow.Util; 3 | using System; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.Base_Manage 7 | { 8 | public interface IBase_UserLogBusiness 9 | { 10 | Task> GetLogListAsync(PageInput input); 11 | } 12 | 13 | public class UserLogsInputDTO 14 | { 15 | public string logContent { get; set; } 16 | public string logType { get; set; } 17 | public string opUserName { get; set; } 18 | public DateTime? startTime { get; set; } 19 | public DateTime? endTime { get; set; } 20 | } 21 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/Base_Manage/IBuildCodeBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.Base_Manage; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | 5 | namespace Coldairarrow.Business.Base_Manage 6 | { 7 | public interface IBuildCodeBusiness 8 | { 9 | List GetAllDbLink(); 10 | 11 | List GetDbTableList(string linkId); 12 | 13 | void Build(BuildInputDTO input); 14 | } 15 | 16 | public class DbTablesInputDTO 17 | { 18 | public string linkId { get; set; } 19 | } 20 | 21 | public class BuildInputDTO 22 | { 23 | public string linkId { get; set; } 24 | public string areaName { get; set; } 25 | public List tables { get; set; } 26 | public List buildTypes { get; set; } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/Base_Manage/IHomeBusiness.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | using System.Threading.Tasks; 3 | 4 | namespace Coldairarrow.Business.Base_Manage 5 | { 6 | public interface IHomeBusiness 7 | { 8 | Task SubmitLoginAsync(LoginInputDTO input); 9 | Task ChangePwdAsync(ChangePwdInputDTO input); 10 | } 11 | 12 | public class LoginInputDTO 13 | { 14 | [Required] 15 | public string userName { get; set; } 16 | 17 | [Required] 18 | public string password { get; set; } 19 | } 20 | 21 | public class ChangePwdInputDTO 22 | { 23 | [Required] 24 | public string oldPwd { get; set; } 25 | 26 | [Required] 27 | public string newPwd { get; set; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/Base_Manage/IPermissionBusiness.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Threading.Tasks; 3 | 4 | namespace Coldairarrow.Business.Base_Manage 5 | { 6 | public interface IPermissionBusiness 7 | { 8 | Task> GetUserPermissionValuesAsync(string userId); 9 | Task> GetUserMenuListAsync(string userId); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/DTO/AutoInStorageByTary.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Coldairarrow.IBusiness.DTO 6 | { 7 | /// 8 | /// 自动入库Pad传入数据 9 | /// 10 | public class AutoInStorageByTary 11 | { 12 | ///// 13 | ///// 生产线Id 14 | ///// 在控制台写固定值 15 | ///// 16 | //public string SupId { get; set; } 17 | ///// 18 | ///// 下料点ID 19 | ///// 在控制台写固定值 20 | ///// 21 | //public string AddrId { get; set; } 22 | 23 | 24 | //public string PlanCode { get; set; } 25 | /// 26 | /// 收货ID 27 | /// 28 | public string RecId { get; set; } 29 | public string MaterialCode { get; set; } 30 | public string BatchNo { get; set; } 31 | public string TrayCode { get; set; } 32 | public double Num { get; set; } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/DTO/InAutoByTary.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Coldairarrow.IBusiness.DTO 6 | { 7 | /// 8 | /// 自动入库Pad传入数据 9 | /// 10 | public class InAutoByTary 11 | { 12 | public string TrayCode { get; set; } 13 | public string LocalCode { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/DTO/MaterialTypeTreeDTO.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Util; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Coldairarrow.IBusiness.DTO 7 | { 8 | public class MaterialTypeTreeDTO : TreeModel 9 | { 10 | public object children { get => Children; } 11 | public string title { get => Text; } 12 | public string value { get => Id; } 13 | public string key { get => Id; } 14 | public string Code { get; set; } 15 | public string Remark { get; set; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/DTO/OutAutoByTary.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Coldairarrow.IBusiness.DTO 6 | { 7 | /// 8 | /// 自动出库Pad传入数据 9 | /// 10 | public class OutAutoByTary 11 | { 12 | public string TrayTypeId { get; set; } 13 | public string TrayCode { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/DTO/PBAddressConditionDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Coldairarrow.IBusiness.DTO 6 | { 7 | public class PBAddressConditionDTO 8 | { 9 | public string SupId { set; get; } 10 | 11 | public string CusId { set; get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/DTO/PBAreaMateriaConditionDTO.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Coldairarrow.IBusiness.DTO 7 | { 8 | public class PBAreaMateriaConditionDTO 9 | { 10 | public string id { set; get; } 11 | 12 | public List keys { set; get; } 13 | } 14 | 15 | public class PBMaterialPointConditionDTO 16 | { 17 | public string id { set; get; } 18 | 19 | public List keys { set; get; } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/DTO/PBCustomerCoditionDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Coldairarrow.IBusiness.DTO 6 | { 7 | public class PBCustomerCoditionDTO 8 | { 9 | public string Type { set; get; } 10 | 11 | public string KeyWord { set; get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/DTO/PBLocalTrayConditionDTO.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Coldairarrow.IBusiness.DTO 7 | { 8 | public class PBLocalTrayConditionDTO 9 | { 10 | public string id { set; get; } 11 | 12 | public List keys { set; get; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/DTO/PBMaterialConditionDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Coldairarrow.IBusiness.DTO 6 | { 7 | public class PBMaterialConditionDTO 8 | { 9 | public string TypeId { set; get; } 10 | 11 | public string ContactName { set; get; } 12 | 13 | public string Keyword { set; get; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/DTO/PBSupplierCoditionDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Coldairarrow.IBusiness.DTO 6 | { 7 | public class PBSupplierCoditionDTO 8 | { 9 | public string Type { set; get; } 10 | 11 | public string KeyWord { set; get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/DTO/PBTrayMateriaConditionDTO.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Coldairarrow.IBusiness.DTO 7 | { 8 | public class PBTrayMateriaConditionDTO 9 | { 10 | public string id { set; get; } 11 | 12 | public List keys { set; get; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/DTO/SelectQueryDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Coldairarrow.IBusiness.DTO 6 | { 7 | public class SelectQueryDTO 8 | { 9 | public string Id { get; set; } 10 | public string Keyword { get; set; } 11 | public int Take { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/DTO/TDCheckConditionDTO.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace Coldairarrow.IBusiness.DTO 7 | { 8 | public class TDCheckConditionDTO 9 | { 10 | public TD_Check Data { set; get; } 11 | 12 | public List AreaIdList { set; get; } 13 | 14 | public List MaterialIdList { set; get; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/DTO/TDCheckDataConditionDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Coldairarrow.IBusiness.DTO 6 | { 7 | public class TDCheckDataConditionDTO 8 | { 9 | /// 10 | /// 盘差编号 11 | /// 12 | public string CheckId { set; get; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/DTO/TDCheckNumModifyDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Coldairarrow.IBusiness.DTO 6 | { 7 | public class TDCheckNumModifyDTO 8 | { 9 | /// 10 | /// 盘点明细编号 11 | /// 12 | public string Id { set; get; } 13 | 14 | /// 15 | /// 盘点数量 16 | /// 17 | public Double? CheckNum { get; set; } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/DTO/TDCheckQueryDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Coldairarrow.IBusiness.DTO 6 | { 7 | public class TDCheckQueryDTO 8 | { 9 | public TDCheckQueryDTO() 10 | { 11 | IsComplete = -1; 12 | Status = -1; 13 | } 14 | 15 | public string Type { set; get; } 16 | 17 | public int IsComplete { set; get; } 18 | 19 | public int Status { set; get; } 20 | 21 | public string RefCode { set; get; } 22 | 23 | public string[] RangeDate { set; get; } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/DTO/TraySelectQueryDTO.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace Coldairarrow.IBusiness.DTO 6 | { 7 | public class TraySelectQueryDTO : SelectQueryDTO 8 | { 9 | public string MaterialId { get; set; } 10 | public string LocationId { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/IOperator.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity; 2 | using Coldairarrow.Util; 3 | 4 | namespace Coldairarrow.IBusiness 5 | { 6 | /// 7 | /// 操作者 8 | /// 9 | public interface IOperator 10 | { 11 | /// 12 | /// 当前操作者UserId 13 | /// 14 | string UserId { get; } 15 | 16 | Base_UserDTO Property { get; } 17 | 18 | #region 操作方法 19 | 20 | /// 21 | /// 判断是否为超级管理员 22 | /// 23 | /// 24 | bool IsAdmin(); 25 | 26 | /// 27 | /// 记录操作日志 28 | /// 29 | /// 用户日志类型 30 | /// 内容 31 | void WriteUserLog(UserLogType userLogType, string msg); 32 | 33 | #endregion 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/IT/IIT_LocalDetailBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.IT; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.IT 7 | { 8 | public partial interface IIT_LocalDetailBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(IT_LocalDetail data); 13 | Task UpdateDataAsync(IT_LocalDetail data); 14 | Task DeleteDataAsync(List ids); 15 | //Task UpdateDetailAsync(IT_LocalDetail data); 16 | } 17 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/IT/IIT_LocalMaterialBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.IT; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.IT 7 | { 8 | public partial interface IIT_LocalMaterialBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task> GetDataListByMaterialId(PageInput input); 12 | Task GetTheDataAsync(string id); 13 | Task AddDataAsync(IT_LocalMaterial data); 14 | Task UpdateDataAsync(IT_LocalMaterial data); 15 | Task DeleteDataAsync(List ids); 16 | Task GetByLocalMaterial(string local); 17 | } 18 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/IT/IIT_RecordBookBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.IT; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.IT 7 | { 8 | public partial interface IIT_RecordBookBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(IT_RecordBook data); 13 | Task UpdateDataAsync(IT_RecordBook data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/IT/IIT_RecordBookBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.IT; 2 | using Coldairarrow.Util; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.IT 8 | { 9 | public partial interface IIT_RecordBookBusiness 10 | { 11 | Task AddDataAsync(List list); 12 | Task UpdateDataAsync(List list); 13 | 14 | Task> GetDataListAsync(IT_RecordBookPageInput input); 15 | } 16 | 17 | public class IT_RecordBookQM 18 | { 19 | public string LocalName { get; set; } 20 | public string MaterialName { get; set; } 21 | public string RefCode { get; set; } 22 | public string Type { get; set; } 23 | public string BarCodeBatchNo { get; set; } 24 | } 25 | public class IT_RecordBookPageInput : PageInput 26 | { 27 | //public string StorId { get; set; } 28 | } 29 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_AddressBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public partial interface IPB_AddressBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(PB_Address data); 13 | Task UpdateDataAsync(PB_Address data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_AddressBusiness_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.IBusiness.DTO; 3 | using Coldairarrow.Util; 4 | using System.Collections.Generic; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.PB 8 | { 9 | public partial interface IPB_AddressBusiness 10 | { 11 | Task> QueryDataListAsync(PageInput input); 12 | 13 | Task ModifyDefaultAsync(string Id); 14 | 15 | Task ModifyEnableAsync(string Id); 16 | } 17 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_AreaMaterialBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.IBusiness.DTO; 3 | using Coldairarrow.Util; 4 | using System.Collections.Generic; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.PB 8 | { 9 | public partial interface IPB_AreaMaterialBusiness 10 | { 11 | Task> GetDataListAsync(PageInput input); 12 | Task> GetDataListAsync(string areaId); 13 | Task GetTheDataAsync(string id); 14 | Task AddDataAsync(PB_AreaMaterial data); 15 | Task AddDataAsync(PBAreaMateriaConditionDTO data); 16 | Task UpdateDataAsync(PB_AreaMaterial data); 17 | 18 | Task AddDataAsync(List datas); 19 | Task UpdateDataAsync(List datas); 20 | Task DeleteDataAsync(string AreaId, List materialIds); 21 | } 22 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_AreaMaterialBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public partial interface IPB_AreaMaterialBusiness 9 | { 10 | Task> GetDataListAsync(PB_AreaMaterialPageInput input); 11 | } 12 | public class PB_AreaMaterialQM 13 | { 14 | public string MaterialName { get; set; } 15 | } 16 | public class PB_AreaMaterialPageInput : PageInput 17 | { 18 | public string AreaId { get; set; } 19 | } 20 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_BarCodeBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public interface IPB_BarCodeBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(PB_BarCode data); 13 | Task UpdateDataAsync(PB_BarCode data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | public class PB_BarCodeQM 17 | { 18 | public string BarCode { get; set; } 19 | public string BarCodeTypeName { get; set; } 20 | } 21 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_BarCodeRuleBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public interface IPB_BarCodeRuleBusiness 9 | { 10 | Task> GetDataListAsync(PB_BarCodeRulePageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(PB_BarCodeRule data); 13 | Task UpdateDataAsync(PB_BarCodeRule data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | public class PB_BarCodeRuleQM 17 | { 18 | public string Type { get; set; } 19 | public string Keyword { get; set; } 20 | } 21 | public class PB_BarCodeRulePageInput : PageInput 22 | { 23 | public string TypeId { get; set; } 24 | } 25 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_BarCodeSerialBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public partial interface IPB_BarCodeSerialBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(PB_BarCodeSerial data); 13 | Task UpdateDataAsync(PB_BarCodeSerial data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_BarCodeSerialBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public partial interface IPB_BarCodeSerialBusiness 9 | { 10 | Task AddDataAsync(List list); 11 | Task UpdateDataAsync(List list); 12 | } 13 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_BarCodeTypeBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public partial interface IPB_BarCodeTypeBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(PB_BarCodeType data); 13 | Task UpdateDataAsync(PB_BarCodeType data); 14 | Task DeleteDataAsync(List ids); 15 | 16 | } 17 | 18 | public class PB_BarCodeTypeQM 19 | { 20 | public string Keyword { get; set; } 21 | } 22 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_BarCodeTypeBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Reflection.Metadata; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.PB 8 | { 9 | public partial interface IPB_BarCodeTypeBusiness 10 | { 11 | /// 12 | /// 生成条码 13 | /// 14 | /// 条码类型 15 | /// 参数 16 | /// 17 | Task Generate(string typeCode, Dictionary para = null); 18 | Task> GetAllData(); 19 | } 20 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_CustomerBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public partial interface IPB_CustomerBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(PB_Customer data); 13 | Task UpdateDataAsync(PB_Customer data); 14 | Task DeleteDataAsync(List ids); 15 | Task AddDataExlAsync(List list); 16 | } 17 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_CustomerBusiness_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.IBusiness.DTO; 3 | using Coldairarrow.Util; 4 | using System.Collections.Generic; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.PB 8 | { 9 | public partial interface IPB_CustomerBusiness 10 | { 11 | Task> QueryDataListAsync(PageInput input); 12 | 13 | Task> QueryAllDataAsync(); 14 | 15 | Task> GetQueryData(SelectQueryDTO search); 16 | Task GetByCode(string code); 17 | } 18 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_EquipmentBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public interface IPB_EquipmentBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(PB_Equipment data); 13 | Task UpdateDataAsync(PB_Equipment data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_FeedPointBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public partial interface IPB_FeedPointBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(PB_FeedPoint data); 13 | Task UpdateDataAsync(PB_FeedPoint data); 14 | Task DeleteDataAsync(List ids); 15 | Task AddDataExlAsync(List list); 16 | } 17 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_FeedPointBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.PB 8 | { 9 | public partial interface IPB_FeedPointBusiness 10 | { 11 | Task> GetDataListAsync(PageInput input); 12 | Task Enable(string id, bool enable); 13 | IQueryable GetQueryable() where T : class, new(); 14 | } 15 | public class PB_FeedPointQM 16 | { 17 | public string Keyword { get; set; } 18 | public string StorId { get; set; } 19 | public string Type { get; set; } 20 | } 21 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_LanewayBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public interface IPB_LanewayBusiness 9 | { 10 | Task> GetDataListAsync(PB_LanewayPageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task> GetDataListAsync(string storId); 13 | Task> QueryLanewayDataAsync(); 14 | Task AddDataAsync(PB_Laneway data); 15 | Task UpdateDataAsync(PB_Laneway data); 16 | Task DeleteDataAsync(List ids); 17 | } 18 | public class PB_LanewayQM 19 | { 20 | //public string Name { get; set; } 21 | //public string Code { get; set; } 22 | public string Keyword { get; set; } 23 | 24 | } 25 | public class PB_LanewayPageInput : PageInput 26 | { 27 | public string StorId { get; set; } 28 | } 29 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_LocalTrayBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.IBusiness.DTO; 3 | using Coldairarrow.Util; 4 | using System.Collections.Generic; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.PB 8 | { 9 | public partial interface IPB_LocalTrayBusiness 10 | { 11 | Task> GetDataListAsync(PageInput input); 12 | Task> GetDataListAsync(string typeId); 13 | Task GetTheDataAsync(string id); 14 | Task AddDataAsync(PB_LocalTray data); 15 | Task AddDataAsync(PBLocalTrayConditionDTO data); 16 | Task UpdateDataAsync(PB_LocalTray data); 17 | 18 | Task AddDataAsync(List datas); 19 | Task UpdateDataAsync(List datas); 20 | Task DeleteDataAsync(string typeId, List localIds); 21 | } 22 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_LocationBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using Microsoft.AspNetCore.Mvc; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.ComponentModel.DataAnnotations; 7 | using System.ComponentModel.DataAnnotations.Schema; 8 | using System.Linq; 9 | using System.Threading.Tasks; 10 | 11 | namespace Coldairarrow.Business.PB 12 | { 13 | public partial interface IPB_LocationBusiness 14 | { 15 | 16 | Task> GetDataListAsync(); 17 | Task GetTheDataAsync(string id); 18 | Task AddDataAsync(PB_Location data); 19 | Task UpdateDataAsync(PB_Location data); 20 | Task DeleteDataAsync(List ids); 21 | //Task ModifyEnableAsync(string Id); 22 | Task AddDataExlAsync(List list); 23 | // FileResult ExportToExcelWeb(List data, string head, string sheetName); 24 | 25 | } 26 | 27 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_MaterialBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public partial interface IPB_MaterialBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task> GetDataListAsync(); 12 | Task GetTheDataAsync(string id); 13 | Task AddDataAsync(PB_Material data); 14 | Task UpdateDataAsync(PB_Material data); 15 | Task DeleteDataAsync(List ids); 16 | Task AddDataExlAsync(List list); 17 | 18 | 19 | } 20 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_MaterialBusiness_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.IBusiness.DTO; 3 | using Coldairarrow.Util; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | 8 | namespace Coldairarrow.Business.PB 9 | { 10 | public partial interface IPB_MaterialBusiness 11 | { 12 | Task> GetQueryData(SelectQueryDTO search); 13 | 14 | Task> QueryDataListAsync(PageInput input); 15 | 16 | Task GetByCode(string code); 17 | Task GetByBarcode(string code); 18 | 19 | IQueryable GetQueryable() where T : class, new(); 20 | } 21 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_MaterialPointBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | using Coldairarrow.IBusiness.DTO; 6 | 7 | namespace Coldairarrow.Business.PB 8 | { 9 | public partial interface IPB_MaterialPointBusiness 10 | { 11 | Task> GetDataListAsync(PageInput input); 12 | Task> GetDataListAsync(string pointId); 13 | Task GetTheDataAsync(string id); 14 | Task AddDataAsync(PB_MaterialPoint data); 15 | Task AddDataAsync(PBMaterialPointConditionDTO data); 16 | Task UpdateDataAsync(PB_MaterialPoint data); 17 | 18 | Task AddDataAsync(List datas); 19 | Task UpdateDataAsync(List datas); 20 | Task DeleteDataAsync(string PointId, List materialIds); 21 | } 22 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_MaterialPointBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public partial interface IPB_MaterialPointBusiness 9 | { 10 | Task> GetDataListAsync(PB_MaterialPointPageInput input); 11 | } 12 | public class PB_MaterialPointQM 13 | { 14 | public string MaterialName { get; set; } 15 | } 16 | public class PB_MaterialPointPageInput : PageInput 17 | { 18 | public string PointId { get; set; } 19 | } 20 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_MaterialTypeBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public partial interface IPB_MaterialTypeBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(PB_MaterialType data); 13 | Task UpdateDataAsync(PB_MaterialType data); 14 | Task DeleteDataAsync(List ids); 15 | Task AddDataExlAsync(List list); 16 | } 17 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_MaterialTypeBusiness_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.IBusiness.DTO; 3 | using Coldairarrow.Util; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | 8 | namespace Coldairarrow.Business.PB 9 | { 10 | public partial interface IPB_MaterialTypeBusiness 11 | { 12 | Task> GetTreeDataListAsync(string parentId = null); 13 | 14 | Task> GetChildrenIdsAsync(string typeId); 15 | 16 | IQueryable GetQueryable() where T : class, new(); 17 | } 18 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_MeasureBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public partial interface IPB_MeasureBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(PB_Measure data); 13 | Task UpdateDataAsync(PB_Measure data); 14 | Task DeleteDataAsync(List ids); 15 | Task AddDataExlAsync(List list); 16 | } 17 | public class PB_MeasureQM 18 | { 19 | public string Keyword { get; set; } 20 | } 21 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_MeasureBusiness_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public partial interface IPB_MeasureBusiness 9 | { 10 | Task> QueryAllDataAsync(); 11 | } 12 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_RackBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public interface IPB_RackBusiness 9 | { 10 | Task> GetDataListAsync(PB_RackPageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task> GetDataListAsync(string storId); 13 | Task> QueryRackDataAsync(); 14 | Task AddDataAsync(PB_Rack data); 15 | Task UpdateDataAsync(PB_Rack data); 16 | Task DeleteDataAsync(List ids); 17 | } 18 | public class PB_RackQM 19 | { 20 | //public string Name { get; set; } 21 | //public string Code { get; set; } 22 | public string Keyword { get; set; } 23 | } 24 | public class PB_RackPageInput : PageInput 25 | { 26 | public string StorId { get; set; } 27 | } 28 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_StorAreaBusiness_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public partial interface IPB_StorAreaBusiness 9 | { 10 | Task> QueryAsync(string storageId); 11 | Task GetInnerArea(string storageId); 12 | } 13 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_SupplierBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public partial interface IPB_SupplierBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(PB_Supplier data); 13 | Task UpdateDataAsync(PB_Supplier data); 14 | Task DeleteDataAsync(List ids); 15 | Task AddDataExlAsync(List list); 16 | } 17 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_SupplierBusiness_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.IBusiness.DTO; 3 | using Coldairarrow.Util; 4 | using System.Collections.Generic; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.PB 8 | { 9 | public partial interface IPB_SupplierBusiness 10 | { 11 | Task> QueryDataListAsync(PageInput input); 12 | 13 | Task> QueryAllDataAsync(); 14 | 15 | Task> GetQueryData(SelectQueryDTO search); 16 | 17 | Task GetByCode(string code); 18 | } 19 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_TrayBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.PB 8 | { 9 | public partial interface IPB_TrayBusiness 10 | { 11 | 12 | Task GetTheDataAsync(string id); 13 | Task AddDataAsync(PB_Tray data); 14 | Task UpdateDataAsync(PB_Tray data); 15 | Task EnableTheData(string id); 16 | Task DisableTheData(string id); 17 | Task DeleteDataAsync(List ids); 18 | IQueryable GetQueryable() where T : class, new(); 19 | Task AddDataExlAsync(List list); 20 | } 21 | 22 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_TrayMaterialBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.IBusiness.DTO; 3 | using Coldairarrow.Util; 4 | using System.Collections.Generic; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.PB 8 | { 9 | public interface IPB_TrayMaterialBusiness 10 | { 11 | Task> GetDataListAsync(PageInput input); 12 | Task> GetDataListAsync(string typeId); 13 | Task GetTheDataAsync(string id); 14 | Task AddDataAsync(PB_TrayMaterial data); 15 | Task AddDataAsync(PBTrayMateriaConditionDTO data); 16 | Task UpdateDataAsync(PB_TrayMaterial data); 17 | Task AddDataAsync(List datas); 18 | Task UpdateDataAsync(List datas); 19 | Task DeleteDataAsync(string trayTypeId, List materialIds); 20 | } 21 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_TrayTypeBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public partial interface IPB_TrayTypeBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task> GetDataListAsync(); 12 | Task> GetDataListBySearch(PageInput input); 13 | Task GetTheDataAsync(string id); 14 | Task AddDataAsync(PB_TrayType data); 15 | Task UpdateDataAsync(PB_TrayType data); 16 | Task DeleteDataAsync(List ids); 17 | Task AddDataExlAsync(List list); 18 | } 19 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_TrayTypeBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public partial interface IPB_TrayTypeBusiness 9 | { 10 | /// 11 | /// 根据物料,找到对应的托盘类型 12 | /// 13 | /// 物料ID 14 | /// 15 | Task> GetByMaterial(string materialId); 16 | 17 | /// 18 | /// 根据货位,找到对应的托盘类型 19 | /// 20 | /// 货位ID 21 | /// 22 | Task> GetByLocation(string locationId); 23 | 24 | Task GetByTypeCode(string typecode); 25 | } 26 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PB/IPB_TrayZoneBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PB 7 | { 8 | public interface IPB_TrayZoneBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task> GetDataListAsync(string typeId); 12 | Task GetTheDataAsync(string id); 13 | Task AddDataAsync(PB_TrayZone data); 14 | Task UpdateDataAsync(PB_TrayZone data); 15 | Task DeleteDataAsync(List ids); 16 | } 17 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PD/IPD_PlanBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PD; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.PD 7 | { 8 | public partial interface IPD_PlanBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(PD_Plan data); 13 | Task UpdateDataAsync(PD_Plan data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | public class PD_PlanQM 17 | { 18 | public string Keyword { get; set; } 19 | } 20 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/PD/IPD_PlanBusiness_Partial.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | 3 | namespace Coldairarrow.Business.PD 4 | { 5 | public partial interface IPD_PlanBusiness 6 | { 7 | Task Status(string id, int status); 8 | } 9 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_AllocateBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.TD 7 | { 8 | public partial interface ITD_AllocateBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(TD_Allocate data); 13 | Task UpdateDataAsync(TD_Allocate data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_AllocateBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.IBusiness.DTO; 3 | using Coldairarrow.Util; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Threading.Tasks; 7 | 8 | namespace Coldairarrow.Business.TD 9 | { 10 | public partial interface ITD_AllocateBusiness 11 | { 12 | Task> GetDataListAsync(TD_AllocatePageInput input); 13 | Task Approve(AuditDTO audit); 14 | Task Reject(AuditDTO audit); 15 | } 16 | 17 | public class TD_AllocateQM 18 | { 19 | public string Type { get; set; } 20 | public string Code { get; set; } 21 | public string ToStorId { get; set; } 22 | public DateTime? AllocateTimeStart { get; set; } 23 | public DateTime? AllocateTimeEnd { get; set; } 24 | public int? Status { get; set; } 25 | } 26 | 27 | public class TD_AllocatePageInput : PageInput 28 | { 29 | public string StorId { get; set; } 30 | } 31 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_AllocateDetailBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.TD 7 | { 8 | public partial interface ITD_AllocateDetailBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(TD_AllocateDetail data); 13 | Task UpdateDataAsync(TD_AllocateDetail data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_AllocateDetailBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.TD 7 | { 8 | public partial interface ITD_AllocateDetailBusiness 9 | { 10 | Task AddDataAsync(List list); 11 | Task UpdateDataAsync(List list); 12 | } 13 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_BadBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.TD 7 | { 8 | public partial interface ITD_BadBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(TD_Bad data); 13 | Task UpdateDataAsync(TD_Bad data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_BadBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.IBusiness.DTO; 3 | using Coldairarrow.Util; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Threading.Tasks; 7 | 8 | namespace Coldairarrow.Business.TD 9 | { 10 | public partial interface ITD_BadBusiness 11 | { 12 | Task> GetDataListAsync(TD_BadPageInput input); 13 | Task Approve(AuditDTO audit); 14 | Task Reject(AuditDTO audit); 15 | } 16 | 17 | public class TD_BadQM 18 | { 19 | public string Type { get; set; } 20 | public string Code { get; set; } 21 | public DateTime? BadTimeStart { get; set; } 22 | public DateTime? BadTimeEnd { get; set; } 23 | public int? Status { get; set; } 24 | } 25 | 26 | public class TD_BadPageInput : PageInput 27 | { 28 | public string StorId { get; set; } 29 | } 30 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_BadDetailBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.TD 7 | { 8 | public partial interface ITD_BadDetailBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(TD_BadDetail data); 13 | Task UpdateDataAsync(TD_BadDetail data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_BadDetailBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.TD 7 | { 8 | public partial interface ITD_BadDetailBusiness 9 | { 10 | Task AddDataAsync(List list); 11 | Task UpdateDataAsync(List list); 12 | } 13 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_CheckAreaBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.TD 7 | { 8 | public partial interface ITD_CheckAreaBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(TD_CheckArea data); 13 | Task UpdateDataAsync(TD_CheckArea data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_CheckAreaBusiness_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.TD 7 | { 8 | public partial interface ITD_CheckAreaBusiness 9 | { 10 | Task> QueryAsync(string checkId); 11 | 12 | Task ClearDataAsync(string checkId); 13 | 14 | Task PushAsync(List data); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_CheckBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.TD 7 | { 8 | public partial interface ITD_CheckBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(TD_Check data); 13 | Task UpdateDataAsync(TD_Check data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_CheckBusiness_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Business.IT; 2 | using Coldairarrow.Entity.IT; 3 | using Coldairarrow.Entity.TD; 4 | using Coldairarrow.IBusiness.DTO; 5 | using Coldairarrow.Util; 6 | using System.Collections.Generic; 7 | using System.Threading.Tasks; 8 | 9 | namespace Coldairarrow.Business.TD 10 | { 11 | public partial interface ITD_CheckBusiness 12 | { 13 | Task> QueryDataListAsync(string storId, PageInput input); 14 | 15 | Task PassHandleAsync(TD_Check data, List localData, List recordData); 16 | } 17 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_CheckDataBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.TD 7 | { 8 | public partial interface ITD_CheckDataBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(TD_CheckData data); 13 | Task UpdateDataAsync(TD_CheckData data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_CheckDataBusiness_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.IBusiness.DTO; 3 | using Coldairarrow.Util; 4 | using System.Collections.Generic; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.TD 8 | { 9 | public partial interface ITD_CheckDataBusiness 10 | { 11 | Task ClearDataAsync(string checkId); 12 | 13 | Task PushDataAsync(List data); 14 | 15 | Task> QueryDataListAsync(PageInput input); 16 | 17 | Task> QueryDataListAsync(string checkId); 18 | 19 | Task> AllCheckDataListAsync(string checkId); 20 | 21 | Task ModifyCheckNumAsync(string userId,TDCheckNumModifyDTO data); 22 | 23 | Task AllCompletedAsync(string CheckId); 24 | } 25 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_CheckMaterialBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.TD 7 | { 8 | public partial interface ITD_CheckMaterialBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(TD_CheckMaterial data); 13 | Task UpdateDataAsync(TD_CheckMaterial data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_CheckMaterialBusiness_Partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.PB; 2 | using Coldairarrow.Entity.TD; 3 | using Coldairarrow.Util; 4 | using System.Collections.Generic; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.TD 8 | { 9 | public partial interface ITD_CheckMaterialBusiness 10 | { 11 | Task ClearDataAsync(string checkId); 12 | 13 | Task PushAsync(List data); 14 | 15 | Task> QueryAsync(string checkId); 16 | } 17 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_InStorDetailBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.TD 7 | { 8 | public partial interface ITD_InStorDetailBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(TD_InStorDetail data); 13 | Task UpdateDataAsync(TD_InStorDetail data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_InStorageBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.TD 8 | { 9 | public partial interface ITD_InStorageBusiness 10 | { 11 | 12 | Task GetTheDataAsync(string id); 13 | Task AddDataAsync(TD_InStorage data); 14 | Task UpdateDataAsync(TD_InStorage data); 15 | Task DeleteDataAsync(List ids); 16 | } 17 | 18 | public class TD_InStorageQM 19 | { 20 | public string Code { get; set; } 21 | public string InType { get; set; } 22 | public int? Status { get; set; } 23 | public DateTime? InStorTimeStart { get; set; } 24 | public DateTime? InStorTimeEnd { get; set; } 25 | } 26 | public class TD_InStoragePageInput : PageInput 27 | { 28 | public string StorId { get; set; } 29 | } 30 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_InStorageBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.IBusiness.DTO; 3 | using Coldairarrow.Util; 4 | using System.Collections.Generic; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.TD 8 | { 9 | public partial interface ITD_InStorageBusiness 10 | { 11 | Task> GetDataListAsync(TD_InStoragePageInput input); 12 | 13 | Task Approve(AuditDTO audit); 14 | Task Reject(AuditDTO audit); 15 | 16 | /// 17 | /// 空托盘入库 18 | /// 19 | /// 20 | /// 21 | Task InBlankTray(List> listTray); 22 | 23 | /// 24 | /// 申请入库货位 25 | /// 26 | /// 参数 27 | /// 28 | Task ReqLocation((string StorId, string MaterialId, string TaryId) data); 29 | } 30 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_MoveBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.TD 7 | { 8 | public partial interface ITD_MoveBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(TD_Move data); 13 | Task UpdateDataAsync(TD_Move data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_MoveBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.IBusiness.DTO; 3 | using Coldairarrow.Util; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Threading.Tasks; 7 | 8 | namespace Coldairarrow.Business.TD 9 | { 10 | public partial interface ITD_MoveBusiness 11 | { 12 | Task> GetDataListAsync(TD_MovePageInput input); 13 | Task Approve(AuditDTO audit); 14 | Task Reject(AuditDTO audit); 15 | } 16 | 17 | public class TD_MoveQM 18 | { 19 | public string Type { get; set; } 20 | public string Code { get; set; } 21 | public DateTime? BadTimeStart { get; set; } 22 | public DateTime? BadTimeEnd { get; set; } 23 | public int? Status { get; set; } 24 | } 25 | 26 | public class TD_MovePageInput : PageInput 27 | { 28 | public string StorId { get; set; } 29 | } 30 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_MoveDetailBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.TD 8 | { 9 | public partial interface ITD_MoveDetailBusiness 10 | { 11 | Task> GetDataListAsync(PageInput input); 12 | Task GetTheDataAsync(string id); 13 | Task AddDataAsync(TD_MoveDetail data); 14 | Task UpdateDataAsync(TD_MoveDetail data); 15 | Task DeleteDataAsync(List ids); 16 | } 17 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_MoveDetailBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.TD 8 | { 9 | public partial interface ITD_MoveDetailBusiness 10 | { 11 | Task AddDataAsync(List list); 12 | Task UpdateDataAsync(List list); 13 | } 14 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_OutStorDetailBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.TD 7 | { 8 | public partial interface ITD_OutStorDetailBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(TD_OutStorDetail data); 13 | Task UpdateDataAsync(TD_OutStorDetail data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_OutStorageBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.TD 8 | { 9 | public partial interface ITD_OutStorageBusiness 10 | { 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(TD_OutStorage data); 13 | Task UpdateDataAsync(TD_OutStorage data); 14 | Task DeleteDataAsync(List ids); 15 | 16 | } 17 | 18 | public class TD_OutStorageQM 19 | { 20 | public string Code { get; set; } 21 | public int? Status { get; set; } 22 | public string OutType { get; set; } 23 | public DateTime? OutStorTimeStart { get; set; } 24 | public DateTime? OutStorTimeEnd { get; set; } 25 | } 26 | public class TD_OutStoragePageInput : PageInput 27 | { 28 | public string StorId { get; set; } 29 | } 30 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_RecDetailBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.TD 7 | { 8 | public partial interface ITD_RecDetailBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(TD_RecDetail data); 13 | Task UpdateDataAsync(TD_RecDetail data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_RecDetailBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.TD 7 | { 8 | public partial interface ITD_RecDetailBusiness 9 | { 10 | Task AddDataAsync(List list); 11 | Task UpdateDataAsync(List list); 12 | } 13 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_ReceivingBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | 6 | namespace Coldairarrow.Business.TD 7 | { 8 | public partial interface ITD_ReceivingBusiness 9 | { 10 | Task> GetDataListAsync(PageInput input); 11 | Task GetTheDataAsync(string id); 12 | Task AddDataAsync(TD_Receiving data); 13 | Task UpdateDataAsync(TD_Receiving data); 14 | Task DeleteDataAsync(List ids); 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_ReceivingBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.IBusiness.DTO; 3 | using Coldairarrow.Util; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Threading.Tasks; 7 | 8 | namespace Coldairarrow.Business.TD 9 | { 10 | public partial interface ITD_ReceivingBusiness 11 | { 12 | Task> GetDataListAsync(TD_ReceivingPageInput input); 13 | Task Approval(AuditDTO audit); 14 | 15 | Task UpdateByInStorage(string id); 16 | 17 | Task AutoInStorage(string id); 18 | } 19 | public class TD_ReceivingQM 20 | { 21 | public string Keyword { get; set; } 22 | public DateTime? OrderTimeStart { get; set; } 23 | public DateTime? OrderTimeEnd { get; set; } 24 | public string Type { get; set; } 25 | public int? Status { get; set; } 26 | } 27 | public class TD_ReceivingPageInput : PageInput 28 | { 29 | public string StorId { get; set; } 30 | } 31 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_SendBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.TD 8 | { 9 | public partial interface ITD_SendBusiness 10 | { 11 | //Task> GetDataListAsync(PageInput input); 12 | Task GetTheDataAsync(string id); 13 | Task AddDataAsync(TD_Send data); 14 | Task UpdateDataAsync(TD_Send data); 15 | Task DeleteDataAsync(List ids); 16 | } 17 | 18 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_SendBusiness_partial.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.IBusiness.DTO; 3 | using Coldairarrow.Util; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Threading.Tasks; 7 | 8 | namespace Coldairarrow.Business.TD 9 | { 10 | public partial interface ITD_SendBusiness 11 | { 12 | Task> GetDataListAsync(TD_SendPageInput input); 13 | 14 | // Task GetTheDataAsync(string id); 15 | Task Approval(AuditDTO audit); 16 | 17 | Task UpdateByOutStorage(string id); 18 | } 19 | public class TD_SendQM 20 | { 21 | public string Keyword { get; set; } 22 | public DateTime? OrderTimeStart { get; set; } 23 | public DateTime? OrderTimeEnd { get; set; } 24 | public string Type { get; set; } 25 | public int? Status { get; set; } 26 | } 27 | public class TD_SendPageInput : PageInput 28 | { 29 | public string StorId { get; set; } 30 | } 31 | } -------------------------------------------------------------------------------- /src/Coldairarrow.IBusiness/TD/ITD_SendDetailBusiness.cs: -------------------------------------------------------------------------------- 1 | using Coldairarrow.Entity.TD; 2 | using Coldairarrow.Util; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Threading.Tasks; 6 | 7 | namespace Coldairarrow.Business.TD 8 | { 9 | public partial interface ITD_SendDetailBusiness 10 | { 11 | Task> GetDataListAsync(PageInput input); 12 | Task GetTheDataAsync(string id); 13 | Task AddDataAsync(TD_SendDetail data); 14 | Task UpdateDataAsync(TD_SendDetail data); 15 | Task DeleteDataAsync(List ids); 16 | } 17 | 18 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/.env: -------------------------------------------------------------------------------- 1 | VUE_APP_ProjectName=WMS 2 | VUE_APP_APIUrl=http://localhost:5000 -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/.env.docker: -------------------------------------------------------------------------------- 1 | VUE_APP_ProjectName=WMS 2 | VUE_APP_APIUrl=http://10.76.20.162:5000 -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/.env.live: -------------------------------------------------------------------------------- 1 | VUE_APP_ProjectName=WMS 2 | #VUE_APP_APIUrl=http://114.115.162.100:8003 3 | VUE_APP_APIUrl=https://wmsapi.giantliu.cn -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | 9 | # Log files 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | pnpm-debug.log* 14 | 15 | # Editor directories and files 16 | .idea 17 | .vscode 18 | *.suo 19 | *.ntvs* 20 | *.njsproj 21 | *.sln 22 | *.sw? 23 | -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/README.md: -------------------------------------------------------------------------------- 1 | # coldairarrow.pad 2 | 3 | ## Project setup 4 | ``` 5 | npm install 6 | ``` 7 | 8 | ### Compiles and hot-reloads for development 9 | ``` 10 | npm run serve 11 | ``` 12 | 13 | ### Compiles and minifies for production 14 | ``` 15 | npm run build 16 | ``` 17 | 18 | ### Lints and fixes files 19 | ``` 20 | npm run lint 21 | ``` 22 | 23 | ### Customize configuration 24 | See [Configuration Reference](https://cli.vuejs.org/config/). 25 | -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/cli-plugin-babel/preset' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/public/Dockerfile: -------------------------------------------------------------------------------- 1 | # 设置基础镜像 2 | FROM nginx 3 | # 将dist文件中的内容复制到 /usr/share/nginx/html/ 这个目录下面 4 | COPY . /usr/share/nginx/html/ 5 | COPY default.conf /etc/nginx/conf.d/ -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/public/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | server_name localhost; 4 | 5 | location / { 6 | root /usr/share/nginx/html; 7 | index index.html; 8 | # vue的路由并不是真实物理路由,所以用try_files,路径都指向根目录下的index.html 9 | try_files $uri $uri/ /index.html; 10 | 11 | gzip on;#开启gzip 12 | gzip_types text/plain application/x-javascript application/javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png; 13 | } 14 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/src/Coldairarrow.Pad/public/favicon.ico -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/public/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/src/Coldairarrow.Pad/public/favicon.png -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/public/loading/loading.html: -------------------------------------------------------------------------------- 1 |
Loading
-------------------------------------------------------------------------------- /src/Coldairarrow.Pad/public/loading/option2/loading.css: -------------------------------------------------------------------------------- 1 | .preloading-animate{background:#ffffff;width:100%;height:100%;position:fixed;left:0;top:0;z-index:299;}.preloading-animate .preloading-wrapper{position:absolute;width:5rem;height:5rem;left:50%;top:50%;transform:translate(-50%,-50%);}.preloading-animate .preloading-wrapper .preloading-balls{font-size:5rem;} -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/App.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 21 | -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/api/Home/UserSvc.js: -------------------------------------------------------------------------------- 1 | import http from '../../utils/axios-plugin' 2 | 3 | export default { 4 | Login(user) { 5 | return http.post('/Base_Manage/Home/SubmitLogin', user) 6 | }, 7 | GetCurUser(){ 8 | return http.get('/Base_Manage/Base_User/GetCurUser') 9 | } 10 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/api/PB/EnumSvc.js: -------------------------------------------------------------------------------- 1 | import http from '../../utils/axios-plugin' 2 | 3 | export default { 4 | GetByCode(code) { 5 | return http.get('/Base/Base_Enum/GetByCode?code=' + code) 6 | } 7 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/api/PB/LocalSvc.js: -------------------------------------------------------------------------------- 1 | import http from '../../utils/axios-plugin' 2 | 3 | export default { 4 | GetDataList(query) { 5 | return http.post('/PB/PB_Location/GetDataList', query) 6 | } 7 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/api/PB/MaterialSvc.js: -------------------------------------------------------------------------------- 1 | import http from '../../utils/axios-plugin' 2 | 3 | export default { 4 | GetDataList(query) { 5 | return http.post('/PB/PB_Material/QueryDataList', query) 6 | }, 7 | GetTheData(id) { 8 | return http.post('/PB/PB_Material/GetTheData', { id: id }) 9 | }, 10 | GetByBarcode(barcode) { 11 | return http.get('/PB/PB_Material/GetByBarcode?barcode=' + barcode) 12 | }, 13 | GetByCode(code) { 14 | return http.get('/PB/PB_Material/GetByCode?code=' + code) 15 | } 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/api/PB/PlanSvc.js: -------------------------------------------------------------------------------- 1 | import http from '../../utils/axios-plugin' 2 | 3 | export default { 4 | GetDataList(query) { 5 | return http.post('/PD/PD_Plan/GetDataList', query) 6 | }, 7 | GetTheData(id) { 8 | return http.post('/PD/PD_Plan/GetTheData', { id: id }) 9 | } 10 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/api/PB/StorageSvc.js: -------------------------------------------------------------------------------- 1 | import http from '../../utils/axios-plugin' 2 | 3 | export default { 4 | GetStorage() { 5 | return http.get('/Base/Base_UserStor/GetStorage') 6 | }, 7 | GetCurStorage() { 8 | return http.get('/PB/PB_Storage/GetCurStorage') 9 | }, 10 | SwitchStorage(id){ 11 | return http.post('/Base/Base_UserStor/SwitchStorage', { id: id }) 12 | } 13 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/api/PB/TraySvc.js: -------------------------------------------------------------------------------- 1 | import http from '../../utils/axios-plugin' 2 | 3 | export default { 4 | GetDataList(query) { 5 | return http.post('/PB/PB_Tray/GetDataList', query) 6 | }, 7 | OutManualTray(data) { 8 | return http.post('/PB/PB_Tray/OutManualTray', data) 9 | }, 10 | InManualTray(data) { 11 | return http.post('/PB/PB_Tray/InManualTray', data) 12 | }, 13 | InAutoTray(data) { 14 | return http.post('/PB/PB_Tray/InAutoTray', data) 15 | }, 16 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/api/Report/LocalMaterialSvc.js: -------------------------------------------------------------------------------- 1 | import http from '../../utils/axios-plugin' 2 | 3 | export default { 4 | GetDataList(query) { 5 | return http.post('/IT/IT_LocalMaterial/GetDataList', query) 6 | } 7 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/api/TD/InStorageSvc.js: -------------------------------------------------------------------------------- 1 | import http from '../../utils/axios-plugin' 2 | 3 | export default { 4 | AutoInByTary(data) { 5 | return http.post('/TD/TD_InStorage/AutoInByTary', data) 6 | }, 7 | ManualIn(data) { 8 | return http.post('/TD/TD_InStorage/ManualIn', data) 9 | }, 10 | GetDataList(query) { 11 | return http.post('/TD/TD_InStorage/GetDataList', query) 12 | }, 13 | GetTheData(id) { 14 | return http.post('/TD/TD_InStorage/GetTheData', { id: id }) 15 | }, 16 | Audit(id, type) { 17 | return http.post('/TD/TD_InStorage/Audit', { Id: id, AuditType: type }) 18 | } 19 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/api/TD/OutStorageSvc.js: -------------------------------------------------------------------------------- 1 | import http from '../../utils/axios-plugin' 2 | 3 | export default { 4 | AutoOut(data) { 5 | return http.post('/TD/TD_OutStorage/AutoOut', data) 6 | }, 7 | ManualOut(data) { 8 | return http.post('/TD/TD_OutStorage/ManualOut', data) 9 | }, 10 | GetDataList(query) { 11 | return http.post('/TD/TD_OutStorage/GetDataList', query) 12 | }, 13 | GetTheData(id) { 14 | return http.post('/TD/TD_OutStorage/GetTheData', { id: id }) 15 | }, 16 | Audit(id, type) { 17 | return http.post('/TD/TD_OutStorage/Audit', { Id: id, AuditType: type }) 18 | }, 19 | OutAutoTray(data) { 20 | return http.post('/PB/PB_Tray/OutAutoTray', data) 21 | }, 22 | OutTrayType() { 23 | return http.post('/PB/PB_TrayType/GetAllData') 24 | } 25 | 26 | 27 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/api/TD/ReceiveSvc.js: -------------------------------------------------------------------------------- 1 | import http from '../../utils/axios-plugin' 2 | 3 | export default { 4 | SaveData(data) { 5 | return http.post('/TD/TD_Receiving/SaveData', data) 6 | }, 7 | GetDataList(query) { 8 | return http.post('/TD/TD_Receiving/GetDataList', query) 9 | }, 10 | GetTheData(id) { 11 | return http.post('/TD/TD_Receiving/GetTheData', { id: id }) 12 | }, 13 | Approval(id, type) { 14 | return http.post('/TD/TD_Receiving/Approval', { Id: id, AuditType: type }) 15 | }, 16 | DeleteData(id) { 17 | return http.post('/TD/TD_Receiving/DeleteData', [id]) 18 | } 19 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/api/TD/SendSvc.js: -------------------------------------------------------------------------------- 1 | import http from '../../utils/axios-plugin' 2 | 3 | export default { 4 | SaveData(data) { 5 | return http.post('/TD/TD_Send/SaveData', data) 6 | }, 7 | GetDataList(query) { 8 | return http.post('/TD/TD_Send/GetDataList', query) 9 | }, 10 | GetTheData(id) { 11 | return http.post('/TD/TD_Send/GetTheData', { id: id }) 12 | }, 13 | Approval(id, type) { 14 | return http.post('/TD/TD_Send/Approval', { Id: id, AuditType: type }) 15 | }, 16 | DeleteData(id) { 17 | return http.post('/TD/TD_Send/DeleteData', [id]) 18 | } 19 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/src/Coldairarrow.Pad/src/assets/logo.png -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/components/UserMenu.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | 39 | 40 | -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | ApiUrl: process.env.VUE_APP_APIUrl 3 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/layouts/UserLayout.vue: -------------------------------------------------------------------------------- 1 | 14 | 15 | 22 | -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import VueRouter from 'vue-router' 3 | import Antd from 'ant-design-vue'; 4 | import 'ant-design-vue/dist/antd.css'; 5 | import router from './router' 6 | import App from './App.vue' 7 | 8 | Vue.config.productionTip = false 9 | Vue.use(VueRouter) 10 | Vue.use(Antd); 11 | new Vue({ 12 | router, 13 | render: h => h(App), 14 | }).$mount('#app') 15 | -------------------------------------------------------------------------------- /src/Coldairarrow.Pad/src/utils/TokenCache.js: -------------------------------------------------------------------------------- 1 | const tokenKey = 'jwtToken' 2 | 3 | let TokenCache = { 4 | getToken() { 5 | return localStorage.getItem(tokenKey) 6 | }, 7 | setToken(newToken) { 8 | localStorage.setItem(tokenKey, newToken) 9 | }, 10 | deleteToken() { 11 | localStorage.removeItem(tokenKey) 12 | } 13 | } 14 | 15 | export default TokenCache -------------------------------------------------------------------------------- /src/Coldairarrow.UnitTests/DemoTest.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.VisualStudio.TestTools.UnitTesting; 2 | 3 | namespace Coldairarrow.UnitTests 4 | { 5 | [TestClass] 6 | public class DemoTest 7 | { 8 | [TestMethod] 9 | public void Test() 10 | { 11 | Assert.IsTrue(true); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Coldairarrow.UnitTests/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/Coldairarrow.UnitTests/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "ConnectionStrings": { 3 | //SQLServer 4 | "BaseDb": "Data Source=.;Initial Catalog=Colder.Admin.AntdVue;Integrated Security=True", 5 | //PostgreSQL 6 | //"BaseDb": "SERVER=localhost;PORT=5432;DATABASE=Colder.Admin.AntdVue;USER ID=postgres;PASSWORD=postgres" 7 | //MySQl 8 | //"BaseDb": "server=127.0.0.1;user id=root;password=root;persistsecurityinfo=True;database=Colder.Admin.AntdVue;SslMode=none" 9 | //Oracle 10 | //"BaseDb": "Data Source=127.0.0.1/ORCL;User ID=COLDER.ADMIN.ANTDVUE;Password=123456;Connect Timeout=3" 11 | "BaseDb_Test": "Data Source=.;Initial Catalog=Colder.Admin.AntdVue1;Integrated Security=True" 12 | }, 13 | "WorkerId": 1 //机器Id 14 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Util/AOP/Abstraction/BaseAOPAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading.Tasks; 3 | 4 | namespace Coldairarrow.Util 5 | { 6 | /// 7 | /// AOP基类 8 | /// 注:不支持控制器,需要定义接口并实现接口,自定义AOP特性放到接口实现类上 9 | /// 10 | public abstract class BaseAOPAttribute : Attribute 11 | { 12 | public virtual async Task Befor(IAOPContext context) 13 | { 14 | await Task.CompletedTask; 15 | } 16 | 17 | public virtual async Task After(IAOPContext context) 18 | { 19 | await Task.CompletedTask; 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/AOP/Abstraction/IAOPContext.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | 4 | namespace Coldairarrow.Util 5 | { 6 | public interface IAOPContext 7 | { 8 | IServiceProvider ServiceProvider { get; } 9 | object[] Arguments { get; } 10 | Type[] GenericArguments { get; } 11 | MethodInfo Method { get; } 12 | MethodInfo MethodInvocationTarget { get; } 13 | object Proxy { get; } 14 | object ReturnValue { get; set; } 15 | Type TargetType { get; } 16 | object InvocationTarget { get; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/DI/IScopeDependency.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Util 2 | { 3 | /// 4 | /// 注入标记,生命周期为Scope 5 | /// 6 | public interface IScopedDependency 7 | { 8 | 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/DI/ISingletonDependency.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Util 2 | { 3 | /// 4 | /// 注入标记,生命周期为Singleton 5 | /// 6 | public interface ISingletonDependency 7 | { 8 | 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/DI/ITransientDependency.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Util 2 | { 3 | /// 4 | /// 注入标记,生命周期为Transient 5 | /// 6 | public interface ITransientDependency 7 | { 8 | 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Extention/Extention.ActionExecutingContext.cs: -------------------------------------------------------------------------------- 1 | using System.Linq; 2 | 3 | namespace Microsoft.AspNetCore.Mvc.Filters 4 | { 5 | /// 6 | /// 拓展类 7 | /// 8 | public static partial class Extention 9 | { 10 | /// 11 | /// 是否拥有某过滤器 12 | /// 13 | /// 过滤器类型 14 | /// 上下文 15 | /// 16 | public static bool ContainsFilter(this FilterContext actionExecutingContext) 17 | { 18 | return actionExecutingContext.Filters.Any(x => x.GetType() == typeof(T)); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Extention/Extention.Delegate.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Coldairarrow.Util 4 | { 5 | /// 6 | /// 拓展方法静态类 7 | /// 8 | public static partial class Extention 9 | { 10 | /// 11 | /// 异步,按顺序执行第一个方法和第二个方法 12 | /// 13 | /// 第一个方法 14 | /// 下一个方法 15 | public static void Done(this Action firstFunc, Action next) 16 | { 17 | DelegateHelper.RunAsync(firstFunc, next); 18 | } 19 | 20 | /// 21 | /// 异步,按顺序执行第一个方法和下一个方法 22 | /// 23 | /// 第一个方法 24 | /// 下一个方法 25 | public static void Done(this Func firstFunc, Action next) 26 | { 27 | DelegateHelper.RunAsync(firstFunc, next); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Extention/Extention.Enum.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel; 3 | using System.Linq; 4 | 5 | namespace Coldairarrow.Util 6 | { 7 | /// 8 | /// 拓展类 9 | /// 10 | public static partial class Extention 11 | { 12 | /// 13 | /// 获取枚举描述 14 | /// 15 | /// 枚举值 16 | /// 17 | public static string GetDescription(this Enum value) 18 | { 19 | DescriptionAttribute attribute = value.GetType() 20 | .GetField(value.ToString()) 21 | .GetCustomAttributes(typeof(DescriptionAttribute), false) 22 | .SingleOrDefault() as DescriptionAttribute; 23 | return attribute == null ? value.ToString() : attribute.Description; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Extention/Extention.Guid.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Coldairarrow.Util 4 | { 5 | public static partial class Extention 6 | { 7 | /// 8 | /// 转为有序的GUID 9 | /// 注:长度为50字符 10 | /// 11 | /// 新的GUID 12 | /// 13 | public static string ToSequentialGuid(this Guid guid) 14 | { 15 | var timeStr = (DateTime.Now.ToCstTime().Ticks / 10000).ToString("x8"); 16 | var newGuid = $"{timeStr.PadLeft(13, '0')}-{guid}"; 17 | 18 | return newGuid; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Helper/GuidHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Coldairarrow.Util 4 | { 5 | /// 6 | /// GUID帮助类 7 | /// 8 | public static class GuidHelper 9 | { 10 | /// 11 | /// 生成主键 12 | /// 13 | /// 14 | public static string GenerateKey() 15 | { 16 | return Guid.NewGuid().ToSequentialGuid().ToUpper(); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Helper/HttpClientHelper.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Extensions.DependencyInjection; 2 | using System.Net.Http; 3 | using System.Threading.Tasks; 4 | 5 | namespace Coldairarrow.Util 6 | { 7 | /// 8 | /// Http请求帮助类 9 | /// 10 | public static class HttpClientHelper 11 | { 12 | private static readonly ServiceProvider _serviceProvider = 13 | new ServiceCollection().AddHttpClient().BuildServiceProvider(); 14 | 15 | private static async Task HttpClientFactoryTest() 16 | { 17 | var httpClientFactory = _serviceProvider.GetService(); 18 | var client = httpClientFactory.CreateClient(); 19 | var response = await client.SendAsync(new HttpRequestMessage(System.Net.Http.HttpMethod.Get, "https://www.aliyun.com/")); 20 | var content = await response.Content.ReadAsStringAsync(); 21 | 22 | string tmp = string.Empty; 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Helper/LinqHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq.Expressions; 3 | 4 | namespace Coldairarrow.Util 5 | { 6 | /// 7 | /// Linq操作帮助类 8 | /// 9 | public static class LinqHelper 10 | { 11 | /// 12 | /// 创建初始条件为True的表达式 13 | /// 14 | /// 15 | /// 16 | public static Expression> True() 17 | { 18 | return x => true; 19 | } 20 | 21 | /// 22 | /// 创建初始条件为False的表达式 23 | /// 24 | /// 25 | /// 26 | public static Expression> False() 27 | { 28 | return x => false; 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Helper/LogHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Threading.Tasks; 4 | 5 | namespace Coldairarrow.Util 6 | { 7 | /// 8 | /// 日志帮助类 9 | /// 10 | public static class LogHelper 11 | { 12 | /// 13 | /// 写入日志到本地TXT文件 14 | /// 注:日志文件名为"A_log.txt",目录为根目录 15 | /// 16 | /// 日志内容 17 | public static void WriteLog_LocalTxt(string log) 18 | { 19 | Task.Run(() => 20 | { 21 | string filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "A_log.txt"); 22 | string logContent = $"{DateTime.Now.ToCstTime().ToString("yyyy-MM-dd HH:mm:ss")}:{log}\r\n"; 23 | File.AppendAllText(filePath, logContent); 24 | }); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Helper/LoopHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Coldairarrow.Util 4 | { 5 | /// 6 | /// 循环帮助类 7 | /// 8 | public class LoopHelper 9 | { 10 | /// 11 | /// 循环指定次数 12 | /// 13 | /// 循环次数 14 | /// 执行的方法 15 | public static void Loop(int count,Action method) 16 | { 17 | for (int i = 0; i < count; i++) 18 | { 19 | method(); 20 | } 21 | } 22 | 23 | /// 24 | /// 循环指定次数 25 | /// 26 | /// 循环次数 27 | /// 执行的方法 28 | public static void Loop(int count, Action method) 29 | { 30 | for (int i = 0; i < count; i++) 31 | { 32 | method(i); 33 | } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Primitives/AjaxResult.T.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Util 2 | { 3 | /// 4 | /// Ajax请求结果 5 | /// 6 | public class AjaxResult : AjaxResult 7 | { 8 | /// 9 | /// 返回数据 10 | /// 11 | public T Data { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Primitives/AjaxResult.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Util 2 | { 3 | /// 4 | /// Ajax请求结果 5 | /// 6 | public class AjaxResult 7 | { 8 | /// 9 | /// 是否成功 10 | /// 11 | public bool Success { get; set; } = true; 12 | 13 | /// 14 | /// 错误代码 15 | /// 16 | public int ErrorCode { get; set; } 17 | 18 | /// 19 | /// 返回消息 20 | /// 21 | public string Msg { get; set; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Primitives/CacheType.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Util 2 | { 3 | /// 4 | /// 缓存类型 5 | /// 6 | public enum CacheType 7 | { 8 | /// 9 | /// 使用内存缓存(不支持分布式) 10 | /// 11 | Memory, 12 | 13 | /// 14 | /// 使用Redis缓存(支持分布式) 15 | /// 16 | Redis 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Primitives/ConditionDTO.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Util 2 | { 3 | /// 4 | /// 通用条件查询DTO 5 | /// 6 | public class ConditionDTO 7 | { 8 | public string Condition { get; set; } 9 | public string Keyword { get; set; } 10 | 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Primitives/DbTableInfo.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Util 2 | { 3 | /// 4 | /// 数据库所有表的信息 5 | /// 6 | public class DbTableInfo 7 | { 8 | /// 9 | /// 表名 10 | /// 11 | public string TableName { get; set; } 12 | 13 | /// 14 | /// 表描述说明 15 | /// 16 | public string Description 17 | { 18 | get 19 | { 20 | return _description.IsNullOrEmpty() ? TableName : _description; 21 | } 22 | set 23 | { 24 | _description = value; 25 | } 26 | } 27 | 28 | private string _description { get; set; } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Primitives/DeleteMode.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Util 2 | { 3 | /// 4 | /// 删除模式 5 | /// 6 | public enum DeleteMode 7 | { 8 | /// 9 | /// 物理删除,即直接从数据库删除 10 | /// 11 | Physic, 12 | 13 | /// 14 | /// 逻辑删除,即仅将Deleted字段置为true 15 | /// 16 | Logic 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Primitives/ErrorResult.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Util 2 | { 3 | public class ErrorResult : AjaxResult 4 | { 5 | public ErrorResult(string msg = "操作失败!", int errorCode = 0) 6 | { 7 | Msg = msg; 8 | Success = false; 9 | ErrorCode = errorCode; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Primitives/FileEntry.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Util 2 | { 3 | /// 4 | /// 文件信息 5 | /// 6 | public struct FileEntry 7 | { 8 | public FileEntry(string fileName,byte[] fileBytes) 9 | { 10 | FileName = fileName; 11 | FileBytes = fileBytes; 12 | } 13 | 14 | /// 15 | /// 文件名 16 | /// 17 | public string FileName { get; set; } 18 | 19 | /// 20 | /// 文件字节 21 | /// 22 | public byte[] FileBytes { get; set; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Primitives/IdInputDTO.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Util 2 | { 3 | public class IdInputDTO 4 | { 5 | /// 6 | /// id 7 | /// 8 | public string id { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Primitives/JWTPayload.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Coldairarrow.Util 4 | { 5 | public class JWTPayload 6 | { 7 | public string UserId { get; set; } 8 | public DateTime Expire { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Primitives/LogType.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Util 2 | { 3 | /// 4 | /// 系统日志类型 5 | /// 6 | public enum UserLogType 7 | { 8 | 系统异常, 9 | 系统用户管理, 10 | 系统角色管理, 11 | 接口密钥管理, 12 | 部门管理, 13 | 数据字典, 14 | 仓库管理, 15 | 系统参数, 16 | 巷道管理, 17 | 计量单位, 18 | 仓库权限, 19 | 客户管理, 20 | 托盘类型, 21 | 托盘管理, 22 | 供应商管理, 23 | 物料类型, 24 | 物料管理, 25 | 条码类型, 26 | 货区管理, 27 | 货位管理, 28 | 移库管理, 29 | 入库管理, 30 | 盘点管理, 31 | 出库管理, 32 | 报损管理, 33 | 调拨管理, 34 | 收货管理, 35 | 发货管理, 36 | 计划表 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Primitives/MapAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Coldairarrow.Util 4 | { 5 | public class MapAttribute : Attribute 6 | { 7 | public MapAttribute(params Type[] targetTypes) 8 | { 9 | TargetTypes = targetTypes; 10 | } 11 | public Type[] TargetTypes { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Primitives/OptionListInputDTO.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace Coldairarrow.Util 4 | { 5 | public class OptionListInputDTO 6 | { 7 | public List selectedValues { get; set; } 8 | public string q { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Primitives/PageInput.T.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Util 2 | { 3 | public class PageInput : PageInput where T : new() 4 | { 5 | public T Search { get; set; } = new T(); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Primitives/PageInput.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Util 2 | { 3 | /// 4 | /// 分页查询基类 5 | /// 6 | public class PageInput 7 | { 8 | private string _sortType { get; set; } = "asc"; 9 | 10 | /// 11 | /// 当前页码 12 | /// 13 | public int PageIndex { get; set; } = 1; 14 | 15 | /// 16 | /// 每页行数 17 | /// 18 | public int PageRows { get; set; } = int.MaxValue; 19 | 20 | /// 21 | /// 排序列 22 | /// 23 | public string SortField { get; set; } = "Id"; 24 | 25 | /// 26 | /// 排序类型 27 | /// 28 | public string SortType { get => _sortType; set => _sortType = (value ?? string.Empty).ToLower().Contains("desc") ? "desc" : "asc"; } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Primitives/PageResult.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace Coldairarrow.Util 4 | { 5 | /// 6 | /// 分页返回结果 7 | /// 8 | /// 9 | public class PageResult : AjaxResult> 10 | { 11 | /// 12 | /// 总记录数 13 | /// 14 | public int Total { get; set; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Primitives/SelectOption.cs: -------------------------------------------------------------------------------- 1 | namespace Coldairarrow.Util 2 | { 3 | /// 4 | /// 前端SelectOption 5 | /// 6 | public class SelectOption 7 | { 8 | public string value { get; set; } 9 | public string text { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/Primitives/TreeModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace Coldairarrow.Util 4 | { 5 | /// 6 | /// 树模型(可以作为父类) 7 | /// 8 | public class TreeModel 9 | { 10 | /// 11 | /// 唯一标识Id 12 | /// 13 | public string Id { get; set; } 14 | 15 | /// 16 | /// 数据值 17 | /// 18 | public string Value { get; set; } 19 | 20 | /// 21 | /// 父Id 22 | /// 23 | public string ParentId { get; set; } 24 | 25 | /// 26 | /// 节点深度 27 | /// 28 | public int? Level { get; set; } = 1; 29 | 30 | /// 31 | /// 显示的内容 32 | /// 33 | public string Text { get; set; } 34 | 35 | /// 36 | /// 孩子节点 37 | /// 38 | public List Children { get; set; } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/Coldairarrow.Util/lib/Aspose.Cells.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/src/Coldairarrow.Util/lib/Aspose.Cells.dll -------------------------------------------------------------------------------- /src/Coldairarrow.Web/.editorconfig: -------------------------------------------------------------------------------- 1 | [*] 2 | charset=utf-8 3 | end_of_line=lf 4 | insert_final_newline=false 5 | indent_style=space 6 | indent_size=2 7 | 8 | [{*.ng,*.sht,*.html,*.shtm,*.shtml,*.htm}] 9 | indent_style=space 10 | indent_size=2 11 | 12 | [{*.jhm,*.xslt,*.xul,*.rng,*.xsl,*.xsd,*.ant,*.tld,*.fxml,*.jrxml,*.xml,*.jnlp,*.wsdl}] 13 | indent_style=space 14 | indent_size=2 15 | 16 | [{.babelrc,.stylelintrc,jest.config,.eslintrc,.prettierrc,*.json,*.jsb3,*.jsb2,*.bowerrc}] 17 | indent_style=space 18 | indent_size=2 19 | 20 | [*.svg] 21 | indent_style=space 22 | indent_size=2 23 | 24 | [*.js.map] 25 | indent_style=space 26 | indent_size=2 27 | 28 | [*.less] 29 | indent_style=space 30 | indent_size=2 31 | 32 | [*.vue] 33 | indent_style=space 34 | indent_size=2 35 | 36 | [{.analysis_options,*.yml,*.yaml}] 37 | indent_style=space 38 | indent_size=2 39 | 40 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/.env: -------------------------------------------------------------------------------- 1 | NODE_ENV=production 2 | VUE_APP_PREVIEW=false 3 | #项目名 4 | VUE_APP_ProjectName=WMS 5 | #首页路径 6 | VUE_APP_DesktopPath=/Home/Introduce 7 | #发布后接口根地址 8 | VUE_APP_PublishRootUrl=http://localhost:5001 9 | #本地调试接口根地址 10 | VUE_APP_LocalRootUrl=http://localhost:5000 11 | #接口超时时间ms 12 | VUE_APP_ApiTimeout=10000 13 | #本地开发启动端口 14 | VUE_APP_DevPort=5001 -------------------------------------------------------------------------------- /src/Coldairarrow.Web/.env.docker: -------------------------------------------------------------------------------- 1 | NODE_ENV=production 2 | VUE_APP_PREVIEW=false 3 | #项目名 4 | VUE_APP_ProjectName=WMS 5 | #首页路径 6 | VUE_APP_DesktopPath=/Home/Introduce 7 | #发布后接口根地址 8 | VUE_APP_PublishRootUrl=http://10.76.20.162:5000 9 | #本地调试接口根地址 10 | VUE_APP_LocalRootUrl=http://localhost:5000 11 | #接口超时时间ms 12 | VUE_APP_ApiTimeout=10000 13 | #本地开发启动端口 14 | VUE_APP_DevPort=5001 -------------------------------------------------------------------------------- /src/Coldairarrow.Web/.env.live: -------------------------------------------------------------------------------- 1 | NODE_ENV=production 2 | VUE_APP_PREVIEW=false 3 | #项目名 4 | VUE_APP_ProjectName=WMS 5 | #首页路径 6 | VUE_APP_DesktopPath=/Home/Introduce 7 | #发布后接口根地址 8 | #VUE_APP_PublishRootUrl=http://114.115.162.100:8003 9 | VUE_APP_PublishRootUrl=https://wmsapi.giantliu.cn 10 | #本地调试接口根地址 11 | VUE_APP_LocalRootUrl=http://localhost:5000 12 | #接口超时时间ms 13 | VUE_APP_ApiTimeout=10000 14 | #本地开发启动端口 15 | VUE_APP_DevPort=5001 -------------------------------------------------------------------------------- /src/Coldairarrow.Web/.env.preview: -------------------------------------------------------------------------------- 1 | NODE_ENV=production 2 | VUE_APP_PREVIEW=true 3 | VUE_APP_API_BASE_URL=/api -------------------------------------------------------------------------------- /src/Coldairarrow.Web/.gitattributes: -------------------------------------------------------------------------------- 1 | public/* linguist-vendored -------------------------------------------------------------------------------- /src/Coldairarrow.Web/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | 9 | # Log files 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | 14 | # Editor directories and files 15 | .idea 16 | .vscode 17 | *.suo 18 | *.ntvs* 19 | *.njsproj 20 | *.sln 21 | *.sw* 22 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 120, 3 | "semi": false, 4 | "singleQuote": true 5 | } 6 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 10.15.0 4 | cache: yarn 5 | script: 6 | - yarn 7 | - yarn run lint --no-fix && yarn run build 8 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/app', 4 | [ 5 | '@babel/preset-env', 6 | { 7 | 'useBuiltIns': 'entry' 8 | } 9 | ] 10 | ] 11 | // if your use import on Demand, Use this code 12 | // , 13 | // plugins: [ 14 | // [ 'import', { 15 | // 'libraryName': 'ant-design-vue', 16 | // 'libraryDirectory': 'es', 17 | // 'style': true // `style: true` 会加载 less 文件 18 | // } ] 19 | // ] 20 | } 21 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | moduleFileExtensions: [ 3 | 'js', 4 | 'jsx', 5 | 'json', 6 | 'vue' 7 | ], 8 | transform: { 9 | '^.+\\.vue$': 'vue-jest', 10 | '.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub', 11 | '^.+\\.jsx?$': 'babel-jest' 12 | }, 13 | moduleNameMapper: { 14 | '^@/(.*)$': '/src/$1' 15 | }, 16 | snapshotSerializers: [ 17 | 'jest-serializer-vue' 18 | ], 19 | testMatch: [ 20 | '**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)' 21 | ], 22 | testURL: 'http://localhost/' 23 | } 24 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es6", 4 | "baseUrl": ".", 5 | "paths": { 6 | "@/*": [ 7 | "src/*" 8 | ] 9 | } 10 | }, 11 | "exclude": [ 12 | "node_modules", 13 | "dist" 14 | ], 15 | "include": [ 16 | "src/**/*" 17 | ] 18 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Web/public/Dockerfile: -------------------------------------------------------------------------------- 1 | # 设置基础镜像 2 | FROM nginx 3 | # 将dist文件中的内容复制到 /usr/share/nginx/html/ 这个目录下面 4 | COPY . /usr/share/nginx/html/ 5 | COPY default.conf /etc/nginx/conf.d/ -------------------------------------------------------------------------------- /src/Coldairarrow.Web/public/avatar2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/src/Coldairarrow.Web/public/avatar2.jpg -------------------------------------------------------------------------------- /src/Coldairarrow.Web/public/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | server_name localhost; 4 | 5 | location / { 6 | root /usr/share/nginx/html; 7 | index index.html; 8 | # vue的路由并不是真实物理路由,所以用try_files,路径都指向根目录下的index.html 9 | try_files $uri $uri/ /index.html; 10 | 11 | gzip on;#开启gzip 12 | gzip_types text/plain application/x-javascript application/javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png; 13 | } 14 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Web/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/src/Coldairarrow.Web/public/favicon.ico -------------------------------------------------------------------------------- /src/Coldairarrow.Web/public/loading/loading.html: -------------------------------------------------------------------------------- 1 |
Loading
-------------------------------------------------------------------------------- /src/Coldairarrow.Web/public/loading/option2/loading.css: -------------------------------------------------------------------------------- 1 | .preloading-animate{background:#ffffff;width:100%;height:100%;position:fixed;left:0;top:0;z-index:299;}.preloading-animate .preloading-wrapper{position:absolute;width:5rem;height:5rem;left:50%;top:50%;transform:translate(-50%,-50%);}.preloading-animate .preloading-wrapper .preloading-balls{font-size:5rem;} -------------------------------------------------------------------------------- /src/Coldairarrow.Web/public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/src/Coldairarrow.Web/public/logo.png -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/App.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 27 | 32 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/assets/fullLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/src/Coldairarrow.Web/src/assets/fullLogo.png -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/src/Coldairarrow.Web/src/assets/logo.png -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/assets/zeqp.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/src/Coldairarrow.Web/src/assets/zeqp.gif -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/Exception/index.js: -------------------------------------------------------------------------------- 1 | import ExceptionPage from './ExceptionPage.vue' 2 | export default ExceptionPage 3 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/Exception/type.js: -------------------------------------------------------------------------------- 1 | const types = { 2 | 403: { 3 | img: 'https://gw.alipayobjects.com/zos/rmsportal/wZcnGqRDyhPOEYFcZDnb.svg', 4 | title: '403', 5 | desc: '抱歉,你无权访问该页面' 6 | }, 7 | 404: { 8 | img: 'https://gw.alipayobjects.com/zos/rmsportal/KpnpchXsobRgLElEozzI.svg', 9 | title: '404', 10 | desc: '抱歉,该页面不存在或您无权访问该页面' 11 | }, 12 | 500: { 13 | img: 'https://gw.alipayobjects.com/zos/rmsportal/RVRUAYdCGeYNBWoKiIwB.svg', 14 | title: '500', 15 | desc: '抱歉,服务器出错了' 16 | } 17 | } 18 | 19 | export default types 20 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/GlobalFooter/index.js: -------------------------------------------------------------------------------- 1 | import GlobalFooter from './GlobalFooter' 2 | export default GlobalFooter 3 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/GlobalHeader/index.js: -------------------------------------------------------------------------------- 1 | import GlobalHeader from './GlobalHeader' 2 | export default GlobalHeader 3 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/IconSelector/README.md: -------------------------------------------------------------------------------- 1 | IconSelector 2 | ==== 3 | 4 | > 图标选择组件,常用于为某一个数据设定一个图标时使用 5 | > eg: 设定菜单列表时,为每个菜单设定一个图标 6 | 7 | 该组件由 [@Saraka](https://github.com/saraka-tsukai) 封装 8 | 9 | 10 | 11 | ### 使用方式 12 | 13 | ```vue 14 | 19 | 20 | 39 | ``` 40 | 41 | 42 | 43 | ### 事件 44 | 45 | 46 | | 名称 | 说明 | 类型 | 默认值 | 47 | | ------ | -------------------------- | ------ | ------ | 48 | | change | 当改变了 `icon` 选中项触发 | String | - | 49 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/IconSelector/index.js: -------------------------------------------------------------------------------- 1 | import IconSelector from './IconSelector' 2 | export default IconSelector 3 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/Menu/index.js: -------------------------------------------------------------------------------- 1 | import SMenu from './menu' 2 | export default SMenu 3 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/MultiTab/index.js: -------------------------------------------------------------------------------- 1 | import MultiTab from './MultiTab' 2 | import './index.less' 3 | 4 | export default MultiTab 5 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/MultiTab/index.less: -------------------------------------------------------------------------------- 1 | @import '../index'; 2 | 3 | @multi-tab-prefix-cls: ~"@{ant-pro-prefix}-multi-tab"; 4 | @multi-tab-wrapper-prefix-cls: ~"@{ant-pro-prefix}-multi-tab-wrapper"; 5 | 6 | /* 7 | .topmenu .@{multi-tab-prefix-cls} { 8 | max-width: 1200px; 9 | margin: -23px auto 24px auto; 10 | } 11 | */ 12 | .@{multi-tab-prefix-cls} { 13 | margin: -23px -24px 24px -24px; 14 | background: #fff; 15 | } 16 | 17 | .topmenu .@{multi-tab-wrapper-prefix-cls} { 18 | max-width: 1200px; 19 | margin: 0 auto; 20 | } 21 | 22 | .topmenu.content-width-Fluid .@{multi-tab-wrapper-prefix-cls} { 23 | max-width: 100%; 24 | margin: 0 auto; 25 | } 26 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/NoticeIcon/index.js: -------------------------------------------------------------------------------- 1 | import NoticeIcon from './NoticeIcon' 2 | export default NoticeIcon 3 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/PB/MaterialTypeSelect.vue: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/PB/MeasureSelect.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/PB/StorAreaShow.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/PageHeader/index.js: -------------------------------------------------------------------------------- 1 | import PageHeader from './PageHeader' 2 | export default PageHeader 3 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/SettingDrawer/SettingItem.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 24 | 25 | 39 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/SettingDrawer/index.js: -------------------------------------------------------------------------------- 1 | import SettingDrawer from './SettingDrawer' 2 | export default SettingDrawer 3 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/SettingDrawer/themeColor.js: -------------------------------------------------------------------------------- 1 | import client from 'webpack-theme-color-replacer/client' 2 | import generate from '@ant-design/colors/lib/generate' 3 | 4 | export default { 5 | getAntdSerials (color) { 6 | // 淡化(即less的tint) 7 | const lightens = new Array(9).fill().map((t, i) => { 8 | return client.varyColor.lighten(color, i / 10) 9 | }) 10 | // colorPalette变换得到颜色值 11 | const colorPalettes = generate(color) 12 | return lightens.concat(colorPalettes) 13 | }, 14 | changeColor (newColor) { 15 | var options = { 16 | newColors: this.getAntdSerials(newColor), // new colors array, one-to-one corresponde with `matchColors` 17 | changeUrl (cssUrl) { 18 | return `/${cssUrl}` // while router is not `hash` mode, it needs absolute path 19 | } 20 | } 21 | return client.changer.changeColor(options, Promise) 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/index.js: -------------------------------------------------------------------------------- 1 | import MultiTab from '@/components/MultiTab' 2 | import IconSelector from '@/components/IconSelector' 3 | import ExceptionPage from '@/components/Exception' 4 | 5 | export { 6 | MultiTab, 7 | ExceptionPage, 8 | IconSelector 9 | } 10 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/index.less: -------------------------------------------------------------------------------- 1 | @import "~ant-design-vue/lib/style/index"; 2 | 3 | // The prefix to use on all css classes from ant-pro. 4 | @ant-pro-prefix : ant-pro; 5 | @ant-global-header-zindex : 105; -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/tools/DetailList.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/tools/Logo.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 32 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/components/tools/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awesomedotnetcore/WMS/6df46eab042d25f4fa7038979c42f1a7637b808a/src/Coldairarrow.Web/src/components/tools/index.js -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/config/router.config.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line 2 | import { UserLayout, PageView } from '@/layouts' 3 | 4 | /** 5 | * 基础路由 6 | * @type { *[] } 7 | */ 8 | export const constantRouterMap = [ 9 | { 10 | path: '/Home', 11 | component: UserLayout, 12 | redirect: '/Home/Login', 13 | hidden: true, 14 | children: [ 15 | { 16 | path: '/Home/Login', 17 | name: 'Login', 18 | component: () => import('@/views/Home/Login') 19 | } 20 | ] 21 | }, 22 | { 23 | path: '/404', 24 | component: () => import('@/views/exception/404') 25 | } 26 | ] 27 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/core/icons.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Custom icon list 3 | * All icons are loaded here for easy management 4 | * @see https://vue.ant.design/components/icon/#Custom-Font-Icon 5 | * 6 | * 自定义图标加载表 7 | * 所有图标均从这里加载,方便管理 8 | */ 9 | import bxAnaalyse from '@/assets/icons/bx-analyse.svg?inline' // path to your '*.svg?inline' file. 10 | 11 | export { bxAnaalyse } 12 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/core/lazy_use.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import VueStorage from 'vue-ls' 3 | import config from '@/config/defaultSettings' 4 | 5 | // base library 6 | import '@/core/lazy_lib/components_use' 7 | // import Viser from 'viser-vue' 8 | 9 | // ext library 10 | import VueClipboard from 'vue-clipboard2' 11 | // import PermissionHelper from '@/utils/helper/permission' 12 | import './directives/action' 13 | 14 | VueClipboard.config.autoSetContainer = true 15 | 16 | // Vue.use(Viser) 17 | 18 | Vue.use(VueStorage, config.storageOptions) 19 | Vue.use(VueClipboard) 20 | // Vue.use(PermissionHelper) 21 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/core/use.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import VueStorage from 'vue-ls' 3 | import config from '@/config/defaultSettings' 4 | 5 | // base library 6 | import Antd from 'ant-design-vue' 7 | // import Viser from 'viser-vue' 8 | import VueCropper from 'vue-cropper' 9 | import 'ant-design-vue/dist/antd.less' 10 | 11 | // ext library 12 | import VueClipboard from 'vue-clipboard2' 13 | // import PermissionHelper from '@/utils/helper/permission' 14 | // import '@/components/use' 15 | import './directives/action' 16 | 17 | VueClipboard.config.autoSetContainer = true 18 | 19 | Vue.use(Antd) 20 | // Vue.use(Viser) 21 | 22 | Vue.use(VueStorage, config.storageOptions) 23 | Vue.use(VueClipboard) 24 | // Vue.use(PermissionHelper) 25 | Vue.use(VueCropper) 26 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/layouts/BlankLayout.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 13 | 14 | 17 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/layouts/RouteView.vue: -------------------------------------------------------------------------------- 1 | 33 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/layouts/index.js: -------------------------------------------------------------------------------- 1 | import UserLayout from './UserLayout' 2 | import BlankLayout from './BlankLayout' 3 | import BasicLayout from './BasicLayout' 4 | import RouteView from './RouteView' 5 | import PageView from './PageView' 6 | 7 | export { UserLayout, BasicLayout, BlankLayout, RouteView, PageView } 8 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/router/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Router from 'vue-router' 3 | 4 | import { constantRouterMap } from '@/config/router.config' 5 | 6 | Vue.use(Router) 7 | 8 | export default new Router({ 9 | mode: 'history', 10 | base: process.env.BASE_URL, 11 | scrollBehavior: () => ({ y: 0 }), 12 | routes: constantRouterMap 13 | }) 14 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/store/getters.js: -------------------------------------------------------------------------------- 1 | const getters = { 2 | device: state => state.app.device, 3 | theme: state => state.app.theme, 4 | color: state => state.app.color, 5 | token: state => state.user.token, 6 | avatar: state => state.user.avatar, 7 | nickname: state => state.user.name, 8 | welcome: state => state.user.welcome, 9 | roles: state => state.user.roles, 10 | userInfo: state => state.user.info, 11 | addRouters: state => state.permission.addRouters, 12 | multiTab: state => state.app.multiTab 13 | } 14 | 15 | export default getters 16 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/store/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Vuex from 'vuex' 3 | 4 | import app from './modules/app' 5 | // import user from './modules/user' 6 | // import permission from './modules/permission' 7 | import getters from './getters' 8 | 9 | Vue.use(Vuex) 10 | 11 | export default new Vuex.Store({ 12 | modules: { 13 | app, 14 | // user 15 | // permission 16 | }, 17 | state: { 18 | 19 | }, 20 | mutations: { 21 | 22 | }, 23 | actions: { 24 | 25 | }, 26 | getters 27 | }) 28 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/store/mutation-types.js: -------------------------------------------------------------------------------- 1 | export const ACCESS_TOKEN = 'Access-Token' 2 | export const SIDEBAR_TYPE = 'SIDEBAR_TYPE' 3 | export const DEFAULT_THEME = 'DEFAULT_THEME' 4 | export const DEFAULT_LAYOUT_MODE = 'DEFAULT_LAYOUT_MODE' 5 | export const DEFAULT_COLOR = 'DEFAULT_COLOR' 6 | export const DEFAULT_COLOR_WEAK = 'DEFAULT_COLOR_WEAK' 7 | export const DEFAULT_FIXED_HEADER = 'DEFAULT_FIXED_HEADER' 8 | export const DEFAULT_FIXED_SIDEMENU = 'DEFAULT_FIXED_SIDEMENU' 9 | export const DEFAULT_FIXED_HEADER_HIDDEN = 'DEFAULT_FIXED_HEADER_HIDDEN' 10 | export const DEFAULT_CONTENT_WIDTH_TYPE = 'DEFAULT_CONTENT_WIDTH_TYPE' 11 | export const DEFAULT_MULTI_TAB = 'DEFAULT_MULTI_TAB' 12 | 13 | export const CONTENT_WIDTH_TYPE = { 14 | Fluid: 'Fluid', 15 | Fixed: 'Fixed' 16 | } 17 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/utils/cache/OperatorCache.js: -------------------------------------------------------------------------------- 1 | import { Axios } from "@/utils/plugin/axios-plugin" 2 | 3 | let permissions = [] 4 | let inited = false 5 | 6 | let OperatorCache = { 7 | info: {}, 8 | inited() { 9 | return inited 10 | }, 11 | init(callBack) { 12 | if (inited) 13 | callBack() 14 | else { 15 | Axios.post('/Base_Manage/Home/GetOperatorInfo').then(resJson => { 16 | this.info = resJson.Data.UserInfo 17 | permissions = resJson.Data.Permissions 18 | inited = true 19 | callBack() 20 | }) 21 | } 22 | }, 23 | hasPermission(thePermission) { 24 | return permissions.includes(thePermission) 25 | }, 26 | clear() { 27 | inited = false 28 | permissions = [] 29 | this.info = {} 30 | } 31 | } 32 | 33 | export default OperatorCache -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/utils/cache/ParameterCache.js: -------------------------------------------------------------------------------- 1 | import { Axios } from "@/utils/plugin/axios-plugin" 2 | 3 | let baseParameters = {} 4 | let inited = false 5 | 6 | let ParameterCache = { 7 | inited() { 8 | return inited 9 | }, 10 | init() { 11 | if (!inited) { 12 | Axios.get('/Base/Base_Parameter/GetConfig').then(resJson => { 13 | baseParameters = { ...resJson.Data } 14 | inited = true 15 | }) 16 | } 17 | }, 18 | getPara(code) { 19 | return baseParameters[code] 20 | }, 21 | clear() { 22 | inited = false 23 | baseParameters = {} 24 | } 25 | } 26 | 27 | export default ParameterCache -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/utils/cache/TokenCache.js: -------------------------------------------------------------------------------- 1 | const tokenKey = 'jwtToken' 2 | 3 | let TokenCache = { 4 | getToken() { 5 | return localStorage.getItem(tokenKey) 6 | }, 7 | setToken(newToken) { 8 | localStorage.setItem(tokenKey, newToken) 9 | }, 10 | deleteToken() { 11 | localStorage.removeItem(tokenKey) 12 | } 13 | } 14 | 15 | export default TokenCache -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/utils/device.js: -------------------------------------------------------------------------------- 1 | import enquireJs from 'enquire.js' 2 | 3 | export const DEVICE_TYPE = { 4 | DESKTOP: 'desktop', 5 | TABLET: 'tablet', 6 | MOBILE: 'mobile' 7 | } 8 | 9 | export const deviceEnquire = function (callback) { 10 | const matchDesktop = { 11 | match: () => { 12 | callback && callback(DEVICE_TYPE.DESKTOP) 13 | } 14 | } 15 | 16 | const matchLablet = { 17 | match: () => { 18 | callback && callback(DEVICE_TYPE.TABLET) 19 | } 20 | } 21 | 22 | const matchMobile = { 23 | match: () => { 24 | callback && callback(DEVICE_TYPE.MOBILE) 25 | } 26 | } 27 | 28 | // screen and (max-width: 1087.99px) 29 | enquireJs 30 | .register('screen and (max-width: 576px)', matchMobile) 31 | .register('screen and (min-width: 576px) and (max-width: 1199px)', matchLablet) 32 | .register('screen and (min-width: 1200px)', matchDesktop) 33 | } 34 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/utils/domUtil.js: -------------------------------------------------------------------------------- 1 | export const setDocumentTitle = function (title) { 2 | document.title = title 3 | const ua = navigator.userAgent 4 | // eslint-disable-next-line 5 | const regex = /\bMicroMessenger\/([\d\.]+)/ 6 | if (regex.test(ua) && /ip(hone|od|ad)/i.test(ua)) { 7 | const i = document.createElement('iframe') 8 | i.src = '/favicon.ico' 9 | i.style.display = 'none' 10 | i.onload = function () { 11 | setTimeout(function () { 12 | i.remove() 13 | }, 9) 14 | } 15 | document.body.appendChild(i) 16 | } 17 | } 18 | 19 | export const domTitle = process.env.VUE_APP_ProjectName + ' ZEQP' 20 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/utils/filter.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import moment from 'moment' 3 | import 'moment/locale/zh-cn' 4 | moment.locale('zh-cn') 5 | 6 | Vue.filter('NumberFormat', function (value) { 7 | if (!value) { 8 | return '0' 9 | } 10 | const intPartFormat = value.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断 11 | return intPartFormat 12 | }) 13 | 14 | Vue.filter('dayjs', function (dataStr, pattern = 'YYYY-MM-DD HH:mm:ss') { 15 | return moment(dataStr).format(pattern) 16 | }) 17 | 18 | Vue.filter('moment', function (dataStr, pattern = 'YYYY-MM-DD HH:mm:ss') { 19 | return moment(dataStr).format(pattern) 20 | }) 21 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/utils/helper/ProcessHelper.js: -------------------------------------------------------------------------------- 1 | const productKey = 'production' 2 | const ProcessHelper = { 3 | isProduction() { 4 | return process.env.NODE_ENV == productKey 5 | }, 6 | isPreview() { 7 | return process.env.VUE_APP_PREVIEW === 'true' 8 | } 9 | } 10 | export default ProcessHelper -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/utils/helper/TreeHelper.js: -------------------------------------------------------------------------------- 1 | //固定列表结构:[{Id:'xxx',ParentId:'xxx'}] 2 | let TreeHelper = { 3 | getParentIds(id, allNodes) { 4 | let parents = [] 5 | let theNode = this.findTheNode(id, allNodes) 6 | if (theNode.ParentId) { 7 | parents.push(theNode.ParentId) 8 | parents.push(...this.getParentIds(theNode.ParentId, allNodes)) 9 | } 10 | 11 | return parents 12 | }, 13 | getChildrenIds(id, allNodes) { 14 | var childrenIds = [] 15 | let children = allNodes.filter(item => item.ParentId == id) 16 | .map(item => item.Id) 17 | if (children.length > 0) { 18 | childrenIds.push(...children) 19 | children.forEach(item => { 20 | childrenIds.push(...this.getChildrenIds(item, allNodes)) 21 | }) 22 | } 23 | return childrenIds 24 | }, 25 | findTheNode(id, allNodes) { 26 | return allNodes.filter(item => item.Id == id)[0] 27 | } 28 | } 29 | 30 | export default TreeHelper -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/utils/plugin/operator-plugin.js: -------------------------------------------------------------------------------- 1 | import OperatorCache from "@/utils/cache/OperatorCache" 2 | 3 | export default { 4 | install(Vue) { 5 | Object.defineProperty(Vue.prototype, '$op', { value: OperatorCache }) 6 | Object.defineProperty(Vue.prototype, 'hasPerm', { value: OperatorCache.hasPermission }) 7 | } 8 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/utils/plugin/parameter-plugin.js: -------------------------------------------------------------------------------- 1 | import ParameterCache from "@/utils/cache/ParameterCache" 2 | 3 | export default { 4 | install(Vue) { 5 | Object.defineProperty(Vue.prototype, '$para', { value: ParameterCache.getPara }) 6 | } 7 | } -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/views/Develop/Editor.vue: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/views/exception/403.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 14 | 15 | 18 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/views/exception/404.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 14 | 15 | 18 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/src/views/exception/500.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 14 | 15 | 18 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/tests/unit/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | jest: true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /src/Coldairarrow.Web/webstorm.config.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const path = require('path') 3 | 4 | function resolve (dir) { 5 | return path.join(__dirname, '.', dir) 6 | } 7 | 8 | module.exports = { 9 | context: path.resolve(__dirname, './'), 10 | resolve: { 11 | extensions: ['.js', '.vue', '.json'], 12 | alias: { 13 | '@': resolve('src') 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/clear.bat: -------------------------------------------------------------------------------- 1 | ::删除所有bin与obj下的文件 2 | @echo off 3 | set nowPath=%cd% 4 | cd / 5 | cd %nowPath% 6 | 7 | ::delete specify file(*.pdb,*.vshost.*) 8 | for /r %nowPath% %%i in (*.pdb,*.vshost.*) do (del %%i) 9 | 10 | ::delete specify folder(obj,bin) 11 | for /r %nowPath% %%i in (obj,bin) do (IF EXIST %%i RD /s /q %%i) 12 | 13 | echo OK 14 | pause --------------------------------------------------------------------------------