Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

TM.Bosman.Reference.Administration.btm.cs 5.9KB

1 semana atrás
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. namespace TM.Bosman.Transforms {
  2. [Microsoft.XLANGs.BaseTypes.SchemaReference(@"TM.Shared.Schemas.Order", typeof(global::TM.Shared.Schemas.Order))]
  3. [Microsoft.XLANGs.BaseTypes.SchemaReference(@"TM.Shared.Schemas.Order", typeof(global::TM.Shared.Schemas.Order))]
  4. public sealed class TM_Bosman_Reference_Administration : global::Microsoft.XLANGs.BaseTypes.TransformBase {
  5. private const string _strMap = @"<xsl:stylesheet xmlns:xsl=""http://www.w3.org/1999/XSL/Transform"" version=""1.0""
  6. xmlns:ScriptNS0=""http://schemas.microsoft.com/BizTalk/2003/ScriptNS0""
  7. xmlns:ScriptNS1=""http://schemas.microsoft.com/BizTalk/2003/ScriptNS1""
  8. xmlns:DateTime=""TM.Shared.Components.DateTime""
  9. xmlns:KeyList=""TM.Shared.Components.KeyList""
  10. xmlns:SSO=""TM.Shared.Components.SSO""
  11. xmlns:String=""TM.Shared.Components.String""
  12. xmlns:Bosman=""TM.Bosman.Components.MSsql""
  13. xmlns:s0=""http://TM.KLG.com/KLG/Order""
  14. xmlns:ns0=""http://TM.KLG.com/KLG/Order""
  15. exclude-result-prefixes=""s0 ns0 ScriptNS0 ScriptNS1 DateTime KeyList SSO String Bosman"">
  16. <xsl:output omit-xml-declaration=""yes"" method=""xml"" version=""1.0"" indent=""yes"" />
  17. <!-- Region global variable initialization -->
  18. <!-- end region -->
  19. <!-- region templates -->
  20. <xsl:template match=""/"">
  21. <xsl:apply-templates select=""/s0:Order"" />
  22. </xsl:template>
  23. <xsl:template match=""/s0:Order"">
  24. <ns0:Order>
  25. <Reference>
  26. <xsl:value-of select=""Reference""/>
  27. </Reference>
  28. <TimeStamp>
  29. <xsl:value-of select=""TimeStamp""/>
  30. </TimeStamp>
  31. <xsl:for-each select=""Shipment"">
  32. <ns0:Shipment>
  33. <ConsignorReference>
  34. <xsl:value-of select=""ConsignorReference""/>
  35. </ConsignorReference>
  36. <Update>
  37. <xsl:value-of select=""Bosman:AddReference(ConsignorReference)""/>
  38. </Update>
  39. </ns0:Shipment>
  40. </xsl:for-each>
  41. </ns0:Order>
  42. </xsl:template>
  43. <!-- end region -->
  44. </xsl:stylesheet>";
  45. private const int _useXSLTransform = 0;
  46. private const string _strArgList = @"<ExtensionObjects>
  47. <ExtensionObject Namespace=""http://schemas.microsoft.com/BizTalk/2003/ScriptNS0""
  48. AssemblyName=""Microsoft.BizTalk.BaseFunctoids, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35""
  49. ClassName=""Microsoft.BizTalk.BaseFunctoids.FunctoidScripts"" />
  50. <ExtensionObject Namespace=""http://schemas.microsoft.com/BizTalk/2003/ScriptNS1""
  51. AssemblyName=""Microsoft.BizTalk.CrossReferencing, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35""
  52. ClassName=""Microsoft.BizTalk.CrossReferencing.CrossReferencing"" />
  53. <ExtensionObject Namespace=""TM.Shared.Components.Biztalk""
  54. AssemblyName=""TM.Shared.Components, Version=3.0.37.0, Culture=neutral, PublicKeyToken=9cbf569b151cb1d4""
  55. ClassName=""TM.Shared.Components.BiztalkFunctions"" />
  56. <ExtensionObject Namespace=""TM.Shared.Components.DateTime""
  57. AssemblyName=""TM.Shared.Components, Version=3.0.37.0, Culture=neutral, PublicKeyToken=9cbf569b151cb1d4""
  58. ClassName=""TM.Shared.Components.DateTimeFunctions"" />
  59. <ExtensionObject Namespace=""TM.Shared.Components.KeyList""
  60. AssemblyName=""TM.Shared.Components, Version=3.0.37.0, Culture=neutral, PublicKeyToken=9cbf569b151cb1d4""
  61. ClassName=""TM.Shared.Components.KeyListFunctions"" />
  62. <ExtensionObject Namespace=""TM.Shared.Components.SSO""
  63. AssemblyName=""TM.Shared.Components, Version=3.0.37.0, Culture=neutral, PublicKeyToken=9cbf569b151cb1d4""
  64. ClassName=""TM.Shared.Components.SSOFunctions"" />
  65. <ExtensionObject Namespace=""TM.Shared.Components.String""
  66. AssemblyName=""TM.Shared.Components, Version=3.0.37.0, Culture=neutral, PublicKeyToken=9cbf569b151cb1d4""
  67. ClassName=""TM.Shared.Components.StringFunctions"" />
  68. <ExtensionObject Namespace=""TM.Bosman.Components.MSsql""
  69. AssemblyName=""TM.Bosman.Components, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ef8f53020aeb0dca""
  70. ClassName=""TM.Bosman.Components.MSsql"" />
  71. <ExtensionObject Namespace=""TM.Bosman.Components.Logging""
  72. AssemblyName=""TM.Bosman.Components, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ef8f53020aeb0dca""
  73. ClassName=""TM.Bosman.Components.Logging"" />
  74. </ExtensionObjects>";
  75. private const string _strSrcSchemasList0 = @"TM.Shared.Schemas.Order";
  76. private const global::TM.Shared.Schemas.Order _srcSchemaTypeReference0 = null;
  77. private const string _strTrgSchemasList0 = @"TM.Shared.Schemas.Order";
  78. private const global::TM.Shared.Schemas.Order _trgSchemaTypeReference0 = null;
  79. public override string XmlContent {
  80. get {
  81. return _strMap;
  82. }
  83. }
  84. public override int UseXSLTransform {
  85. get {
  86. return _useXSLTransform;
  87. }
  88. }
  89. public override string XsltArgumentListContent {
  90. get {
  91. return _strArgList;
  92. }
  93. }
  94. public override string[] SourceSchemas {
  95. get {
  96. string[] _SrcSchemas = new string [1];
  97. _SrcSchemas[0] = @"TM.Shared.Schemas.Order";
  98. return _SrcSchemas;
  99. }
  100. }
  101. public override string[] TargetSchemas {
  102. get {
  103. string[] _TrgSchemas = new string [1];
  104. _TrgSchemas[0] = @"TM.Shared.Schemas.Order";
  105. return _TrgSchemas;
  106. }
  107. }
  108. }
  109. }