Example #1
0
 void SetValue(QueryValues which, object obj)
 {
     switch ((QueryValues)which)
     {
         case QueryValues.Key_ID:
             m_DataObject.Key_ID = DBConvert.ToLong(obj);
             return;
         case QueryValues.CharID:
             m_DataObject.CharID = DBConvert.ToLong(obj);
             return;
         case QueryValues.standingType:
             m_DataObject.standingType = DBConvert.ToLong(obj);
             return;
         case QueryValues.ID:
             m_DataObject.ID = DBConvert.ToLong(obj);
             return;
         case QueryValues.Name:
             m_DataObject.Name = DBConvert.ToString(obj);
             return;
         case QueryValues.standing:
             m_DataObject.standing = DBConvert.ToDecimal(obj);
             return;
     }
     throw new ArgumentOutOfRangeException("which", which, "");
 }
Example #2
0
        void SetValue(QueryValues which, object obj)
        {
            switch (which)
            {
            case QueryValues.Key_ID:
                m_DataObject.Key_ID = DBConvert.ToLong(obj);
                return;

            case QueryValues.CharID:
                m_DataObject.CharID = DBConvert.ToLong(obj);
                return;

            case QueryValues.RoleType:
                m_DataObject.RoleType = DBConvert.ToLong(obj);
                return;

            case QueryValues.RoleID:
                m_DataObject.RoleID = DBConvert.ToLong(obj);
                return;

            case QueryValues.RoleName:
                m_DataObject.RoleName = DBConvert.ToString(obj);
                return;
            }
            throw new ArgumentOutOfRangeException("which", which, "");
        }
Example #3
0
        void SetValue(QueryValues which, object obj)
        {
            switch (which)
            {
            case QueryValues.CharID:
                m_DataObject.CharID = DBConvert.ToLong(obj);
                return;

            case QueryValues.date:
                m_DataObject.date = DBConvert.ToDateTime(obj);
                return;

            case QueryValues.refID:
                m_DataObject.refID = DBConvert.ToLong(obj);
                return;

            case QueryValues.refTypeID:
                m_DataObject.refTypeID = DBConvert.ToLong(obj);
                return;

            case QueryValues.ownerName1:
                m_DataObject.ownerName1 = DBConvert.ToString(obj);
                return;

            case QueryValues.ownerID1:
                m_DataObject.ownerID1 = DBConvert.ToLong(obj);
                return;

            case QueryValues.ownerName2:
                m_DataObject.ownerName2 = DBConvert.ToString(obj);
                return;

            case QueryValues.ownerID2:
                m_DataObject.ownerID2 = DBConvert.ToLong(obj);
                return;

            case QueryValues.argName1:
                m_DataObject.argName1 = DBConvert.ToString(obj);
                return;

            case QueryValues.argID:
                m_DataObject.argID = DBConvert.ToLong(obj);
                return;

            case QueryValues.amount:
                m_DataObject.amount = DBConvert.ToDecimal(obj);
                return;

            case QueryValues.balance:
                m_DataObject.balance = DBConvert.ToDecimal(obj);
                return;

            case QueryValues.reason:
                m_DataObject.reason = DBConvert.ToString(obj);
                return;
            }
            throw new ArgumentOutOfRangeException("which", which, "");
        }
Example #4
0
        void SetValue(QueryValues which, object obj)
        {
            switch (which)
            {
            case QueryValues.CharID:
                m_DataObject.CharID = DBConvert.ToLong(obj);
                return;

            case QueryValues.date:
                m_DataObject.date = DBConvert.ToDateTime(obj);
                return;

            case QueryValues.transID:
                m_DataObject.transID = DBConvert.ToLong(obj);
                return;

            case QueryValues.quantity:
                m_DataObject.quantity = DBConvert.ToLong(obj);
                return;

            case QueryValues.typeName:
                m_DataObject.typeName = DBConvert.ToString(obj);
                return;

            case QueryValues.typeID:
                m_DataObject.typeID = DBConvert.ToLong(obj);
                return;

            case QueryValues.price:
                m_DataObject.price = DBConvert.ToDecimal(obj);
                return;

            case QueryValues.clientID:
                m_DataObject.clientID = DBConvert.ToLong(obj);
                return;

            case QueryValues.clientName:
                m_DataObject.clientName = DBConvert.ToString(obj);
                return;

            case QueryValues.stationID:
                m_DataObject.stationID = DBConvert.ToLong(obj);
                return;

            case QueryValues.stationName:
                m_DataObject.stationName = DBConvert.ToString(obj);
                return;

            case QueryValues.transactionType:
                m_DataObject.transactionType = DBConvert.ToString(obj);
                return;

            case QueryValues.transactionFor:
                m_DataObject.transactionFor = DBConvert.ToString(obj);
                return;
            }
            throw new ArgumentOutOfRangeException("which", which, "");
        }
