using JSMachine.WMS.Infrastructure.Enums; namespace JSMachine.WMS.Infrastructure.AppConfiguration { /// /// WMS 运行时配置模型,由配置文件和环境变量绑定生成。 /// public class AppSettings { /// /// 数据库连接字符串 /// public string DataBaseCon { get; set; } /// /// /删除前多少天之前的log /// public int DelLogDate { get; set; } /// /// Erp配置 /// public ErpConfig ErpConfig { get; set; } /// /// Rcs配置 /// public RcsConfig RcsConfig { get; set; } /// /// 提升机配置 /// public ElevatorConfig[] ElevatorConfig { get; set; } /// /// 放置模式(0-完全不混放 1-混合模式,优先同批次放一列,没有空库位再混放 2-完全混放模式,不用批次货物放一起) /// public int PlcaementMod { get; set; } } /// /// Erp配置,此配置项做了冗余,不同的Erp按需配置 /// public class ErpConfig { /// /// Erp类型 /// public ErpType ErpType { get; set; } /// /// Erp地址 /// public string ErpUrl { get; set; } /// /// Erp服务器IP /// public string ErpIP { get; set; } /// /// 回传Erp前几天数据 /// public int ErpUploadBefore { get; set; } /// /// 上传数据,重试次数 /// public int RetryNum { get; set; } /// /// 获取原纸信息接口地址 /// public string QueryByPaperLabelUrl { get; set; } /// /// 获取原纸信息接口地址(通过幅宽、纸质编码) /// public string QueryByPaperWidthAndCodeUrl { get; set; } /// /// 原纸出库接口地址 /// public string PaperStockOutUrl { get; set; } /// /// 残卷回库接口地址 /// public string RePaperStockInUrl { get; set; } /// /// AppId /// public string AppId { get; set; } /// /// AppKey /// public string AppKey { get; set; } /// /// PDA扫合格证码获取物料信息 /// public string QueryMateriaInforUrl { get; set; } /// /// 生产入库 /// public string ProduceInUrl { get; set; } /// /// 生产退库 /// public string ProduceOutUrl { get; set; } /// /// 销售出库接口 /// public string SaleOutUrl { get; set; } /// /// 用户编号 /// public string Userkey { get; set; } } /// /// Rcs系统配置 /// public class RcsConfig { /// /// RCS 服务基础地址。 /// public string RcsUrl { get; set; } /// /// 创建任务Url /// public string CreateTaskUrl { get; set; } /// /// 取消任务Url /// public string CancelTaskUrl { get; set; } } /// /// 提升机PLC配置 /// public class ElevatorConfig { /// /// 提升机序号(1,2) /// public int ElevatorNo { get; set; } /// /// 提升机PLC的IP /// public string IP { get; set; } /// /// 提升机PLC的端口 /// public int Port { get; set; } } }