Exemple #1
0
        public override Object Clone( )
        {
            GxObjectCollection objCol;

            objCol = new GxObjectCollection(context, _containedName, _containedXmlNamespace, _containedType, _containedTypeNamespace);
            return((Object)(objCol));
        }
Exemple #2
0
 public override void initialize( )
 {
     gxfirstwebparm     = "";
     gxfirstwebparm_bkp = "";
     sDynURL            = "";
     FormProcess        = "";
     GX_FocusControl    = "";
     Form                = new GXWebForm();
     sPrefix             = "";
     sEvt                = "";
     EvtGridId           = "";
     EvtRowId            = "";
     sEvtType            = "";
     AV5MenuItem         = "";
     GXKey               = "";
     Grid1Container      = new GXWebGrid(context);
     BackMsgLst          = new msglist();
     LclMsgLst           = new msglist();
     AV6ProgramNames     = new GxObjectCollection(context, "ProgramNames.ProgramName", "CalcularPeajes", "SdtProgramNames_ProgramName", "GeneXus.Programs");
     AV7ProgramName      = new SdtProgramNames_ProgramName(context);
     Grid1Row            = new GXWebRow();
     sStyleString        = "";
     Grid1Column         = new GXWebColumn();
     subGrid1_Linesclass = "";
     ROClassString       = "";
     /* GeneXus formulas. */
     context.Gx_err = 0;
 }
Exemple #3
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     AV10ProgramNames = new GxObjectCollection(context, "ProgramNames.ProgramName", "CalcularPeajes", "SdtProgramNames_ProgramName", "GeneXus.Programs");
     this.cleanup();
 }
        public override short readxml(GXXMLReader oReader,
                                      String sName)
        {
            short GXSoapError = 1;

            sTagName = oReader.Name;
            if (oReader.IsSimple == 0)
            {
                GXSoapError   = oReader.Read();
                nOutParmCount = 0;
                while (((StringUtil.StrCmp(oReader.Name, sTagName) != 0) || (oReader.NodeType == 1)) && (GXSoapError > 0))
                {
                    readOk = 0;
                    if (StringUtil.StrCmp2(oReader.LocalName, "CallerObject"))
                    {
                        gxTv_SdtTransactionContext_Callerobject = oReader.Value;
                        if (GXSoapError > 0)
                        {
                            readOk = 1;
                        }
                        GXSoapError = oReader.Read();
                    }
                    if (StringUtil.StrCmp2(oReader.LocalName, "CallerOnDelete"))
                    {
                        gxTv_SdtTransactionContext_Callerondelete = (bool)(Convert.ToBoolean(((StringUtil.StrCmp(oReader.Value, "true") == 0) || (StringUtil.StrCmp(oReader.Value, "1") == 0) ? 1 : 0)));
                        if (GXSoapError > 0)
                        {
                            readOk = 1;
                        }
                        GXSoapError = oReader.Read();
                    }
                    if (StringUtil.StrCmp2(oReader.LocalName, "CallerURL"))
                    {
                        gxTv_SdtTransactionContext_Callerurl = oReader.Value;
                        if (GXSoapError > 0)
                        {
                            readOk = 1;
                        }
                        GXSoapError = oReader.Read();
                    }
                    if (StringUtil.StrCmp2(oReader.LocalName, "TransactionName"))
                    {
                        gxTv_SdtTransactionContext_Transactionname = oReader.Value;
                        if (GXSoapError > 0)
                        {
                            readOk = 1;
                        }
                        GXSoapError = oReader.Read();
                    }
                    if (StringUtil.StrCmp2(oReader.LocalName, "Attributes"))
                    {
                        if (gxTv_SdtTransactionContext_Attributes == null)
                        {
                            gxTv_SdtTransactionContext_Attributes = new GxObjectCollection(context, "TransactionContext.Attribute", "CalcularPeajes", "SdtTransactionContext_Attribute", "GeneXus.Programs");
                        }
                        if (oReader.IsSimple == 0)
                        {
                            GXSoapError = gxTv_SdtTransactionContext_Attributes.readxmlcollection(oReader, "Attributes", "Attribute");
                        }
                        if (GXSoapError > 0)
                        {
                            readOk = 1;
                        }
                        GXSoapError = oReader.Read();
                    }
                    nOutParmCount = (short)(nOutParmCount + 1);
                    if (readOk == 0)
                    {
                        context.sSOAPErrMsg = context.sSOAPErrMsg + "Error reading " + sTagName + StringUtil.NewLine( );
                        context.sSOAPErrMsg = context.sSOAPErrMsg + "Message: " + oReader.ReadRawXML();
                        GXSoapError         = (short)(nOutParmCount * -1);
                    }
                }
            }
            return(GXSoapError);
        }
        public override short readxml(GXXMLReader oReader,
                                      String sName)
        {
            short GXSoapError = 1;

            sTagName = oReader.Name;
            if (oReader.IsSimple == 0)
            {
                GXSoapError   = oReader.Read();
                nOutParmCount = 0;
                while (((StringUtil.StrCmp(oReader.Name, sTagName) != 0) || (oReader.NodeType == 1)) && (GXSoapError > 0))
                {
                    readOk = 0;
                    if (StringUtil.StrCmp2(oReader.LocalName, "CurrentPage"))
                    {
                        gxTv_SdtGridState_Currentpage = (short)(NumberUtil.Val(oReader.Value, "."));
                        if (GXSoapError > 0)
                        {
                            readOk = 1;
                        }
                        GXSoapError = oReader.Read();
                    }
                    if (StringUtil.StrCmp2(oReader.LocalName, "OrderedBy"))
                    {
                        gxTv_SdtGridState_Orderedby = (short)(NumberUtil.Val(oReader.Value, "."));
                        if (GXSoapError > 0)
                        {
                            readOk = 1;
                        }
                        GXSoapError = oReader.Read();
                    }
                    if (StringUtil.StrCmp2(oReader.LocalName, "HidingSearch"))
                    {
                        gxTv_SdtGridState_Hidingsearch = (short)(NumberUtil.Val(oReader.Value, "."));
                        if (GXSoapError > 0)
                        {
                            readOk = 1;
                        }
                        GXSoapError = oReader.Read();
                    }
                    if (StringUtil.StrCmp2(oReader.LocalName, "FilterValues"))
                    {
                        if (gxTv_SdtGridState_Filtervalues == null)
                        {
                            gxTv_SdtGridState_Filtervalues = new GxObjectCollection(context, "GridState.FilterValue", "CalcularPeajes", "SdtGridState_FilterValue", "GeneXus.Programs");
                        }
                        if (oReader.IsSimple == 0)
                        {
                            GXSoapError = gxTv_SdtGridState_Filtervalues.readxmlcollection(oReader, "FilterValues", "FilterValue");
                        }
                        if (GXSoapError > 0)
                        {
                            readOk = 1;
                        }
                        GXSoapError = oReader.Read();
                    }
                    nOutParmCount = (short)(nOutParmCount + 1);
                    if (readOk == 0)
                    {
                        context.sSOAPErrMsg = context.sSOAPErrMsg + "Error reading " + sTagName + StringUtil.NewLine( );
                        context.sSOAPErrMsg = context.sSOAPErrMsg + "Message: " + oReader.ReadRawXML();
                        GXSoapError         = (short)(nOutParmCount * -1);
                    }
                }
            }
            return(GXSoapError);
        }