Example #5
0
        void SetValue(QueryValues which, object obj)
        {
            switch (which)
            {
            // key
            case QueryValues.TableName:
                m_DataObject.TableName = DBConvert.ToString(obj);
                return;

            // data
            case QueryValues.VersionNumber:
                m_DataObject.VersionNumber = DBConvert.ToLong(obj);
                return;
            }
            throw new ArgumentOutOfRangeException("which", which, "");
        }
Example #6
0
        public string BuildQueryString(string FieldName)
        {
            if (QueryConstraints.None == m_Constraint)
            {
                return("");
            }

            string ret = FieldName + " " + m_ConstraintStrings[(ulong)m_Constraint] + " ";

            //if (typeof(Int32) == m_Value1.GetType())
            //    ret += ((Int32)m_Value1).ToString();
            //else if (typeof(long) == m_Value1.GetType())
            //    ret += ((long)m_Value1).ToString();
            //else if (typeof(Double) == m_Value1.GetType())
            //    ret += ((Double)m_Value1).ToString();
            //else if (typeof(Decimal) == m_Value1.GetType())
            //    ret += ((Decimal)m_Value1).ToString();
            //else if (typeof(Boolean) == m_Value1.GetType())
            //    ret += ((Boolean)m_Value1) ? 1 : 0;
            //else
            //    ret += "\"" + m_Value1.ToString() + "\"";
            ret += DBConvert.ToDBString(m_Value1);

            if (QueryConstraints.Between == m_Constraint)
            {
                ret += " AND ";
            }
            else
            {
                return(ret);
            }

            //if (typeof(Int32) == m_Value2.GetType())
            //    ret += ((Int32)m_Value2).ToString();
            //else if (typeof(long) == m_Value2.GetType())
            //    ret += ((long)m_Value2).ToString();
            //else if (typeof(Double) == m_Value2.GetType())
            //    ret += ((Double)m_Value2).ToString();
            //else if (typeof(Decimal) == m_Value2.GetType())
            //    ret += ((Decimal)m_Value2).ToString();
            //else if (typeof(Boolean) == m_Value2.GetType())
            //    ret += ((Boolean)m_Value2) ? 1 : 0;
            //else
            //    ret += "\"" + m_Value2.ToString() + "\"";
            ret += DBConvert.ToDBString(m_Value2);
            return(ret);
        }
Example #7
0
        public CharacterTransaction(long CharID, XmlNode xmlNode)
        {
            m_DataObject.CharID = CharID;

            m_DataObject.date            = DBConvert.FromCCPTime(xmlNode.Attributes["transactionDateTime"].InnerText);
            m_DataObject.transID         = long.Parse(xmlNode.Attributes["transactionID"].InnerText);
            m_DataObject.quantity        = long.Parse(xmlNode.Attributes["quantity"].InnerText);
            m_DataObject.typeName        = xmlNode.Attributes["typeName"].InnerText;
            m_DataObject.typeID          = long.Parse(xmlNode.Attributes["typeID"].InnerText);
            m_DataObject.price           = decimal.Parse(xmlNode.Attributes["price"].InnerText);
            m_DataObject.clientID        = long.Parse(xmlNode.Attributes["clientID"].InnerText);
            m_DataObject.clientName      = xmlNode.Attributes["clientName"].InnerText;
            m_DataObject.stationID       = long.Parse(xmlNode.Attributes["stationID"].InnerText);
            m_DataObject.stationName     = xmlNode.Attributes["stationName"].InnerText;
            m_DataObject.transactionType = xmlNode.Attributes["transactionType"].InnerText;
            m_DataObject.transactionFor  = xmlNode.Attributes["transactionFor"].InnerText;
        }
