|
From: <sv...@de...> - 2005-06-07 19:39:02
|
Author: pcamacho Date: 2005-06-07 15:12:51 -0400 (Tue, 07 Jun 2005) New Revision: 1253 Removed: humano2/trunk/web/builder/site/borrarclase.aspx humano2/trunk/web/builder/site/borrarclase.aspx.cs Log: DEL: dataclassdelete.aspx* are the files used to delete a class. Deleted: humano2/trunk/web/builder/site/borrarclase.aspx =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/web/builder/site/borrarclase.aspx 2005-06-07 19:07:24 U= TC (rev 1252) +++ humano2/trunk/web/builder/site/borrarclase.aspx 2005-06-07 19:12:51 U= TC (rev 1253) @@ -1,17 +0,0 @@ -<%@ Page language=3D"c#" Codebehind=3D"borrarclase.aspx.cs" AutoEventWir= eup=3D"false" Inherits=3D"Builder.site.borrarclase" %> -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > -<HTML> - <HEAD> - <title>borrarclase</title> - <meta name=3D"GENERATOR" Content=3D"Microsoft Visual Studio .NET 7.1"> - <meta name=3D"CODE_LANGUAGE" Content=3D"C#"> - <meta name=3D"vs_defaultClientScript" content=3D"JavaScript"> - <meta name=3D"vs_targetSchema" content=3D"http://schemas.microsoft.com= /intellisense/ie5"> - </HEAD> - <body> - <form id=3D"Form1" method=3D"post" runat=3D"server"> - <asp:DropDownList id=3D"ddlClases" runat=3D"server"></asp:DropDownLis= t><br> - <asp:Button id=3D"btnBorrar" runat=3D"server" Text=3D"Borrar"></asp:B= utton> - </form> - </body> -</HTML> Deleted: humano2/trunk/web/builder/site/borrarclase.aspx.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/web/builder/site/borrarclase.aspx.cs 2005-06-07 19:07:2= 4 UTC (rev 1252) +++ humano2/trunk/web/builder/site/borrarclase.aspx.cs 2005-06-07 19:12:5= 1 UTC (rev 1253) @@ -1,87 +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. =20 -// -// $Id$ -// - -using System; -using System.Collections; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Web; -using System.Web.SessionState; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.HtmlControls; -using Humano2.Core.Db; -using Humano2.Components.WebTools; - -namespace Builder.site -{ - /// <summary> - /// Summary description for borrarclase. - /// </summary> - public class borrarclase : System.Web.UI.Page - { - protected System.Web.UI.WebControls.Button btnBorrar; - protected System.Web.UI.WebControls.DropDownList ddlClases; - private absCrud crud; -=09 - private void Page_Load(object sender, System.EventArgs e) - { - crud =3D Factory.Crud(); - crud.Domain=3D109; - absComplex complex =3D crud.GetCore().Complex; - string[] clases =3D complex.domainsClass(crud.Domain.ToString()); - =09 - ddlClases.Items.Add(new ListItem("Seleccione una Clase","0")); - =09 - for(int i=3D0;clases!=3Dnull && i<=3Dclases.Length-1;i+=3D2) - { - ddlClases.Items.Add(new ListItem(clases[i+1].ToString(),clases[i].T= oString())); - } - } - - #region Web Form Designer generated code - override protected void OnInit(EventArgs e) - { - // - // CODEGEN: This call is required by the ASP.NET Web Form Designer. - // - InitializeComponent(); - base.OnInit(e); - } - =09 - /// <summary> - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// </summary> - private void InitializeComponent() - { =20 - this.btnBorrar.Click +=3D new System.EventHandler(this.btnBorrar_Clic= k); - this.Load +=3D new System.EventHandler(this.Page_Load); - - } - #endregion - - private void btnBorrar_Click(object sender, System.EventArgs e) - { - if(ddlClases.SelectedValue !=3D "0") - { - crud.Delete(Convert.ToInt32(ddlClases.SelectedValue)); - adapter dbAdapter =3D new adapter(); - dbAdapter.DeleteView(Convert.ToInt32(ddlClases.SelectedValue)); - Response.Redirect(Html.genAbsoluteUrl("/builder/site/borrarclase.asp= x")); - } - } - - =09 - } -} |