コード例 #1
0
ファイル: ADR.cs プロジェクト: SecretDeveloper/ADR
        public string GetContent()
        {
            var content = GetContentTemplate();

            content = content.Replace("{{NUMBER}}", Number.Value.ToString("XXXX"));
            content = content.Replace("{{TITLE}}", Title);
            content = content.Replace("{{DATE}}", CreatedUTC.ToString("yyyy-MM-dd HH:mm:ss"));
            content = content.Replace("{{STATUS}}", Status);
            content = content.Replace("{{REFERENCES}}", string.Join(" ",
                                                                    References.Select(
                                                                        x => "- [" + x.Key + "](" + x.Value + ")" + Environment.NewLine
                                                                        ).ToArray()));
            content = content.Replace("{{CONTEXT}}", Context);
            content = content.Replace("{{DECISION}}", Decision);
            content = content.Replace("{{CONSEQUENCES}}", Consequences);

            return(content);
        }
コード例 #2
0
 public override string ToString()
 {
     return(string.Format("Message of type '{0}' - '{1}'", Type, CreatedUTC.ToString("yyyy-MM-dd HH:mm:ss:fff")));
 }
コード例 #3
0
 public override string ToString()
 {
     return(string.Format("Message of type '{0}', Magic '{1}', ItemCode '{2}', Orderindex '{3}', StartTime '{5}', StartTransportStructure '{6}', TransportStructure '{7}', Row '{8}', OrderListMonitor '{9}', OrderState'{10}', OrderStatus '{11}', OrderPriorty '{12}', OrderTrigger '{13}', OrderTrigger_Parameter0 '{14}', OrderTrigger_Parameter1 '{15}', CarrierId '{16}', MainStatus '{17}', CarrierStatus '{18}', MoveStat '{19}', PreviusStation '{20}', DestinationStation '{21} - {22}' "
                          , Type, Magic, ItemCode, OrderIndex, StartTime, StartTransportStructure, TransportStructure, Row, OrderListMonitor, OrderState, OrderStatus, OrderPriorty, OrderTrigger, OrderTrigger_Parameter0, OrderTrigger_Parameter1, CarrierId
                          , MainStatus, CarrierStatus, MoveStat, PreviusStation, DestinationStation, CreatedUTC.ToString("yyyy-MM-dd HH:mm:ss:fff")));
 }
コード例 #4
0
 public override string ToString()
 {
     return(string.Format("Message of type '{0}', OrderIndex:{1} ,LocalParameternumber:{2} Value = {7}, LocalParameternumber:{3},Value = {8}, LocalParameternumber:{4},Value = {9}, LocalParameternumber:{5},Value = {10}, LocalParameternumber:{6},Value = {11} Time :{12}"
                          , Type, Index, Parameter0Number, Parameter1Number, Parameter2Number, Parameter3Number, Parameter4Number, Parameter0Value, Parameter1Value, Parameter2Value, Parameter3Value, Parameter4Value, CreatedUTC.ToString("yyyy-MM-dd HH:mm:ss:fff")));
 }
コード例 #5
0
ファイル: Message_p.cs プロジェクト: xdpcxq/WCS
 public override string ToString()
 {
     return(string.Format("Message of type '{0}', Magic '{1}', Code '{2}', Number of parameters '{3}', Global parameter offset '{4}' GlobalParameters '{5}', Time :{6} "
                          , Type, Magic, Code, NumberOfParameters, GlobalParameterOffset, string.Join(",", Values.ToArray()), CreatedUTC.ToString("yyyy-MM-dd HH:mm:ss:fff")));
 }
コード例 #6
0
 public override string ToString()
 {
     return(string.Format("Message of type '{0}', Order '{1}', AGV '{2}', AGVState '{3}', AGV Station '{4}', Magic1'{5}', Magic2'{6}', Magic3'{7}' LocalParameters '{8}', Time :{9} "
                          , Type, Index, CarrierNumber, CarrierStatus, CarrierStation, Magic, Magic2, Magic3, (NoVal == 0 ? null : string.Join(",", Values.ToArray())), CreatedUTC.ToString("yyyy-MM-dd HH:mm:ss:fff")));
 }
コード例 #7
0
 public override string ToString()
 {
     return(string.Format("Message of type '{0}', UnitType '{1}', UnitId '{2}', UnitIndex '{3}', Type '{4}', Code '{5}', Utc Time '{6}', Zone offset '{7}', Parameter1 '{8}', Parameter2 '{9}', Parameter3 '{10}', Parameter4 '{11}'  - '{11}'", Type, UnitType, UnitId, UnitIndex, EventType, EventCode, UtcTime, ZoneOffset, Parameter1, Parameter2, Parameter3, Parameter4, CreatedUTC.ToString("yyyy-MM-dd HH:mm:ss:fff")));
 }
コード例 #8
0
 public override string ToString()
 {
     return(string.Format("Message of type '{0}', Index '{1}', TS '{2}', Status '{3}', ParNo '{4}', IKEY '{5}' - '{6}'", Type, Index, TransportStructure, Status, ParNo, IKEY, CreatedUTC.ToString("yyyy-MM-dd HH:mm:ss:fff")));
 }