Example #8
0
        public CharacterJournal(long CharID, XmlNode xmlNode)
        {
            m_DataObject.CharID = CharID;

            m_DataObject.date       = DBConvert.FromCCPTime(xmlNode.Attributes["date"].InnerText);
            m_DataObject.refID      = long.Parse(xmlNode.Attributes["refID"].InnerText);
            m_DataObject.refTypeID  = long.Parse(xmlNode.Attributes["refTypeID"].InnerText);
            m_DataObject.ownerName1 = xmlNode.Attributes["ownerName1"].InnerText;
            m_DataObject.ownerID1   = long.Parse(xmlNode.Attributes["ownerID1"].InnerText);
            m_DataObject.ownerName2 = xmlNode.Attributes["ownerName2"].InnerText;
            m_DataObject.ownerID2   = long.Parse(xmlNode.Attributes["ownerID2"].InnerText);
            m_DataObject.argName1   = xmlNode.Attributes["argName1"].InnerText;
            m_DataObject.argID      = long.Parse(xmlNode.Attributes["argID1"].InnerText);
            m_DataObject.amount     = decimal.Parse(xmlNode.Attributes["amount"].InnerText);
            m_DataObject.balance    = decimal.Parse(xmlNode.Attributes["balance"].InnerText);
            m_DataObject.reason     = xmlNode.Attributes["reason"].InnerText;
        }
Example #9
0
        public CorporationJournal(long CorpID, long Division, XmlNode xmlNode)
        {
            this.m_DataObject.CorpID   = CorpID;
            this.m_DataObject.Division = Division;

            this.m_DataObject.date       = DBConvert.FromCCPTime(xmlNode.Attributes["date"].InnerText);
            this.m_DataObject.refID      = long.Parse(xmlNode.Attributes["refID"].InnerText);
            this.m_DataObject.refTypeID  = long.Parse(xmlNode.Attributes["refTypeID"].InnerText);
            this.m_DataObject.ownerName1 = xmlNode.Attributes["ownerName1"].InnerText;
            this.m_DataObject.ownerID1   = long.Parse(xmlNode.Attributes["ownerID1"].InnerText);
            this.m_DataObject.ownerName2 = xmlNode.Attributes["ownerName2"].InnerText;
            this.m_DataObject.ownerID2   = long.Parse(xmlNode.Attributes["ownerID2"].InnerText);
            this.m_DataObject.argName1   = xmlNode.Attributes["argName1"].InnerText;
            this.m_DataObject.argID      = long.Parse(xmlNode.Attributes["argID1"].InnerText);
            this.m_DataObject.amount     = decimal.Parse(xmlNode.Attributes["amount"].InnerText);
            this.m_DataObject.balance    = decimal.Parse(xmlNode.Attributes["balance"].InnerText);
            this.m_DataObject.reason     = xmlNode.Attributes["reason"].InnerText;
        }
Example #10
0
        void SetValue(QueryValues which, object obj)
        {
            switch ((QueryValues)which)
            {
            case QueryValues.Key_ID:
                m_DataObject.Key_ID = DBConvert.ToLong(obj);
                return;

            case QueryValues.CharID:
                m_DataObject.CharID = DBConvert.ToLong(obj);
                return;

            case QueryValues.ItemID:
                m_DataObject.ItemID = DBConvert.ToLong(obj);
                return;

            case QueryValues.ItemParentID:
                m_DataObject.ItemParentID = DBConvert.ToLong(obj);
                return;

            case QueryValues.locationID:
                m_DataObject.locationID = DBConvert.ToLong(obj);
                return;

            case QueryValues.typeID:
                m_DataObject.typeID = DBConvert.ToLong(obj);
                return;

            case QueryValues.quantity:
                m_DataObject.quantity = DBConvert.ToLong(obj);
                return;

            case QueryValues.flag:
                m_DataObject.flag = DBConvert.ToLong(obj);
                return;

            case QueryValues.singleton:
                m_DataObject.singleton = DBConvert.ToLong(obj);
                return;
            }
            throw new ArgumentOutOfRangeException("which", which, "");
        }
Example #11
0
        void SetValue(QueryValues which, object obj)
        {
            switch (which)
            {
            // key
            case QueryValues.CorpID:
                m_DataObject.CorpID = DBConvert.ToLong(obj);
                return;

            case QueryValues.AccountKey:
                m_DataObject.AccountKey = DBConvert.ToLong(obj);
                return;

            // data
            case QueryValues.Description:
                m_DataObject.Description = DBConvert.ToString(obj);
                return;
            }
            throw new ArgumentOutOfRangeException("which", which, "");
        }
