/// <summary> /// Initiate message with material warehouse command. /// </summary> /// <param name="productWarehouseCommand"></param> public TerminalMessage(TX47_PdtWhsCmd productWarehouseCommand) : this() { CommandSequence = productWarehouseCommand.F47_CmdSeqNo.PadRight(4); CommandIndex = productWarehouseCommand.F47_CommandNo.PadRight(4); Command = productWarehouseCommand.F47_CommandType.PadRight(4); From = productWarehouseCommand.F47_From.PadRight(6); To = productWarehouseCommand.F47_To.PadRight(6); if (string.IsNullOrEmpty(productWarehouseCommand.F47_PalletNo)) { PalletNo = ""; } else { PalletNo = productWarehouseCommand.F47_PalletNo; } PalletNo = PalletNo.PadRight(4); }
/// <summary> /// Initiate message with material warehouse command. /// </summary> /// <param name="materialWarehouseCommand"></param> public TerminalMessage(TX34_MtrWhsCmd materialWarehouseCommand) : this() { CommandSequence = materialWarehouseCommand.F34_CmdSeqNo.PadRight(4); CommandIndex = materialWarehouseCommand.F34_CommandNo.PadRight(4); Command = materialWarehouseCommand.F34_CommandType.PadRight(4); From = materialWarehouseCommand.F34_From.PadRight(6); To = materialWarehouseCommand.F34_To.PadRight(6); if (string.IsNullOrEmpty(materialWarehouseCommand.F34_PalletNo)) { PalletNo = ""; } else { PalletNo = materialWarehouseCommand.F34_PalletNo; } PalletNo = PalletNo.PadRight(4); }