|
From: <sv...@de...> - 2005-06-17 13:55:45
|
Author: pcamacho Date: 2005-06-17 09:55:48 -0400 (Fri, 17 Jun 2005) New Revision: 1349 Removed: humano2/trunk/components/viewTools/Vista.cs Log: DEL: unuseful file. Please Marcelo, update the .sln file , thx! Deleted: humano2/trunk/components/viewTools/Vista.cs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- humano2/trunk/components/viewTools/Vista.cs 2005-06-17 05:23:04 UTC (= rev 1348) +++ humano2/trunk/components/viewTools/Vista.cs 2005-06-17 13:55:48 UTC (= rev 1349) @@ -1,182 +0,0 @@ -// -// The Humano2 Business solution. -// Copyright (C) 2004,5 Humano2 Chile S.A. (http://www.humano2.com) -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// $Id$ -// - -using System; -using System.Data; -using System.Collections; - -using Humano2.Core.Db; - -namespace Humano2.Components.ViewTools -{ - -/// <summary> - /// Summary description for Vista. - /// </summary> - public class Vista - { - int _classId; - string _className; - string _columns; - string _filters; - string _ordering; - string _grouping; - string _functions; - - #region "CONSTRUCTORES" - public Vista() - { - } - - public Vista(int intClassId, string strClassName, string strColumns, s= tring strFilters, - string strOrdering, string strGrouping, string strFunctions) - { - this._grouping =3D strGrouping; - this._columns =3D strColumns; - this._filters =3D strFilters; - this._functions =3D strFunctions; - this._classId =3D intClassId; - this._className =3D strClassName; - this._ordering =3D strOrdering; - } - #endregion - - #region "PROPIEDADES" - public int IdClase - { - get - { - return this._classId; - } - set - { - this._classId =3D value; - } - } - - public string NombreClase - { - get - { - return this._className; - } - set - { - this._className =3D value; - } - } - - public string GroupBy - { - get - { - return this._grouping; - } - set - { - this._grouping =3D value; - } - } - - public string Columns - { - get - { - return this._columns; - } - set - { - this._columns =3D value; - } - } - - public string WhereFilters - { - get - { - return this._filters; - } - set - { - this._filters =3D value; - } - } - - public string HavingFilters - { - get - { - return this._functions; - } - set - { - this._functions =3D value; - } - } - - public string OrderBy - { - get - { - return this._ordering; - } - set - { - this._ordering =3D value; - } - } - #endregion - - #region "METODOS" - public DataTable GetDataTable(int TablaActual) - { - DataTable table =3D new DataTable(); - DataColumn Column; - ArrayList row =3D new ArrayList(); - //string[] fila =3D {"28^26,28,28^26|1","28^26^20|5|'29'"}; - - ViewTools vt; - =09 - Column =3D new DataColumn("Columns",typeof(string)); - table.Columns.Add(Column); - Column =3D new DataColumn("Where",typeof(string)); - table.Columns.Add(Column); - Column =3D new DataColumn("GroupBy",typeof(string)); - table.Columns.Add(Column); - Column =3D new DataColumn("Havings",typeof(string)); - table.Columns.Add(Column); - Column =3D new DataColumn("OrderBy",typeof(string)); - table.Columns.Add(Column); - - row.Add(Columns); - row.Add(WhereFilters); - row.Add(GroupBy); - row.Add(HavingFilters); - row.Add(OrderBy); - - table.Rows.Add((string[])row.ToArray(typeof(string))); - - vt =3D new ViewTools(); - vt.IdClass =3D TablaActual; - absCrud crud =3D Factory.Crud(); - Humano2.Core.Db.absComplex complex =3D crud.GetCore().Complex; - vt.Complex =3D complex; - return vt.GetSQLDataTable(table); - } - #endregion - } - - public class ViewException: System.Exception { - public ViewException(string msg) : base(msg) {} - } - -} |