Example #12
0
            public CharacterIndustryJob(long CharID, XmlNode xmlNode)
            {
                m_DataObject.charID = CharID;

                m_DataObject.jobID                          = long.Parse(xmlNode.Attributes["jobID"].InnerText);
                m_DataObject.assemblyLineID                 = long.Parse(xmlNode.Attributes["assemblyLineID"].InnerText);
                m_DataObject.containerID                    = long.Parse(xmlNode.Attributes["containerID"].InnerText);
                m_DataObject.installedItemID                = long.Parse(xmlNode.Attributes["installedItemID"].InnerText);
                m_DataObject.installedItemLocationID        = long.Parse(xmlNode.Attributes["installedItemLocationID"].InnerText);
                m_DataObject.installedItemQuantity          = long.Parse(xmlNode.Attributes["installedItemQuantity"].InnerText);
                m_DataObject.installedItemProductivityLevel = long.Parse(xmlNode.Attributes["installedItemProductivityLevel"].InnerText);
                m_DataObject.installedItemMaterialLevel     = long.Parse(xmlNode.Attributes["installedItemMaterialLevel"].InnerText);
                m_DataObject.installedItemLicensedProductionRunsRemaining = long.Parse(xmlNode.Attributes["installedItemLicensedProductionRunsRemaining"].InnerText);
                m_DataObject.outputLocationID         = long.Parse(xmlNode.Attributes["outputLocationID"].InnerText);
                m_DataObject.installerID              = long.Parse(xmlNode.Attributes["installerID"].InnerText);
                m_DataObject.runs                     = long.Parse(xmlNode.Attributes["runs"].InnerText);
                m_DataObject.licensedProductionRuns   = long.Parse(xmlNode.Attributes["licensedProductionRuns"].InnerText);
                m_DataObject.installedInSolarSystemID = long.Parse(xmlNode.Attributes["installedInSolarSystemID"].InnerText);
                m_DataObject.containerLocationID      = long.Parse(xmlNode.Attributes["containerLocationID"].InnerText);
                m_DataObject.installedItemTypeID      = long.Parse(xmlNode.Attributes["installedItemTypeID"].InnerText);
                m_DataObject.outputTypeID             = long.Parse(xmlNode.Attributes["outputTypeID"].InnerText);
                m_DataObject.containerTypeID          = long.Parse(xmlNode.Attributes["containerTypeID"].InnerText);
                m_DataObject.installedItemCopy        = long.Parse(xmlNode.Attributes["installedItemCopy"].InnerText);
                m_DataObject.completed                = long.Parse(xmlNode.Attributes["completed"].InnerText);
                m_DataObject.completedSuccessfully    = long.Parse(xmlNode.Attributes["completedSuccessfully"].InnerText);
                m_DataObject.installedItemFlag        = long.Parse(xmlNode.Attributes["installedItemFlag"].InnerText);
                m_DataObject.outputFlag               = long.Parse(xmlNode.Attributes["outputFlag"].InnerText);
                m_DataObject.activityID               = long.Parse(xmlNode.Attributes["activityID"].InnerText);
                m_DataObject.completedStatus          = long.Parse(xmlNode.Attributes["completedStatus"].InnerText);

                m_DataObject.materialMultiplier     = decimal.Parse(xmlNode.Attributes["materialMultiplier"].InnerText);
                m_DataObject.charMaterialMultiplier = decimal.Parse(xmlNode.Attributes["charMaterialMultiplier"].InnerText);
                m_DataObject.timeMultiplier         = decimal.Parse(xmlNode.Attributes["timeMultiplier"].InnerText);
                m_DataObject.charTimeMultiplier     = decimal.Parse(xmlNode.Attributes["charTimeMultiplier"].InnerText);

                m_DataObject.installTime         = DBConvert.FromCCPTime(xmlNode.Attributes["installTime"].InnerText);
                m_DataObject.beginProductionTime = DBConvert.FromCCPTime(xmlNode.Attributes["beginProductionTime"].InnerText);
                m_DataObject.endProductionTime   = DBConvert.FromCCPTime(xmlNode.Attributes["endProductionTime"].InnerText);
                m_DataObject.pauseProductionTime = DBConvert.FromCCPTime(xmlNode.Attributes["pauseProductionTime"].InnerText);
            }
Example #13
0
        void SetValue(QueryValues which, object obj)
        {
            switch (which)
            {
            // key
            case QueryValues.CorpID:
                m_DataObject.CorpID = DBConvert.ToLong(obj);
                return;

            // data
            case QueryValues.MemberOk:
                m_DataObject.MemberOk = DBConvert.ToLong(obj);
                return;

            case QueryValues.MemberCaution:
                m_DataObject.MemberCaution = DBConvert.ToLong(obj);
                return;

            case QueryValues.MemberWarning:
                m_DataObject.MemberWarning = DBConvert.ToLong(obj);
                return;

            case QueryValues.RecruitDefinition:
                m_DataObject.RecruitDefinition = DBConvert.ToLong(obj);
                return;

            case QueryValues.RecruitOk:
                m_DataObject.RecruitOk = DBConvert.ToLong(obj);
                return;

            case QueryValues.RecruitCaution:
                m_DataObject.RecruitCaution = DBConvert.ToLong(obj);
                return;

            case QueryValues.RecruitWarning:
                m_DataObject.RecruitWarning = DBConvert.ToLong(obj);
                return;
            }
            throw new ArgumentOutOfRangeException("which", which, "");
        }
