or
| Imports System |
| Imports System.Data |
| Imports System.Configuration |
| Imports System.Web |
| Imports System.Collections |
| Imports System.Collections.Generic |
| Imports Triton.TCNext.EntityLayer |
| Public Class TransactionType_BAL |
| Inherits List(Of TransactionType_BAL) |
| Sub New(ByVal id As Integer, ByVal name As String, ByVal description As String) |
| Me.ID = id |
| Me.Name = name |
| Me.Description = description |
| End Sub |
| Sub New() |
| End Sub |
| Private _id As Integer = 0 |
| Public Property ID() |
| Get |
| Return _id |
| End Get |
| Set(ByVal value) |
| _id = value |
| End Set |
| End Property |
| Private _name As String = 0 |
| Public Property Name() |
| Get |
| Return _name |
| End Get |
| Set(ByVal value) |
| _name = value |
| End Set |
| End Property |
| Private _description As String = 0 |
| Public Property Description() |
| Get |
| Return _description |
| End Get |
| Set(ByVal value) |
| _description = value |
| End Set |
| End Property |
| Public Shared Function GetTransactionTypes() As List(Of TransactionType_BAL) |
| Dim transactionType1 As TransactionType_BAL = New TransactionType_BAL(1, "Checking Withdrawal", String.Empty) |
| Dim transactionType2 As TransactionType_BAL = New TransactionType_BAL(2, "Savings Withdrawal", String.Empty) |
| Dim transactionType3 As TransactionType_BAL = New TransactionType_BAL(3, "Credit Withdrawal", String.Empty) |
| Dim transactionTypes As List(Of TransactionType_BAL) = New List(Of TransactionType_BAL) |
| transactionTypes.Add(transactionType1) |
| transactionTypes.Add(transactionType2) |
| transactionTypes.Add(transactionType3) |
| Return transactionTypes |
| End Function |
| Private Shared Function GetTransactionTypeFromTransactionTypeEntity(ByVal transactionType As TransactionTypeEntity) As TransactionType_BAL |
| If transactionType Is Nothing Then |
| Return Nothing |
| Else |
| Return New TransactionType_BAL(transactionType.ID, transactionType.Name, transactionType.Description) |
| End If |
| End Function |
| Private Shared Function GetTransactionTypeListFromTransactionTypeEntityList(ByVal recordSet As List(Of TransactionTypeEntity)) As List(Of TransactionType_BAL) |
| Dim transactionTypes As List(Of TransactionType_BAL) = New List(Of TransactionType_BAL) |
| Dim record As TransactionTypeEntity |
| For Each record In recordSet |
| transactionTypes.Add(GetTransactionTypeFromTransactionTypeEntity(record)) |
| Next |
| Return transactionTypes |
| End Function |
| End Class |
private void manPrechodZTable_ItemDataBound(object sender, EventArgs e) { if ((manPrechodZTable.DataSource == null || (manPrechodZTable.DataSource as ExC_BodTrasy.ExC_Prechod[]).Length == 0)) { this.ReportParameters[1].Value = true; } else { this.ReportParameters[1].Value = false; } }public class SurveyListGraphicalCompareModel { public string Question{ get; set; } public Guid? QuestionID { get; set; } public decimal? avgScore { get; set; } public decimal? avgScoreEx { get; set; } }Reporting.GraphicalComparison rapor = new Reporting.GraphicalComparison(); myReport.DataSource = myDataSource; this.ReportViewer1.Report = myReport;