Exemplo n.º 1
0
		public void Fill(DataGrid grid)
		{
			this.List.Clear();
			foreach (DataGridItem row in grid.Items)
			{
				Token tk = new Token(row);
				this.List.Add(tk);
			}
			Sort();
		}
Exemplo n.º 2
0
		public void Fill(BEQuickReports.tbl_GeneratedReportTokensDataTable table, Hashtable aliases)
		{
			this.List.Clear();
			string companyColumnAlias = "";

			foreach (BEQuickReports.tbl_GeneratedReportTokensRow row in table)
			{
				if (row.LookupAlias)
				{
					string columnName = row.TokenColumns.Replace("|","");
					if (aliases.Count > 0 && aliases.ContainsKey(columnName) && aliases[columnName].ToString()!="")
					{
						companyColumnAlias = aliases[columnName].ToString();	
					}
					else
					{
						companyColumnAlias = row.TokenAlias.Replace('_',' ');
					}
				}
				else
				{
					companyColumnAlias = "";
				}
				Token tk = new Token(row, companyColumnAlias);
				this.List.Add(tk);
			}
			Sort();
		}
Exemplo n.º 3
0
		public void Add(BEQuickReports.tbl_TokensRow row, string companyColumnAlias)
		{
			Token tkn = new Token(row, companyColumnAlias);
			tkn.TokenOrder = this.InnerList.Count + 1;
			this.InnerList.Add(tkn);
			Sort();
		}