Example #14
0
        void SetValue(QueryValues which, object obj)
        {
            switch (which)
            {
            case QueryValues.CharID:
                m_DataObject.CharID = DBConvert.ToLong(obj);
                return;

            case QueryValues.AccountID:
                m_DataObject.AccountID = DBConvert.ToLong(obj);
                return;

            case QueryValues.AccountKey:
                m_DataObject.AccountKey = DBConvert.ToLong(obj);
                return;

            case QueryValues.balance:
                m_DataObject.balance = DBConvert.ToDecimal(obj);
                return;
            }
            throw new ArgumentOutOfRangeException("which", which, "");
        }
Example #15
0
        void SetValue(QueryValues which, object obj)
        {
            switch (which)
            {
            case QueryValues.CharID:
                m_DataObject.CharID = DBConvert.ToLong(obj);
                return;

            case QueryValues.StartTime:
                m_DataObject.StartTime = DBConvert.ToDateTime(obj);
                return;

            case QueryValues.EndTime:
                m_DataObject.EndTime = DBConvert.ToDateTime(obj);
                return;

            case QueryValues.TypeID:
                m_DataObject.TypeID = DBConvert.ToLong(obj);
                return;

            case QueryValues.StartSP:
                m_DataObject.StartSP = DBConvert.ToLong(obj);
                return;

            case QueryValues.EndSP:
                m_DataObject.EndSP = DBConvert.ToLong(obj);
                return;

            case QueryValues.ToLevel:
                m_DataObject.ToLevel = DBConvert.ToLong(obj);
                return;

            case QueryValues.SkillInTraining:
                m_DataObject.SkillInTraining = DBConvert.ToLong(obj);
                return;
            }
            throw new ArgumentOutOfRangeException("which", which, "");
        }
Example #16
0
        void SetValue(QueryValues which, object obj)
        {
            switch (which)
            {
            // key
            case QueryValues.CorpID:
                m_DataObject.CorpID = DBConvert.ToLong(obj);
                return;

            case QueryValues.MedalID:
                m_DataObject.MedalID = DBConvert.ToLong(obj);
                return;

            case QueryValues.CharID:
                m_DataObject.CharID = DBConvert.ToLong(obj);
                return;

            // data
            case QueryValues.reason:
                m_DataObject.reason = DBConvert.ToString(obj);
                return;

            case QueryValues.status:
                m_DataObject.status = DBConvert.ToString(obj);
                return;

            case QueryValues.issuerID:
                m_DataObject.issuerID = DBConvert.ToLong(obj);
                return;

            case QueryValues.issued:
                m_DataObject.issued = DBConvert.ToDateTime(obj);
                return;
            }
            throw new ArgumentOutOfRangeException("which", which, "");
        }
Example #17
0
        void SetValue(QueryValues which, object obj)
        {
            switch (which)
            {
            // key
            case QueryValues.KillID:
                m_DataObject.KillID = DBConvert.ToLong(obj);
                return;

            // data
            case QueryValues.SolarSystemID:
                m_DataObject.SolarSystemID = DBConvert.ToLong(obj);
                return;

            case QueryValues.moonID:
                m_DataObject.moonID = DBConvert.ToLong(obj);
                return;

            case QueryValues.vic_allianceID:
                m_DataObject.vic_allianceID = DBConvert.ToLong(obj);
                return;

            case QueryValues.vic_characterID:
                m_DataObject.vic_characterID = DBConvert.ToLong(obj);
                return;

            case QueryValues.vic_corporationID:
                m_DataObject.vic_corporationID = DBConvert.ToLong(obj);
                return;

            case QueryValues.vic_damageTaken:
                m_DataObject.vic_damageTaken = DBConvert.ToLong(obj);
                return;

            case QueryValues.vic_factionID:
                m_DataObject.vic_factionID = DBConvert.ToLong(obj);
                return;

            case QueryValues.vic_ShipTypeID:
                m_DataObject.vic_ShipTypeID = DBConvert.ToLong(obj);
                return;

            case QueryValues.KillTime:
                m_DataObject.KillTime = DBConvert.ToDateTime(obj);
                return;

            case QueryValues.vic_allianceName:
                m_DataObject.vic_allianceName = DBConvert.ToString(obj);
                return;

            case QueryValues.vic_characterName:
                m_DataObject.vic_characterName = DBConvert.ToString(obj);
                return;

            case QueryValues.vic_corporationName:
                m_DataObject.vic_corporationName = DBConvert.ToString(obj);
                return;

            case QueryValues.vic_factionName:
                m_DataObject.vic_factionName = DBConvert.ToString(obj);
                return;
            }
            throw new ArgumentOutOfRangeException("which", which, "");
        }
