Exemple #1
0
        public VLChargedCollector(DbDataReader reader)
        {
            this.SurveyId    = reader.GetInt32(0);
            this.SurveyTitle = reader.GetString(1);

            this.CollectorId    = reader.GetInt32(2);
            this.CollectorTitle = reader.GetString(3);
            this.CollectorType  = (CollectorType)reader.GetByte(4);
            this.Status         = (CollectorStatus)reader.GetByte(5);
            this.Responses      = reader.GetInt32(6);
            if (!reader.IsDBNull(7))
            {
                this.CreditType = (CreditType)reader.GetByte(7);
            }
            this.CreationDT = reader.GetDateTime(8);
            this.CreatedBy  = reader.GetInt32(9);
            if (!reader.IsDBNull(10))
            {
                this.FirstChargeDt = reader.GetDateTime(10);
            }
            if (!reader.IsDBNull(11))
            {
                this.LastChargeDt = reader.GetDateTime(11);
            }
        }
        public VLCharge(DbDataReader reader)
        {
            this.SurveyId    = reader.GetInt32(0);
            this.SurveyTitle = reader.GetString(1);

            this.CollectorId    = reader.GetInt32(2);
            this.CollectorTitle = reader.GetString(3);
            this.CollectorType  = (CollectorType)reader.GetByte(4);
            this.Status         = (CollectorStatus)reader.GetByte(5);
            this.Responses      = reader.GetInt32(6);
            if (!reader.IsDBNull(7))
            {
                this.CreditType = (CreditType)reader.GetByte(7);
            }
            this.CreationDT = reader.GetDateTime(8);
            this.CreatedBy  = reader.GetInt32(9);

            this.CollectorPaymentId = reader.GetInt32(10);

            this.PaymentId = reader.GetInt32(11);

            this.UseOrder         = reader.GetInt16(12);
            this.QuantityReserved = reader.GetInt32(13);
            this.QuantityUsed     = reader.GetInt32(14);
            if (!reader.IsDBNull(15))
            {
                this.FirstChargeDt = reader.GetDateTime(15);
            }
            if (!reader.IsDBNull(16))
            {
                this.LastChargeDt = reader.GetDateTime(16);
            }
            this.AttributeFlags = reader.GetInt32(17);

            this.PaymentDate         = reader.GetDateTime(18);
            this.PaymentIsActive     = reader.GetBoolean(19);
            this.PaymentQuantity     = reader.GetInt32(20);
            this.PaymentQuantityUsed = reader.GetInt32(21);
        }