|
From: <sv...@de...> - 2005-06-10 16:27:44
|
Author: pcamacho Date: 2005-06-10 12:27:36 -0400 (Fri, 10 Jun 2005) New Revision: 1277 Modified: humano2/trunk/web/builder/site/combobox_type_entity.aspx humano2/trunk/web/builder/site/combobox_type_entity.aspx.cs humano2/trunk/web/builder/site/css/createinterface.css humano2/trunk/web/builder/site/foldermanagement.aspx humano2/trunk/web/builder/site/formmanagement.aspx humano2/trunk/web/builder/site/formmanagement.aspx.cs humano2/trunk/web/builder/site/js/fn_formsmng.js humano2/trunk/web/builder/site/xsl/createreport.xsl humano2/trunk/web/builder/site/xsl/createview.xsl Log: CHANGE:=20 * interface improvement for folder and form * standardisation of all creation interfaces (form,view,report,folder). Modified: humano2/trunk/web/builder/site/combobox_type_entity.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/combobox_type_entity.aspx 2005-06-09 2= 2:50:37 UTC (rev 1276) +++ humano2/trunk/web/builder/site/combobox_type_entity.aspx 2005-06-10 1= 6:27:36 UTC (rev 1277) @@ -1,18 +1,20 @@ <%@ Page language=3D"c#" Codebehind=3D"combobox_type_entity.aspx.cs" Aut= oEventWireup=3D"false" Inherits=3D"Builder.site.combobox_type_entity" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > -<HTML> - <HEAD> +<!-- $Id$ --> +<html> + <head> <title>combobox_type_entity</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> + </head> <body MS_POSITIONING=3D"GridLayout" leftmargin=3D"0" topmargin=3D"0" ri= ghtmargin=3D"0" bottommargin=3D"0"> <form id=3D"Form1" method=3D"post" runat=3D"server"> - <select name=3D"sel_cache" size=3D"8" multiple style=3D"width: 400px" - onChange=3D"window.parent.loadClass(this.options[this.selectedIndex].= value,this.options[this.selectedIndex].text);"> - <%html_getOptionClasses(); %></select> + <select name=3D"sel_cache" size=3D"8" style=3D"width:200px;" + onChange=3D"window.parent.loadClass(this.options[this.selectedInd= ex].value,this.options[this.selectedIndex].text);"> + <%html_getOptionClasses(); %> + </select> </form> </body> -</HTML> +</html> Property changes on: humano2/trunk/web/builder/site/combobox_type_entity.= aspx ___________________________________________________________________ Name: svn:keywords + Id Modified: humano2/trunk/web/builder/site/combobox_type_entity.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/combobox_type_entity.aspx.cs 2005-06-0= 9 22:50:37 UTC (rev 1276) +++ humano2/trunk/web/builder/site/combobox_type_entity.aspx.cs 2005-06-1= 0 16:27:36 UTC (rev 1277) @@ -1,173 +1,108 @@ -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; -using Humano2.Core.Db; -using Humano2.Components.WebTools; -using Humano2.Components.ViewTools; - -namespace Builder.site -{ - /// <summary> - /// Summary description for combobox_type_entity. - /// </summary> - public class combobox_type_entity : basePage - { - protected System.Web.UI.WebControls.ListBox sel_cache; - private absComplex complex =3D null; - private absCrud crud =3D null; - - string[] classNames; // Nombres de las clases. - int[] classIds; // Ids de las classes. - int classId; - - private void Page_Load(object sender, System.EventArgs e) - { - //string strAction =3D ""; - //string type_entity =3D ""; - //string strfiltros =3D ""; - - adapter dbAdapter =3D userCred.CoreAdapter; - //DataTable dtResult =3D new DataTable(); - - //dtResult =3D userCred.CoreAdapter.GetAllClasses(); - - =20 - dbAdapter.ClassByDomainId(userCred.DomainIds[userCred.CurrentDomainIn= dex], - out classNames, - out classIds);=09 - - } - =20 - public void html_getOptionClasses() - { - string strOpt =3D ""; - =09 - strOpt +=3D "<option value=3D\"0\">--Seleccionar--</option>"; - for(int c =3D 0; c < classNames.Length; c++) - { - strOpt +=3D String.Format("<option value=3D\"{0}\">{1}</option>",cla= ssIds[c].ToString(),classNames[c]);=20 - } - =20 - Response.Write(strOpt); - } -/* - strAction =3D "javascript:window.parent.agrega(this);" +=20 - "if(window.parent.document.formulario.txt_ClasificacionCliente)" + - "{window.parent.SetClasificacionCliente(" + - type_entity + ")}"; - strAction =3D "window.parent.loadClass(this.options[this.selectedInde= x].value,this.options[this.selectedIndex].text);"; - - response.Write(strOpt);*/ -=09 - //sel_cache.Attributes.Add("onclick",strAction); - =20 -/* - strAction =3D "javascript:if(window.event.keyCode=3D=3D13 || " +=20 - "window.event.keyCode=3D=3D9){window.parent.agrega(this)};" + - "if(window.parent.document.formulario.txt_ClasificacionCliente)" = + - "{window.parent.SetClasificacionCliente(" + - type_entity + ")}"; - sel_cache.Attributes.Add("onkeydown",strAction); - - strAction =3D "javascript:escape();"; - sel_cache.Attributes.Add("onkeyup",strAction); - =09 - strAction =3D "javascript:parent.ReloadClass(this.value);"; - sel_cache.Attributes.Add("onchange",strAction); - =09 - //sel_cache.DataSource =3D dtResult; - sel_cache.DataTextField =3D dtResult.Columns[1].ColumnNam= e; - sel_cache.DataValueField =3D dtResult.Columns[0].ColumnName; - sel_cache.DataBind(); - -/**************+ - *=20 - * ********************/ -/* - //classId =3D Convert.ToInt32( Request["classId"]); - - //1 =3D ClassType=20 - int AttribId=3D1; =09 - crud =3D Factory.Crud(); - crud.Domain =3D userCred.DomainIds[userCred.CurrentDomainIndex];=20 - complex =3D Factory.Complex(); - //complex. - ALGUN DIA=20 - - DataTable dtParam =3D this.makeDataTableInViewTools(); - DataRow dr =3D dtParam.NewRow(); - - //ViewTools.ViewTools vt =3D new ViewTools.ViewTools(classId); - ViewTools vt =3D new ViewTools(AttribId); - =09 - //crud.Domain =3D domainId; - vt.Complex =3D complex; - - //Columnas de la clase rule. - dr["columna"] =3D "0,60,40";=20 - //1101,1102,1103,1104,1105,1106,1107,1108"; - if(attributeId>0 && ruleId>0) - strfiltros =3D "1101|4|'"+attributeId+"'|1|0;0|4|'"+ruleId+"'|0|0"; - else if(attributeId>0) - strfiltros =3D "1101|4|'"+attributeId+"'|0|0"; - else if(ruleId>0) - strfiltros =3D "0|4|'"+ruleId+"'|0|0"; - =09 - //27 =3D> ClassType =3D Component - dr["filtros"] =3D "27"; - // 66 =3D> Attribute "name" :: 40 =3D> Attribute "ClasId" - dr["order"] =3D "66|0, 40|0"; - dtParam.Rows.Add(dr); - =09 - dtResult =3D vt.GetSQLDataTable(dtParam); - //return dtRules; -*/ - =09 - - #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.Load +=3D new System.EventHandler(this.Page_Load); - - } - #endregion - #region method's=20 - public string fn_fillOptions() - { - string strOpt =3D ""; - - DataTable res =3D userCred.CoreAdapter.GetAttributesFromClas= s(classId); - - foreach(DataRow row in res.Rows) - { - strOpt +=3D String.Format("<option value=3D\" {0} \"> {1} </option>"= ,row["id_entity"],row["attName"]); - } - //Logger.Log("ViewMain getAttributeListForClass: " + xmlStri= ng, LogLevel.Trace); - return strOpt; - } - +// +// 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; +using Humano2.Core.Db; +using Humano2.Components.WebTools; +using Humano2.Components.ViewTools; + +namespace Builder.site +{ + /// <summary> + /// Summary description for combobox_type_entity. + /// </summary> + public class combobox_type_entity : basePage + { + protected System.Web.UI.WebControls.ListBox sel_cache; + private absComplex complex =3D null; + private absCrud crud =3D null; + + string[] classNames; // Nombres de las clases. + int[] classIds; // Ids de las classes. + int classId; + + private void Page_Load(object sender, System.EventArgs e) + { + adapter dbAdapter =3D userCred.CoreAdapter; + //DataTable dtResult =3D new DataTable(); + + //dtResult =3D userCred.CoreAdapter.GetAllClasses(); + + =20 + dbAdapter.ClassByDomainId(userCred.DomainIds[userCred.CurrentDomainIn= dex], + out classNames, + out classIds);=09 + + } + =20 + public void html_getOptionClasses() + { + string strOpt =3D ""; + =09 + strOpt +=3D "<option value=3D\"0\">--Seleccionar--</option>"; + for(int c =3D 0; c < classNames.Length; c++) + { + strOpt +=3D String.Format("<option value=3D\"{0}\">{1}</option>",cla= ssIds[c].ToString(),classNames[c]);=20 + } + =20 + Response.Write(strOpt); + } + =09 + + #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.Load +=3D new System.EventHandler(this.Page_Load); + + } + #endregion + #region method's=20 + public string fn_fillOptions() + { + string strOpt =3D ""; + + DataTable res =3D userCred.CoreAdapter.GetAttributesFromClas= s(classId); + + foreach(DataRow row in res.Rows) + { + strOpt +=3D String.Format("<option value=3D\" {0} \"> {1} </option>"= ,row["id_entity"],row["attName"]); + } + //Logger.Log("ViewMain getAttributeListForClass: " + xmlStri= ng, LogLevel.Trace); + return strOpt; + } + private DataTable makeDataTableInViewTools() { DataTable dt1 =3D new DataTable(); @@ -186,505 +121,10 @@ dt1.Columns.Add(dc1); return dt1; } - - #endregion - =20 - } -} - -/* -<%@Page Language=3D"vb" trace=3D"False" aspCompat=3D"True" %> -<%@Import Namespace=3D"System.Data"%> -<%@Import Namespace=3D"System.Data.SqlClient"%> -<%@Import Namespace=3D"asp4.H2System"%> - -<script language=3D"vb" runat=3D"server">=20 -Dim gv_objH2CommonFunctions As Object -Dim gv_objH2Cookies As Object -Dim gv_objViewTool As Object -Dim id_domain, intUserId, type_entity, Intview,Intidentity -Dim palabra, idatt,att, strTempTable, strSelectedFields As String -Dim strFilter, str_orderby, AttLogin, StrSql As String -Dim var_rol_cookie_region, var_rol_cookie_deprov, var_nombrerol_cookie -Dim IDRegionCookie, IDDeprovCookie, IDjerarquia -Dim Rs_ent As SqlDataReader -Dim objDataTable As DataTable -Dim objDataSet As DataSet -Dim objRow As DataRow -Dim objColumn as DataColumn -Dim StrAcum As New System.Text.StringBuilder() -Dim StrValue -dim TotalRecord,CantPages=20 -Dim ActualPage -Dim PagesporPagina -Dim paginar -Sub Page_Load() - ActualPage =3D 1 - PagesporPagina =3D 100 - paginar =3D "si" -'response.write (Now() & "<br>") - Server.ScriptTimeout =3D 300 -=20 - gv_objH2CommonFunctions =3D New H2CommonFunctions() - gv_objH2Cookies =3D New Cookie() - 'gv_objH2SQLTools =3D New SQLTools() -=20 - id_domain =3D gv_objH2CommonFunctions.GetDomainID() - intUserId =3D gv_objH2CommonFunctions.GetUserId() - type_entity =3D request("typeent") - palabra =3D trim(request("palabra")) - Intview =3D trim(request("IntView")) - att =3D trim(request("att")) - - Intidentity =3D trim(request("identity")) - if trim(att)<>"" then - idatt =3D gv_objH2CommonFunctions.gv_objH2Res.attribute_name(trim(att= ), -request("typeEntityFrom"), id_domain) - end if - =20 - if trim(idatt)=3D"27630" and trim(Intidentity)<>"" then - StrValue =3D -gv_objH2CommonFunctions.gv_objH2res.AttributeAnswerGet(Intidentity,27629= , -id_domain) - if trim(StrValue)<>"" then StrValue =3D -gv_objH2CommonFunctions.gv_objH2res.Get_id_lookupAll(StrValue,id_domain,= Intidentity) - end if - =20 - 'response.write (idatt & "***") - 'response.write (Intidentity & "***") - 'response.write (StrValue & "***") -=20 - if instr(1,trim(type_entity),",",1) > 0 then - type_entity =3D left(type_entity,instr(1,trim(type_entity),",",1)-1) - end if - - if type_entity=3D"-1" then 'Caso de lookup a Clases - strSelectedFields =3D "distinct ma.target AS id, isnull(et.desc_show,e= t.desc_type) -AS login " - strTempTable =3D "module_assignment ma " - strTempTable =3D strTempTable & "INNER JOIN module_2_3 et on cast(et.i= d_entity as -varchar)=3D ma.target " - strTempTable =3D strTempTable & "LEFT OUTER JOIN module_2_3_img eti on -cast(eti.id_entity as varchar)=3Dma.target " - strTempTable =3D strTempTable & "and id_domain=3D" & id_domain - strFilter =3D strFilter & "et.system <> 'E' and ma.id_entity =3D " & i= d_domain '& " -and et.desc_type like '" & trim(palabra) & "%' " - if (not gv_objH2CommonFunctions.ObjectIsSuperUser(intUserId)) then - strFilter =3D strFilter & " and et.system =3D 'n' " - end if =20 - str_orderby =3D "2" - response.write (VbCrLf & "<!-- select " & strSelectedFields & " FROM "= ) - response.write (strTempTable & " WHERE ") - response.write (strFilter & "-->") - 'response.end - objDataSet =3D -gv_objH2CommonFunctions.gv_objH2Res.execute_Commandquery("select",strSel= ectedFields,strTempTable,strFilter, -,str_orderby, , True) - objDataTable =3D objDataSet.Tables.Item(0) - paginar =3D "no" - elseif Intview <>"" and Intview <>"0" then - 'Obtiene el Login de la entidad - AttLogin=3DTrim(gv_objH2CommonFunctions.gv_objH2Res.get_att_login(type= _entity, -id_domain)&"") - '----------------PROCESA LA VISTA USANDO VIEWTOOLS---------- - =20 - ActualPage =3D 1 - PagesporPagina =3D 100 - If Me.DropDownList1.SelectedIndex<>-1 Then - ActualPage =3D Me.DropDownList1.Items(Me.DropDownList1.SelectedIndex)= .Value - End If - CantPages =3D 1 - =20 - trace.write("rquilo","ViewTools(" & Intview & "," & type_entity & "," = & intUserId -& "," & id_domain & ", 100, 1)") - 'gv_objViewTool =3D New ViewTools(Intview, type_entity, intUserId, id_= domain, 100, 1) - gv_objViewTool =3D New ViewTools(Intview, type_entity, intUserId, id_d= omain, -PagesporPagina, ActualPage) - 'gv_objViewTool.OrderByDirection =3D "ASC" - 'Response.Write("<hr>AttLogin=3D" & AttLogin) - =20 - If Request("blnJustSql") =3D "True" Then - Response.Write(gv_objViewTool.SQLBatch) - Response.End() - End If - =20 - if palabra <> "" then - Dim strCriteria As String=3DAttLogin & "|LIKE 'X%'|1"=20 - 'response.write (palabra & "*-*-*") - =20 - trace.write("Rquilo","ViewFilterAdd(" & strCriteria & "," & palabra &= ")") - gv_objViewTool.ViewFilterAdd(strCriteria,palabra) - 'Set Rs_ent =3D result_view(type_entity, Intview, id_domain, AttLogin= , 0, 0, -AttLogin, palabra) - else - 'Set Rs_ent =3D result_view(type_entity, Intview, id_domain, AttLogin= , 0, 0, "", "") - end if - =20 - 'Rs_ent=3Dgv_objViewTool.ResultsInDataReaderGet(AttLogin) - =20 -' Parche para harry=20 - if Intview =3D 1125829 then - objDataTable =3D gv_objViewTool.ResultsInDataTableGet(AttLogin & ",27= 152") =20 - else - objDataTable =3D gv_objViewTool.ResultsInDataTableGet(AttLogin) =20 - end if -'FIn Parche para harry=20 - =20 - Else - - 'Negro : Comentado, pues mas abajo se realiza la consulta utilizando m= odule en vez -de answer_attributes =20 - 'Negro : rehecho desde aqui, para que consulte modulo y no answers_att= ributes - =20 - Dim nameAttObj - Dim idModuleObj - Dim nameAtt,idModule - =20 - AttLogin=3DTrim(gv_objH2CommonFunctions.gv_objH2Res.get_att_login(type= _entity, -id_domain)&"") - 'nameAttObj =3D gv_objH2CommonFunctions.gv_objH2Res.attribute_col_get(= AttLogin, "name") - 'idModuleObj =3D gv_objH2CommonFunctions.gv_objH2Res.attribute_col_get= (AttLogin, -"id_module") - 'Response.Write(CStr(AttLogin) & "--" & CStr(nameAtt) & "--") - 'nameAtt =3D nameAttObj(0,1) - 'idModule =3D idModuleObj(0,1) - - 'Response.End - 'objDataSet =3D gv_objH2CommonFunctions.gv_objH2Res.execute_Commandque= ry("select", " - " & strSelectedFields,strTempTable,strFilter, ,str_orderby, , True) - 'objDataTable =3D objDataSet.Tables.Item(0) - =20 - '----------------PROCESA LA VISTA USANDO VIEWTOOLS---------- - ActualPage =3D 1 - PagesporPagina =3D 1000 - If Me.DropDownList1.SelectedIndex<>-1 Then - ActualPage =3D Me.DropDownList1.Items(Me.DropDownList1.SelectedIndex)= .Value - End If - CantPages =3D 1 - gv_objViewTool =3D New ViewTools("-1", type_entity, AttLogin, intUserI= d, id_domain, -PagesporPagina, ActualPage, 0, 0, 0, 0, 0, 0, 0) - =20 - objDataTable =3D gv_objViewTool.ResultsInDataTableGet(AttLogin) =20 - 'TotalRecord =3D objDataTable.Rows.Item(0)("RecordCount") - 'if TotalRecord > 1000 then=20 - ' CantPages =3D CInt(TotalRecord / PagesporPagina)+1 - 'End If - ''Me.DropDownList1.AutoPostBack =3D true - 'If Cantpages>1 Then - ' Dim i - ' Dim arr(Cantpages-1) as Integer - ' For i=3D1 to CantPages - ' arr(i-1) =3D i - ' Next - ' Me.DropDownList1.DataSource =3D arr - ' Me.DropDownList1.DataBind() - ' Me.DropDownList1.SelectedIndex =3D ActualPage - 1 - ' Me.DropDownList1.Visible =3D True - 'End If - End if - 'response.write (Now() & "<br>") - 'response.end -=20 - 'if trim(att) <> "" then - ' StrAcum.Append ("<SELECT name=3D'sel_cache' multiple style=3D'WIDTH:1= 00%' -ondblclick=3D'window.parent.moveelements(this,window.parent.document.all= .txt_"&trim(att)&")' -onkeypress=3D'window.parent.moveelements(this,window.parent.document.all= .txt_"&trim(att)&")' -size=3D7>" & vbcrlf) - 'else - ' StrAcum.Append ("<SELECT name=3D'sel_cache' class=3D""Menu"" style=3D= 'FONT-SIZE: -xx-small; VISIBILITY: show; WIDTH: 100%' -onclick=3D'window.parent.agrega(this);if(window.parent.document.formular= io.txt_ClasificacionCliente){window.parent.SetClasificacionCliente(" -& type_entity & ")}' onkeydown=3D'if(window.event.keyCode=3D=3D13 || -window.event.keyCode=3D=3D9){window.parent.agrega(this)};if(window.paren= t.document.formulario.txt_ClasificacionCliente){window.parent.SetClasific= acionCliente(" -& type_entity & ")}' size=3D11 onkeyup=3D'escape()' -onchange=3D'javascript:parent.ReloadClass(this.value)'>" & vbcrlf) - ' StrAcum.Append ("<option value=3D''> </option>" & vbcrlf) - 'end if -=20 - Dim StrAcumRut - StrAcumRut =3D "," - If not(IsNothing(objDataTable)) Then - =20 - If paginar=3D"si" Then - TotalRecord =3D objDataTable.Rows.Item(0)("RecordCount") - if TotalRecord > PagesporPagina then=20 - CantPages =3D CInt(TotalRecord / PagesporPagina)+1 - End If - 'Me.DropDownList1.AutoPostBack =3D true - If Cantpages>1 Then - Dim i - Dim arr(Cantpages-1) as Integer - For i=3D1 to CantPages - arr(i-1) =3D i - Next - Me.DropDownList1.DataSource =3D arr - Me.DropDownList1.DataBind() - Me.DropDownList1.SelectedIndex =3D ActualPage - 1 - Me.DropDownList1.Visible =3D True - End If - End If - =20 - =20 - Me.sel_cache.Attributes.add("onclick","javascript:window.parent.agrega= (this);if(window.parent.document.formulario.txt_ClasificacionCliente){win= dow.parent.SetClasificacionCliente(" -& type_entity & ")}") - Me.sel_cache.Attributes.add("onkeydown","javascript:if(window.event.ke= yCode=3D=3D13 || -window.event.keyCode=3D=3D9){window.parent.agrega(this)};if(window.paren= t.document.formulario.txt_ClasificacionCliente){window.parent.SetClasific= acionCliente(" -& type_entity & ")}") - Me.sel_cache.Attributes.add("onkeyup","javascript:escape();") - Me.sel_cache.Attributes.add("onchange","javascript:parent.ReloadClass(= this.value);") - =20 - if trim(att) <> "" then - Me.sel_cache.Attributes.add("ondblclick","javascript:window.parent.mo= veelements(this,window.parent.document.all.txt_" -& trim(att) & ")") - end if - =20 - =20 - Me.sel_cache.DataSource =3D objDataTable - Me.sel_cache.DataTextField =3D objDataTable.Columns(1).ColumnName - Me.sel_cache.DataValueField =3D objDataTable.Columns(0).= ColumnName - Me.sel_cache.DataBind() - ' For Each objRow In objDataTable.Rows - ' 'Parche Interamericana - ' if trim(type_entity)=3D"1125852" and id_domain =3D 1133821 then - ' 'response.write(objRow.Item(2) & "<br>") - ' if instr(1,StrAcumRut,trim(objRow.Item(2)),1)=3D0 then - ' if trim(StrValue)<>"" then=20 - ' if instr(1,"," & StrValue & ",","," & objRow.Item(0) & "= ,")>0 then - ' If not(isdbnull((objRow.Item(1)))) Then - ' StrAcum.Append ("<option class=3D""nav1on"" value=3D""" & objRow.= Item(0)) - ' StrAcum.Append (""">" & trim(objRow.Item(1)) & vbcrlf) - ' Else - ' StrAcum.Append ("<option class=3D""nav1on"" value=3D""" & objRow.= Item(0)) - ' StrAcum.Append ("""> " & vbcrlf) - ' End If - ' end if=20 - ' else =20 - ' If not(isdbnull((objRow.Item(1)))) Then - ' StrAcum.Append ("<option class=3D""nav1on"" value=3D""" & objRow.= Item(0)) - ' StrAcum.Append (""">" & trim(objRow.Item(1)) & vbcrlf) - ' Else - ' StrAcum.Append ("<option class=3D""nav1on"" value=3D""" & objRow.= Item(0)) - ' StrAcum.Append ("""> " & vbcrlf) - ' End If - ' end if=20 - ' =20 - ' StrAcumRut =3D StrAcumRut & trim(objRow.Item(2)) & "," - ' end if =20 - ' else - ' if trim(StrValue)<>"" then=20 - ' if instr(1,"," & StrValue & ",","," & objRow.Item(0) & "= ,")>0 then - ' If not(isdbnull((objRow.Item(1)))) Then - ' StrAcum.Append ("<option class=3D""nav1on"" value=3D""" & objRow.= Item(0)) - ' StrAcum.Append (""">" & trim(objRow.Item(1)) & vbcrlf) - ' Else - ' StrAcum.Append ("<option class=3D""nav1on"" value=3D""" & objRow.= Item(0)) - ' StrAcum.Append ("""> " & vbcrlf) - ' End If - ' end if=20 - ' else =20 - ' If not(isdbnull((objRow.Item(1)))) Then - ' StrAcum.Append ("<option class=3D""nav1on"" value=3D""" & objRow.= Item(0)) - ' StrAcum.Append (""">" & trim(objRow.Item(1)) & vbcrlf) - ' Else - ' StrAcum.Append ("<option class=3D""nav1on"" value=3D""" & objRow.= Item(0)) - ' StrAcum.Append ("""> " & vbcrlf) - ' End If - ' end if =20 - ' end if - ' =20 - ' - ' - ' Next - '=20 - ' objDataTable.Dispose() - ' StrAcum.Append ("</select><br/>") - End If - 'response.write("--") -end sub - -Sub Page_UnLoad() - 'Cierra los objetos COM de la dll antigua (gv_objH2CommonFunctions.h2re= s y salesH2) - 'Call gv_objH2CommonFunctions.H2COMDllsClose() -End sub -</script> - -<html> - <head> - <meta name=3D"GENERATOR" content=3D"Microsoft Visual Studio.NET 7.0"> - <meta name=3D"CODE_LANGUAGE" content=3D"Visual Basic 7.0"> - <meta name=3D"vs_defaultClientScript" content=3D"JavaScript"> - <meta name=3D"vs_targetSchema" content=3D"http://schemas.microsoft.com= /intellisense/ie5"> - =20 - <link rel=3D"stylesheet" href=3D"../../styles/general_styles_verde2.cs= s" type=3D"text/css"> - - <style> - select.Menu{ - font-family: Verdana,sans serif; - font-weight: bold; - font-style: normal; =20 - } - - option.MenuColorOne{ - color:#FFFFFF; - background-color:blue; - } - option.MenuColorTwo{ - color:#FFFF00; - background-color:#0000FF; - } - option.MenuColorThree{ - color:#123456; - background-color:#FEDCBA; - } - .nav1on option:hover{ - background-color:#FEDCBA; - } - </style> - </head> - -<body onload=3D"javascript:if(window.parent.set_focus()) -document.forma.sel_cache.focus();document.forma.sel_cache.selectedIndex=3D= 0;<%if -trim(att) =3D "" then%>if (parent.adjustIFrameSize) -parent.adjustIFrameSize(window);<%end if%>" bgColor=3D#f3f4f7> -<form name=3D"forma" id=3D"forma" method=3Dpost runat=3D"server"> -<%if trim(att) <> "" then%> -<table bgColor=3D#f3f4f7 width=3D"100%"> - <tr height=3D"12"> - <td></td> - </tr> =20 - <tr width=3D"100%"> - <td width=3D"100%"> - <%'=3DStrAcum.ToString%> -<%end if%>=20 - <asp:DropDownList id=3D"DropDownList1" runat=3D"server" AutoPostBack=3D= "True" -visible=3D"false"></asp:DropDownList> - <asp:ListBox id=3D"sel_cache" Name=3D"sel_cache" runat=3D"server" rows= =3D"8" -style=3D'WIDTH:100%'></asp:ListBox> -<%if trim(att) <> "" then%> =20 - </td> - <td> - <table> - <tr> - <td><input type=3D"button" class=3D"pbttn" style=3D'WIDTH: 26px' name=3D= "BtnDuplicar" -value=3D">" -onclick=3D"window.parent.moveelements(window.forma.sel_cache,window.pare= nt.document.formulario.txt_<%=3Dtrim(att)%>)"></td> - </tr> - =20 - <tr> - <td><input type=3D"button" class=3D"pbttn" style=3D'WIDTH: 26px' name=3D= "BtnDuplicar" -value=3D">>" -onclick=3D"window.parent.moveallelements(window.forma.sel_cache,window.p= arent.document.formulario.txt_<%=3Dtrim(att)%>)"></td> - </tr> =20 - - <tr> - <td><input type=3D"button" class=3D"pbttn" style=3D'WIDTH: 26px' name=3D= "BtnDuplicar" -value=3D"<" -onclick=3D"window.parent.moveelements(window.parent.document.formulario.= txt_<%=3Dtrim(att)%>,window.forma.sel_cache)"></td> - </tr> =20 - - <tr> - <td><input type=3D"button" class=3D"pbttn" style=3D'WIDTH: 26px' name=3D= "BtnDuplicar" -value=3D"<<" -onclick=3D"window.parent.moveallelements(window.parent.document.formular= io.txt_<%=3Dtrim(att)%>,window.forma.sel_cache)"></td> - </tr> =20 - </table> - </td> - </tr> -</table> =20 -<%end if%> -<script> - if(window.forma.sel_cache.length < 11 && window.forma.sel_cache.length = > 1) - //window.forma.sel_cache.size =3D window.forma.sel_cache.length - - function escape(){ - if(window.event.keyCode=3D=3D27) - window.parent.HideAll(0) - } =20 -</script> - - -<script> -ClearDropDown() - -function ClearDropDown(){ -var ObjFrom =3D window.forma.sel_cache -var ObjTo =3D window.parent.document.formulario.txt_<%=3Dtrim(att)%> - -if (!ObjFrom || !ObjTo) - return - - -var AValue =3D new Array(ObjTo.length); -var AText =3D new Array(ObjTo.length); -var sw =3D 0 - for (var i =3D 0; i < ObjTo.length; ++i)=20 - { =20 - sw =3D 0 =20 - for (var j =3D i + 1; j < ObjTo.length; ++j)=20 - { - if(ObjTo[i].value =3D=3D ObjTo[j].value){ - sw =3D 1 =20 - } =20 - } -=20 - if (sw=3D=3D0){ - AValue[i] =3D ObjTo[i].value - AText[i] =3D ObjTo[i].text - } - } - - for (var i =3D ObjTo.length - 1 ; i >=3D 0 ; i--)=20 - { - ObjTo.options[i] =3D null; - } -=20 - for (var i =3D 0; i < AValue.length; ++i)=20 - { =20 - if(AText[i]){ - var nopcion =3D new Option(); =20 - nopcion.text =3D AText[i]; - nopcion.value =3D AValue[i]; - ObjTo[ObjTo.length] =3D nopcion; =20 - } - } - -var BValue =3D new Array(ObjFrom.length); -var BText =3D new Array(ObjFrom.length); -var sw =3D 0 - for (var i =3D 0; i < ObjFrom.length; ++i)=20 - { =20 - sw =3D 0 =20 - for (var j =3D 0; j < ObjTo.length; ++j)=20 - { - if(ObjFrom[i].value =3D=3D ObjTo[j].value){ - sw =3D 1 =20 - } =20 - } -=20 - if (sw=3D=3D0){ - BValue[i] =3D ObjFrom[i].value - BText[i] =3D ObjFrom[i].text - } - } - - for (var i =3D ObjFrom.length - 1 ; i >=3D 0 ; i--)=20 - { - ObjFrom.options[i] =3D null; - } -=20 - for (var i =3D 0; i < BValue.length; ++i)=20 - { =20 - if(BText[i]){ - var nopcion =3D new Option(); =20 - nopcion.text =3D BText[i]; - nopcion.value =3D BValue[i]; - ObjFrom[ObjFrom.length] =3D nopcion; =20 - } - } -} -</script> -</form> -</body> -</html> - -*/ + + #endregion + =20 + } +} + + Property changes on: humano2/trunk/web/builder/site/combobox_type_entity.= aspx.cs ___________________________________________________________________ Name: svn:keywords + Id Modified: humano2/trunk/web/builder/site/css/createinterface.css =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/css/createinterface.css 2005-06-09 22:= 50:37 UTC (rev 1276) +++ humano2/trunk/web/builder/site/css/createinterface.css 2005-06-10 16:= 27:36 UTC (rev 1277) @@ -1,14 +1,22 @@ /* $Id$ */ BODY { - COLOR: #000000; FONT-FAMILY: tahoma,sans-serif; FONT-SIZE: 11px; MARGIN= : 10px 10px 10px 10px + COLOR:#000000;=20 + FONT-FAMILY:tahoma,sans-serif;=20 + FONT-SIZE: 11px;=20 + MARGIN: 10px 10px 10px 10px; } INPUT { FONT-FAMILY: tahoma,sans-serif; FONT-SIZE: 11px; /*border: 1px solid #95989E;*/ } -TABLE { - BORDER-BOTTOM: 0px; BORDER-LEFT: 20px; BORDER-RIGHT: 0px; BORDER-TOP: 2= 0px; FONT-FAMILY: tahoma,sans-serif; FONT-SIZE: 11px +TABLE{ + BORDER-BOTTOM: 0px;=20 + BORDER-LEFT: 20px;=20 + BORDER-RIGHT: 0px;=20 + BORDER-TOP: 20px;=20 + FONT-FAMILY: tahoma,sans-serif;=20 + FONT-SIZE: 11px } A { COLOR: #000099 @@ -362,19 +370,33 @@ TD.lev2divider { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 5px; PADDING-TOP= : 10px } -TD.lev1head { - PADDING-RIGHT: 5px; PADDING-LEFT: 0px; FONT-WEIGHT: bold; FONT-SIZE: 90= %; PADDING-BOTTOM: 0px; COLOR: #417096; PADDING-TOP: 0px; FONT-FAMILY: ar= ial +TD.lev1head=20 +{ + PADDING-RIGHT: 5px;=20 + PADDING-LEFT: 0px;=20 + FONT-WEIGHT: bold;=20 + FONT-SIZE: 90%;=20 + PADDING-BOTTOM: 0px;=20 + COLOR: #417096;=20 + PADDING-TOP: 0px;=20 + FONT-FAMILY: arial; + text-align:left; } -TD.lev1choices { +TD.lev1choices +{ PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 70%; PADDING-BOTTOM: = 0px; COLOR: #444444; PADDING-TOP: 0px; FONT-FAMILY: verdana } -TD.lev1 { +TD.lev1=20 +{ BACKGROUND-COLOR: #c6c6c6 } -TD.lev2 { +TD.lev2=20 +{ PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px } -TABLE.lev0 { + +TABLE.lev0=20 +{ =09 } TD.lev0 { @@ -392,3 +414,11 @@ TD.butbar { PADDING-RIGHT: 5px; PADDING-LEFT: 15px; PADDING-BOTTOM: 5px; PADDING-TO= P: 5px } =09 + +.separatorLine +{ =20 + height: 11px; + background-color:#417096; + top-border:1; + width:100%; +} Modified: humano2/trunk/web/builder/site/foldermanagement.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/foldermanagement.aspx 2005-06-09 22:50= :37 UTC (rev 1276) +++ humano2/trunk/web/builder/site/foldermanagement.aspx 2005-06-10 16:27= :36 UTC (rev 1277) @@ -1,8 +1,9 @@ <%@ Page language=3D"c#" Codebehind=3D"foldermanagement.aspx.cs" AutoEve= ntWireup=3D"false" Inherits=3D"Builder.site.foldermanagement" ResponseEnc= oding=3D"iso-8859-1" %> +<!-- $Id$ --> <!DOCTYPE HTML PUBLIC "-//W3C//Dtd HTML 4.01 transitional//EN" "http://w= ww.w3.org/tr/html4/loose.dtd"> <HTML> - <HEAD> - <title>Untitled Document</title> + <head> + <title>Folders</title> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-= 8859-1"> <script src=3D"js/functions.js"></script> <script language=3D"javascript" src=3D"js/grafcomponents/misc.js"></sc= ript> @@ -13,7 +14,8 @@ <!-- Load this script before the next one --> <script language=3D"Javascript" src=3D"js/form.js"></script> <script src=3D"js/fn_formsmng.js"></script> -</HEAD> + <link href=3D"css/createinterface.css" rel=3D"stylesheet" type=3D= "text/css"> + </head> <body> <form name=3D"formulario" action=3D"#" method=3D"post"> <input type=3D"hidden" name=3D"opaction" id=3D"opaction" value=3D"<% = html_getAction(); %>"> @@ -21,136 +23,127 @@ <input type=3D"hidden" name=3D"LstAttrib" id=3D"LstAttrib"> <input type=3D"hidden" name=3D"classId" id=3D"classId" value=3D"1400"= > <input type=3D"hidden" name=3D"first" id=3D"first" value=3D"<% html_g= etFirst(); %>"> - <table width=3D"600" border=3D"0"> + <table width=3D"100%" class=3D"conttablecenter2"> <tr> - <td width=3D"131"> - <div align=3D"right">* Folder Name :</div> - </td> - <td width=3D"459"> - <input id=3D"formName" type=3D"text" name=3D"formName" value=3D"<%= html_getFolderName(); %>"> - </td> - </tr> + <td> + <table> + <tr> + <td class=3D"smallgraytextnolink"> + Folder Name: + </td> + <td class=3D"smallgraytextnolink"> + <input id=3D"formName" type=3D"text"= name=3D"formName" value=3D"<% html_getFolderName(); %>"> + </td> + </tr> + <tr> + <td> + Folder Father:=20 + </td> + <td> + <select name=3D"select" size=3D"1" i= d=3D"folderparent" onChange=3D"fn_setFolderParentId(this.options[this.sel= ectedIndex].value);"> + <% html_getFolderParent();%> + </select> + <input type=3D"hidden" id=3D"folderp= arentid" name=3D"folderparentid" value=3D"<% html_getFolderParentId(); %>= "> + </td> + </tr> + </table> + </td> + </tr> + <tr> + <td> + <table width=3D"100%" border=3D"0" cellSpacing=3D= "0" cellPadding=3D"0"> + <tr> + <td width=3D"100%" colspan=3D"2" class=3D= "separatorLine"> + </td> + </tr> + <tr> + <td class=3D"lev1head" valign=3D"top"><f= ont size=3D"2">Items for Folder</font></td> + </tr> + </table> + </td> + </tr> + <tr> - <td width=3D"131"> - <div align=3D"right">* Folder Father :</div> - </td> - <td width=3D"459"> - <select name=3D"select" size=3D"1" id=3D"folderparen= t" onChange=3D"fn_setFolderParentId(this.options[this.selectedIndex].valu= e);"> - <% html_getFolderParent();%> - </select> - <input type=3D"hidden" id=3D"folderparentid" name=3D= "folderparentid" value=3D"<% html_getFolderParentId(); %>"> - </td> + <td colspan=3D"2"> + <table> + <tr> + <td>Available Columns</td> + <td></td> + <td>Your Columns</td> + </tr> + <tr> + <td rowspan=3D"4"> + <div id=3D"ColumnsToShowLeft"></div> + </td> + <td rowspan=3D"4"> + <input onclick=3D"leftColumn.Move(le= ftColumn.GetSelectedIndex(),rightColumn,false);" type=3D"button" + value=3D"Add"> + <br> + <input onclick=3D"rightColumn.Move(r= ightColumn.GetSelectedIndex(),leftColumn,true);" type=3D"button" + value=3D"Remove"> + </td> + <td rowspan=3D"4"> + <div id=3D"ColumnsToShowRight"></div= > + </td> + <td rowspan=3D"4"> + <a onclick=3D"rightColumn.Top(rightC= olumn.GetSelectedIndex())" href=3D"#"> + <img src=3D"img/upuparrow.gif"> + </a> + <br> + <a onclick=3D"rightColumn.Up(rightCo= lumn.GetSelectedIndex())" href=3D"#"> + <img src=3D"img/uparrow.gif"> + </a> + <br> + <a onclick=3D"rightColumn.Down(right= Column.GetSelectedIndex())" href=3D"#"> + <img src=3D"img/downarrow.gif"> + </a> + <br> + <a onclick=3D"rightColumn.Bottom(rig= htColumn.GetSelectedIndex())" href=3D"#"> + <img src=3D"img/downdownarrow.gi= f"> + </a> + </td> + <td rowspan=3D"4"> + <input onclick=3D"Form.SetToDefault(= leftColumn,rightColumn)" type=3D"button" value=3D"SetToDefault"> + <br> + <!-- Do not forget to enable all ite= m of the left list --> + <input type=3D"button" value=3D"Remo= veAll" onclick=3D"leftColumn.EnableAll();rightColumn.RemoveAll();"> + </td> + </tr> + </table> + =20 + <script> + var rigthElements =3D new Array(<% html_getA= ttrList(2); %>); + var leftElements =3D new Array(<% html_getAt= trList(1); %>); + =20 + //First List + var divColumnsToShowLeft =3D GetNodeByTagNam= eAndAttName("div","ColumnsToShowLeft")[0]; =20 + var leftColumn =3D new SortedGraphicalList(l= eftElements, + divC= olumnsToShowLeft,"leftColumn"); =20 + = =20 + //Second List + var divColumnsToShowRight =3D GetNodeByTagNa= meAndAttName("div","ColumnsToShowRight")[0]; =20 + var rightColumn =3D new SortedGraphicalList(= rigthElements, + divC= olumnsToShowRight,"rightColumn"); = =20 + =20 + </script> + </td> =20 </tr> - <tr> - <td width=3D"131"> - </td> - <td width=3D"459"> - </td> - </tr> - <tr> - <td colSpan=3D"2"> - <table width=3D"650" border=3D"1"> - <tr> - <td></td> - </tr> - <tr> - <td> - <table cellSpacing=3D"2" cellPadding=3D"0" border=3D"0"> - <tr> - <td width=3D"639"><img height=3D"1" src=3D"img/clear2x2.gif">= </td> - </tr> - <tr> - <td> - <table> - <tr> - <td width=3D"626"> - <table> - <tr> - <td width=3D"209">Available Columns</td> - <td width=3D"62"></td> - <td width=3D"88">Your Columns</td> - <td width=3D"26"></td> - <td width=3D"94"></td> - </tr> - <tr> - <td rowspan=3D"4"> - <div id=3D"ColumnsToShowLeft"></div> - </td> - <td rowspan=3D"4"><input onclick=3D"leftColumn.Move(lef= tColumn.GetSelectedIndex(),rightColumn,false);" type=3D"button" - value=3D"Add"> - <br> - <input onclick=3D"rightColumn.Move(rightColumn.GetSele= ctedIndex(),leftColumn,true);" type=3D"button" - value=3D"Remove"> - </td> - <td rowspan=3D"4"> - <div id=3D"ColumnsToShowRight"></div> - </td> - <td rowspan=3D"4"><a onclick=3D"rightColumn.Top(rightCo= lumn.GetSelectedIndex())" href=3D"#"><img src=3D"img/upuparrow.gif"> - </a> - <br> - <a onclick=3D"rightColumn.Up(rightColumn.GetSelectedIn= dex())" href=3D"#"><img src=3D"img/uparrow.gif"> - </a> - <br> - <a onclick=3D"rightColumn.Down(rightColumn.GetSelected= Index())" href=3D"#"><img src=3D"img/downarrow.gif"> - </a> - <br> - <a onclick=3D"rightColumn.Bottom(rightColumn.GetSelect= edIndex())" href=3D"#"><img src=3D"img/downdownarrow.gif"> - </a> - </td> - <td rowspan=3D"4"> - <input onclick=3D"Form.SetToDefault(leftColumn,rightCo= lumn)" type=3D"button" value=3D"SetToDefault"> - <br> - <!-- Do not forget to enable all item of the left list= --> - <input type=3D"button" value=3D"RemoveAll" onclick=3D"= leftColumn.EnableAll();rightColumn.RemoveAll();"> - </td> - </tr> - <tr> - <td></td> - </tr> - <tr> - <td></td> - </tr> - <tr> - <td></td> - </tr> - <tr> - <td> - <input type=3D"button" onclick=3D"fn_saveData(rightCol= umn);" name=3D"btnSave" value=3D"<% html_getBtnSaveValue(); %>"> - <% html_getButtonDelete(); %> - </td> - <td></td> - <td></td> - <td></td> - <td></td> - </tr> - </table> - <script> - - var rigt= hElements =3D new Array(<% html_getAttrList(2); %>); - var left= Elements =3D new Array(<% html_getAttrList(1); %>); - =20 - //First = List - var divC= olumnsToShowLeft =3D GetNodeByTagNameAndAttName("div","ColumnsToShowLeft"= )[0]; =20 - var left= Column =3D new SortedGraphicalList(leftElements, - = divColumnsToShowLeft,"leftColumn"); = =20 - = =20 - //Second= List - var divC= olumnsToShowRight =3D GetNodeByTagNameAndAttName("div","ColumnsToShowRigh= t")[0]; =20 - var righ= tColumn =3D new SortedGraphicalList(rigthElements, - = divColumnsToShowRight,"rightColumn"); = =20 - = =20 - </script> - </td> - </tr> - </table> - </td> - </tr> - </table> - </td> - </tr> - </table> - </td> - </tr> + <tr> + <td colspan=3D"2"> + <table width=3D"100%" border=3D"0" cellSpacing=3D= "0" cellPadding=3D"0"> + <tr> + <td width=3D"100%" colspan=3D"2" class=3D= "separatorLine"> + </td> + </tr> + </table> + </td> + </tr> + <tr> + <td> + <input type=3D"button" onclick=3D"fn_saveData(ri= ghtColumn);" name=3D"btnSave" value=3D"<% html_getBtnSaveValue(); %>"> + <% html_getButtonDelete(); %> + </td> + </tr> </table> </form> </body> Property changes on: humano2/trunk/web/builder/site/foldermanagement.aspx ___________________________________________________________________ Name: svn:keywords + Id Modified: humano2/trunk/web/builder/site/formmanagement.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/formmanagement.aspx 2005-06-09 22:50:3= 7 UTC (rev 1276) +++ humano2/trunk/web/builder/site/formmanagement.aspx 2005-06-10 16:27:3= 6 UTC (rev 1277) @@ -1,160 +1,174 @@ <%@ Page language=3D"c#" Codebehind=3D"formmanagement.aspx.cs" AutoEvent= Wireup=3D"false" Inherits=3D"Builder.site.formmanagement" ResponseEncodin= g=3D"iso-8859-1" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://w= ww.w3.org/TR/html4/loose.dtd"> -<HTML> - <HEAD> - <title>Form Management</title> - <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-= 8859-1"> - <script src=3D"js/functions.js"></script> - <script src=3D"js/grafcomponents/misc.js"></script> - <script src=3D"js/grafcomponents/test.js"></script> - <script src=3D"js/grafcomponents/sortedlist.js"></script> - <script src=3D"js/grafcomponents/sortedgraphicallist.js"></script> - <script src=3D"js/grafcomponents/radiobuttonexpand.js"></script> - <!-- Load this script before the next one --> - <script src=3D"js/form.js"></script> - <script src=3D"js/fn_formsmng.js"></script> - </HEAD> - <body> - <form name=3D"formulario" action=3D"#" method=3D"post"> - <input type=3D"hidden" name=3D"first" id=3D"first" value=3D"<% html_g= etFirst(); %>">=20 - <input type=3D"hidden" name=3D"opaction" id=3D"opaction" value=3D"<% = html_getAction(); %>"> - <input type=3D"hidden" name=3D"formid" id=3D"formid" value=3D"<% html= _getFormId(); %>"> - <table width=3D"600" border=3D"0"> - <tr> - <td width=3D"131"> - <div align=3D"right">* Form Name :</div> - </td> - <td width=3D"459"><input id=3D"formName" type=3D"text" name=3D"form= Name" value=3D"<% html_getFormName(); %>"></td> - </tr> - <tr> - <td> - <div align=3D"right">* Class : - </div> - </td> - <td><input id=3D"ClassName" type=3D"text" name=3D"ClassName" value=3D= "<% html_getClassName(); %>"> - <input id=3D"btnGetClass" onclick=3D"mostrar();" type=3D"button" v= alue=3D">>" name=3D"btnGetClass"> - <input type=3D"hidden" name=3D"ClassId" id=3D"ClassId" value=3D"<%= html_getClassId(); %>"> - <input type=3D"hidden" name=3D"LstAttrib" id=3D"LstAttrib"> - </td> - </tr> - <tr> - <td></td> - <td colSpan=3D"2"><iframe id=3D"FrameTempLoad" style=3D"VISIBILITY:= hidden; with: 0; heigth: 0; scroll: none" - name=3D"FrameTempLoad"></iframe></td> - </tr> - <tr> - <td colSpan=3D"2"> - <table width=3D"650" border=3D"1"> - <tr> - <td></td> - </tr> - <tr> - <td> - <TABLE cellSpacing=3D"2" cellPadding=3D"0" border=3D"0"> - <TR> - <TD width=3D"639"><IMG height=3D"1" src=3D"img/clear2x2.gif">= </TD> - </TR> - <TR> - <TD> - <TABLE> - <TR> - <td width=3D"626"> - <table> - <tr> - <td width=3D"209">Available Columns</td> - <td width=3D"62"></td> - <td width=3D"88">Your Columns</td> - <td width=3D"26"></td> - <td width=3D"94"></td> - <td width=3D"118">Type</td> - </tr> - <tr> - <td rowspan=3D"4"> - <div id=3D"ColumnsToShowLeft"></div> - </td> - <td rowspan=3D"4"><input onclick=3D"leftColumn.Move(lef= tColumn.GetSelectedIndex(),rightColumn,false);" type=3D"button" - value=3D"Add"> - <br> - <input onclick=3D"rightColumn.Move(rightColumn.GetSele= ctedIndex(),leftColumn,true);" type=3D"button" - value=3D"Remove"> - </td> - <td rowspan=3D"4"> - <div id=3D"ColumnsToShowRight"></div> - </td> - <td rowspan=3D"4"><A onclick=3D"rightColumn.Top(rightCo= lumn.GetSelectedIndex())" href=3D"#"><IMG src=3D"img/upuparrow.gif"> - </A> - <br> - <A onclick=3D"rightColumn.Up(rightColumn.GetSelectedIn= dex())" href=3D"#"><IMG src=3D"img/uparrow.gif"> - </A> - <br> - <A onclick=3D"rightColumn.Down(rightColumn.GetSelected= Index())" href=3D"#"><IMG src=3D"img/downarrow.gif"> - </A> - <br> - <A onclick=3D"rightColumn.Bottom(rightColumn.GetSelect= edIndex())" href=3D"#"><IMG src=3D"img/downdownarrow.gif"> - </A> - </td> - <td rowspan=3D"4"><input onclick=3D"Form.SetToDefault(l= eftColumn,rightColumn)" type=3D"button" value=3D"SetToDefault"> - <br> - <!-- Do not forget to enable all item of the left list= --> - <input type=3D"button" value=3D"RemoveAll" onclick=3D"= leftColumn.EnableAll();rightColumn.RemoveAll();"> - </td> - <td><select size=3D"1" id=3D"formType" name=3D"formType= "> - <% html_getOptionSelect(); %> - </select> - </td> - <!-- <option value=3D"READ" selected>READ</option> - <option value=3D"CREATE">CREATE</option> - <option value=3D"UPDATE">UPDATE</option> --> - </tr> - <tr> - <td> </td> - </tr> - <tr> - <td> </td> - </tr> - <tr> - <td> </td> - </tr> - <tr> - <td> - <input type=3D"button" onclick=3D"fn_saveData(rightCol= umn);" name=3D"btnSave" value=3D"<% html_getBtnSaveValue(); %>"> - <% html_getButtonDelete(); %> - </td> - <td></td> - <td></td> - <td></td> - <td></td> - <td></td> - </tr> - </table> - <script> - - var rigt= hElements =3D new Array(<% html_getAttrList(2); %>); - var left= Elements =3D new Array(<% html_getAttrList(1); %>); - =20 - //First = List - var divC= olumnsToShowLeft =3D GetNodeByTagNameAndAttName("div","ColumnsToShowLeft"= )[0]; =20 - var left= Column =3D new SortedGraphicalList(leftElements, - = divColumnsToShowLeft,"leftColumn"); = =20 - = =20 - //Second= List - var divC= olumnsToShowRight =3D GetNodeByTagNameAndAttName("div","ColumnsToShowRigh= t")[0]; =20 - var righ= tColumn =3D new SortedGraphicalList(rigthElements, - = divColumnsToShowRight,"rightColumn"); = =20 - = =20 - </script> - </td> - </TR> - </TABLE> - </TD> - </TR> - </TABLE> - </td> - </tr> - </table> - </td> - </tr> - </table> - </form> - </body> -</HTML> +<!-- $Id$ --> +<html> + <head> + <title>Form Management</title> + <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3D= iso-8859-1"> + <script src=3D"js/functions.js"></script> + <script src=3D"js/grafcomponents/misc.js"></script> + <script src=3D"js/grafcomponents/test.js"></script> + <script src=3D"js/grafcomponents/sortedlist.js"></script> + <script src=3D"js/grafcomponents/sortedgraphicallist.js"></scrip= t> + <!-- Load this script before the next one --> + <script src=3D"js/form.js"></script> + <script src=3D"js/fn_formsmng.js"></script> + <link href=3D"css/createinterface.css" rel=3D"stylesheet" type=3D= "text/css"> + </head> + <body> + <form name=3D"formulario" action=3D"#" method=3D"post"> + <input type=3D"hidden" name=3D"first" id=3D"first" value=3D"= <% html_getFirst(); %>">=20 + <input type=3D"hidden" name=3D"opaction" id=3D"opaction" val= ue=3D"<% html_getAction(); %>"> + <input type=3D"hidden" name=3D"formid" id=3D"formid" value=3D= "<% html_getFormId(); %>"> + <table class=3D"conttablecenter2"> + <!-- ******************** Header ***********************= **** --> + <tr> + <td> + <table class=3D"smallgraytextnolink"> + <tr> + <td align=3D"right"> + Form Name: + </td> + <td align=3D"left"> + <input id=3D"formName" type=3D"text"= name=3D"formName" value=3D"<% html_getFormName(); %>"> + </td> + </tr> + <tr> + <td align=3D"right"> + Class: + </td> + <td align=3D"left"> + <input id=3D"ClassName" type=3D"text= " name=3D"ClassName" value=3D"<% html_getClassName(); %>"> + <input id=3D"btnGetClass" onclick=3D= "mostrar();" type=3D"button" value=3D">>" name=3D"btnGetClass"> + <input type=3D"hidden" name=3D"Class= Id" id=3D"ClassId" value=3D"<% html_getClassId(); %>"> + <input type=3D"hidden" name=3D"LstAt= trib" id=3D"LstAttrib"> + </td> + </tr> + </table> + </td> + </tr> + =20 + <tr> + <td align=3D"left"> + <iframe id=3D"FrameTempLoad" style=3D"visibility= :hidden;height:0;" name=3D"FrameTempLoad"> + </iframe> + </td> + </tr> + =20 + <!-- ************************** END Header ************= ****** --> + <tr> + <td colspan=3D"2"> + <table width=3D"100%" border=3D"0" cellSpacing=3D= "0" cellPadding=3D"0"> + <tr> + <td width=3D"100%" colspan=3D"2" class=3D= "separatorLine"> + </td> + </tr> + <tr> + <td class=3D"lev1head" valign=3D"top"><f= ont size=3D"2">Items for Form</font></td> + </tr> + </table> + </td> + </tr> + <!-- *************************** Columns ************= ****** --> + <tr> + <td> + <table> + <tr> + <td>Available Columns</td> + <td></td> + <td>Your Columns</td> + <td></td> + <td></td> + <td>Type</td> + </tr> + <tr> + <td rowspan=3D"4"> + <div id=3D"ColumnsToShowLeft"></div> + </td> + <td rowspan=3D"4"> + <input onclick=3D"leftColumn.Move(leftCo= lumn.GetSelectedIndex(),rightColumn,false);" type=3D"button" value=3D"Add= "> + <br> + <input onclick=3D"rightColumn.Move(right= Column.GetSelectedIndex(),leftColumn,true);" type=3D"button" value=3D"Rem= ove"> + </td> + <td rowspan=3D"4"> + <div id=3D"ColumnsToShowRight"></div> + </td> + <td rowspan=3D"4"> + <a onclick=3D"rightColumn.Top(rightColum= n.GetSelectedIndex())" href=3D"#"> + <img src=3D"img/upuparrow.gif"> + </a> + <br> + <a onclick=3D"rightColumn.Up(rightColumn= .GetSelectedIndex())" href=3D"#"> + <img src=3D"img/uparrow.gif"> + </a> + <br> + <a onclick=3D"rightColumn.Down(rightColu= mn.GetSelectedIndex())" href=3D"#"> + <img src=3D"img/downarrow.gif"> + </a> + <br> + <a onclick=3D"rightColumn.Bottom(rightCo= lumn.GetSelectedIndex())" href=3D"#"> + <img src=3D"img/downdownarrow.gif"> + ... [truncated message content] |