Example #18
0
        void SetValue(QueryValues which, object obj)
        {
            switch (which)
            {
            // key
            case QueryValues.CorpID:
                m_DataObject.CorpID = DBConvert.ToLong(obj);
                return;

            // data
            case QueryValues.ceoID:
                m_DataObject.ceoID = DBConvert.ToLong(obj);
                return;

            case QueryValues.stationID:
                m_DataObject.stationID = DBConvert.ToLong(obj);
                return;

            case QueryValues.allianceID:
                m_DataObject.allianceID = DBConvert.ToLong(obj);
                return;

            case QueryValues.memberCount:
                m_DataObject.memberCount = DBConvert.ToLong(obj);
                return;

            case QueryValues.memberLimit:
                m_DataObject.memberLimit = DBConvert.ToLong(obj);
                return;

            case QueryValues.shares:
                m_DataObject.shares = DBConvert.ToLong(obj);
                return;

            case QueryValues.logoGraphicID:
                m_DataObject.logoGraphicID = DBConvert.ToLong(obj);
                return;

            case QueryValues.logoShape1:
                m_DataObject.logoShape1 = DBConvert.ToLong(obj);
                return;

            case QueryValues.logoShape2:
                m_DataObject.logoShape2 = DBConvert.ToLong(obj);
                return;

            case QueryValues.logoShape3:
                m_DataObject.logoShape3 = DBConvert.ToLong(obj);
                return;

            case QueryValues.logoColor1:
                m_DataObject.logoColor1 = DBConvert.ToLong(obj);
                return;

            case QueryValues.logoColor2:
                m_DataObject.logoColor2 = DBConvert.ToLong(obj);
                return;

            case QueryValues.logoColor3:
                m_DataObject.logoColor3 = DBConvert.ToLong(obj);
                return;

            case QueryValues.taxRate:
                m_DataObject.taxRate = DBConvert.ToDecimal(obj);
                return;

            case QueryValues.CorpName:
                m_DataObject.CorpName = DBConvert.ToString(obj);
                return;

            case QueryValues.ticker:
                m_DataObject.ticker = DBConvert.ToString(obj);
                return;

            case QueryValues.ceoName:
                m_DataObject.ceoName = DBConvert.ToString(obj);
                return;

            case QueryValues.stationName:
                m_DataObject.stationName = DBConvert.ToString(obj);
                return;

            case QueryValues.description:
                m_DataObject.description = DBConvert.ToString(obj);
                return;

            case QueryValues.url:
                m_DataObject.url = DBConvert.ToString(obj);
                return;

            case QueryValues.allianceName:
                m_DataObject.allianceName = DBConvert.ToString(obj);
                return;
            }
            throw new ArgumentOutOfRangeException("which", which, "");
        }
Example #19
0
        void SetValue(QueryValues which, object obj)
        {
            switch (which)
            {
            // key
            case QueryValues.CorpID:
                m_DataObject.CorpID = DBConvert.ToLong(obj);
                return;

            case QueryValues.charID:
                m_DataObject.charID = DBConvert.ToLong(obj);
                return;

            case QueryValues.orderID:
                m_DataObject.orderID = DBConvert.ToLong(obj);
                return;

            case QueryValues.typeID:
                m_DataObject.typeID = DBConvert.ToLong(obj);
                return;

            case QueryValues.stationID:
                m_DataObject.stationID = DBConvert.ToLong(obj);
                return;

            case QueryValues.accountKey:
                m_DataObject.accountKey = DBConvert.ToLong(obj);
                return;

            case QueryValues.issued:
                m_DataObject.issued = DBConvert.ToDateTime(obj);
                return;

            // data
            case QueryValues.ownerID:
                m_DataObject.ownerID = DBConvert.ToLong(obj);
                return;

            case QueryValues.volEntered:
                m_DataObject.volEntered = DBConvert.ToLong(obj);
                return;

            case QueryValues.volRemaining:
                m_DataObject.volRemaining = DBConvert.ToLong(obj);
                return;

            case QueryValues.minVolume:
                m_DataObject.minVolume = DBConvert.ToLong(obj);
                return;

            case QueryValues.orderState:
                m_DataObject.orderState = DBConvert.ToLong(obj);
                return;

            case QueryValues.range:
                m_DataObject.range = DBConvert.ToLong(obj);
                return;

            case QueryValues.duration:
                m_DataObject.duration = DBConvert.ToLong(obj);
                return;

            case QueryValues.escrow:
                m_DataObject.escrow = DBConvert.ToDecimal(obj);
                return;

            case QueryValues.price:
                m_DataObject.price = DBConvert.ToDecimal(obj);
                return;

            case QueryValues.bid:
                m_DataObject.bid = DBConvert.ToLong(obj);
                return;
            }
            throw new ArgumentOutOfRangeException("which", which, "");
        }
