protected override void OnWriteXml(XmlWriter aXmlWriter, SepaMessageInfo aMessageInfo)
        {
            bool flag  = false;
            bool flag2 = false;

            if (base.TagName == "InitgPty")
            {
                flag  = (((aMessageInfo.XmlNamespace == "APC:STUZZA:payments:ISO:pain:001:001:02:austrian:002") || (aMessageInfo.XmlNamespace == "ISO:pain.001.001.03:APC:STUZZA:payments:001")) || (aMessageInfo.XmlNamespace == "APC:STUZZA:payments:ISO:pain:008:001:01:austrian:002")) || (aMessageInfo.XmlNamespace == "ISO:pain.008.001.02:APC:STUZZA:payments:001");
                flag2 = !flag;
            }
            bool flag3 = ((((this.m_nSupportedFields & Fields.Name) != Fields.None) && (this.m_sNm != null)) && (this.m_sNm != "")) && !flag;
            bool flag4 = (((this.m_nSupportedFields & Fields.BIC) != Fields.None) && !this.m_tBIC.IsNull) && !flag2;
            bool flag5 = (((this.m_nSupportedFields & Fields.EBICS) != Fields.None) && (this.m_sEBICSPartnerId != null)) && (this.m_sEBICSPartnerId != "");
            bool flag6 = (((this.m_nSupportedFields & Fields.CdtrId) != Fields.None) && (this.m_sCdtrSchmeId != null)) && (this.m_sCdtrSchmeId != "");

            if (flag3)
            {
                aXmlWriter.WriteElementString("Nm", this.m_sNm);
            }
            if ((flag4 || flag5) || flag6)
            {
                aXmlWriter.WriteStartElement("Id");
                if (flag4 || flag5)
                {
                    aXmlWriter.WriteStartElement("OrgId");
                    if (flag4)
                    {
                        if (flag)
                        {
                            aXmlWriter.WriteElementString("BkPtyId", this.m_tBIC.BIC);
                        }
                        else
                        {
                            aXmlWriter.WriteElementString("BICOrBEI", this.m_tBIC.BIC);
                        }
                    }
                    if (flag5)
                    {
                        SepaUtil.WriteOthrId(aXmlWriter, this.m_sEBICSPartnerId, "EBICS");
                    }
                    aXmlWriter.WriteEndElement();
                }
                if (flag6)
                {
                    aXmlWriter.WriteStartElement("PrvtId");
                    SepaUtil.WriteOthrId(aXmlWriter, this.m_sCdtrSchmeId, null);
                    aXmlWriter.WriteEndElement();
                }
                aXmlWriter.WriteEndElement();
            }
        }
Esempio n. 2
0
 protected override void OnWriteXml(XmlWriter aXmlWriter, SepaMessageInfo aMessageInfo)
 {
     if (!this.m_tBIC.IsNull)
     {
         aXmlWriter.WriteElementString("BIC", this.m_tBIC.BIC);
     }
     if ((this.m_sClrSysMmbId != null) && (this.m_sClrSysMmbId != ""))
     {
         aXmlWriter.WriteStartElement("ClrSysMmbId");
         aXmlWriter.WriteStartElement("ClrSysId");
         aXmlWriter.WriteElementString("Cd", "DEBLZ");
         aXmlWriter.WriteEndElement();
         aXmlWriter.WriteElementString("MmbId", this.m_sClrSysMmbId);
         aXmlWriter.WriteEndElement();
     }
     if ((this.m_sNm != null) && (this.m_sNm != ""))
     {
         aXmlWriter.WriteElementString("Nm", this.m_sNm);
     }
     if ((this.m_sVatId != null) && (this.m_sVatId != ""))
     {
         SepaUtil.WriteOthrId(aXmlWriter, this.m_sVatId, "UmsStId");
     }
 }