Example #20
0
        void SetValue(QueryValues which, object obj)
        {
            switch (which)
            {
            // key
            case QueryValues.Key_ID:
                m_DataObject.Key_ID = DBConvert.ToLong(obj);
                return;

            // data
            case QueryValues.KillID:
                m_DataObject.KillID = DBConvert.ToLong(obj);
                return;

            case QueryValues.allianceID:
                m_DataObject.allianceID = DBConvert.ToLong(obj);
                return;

            case QueryValues.allianceName:
                m_DataObject.allianceName = DBConvert.ToString(obj);
                return;

            case QueryValues.characterID:
                m_DataObject.characterID = DBConvert.ToLong(obj);
                return;

            case QueryValues.characterName:
                m_DataObject.characterName = DBConvert.ToString(obj);
                return;

            case QueryValues.corporationID:
                m_DataObject.corporationID = DBConvert.ToLong(obj);
                return;

            case QueryValues.corporationName:
                m_DataObject.corporationName = DBConvert.ToString(obj);
                return;

            case QueryValues.damageDone:
                m_DataObject.damageDone = DBConvert.ToLong(obj);
                return;

            case QueryValues.factionID:
                m_DataObject.factionID = DBConvert.ToLong(obj);
                return;

            case QueryValues.factionName:
                m_DataObject.factionName = DBConvert.ToString(obj);
                return;

            case QueryValues.finalBlow:
                m_DataObject.finalBlow = DBConvert.ToLong(obj);
                return;

            case QueryValues.securityStatus:
                m_DataObject.securityStatus = DBConvert.ToDecimal(obj);
                return;

            case QueryValues.shipTypeID:
                m_DataObject.shipTypeID = DBConvert.ToLong(obj);
                return;

            case QueryValues.weaponTypeID:
                m_DataObject.weaponTypeID = DBConvert.ToLong(obj);
                return;
            }
            throw new ArgumentOutOfRangeException("which", which, "");
        }
Example #21
0
            void SetValue(QueryValues which, object obj)
            {
                switch (which)
                {
                case QueryValues.CharID:
                    m_DataObject.charID = DBConvert.ToLong(obj);
                    return;

                case QueryValues.jobID:
                    m_DataObject.jobID = DBConvert.ToLong(obj);
                    return;

                case QueryValues.assemblyLineID:
                    m_DataObject.assemblyLineID = DBConvert.ToLong(obj);
                    return;

                case QueryValues.containerID:
                    m_DataObject.containerID = DBConvert.ToLong(obj);
                    return;

                case QueryValues.installedItemID:
                    m_DataObject.installedItemID = DBConvert.ToLong(obj);
                    return;

                case QueryValues.installedItemLocationID:
                    m_DataObject.installedItemLocationID = DBConvert.ToLong(obj);
                    return;

                case QueryValues.installedItemQuantity:
                    m_DataObject.installedItemQuantity = DBConvert.ToLong(obj);
                    return;

                case QueryValues.installedItemProductivityLevel:
                    m_DataObject.installedItemProductivityLevel = DBConvert.ToLong(obj);
                    return;

                case QueryValues.installedItemMaterialLevel:
                    m_DataObject.installedItemMaterialLevel = DBConvert.ToLong(obj);
                    return;

                case QueryValues.installedItemLicensedProductionRunsRemaining:
                    m_DataObject.installedItemLicensedProductionRunsRemaining = DBConvert.ToLong(obj);
                    return;

                case QueryValues.outputLocationID:
                    m_DataObject.outputLocationID = DBConvert.ToLong(obj);
                    return;

                case QueryValues.installerID:
                    m_DataObject.installerID = DBConvert.ToLong(obj);
                    return;

                case QueryValues.runs:
                    m_DataObject.runs = DBConvert.ToLong(obj);
                    return;

                case QueryValues.licensedProductionRuns:
                    m_DataObject.licensedProductionRuns = DBConvert.ToLong(obj);
                    return;

                case QueryValues.installedInSolarSystemID:
                    m_DataObject.installedInSolarSystemID = DBConvert.ToLong(obj);
                    return;

                case QueryValues.containerLocationID:
                    m_DataObject.containerLocationID = DBConvert.ToLong(obj);
                    return;

                case QueryValues.materialMultiplier:
                    m_DataObject.materialMultiplier = DBConvert.ToDecimal(obj);
                    return;

                case QueryValues.charMaterialMultiplier:
                    m_DataObject.charMaterialMultiplier = DBConvert.ToDecimal(obj);
                    return;

                case QueryValues.timeMultiplier:
                    m_DataObject.timeMultiplier = DBConvert.ToDecimal(obj);
                    return;

                case QueryValues.charTimeMultiplier:
                    m_DataObject.charTimeMultiplier = DBConvert.ToDecimal(obj);
                    return;

                case QueryValues.installedItemTypeID:
                    m_DataObject.installedItemTypeID = DBConvert.ToLong(obj);
                    return;

                case QueryValues.outputTypeID:
                    m_DataObject.outputTypeID = DBConvert.ToLong(obj);
                    return;

                case QueryValues.containerTypeID:
                    m_DataObject.containerTypeID = DBConvert.ToLong(obj);
                    return;

                case QueryValues.installedItemCopy:
                    m_DataObject.installedItemCopy = DBConvert.ToLong(obj);
                    return;

                case QueryValues.completed:
                    m_DataObject.completed = DBConvert.ToLong(obj);
                    return;

                case QueryValues.completedSuccessfully:
                    m_DataObject.completedSuccessfully = DBConvert.ToLong(obj);
                    return;

                case QueryValues.installedItemFlag:
                    m_DataObject.installedItemFlag = DBConvert.ToLong(obj);
                    return;

                case QueryValues.outputFlag:
                    m_DataObject.outputFlag = DBConvert.ToLong(obj);
                    return;

                case QueryValues.activityID:
                    m_DataObject.activityID = DBConvert.ToLong(obj);
                    return;

                case QueryValues.completedStatus:
                    m_DataObject.completedStatus = DBConvert.ToLong(obj);
                    return;

                case QueryValues.installTime:
                    m_DataObject.installTime = DBConvert.ToDateTime(obj);
                    return;

                case QueryValues.beginProductionTime:
                    m_DataObject.beginProductionTime = DBConvert.ToDateTime(obj);
                    return;

                case QueryValues.endProductionTime:
                    m_DataObject.endProductionTime = DBConvert.ToDateTime(obj);
                    return;

                case QueryValues.pauseProductionTime:
                    m_DataObject.pauseProductionTime = DBConvert.ToDateTime(obj);
                    return;
                }//switch
                throw new ArgumentOutOfRangeException("which", which, "");
            }
Example #22
0
        void SetValue(QueryValues which, object obj)
        {
            switch (which)
            {
            // key
            case QueryValues.CorpID:
                m_DataObject.CorpID = DBConvert.ToLong(obj);
                return;

            case QueryValues.ItemID:
                m_DataObject.ItemID = DBConvert.ToLong(obj);
                return;

            case QueryValues.logTime:
                m_DataObject.logTime = DBConvert.ToDateTime(obj);
                return;

            // data
            case QueryValues.itemTypeID:
                m_DataObject.itemTypeID = DBConvert.ToLong(obj);
                return;

            case QueryValues.actorID:
                m_DataObject.actorID = DBConvert.ToLong(obj);
                return;

            case QueryValues.flag:
                m_DataObject.flag = DBConvert.ToLong(obj);
                return;

            case QueryValues.locationID:
                m_DataObject.locationID = DBConvert.ToLong(obj);
                return;

            case QueryValues.typeID:
                m_DataObject.typeID = DBConvert.ToLong(obj);
                return;

            case QueryValues.quantity:
                m_DataObject.quantity = DBConvert.ToLong(obj);
                return;

            case QueryValues.actorName:
                m_DataObject.actorName = DBConvert.ToString(obj);
                return;

            case QueryValues.action:
                m_DataObject.action = DBConvert.ToString(obj);
                return;

            case QueryValues.passwordType:
                m_DataObject.passwordType = DBConvert.ToString(obj);
                return;

            case QueryValues.oldConfiguration:
                m_DataObject.oldConfiguration = DBConvert.ToString(obj);
                return;

            case QueryValues.newConfiguration:
                m_DataObject.newConfiguration = DBConvert.ToString(obj);
                return;
            }
            throw new ArgumentOutOfRangeException("which", which, "");
        }