You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(146) |
Jun
(188) |
Jul
(11) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|
|
From: <sv...@de...> - 2005-05-19 18:12:51
|
Author: pcamacho
Date: 2005-05-19 14:12:47 -0400 (Thu, 19 May 2005)
New Revision: 1099
Added:
humano2/trunk/web/builder/site/js/grafcomponents/inputline.js
Modified:
humano2/trunk/web/builder/site/createreport.aspx.cs
humano2/trunk/web/builder/site/js/formreport.js
humano2/trunk/web/builder/site/js/grafcomponents/expandformreport.js
humano2/trunk/web/builder/site/js/grafcomponents/test.html
humano2/trunk/web/builder/site/xsl/createreport.xsl
Log:
ADD: new grafcomponent: inputLine that is used by expandform. It has been=
integrated in the interface to create=20
reports.
Modified: humano2/trunk/web/builder/site/createreport.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/createreport.aspx.cs 2005-05-19 16:58:=
18 UTC (rev 1098)
+++ humano2/trunk/web/builder/site/createreport.aspx.cs 2005-05-19 18:12:=
47 UTC (rev 1099)
@@ -133,7 +133,7 @@
strXml +=3D "</classes>";
strXml +=3D "</report>";
=20
- Logger.Log("ReportMain: createXml(): " + strXml, LogLevel.Tr=
ace);
+ //Logger.Log("ReportMain: createXml(): " + strXml, LogLevel.=
Trace);
=20
return strXml;
}
@@ -289,11 +289,13 @@
listAtt =3D listAtt.Substring(0,listAtt.Length-1);
=20
//Now split the string create the list
- string [] listAttArr =3D listAtt.Split(new char [] {'|'});
+ string [] listAttArr =3D listAtt.Split(new char [] {'|'});
+ /*
for(int i=3D0;i<listAttArr.Length;i++)
{
Logger.Log("listAttArr[" +Convert.ToString(i) + "]=3D " =
+ listAttArr[i],LogLevel.Trace);
}
+ */
return listAttArr;
}
=20
@@ -306,11 +308,11 @@
int index =3D 0;
for(int i=3D0;i<tabElements.Length;i++)
{
- if(element =3D=3D tabElements[i])
- {
- index=3Di;
- break;
- }
+ if(element =3D=3D tabElements[i])
+ {
+ index=3Di;
+ break;
+ }
}
return Convert.ToString(index);
}
@@ -423,9 +425,9 @@
dr["columns"] =3D receivedColumnsStr; //If a column is a per=
tinence, change it
=20
//Special case for IN filter
- dr["where"] =3D treatInSpecialCase(receivedWhereStr);=20
+ dr["where"] =3D parseWhere(receivedWhereStr);
=20
- dr["order"] =3D receivedOrderStr;
+ dr["order"] =3D parseOrder(receivedOrderStr);
Logger.Log("receivedOrderStr" + receivedOrderStr, LogLevel.T=
race);
Logger.Log("receivedWhereStr" + receivedWhereStr, LogLevel.T=
race);
=09
@@ -433,6 +435,80 @@
=20
return dt;
}
+ =20
+ =20
+ =20
+ ///<summary>
+ /// A order string is received from the web page in this format:
+ /// idAtt0 | 0 or 1,idAtt1 | 0 or 1 etc...
+ /// We have to add the queue to each where condition (1|0 or 0|0=
)
+ ///</summary>
+ private string parseOrder(string order) =20
+ {
+ string res =3D "";
+ string [] orderSplit =3D order.Split((";").ToCharArray()); /=
/First get the lines
+ =20
+ for(int i=3D0;i<orderSplit.Length;i++)
+ {
+ string [] lineSplit =3D orderSplit[i].Split(("|").ToChar=
Array());
+ string line =3D "";
+ =20
+ line +=3D lineSplit[0];
+ line +=3D '|'; =20
+ line +=3D lineSplit[1];
+ =20
+ res +=3D line;
+ if(i!=3D orderSplit.Length-1)
+ {
+ res +=3D ","; =20
+ }
+ //Last line nothing to add
+ }
+ =20
+ Logger.Log("parseOrder=3D " + res,LogLevel.Trace);
+ =20
+ return res;
+ }
+ =20
+ =20
+ ///<summary>
+ /// A where string is received from the web page in this format:
+ /// idAtt0 | idOp0 | 'value'|;idAtt1 | idOp1 | 'value'|; ... etc
+ /// We have to add the queue to each where condition (1|0 or 0|0=
)
+ ///</summary>
+ private string parseWhere(string where) =20
+ {
+ string res =3D "";
+ string [] whereSplit =3D where.Split((";").ToCharArray()); /=
/First get the lines
+ =20
+ for(int i=3D0;i<whereSplit.Length;i++)
+ {
+ string [] lineSplit =3D whereSplit[i].Split(("|").ToChar=
Array());
+ string line =3D "";
+ for(int j=3D0; j<lineSplit.Length;j++)
+ {
+ line +=3D lineSplit[j];
+ line +=3D '|'; =20
+ =20
+ }
+ res +=3D line;
+ if(i!=3D whereSplit.Length-1)
+ {
+ res +=3D "1|0;"; =20
+ }
+ else //Last line
+ {
+ res +=3D"0|0";
+ }
+ }
+ Logger.Log("parseWhere(before treatin)=3D " + res,LogLevel.=
Trace);
+ =20
+ res =3D treatInSpecialCase(res);=20
+ =20
+ Logger.Log("parseWhere=3D " + res,LogLevel.Trace);
+ =20
+ return res;
+ }
=20
///<summary>
/// The IN filter must be treated in a special maner. If the val=
ue to compare to is "20 30", then=20
Modified: humano2/trunk/web/builder/site/js/formreport.js
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/js/formreport.js 2005-05-19 16:58:18 U=
TC (rev 1098)
+++ humano2/trunk/web/builder/site/js/formreport.js 2005-05-19 18:12:47 U=
TC (rev 1099)
@@ -107,7 +107,7 @@
this.UpdateSubmitAll =3D FormUpdateSubmitAll;
this.DeleteReport =3D FormDeleteReport;
this.GetSortArray =3D FormGetSortArray;
- this.GetFilterArray =3D FormGetFilterArray;
+ //this.GetFilterArray =3D FormGetFilterArray;
this.UpdateSort =3D FormUpdateSort;
this.UpdateFilter =3D FormUpdateFilter;
this.GetNameOfAttribute =3D FormGetNameOfAttribute;
@@ -152,10 +152,8 @@
//Now the sort
//alert("sort SelfRefName:" + sort.GetSelfRefName());
=20
- =20
var orderStr =3D sort.ReturnValues();=20
=20
- =20
//The filter
//alert("filter SelfRefName:" + filter.GetSelfRefName());
var whereStr =3D filter.ReturnValues();
@@ -267,7 +265,7 @@
return optionArray;
}
=20
-
+/*
function FormGetFilterArray(number)
{
var optionArray =3D new Array();
@@ -325,6 +323,8 @@
return optionArray;
}
=20
+*/
+
function FormUpdateSort(sort,classId)
{
this.classId =3D classId;
Modified: humano2/trunk/web/builder/site/js/grafcomponents/expandformrepo=
rt.js
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/js/grafcomponents/expandformreport.js =
2005-05-19 16:58:18 UTC (rev 1098)
+++ humano2/trunk/web/builder/site/js/grafcomponents/expandformreport.js =
2005-05-19 18:12:47 UTC (rev 1099)
@@ -64,258 +64,122 @@
return this.selectOption1.length; =20
}
=20
-
/**
* Constructor
- * with input: add an input as third field
- * @param htmlForm text: the form: no matters the Id of Name of the inpu=
ts / select, they will be renamed
- * @param withInput: add an <input> tag or not (depending on the value o=
f the boolean)
- * @param inputValues is an object ExpanFormInput that contains the sele=
cted options (1 & 2) and eventually the inputs
+ * @param line object that contains the fields to display for each line =
and that also contains preselected values
*/
-function ExpandForm(selfRefName,receptorNode,withInput,optionArray1,opti=
onArray2,title,inputValues)
+function ExpandForm(selfRefName,receptorNode,title,inputLine)
{
//Fields
this.selfRefName =3D selfRefName;
this.receptorNode =3D receptorNode;
- this.withInput =3D withInput;
- this.optionArray1 =3D new Array();
- this.optionArray2 =3D new Array();
+ this.inputLine =3D inputLine;
+ =20
+ //this.optionArray1 =3D new Array();
+ //this.optionArray2 =3D new Array();
this.title =3D title;
- this.inputValues =3D inputValues;
+
=20
//Methods
this.PutAllComponents =3D ExpandFormPutAllComponents;
this.AddLine =3D ExpandFormAddLine;
this.RemoveLine =3D ExpandFormRemoveLine;
this.ReturnValues =3D ExpandFormReturnValues;
- this.GetOptionsString =3D ExpandFormGetOptionsString;
this.GetReceptorNode =3D ExpandFormGetReceptorNode;
this.GetSelfRefName =3D ExpandFormGetSelfRefName;
this.GetTitle =3D ExpandFormGetTitle;
- this.Update =3D ExpandFormUpdate;
=20
- //Copy the arrays passed in parameters=20
- var i;
- for(i=3D0;i<optionArray1.length;i++)
- {
- this.optionArray1[i] =3D new Array();
- this.optionArray1[i]["text"] =3D optionArray1[i]["text"];
- this.optionArray1[i]["value"] =3D optionArray1[i]["value"];
- }
- =20
- for(i=3D0;i<optionArray2.length;i++)
- {
- this.optionArray2[i] =3D new Array();
- this.optionArray2[i]["text"] =3D optionArray2[i]["text"];
- this.optionArray2[i]["value"] =3D optionArray2[i]["value"];
- }
- //alert("inputValues=3D " + this.inputValues);
- //Update the current document
this.PutAllComponents(receptorNode);
=20
return this; =20
}
=20
-function ExpandFormUpdate(optionArray1,optionArray2)
-{
- //Don't forget to clear the existing arrays
- this.optionArray1 =3D new Array();
- this.optionArray2 =3D new Array();
=20
- //option tables
- //Copy the arrays passed in parameters=20
-
- var i;
- for(i=3D0;i<optionArray1.length;i++)
- {
- this.optionArray1[i] =3D new Array();
- this.optionArray1[i]["text"] =3D optionArray1[i]["text"];
- this.optionArray1[i]["value"] =3D optionArray1[i]["value"];
- }
- =20
- for(i=3D0;i<optionArray2.length;i++)
- {
- this.optionArray2[i] =3D new Array();
- this.optionArray2[i]["text"] =3D optionArray2[i]["text"];
- this.optionArray2[i]["value"] =3D optionArray2[i]["value"];
- }
- =20
- //Remove all lines but one
- var nbNodes =3D this.receptorNode.childNodes.length;
- while(nbNodes>0)
- {
- nbNodes =3D this.RemoveLine(); =20
- }
- =20
- //Add a line
- this.AddLine();
-}
-
-
/**
* This function adds a line to the expand form but
* with preselect values
- * @param indexOption1=20
- * @param indexOption2
- * @param blank if true insert a blank form if not use the inputValues o=
bject and the index
*/
-function ExpandFormAddLine(index,blank)
+function ExpandFormAddLine(index)
{
var divReceptor =3D GetNodeByTagNameAndAttName("div",this.selfRefNam=
e)[0]; //Unique id in the document as every
=
// graphical components should have unique identificator
//alert("divReceptor: " + divReceptor);
var lineNumber =3D divReceptor.childNodes.length;
=20
- var option1String;
- var option2String;
- var inputValue;
- //alert("index:" + index + " blank: " + blank + " inputValues:" + th=
is.inputValues);
- if((this.inputValues!=3D null)=20
- && (blank =3D=3D false)) //Insert new line with preselected valu=
es
+ var innerHtml =3D "";
+ =20
+ if(index !=3D null)
{
- var triplet =3D this.inputValues.GetTriplet(index);
- option1String =3D this.GetOptionsString(1,triplet["option1"])
- option2String =3D this.GetOptionsString(2,triplet["option2"])
- inputValue =3D triplet["input"];
+ innerHtml =3D this.inputLine.GetPreselectedLineHtml(index,lineNum=
ber); =20
}
else
{
- option1String =3D this.GetOptionsString(1,0) //first selected by=
default
- option2String =3D this.GetOptionsString(2,0) // idem
- inputValue =3D "";
+ innerHtml =3D this.inputLine.GetEmptyLineHtml(lineNumber);
}
=20
- var innerHtml =3D this.title + lineNumber + ": "
- + "<select style=3D\"width:100px;\" name=3D\"selec=
t1" + this.selfRefName + lineNumber + "\" class=3D\"drpdwn2\">"
- + option1String
- + "</select>"
- + "<select style=3D\"width:100px;\" name=3D\"selec=
t2" + this.selfRefName + lineNumber + "\" class=3D\"drpdwn2\">"
- + option2String
- + "</select>";=20
- =20
- if(this.withInput =3D=3D true) =
=20
- {
- innerHtml +=3D "<input name=3D\"input" + this.selfRefName + line=
Number + "\" value=3D\"" + inputValue + "\" id=3D\"\"></input>";
- }
- //alert("innerHtml:" + innerHtml);
- =20
var divLine =3D document.createElement("div");
=20
divLine.innerHTML =3D innerHtml;
=20
//alert("divLine.childNodes.length: " + divLine.childNodes.length)
- =20
+ //alert("innerHtml: " + innerHtml);
//Add the line
divReceptor.appendChild(divLine);
}
=20
=20
-
-
-
/**
* Should be conform to viewtools norm
*/
function ExpandFormReturnValues()
{ =20
var res =3D "";
- =20
+
var divWithLines =3D GetNodeByTagNameAndAttName("div",this.selfRefNa=
me)[0]; //Unique id in the document as every
=
// graphical components should have unique identificator
var node =3D divWithLines.firstChild;
- //alert("divWithLines.firstChild.childNodes.length: " + divWithLines=
.firstChild.childNodes.length);
+ alert("divWithLines.firstChild.childNodes.length: " + divWithLines.f=
irstChild.childNodes.length);
//alert("divWithLines.firstChild.innerHTML: " + divWithLines.firstCh=
ild.innerHTML)
while(node !=3D null)
{
- if(this.withInput =3D=3D false)
+ =20
+ //Here we must get the input value moreover
+ //CAUTION: we start from the second child because the first is a=
text node (title) !!!!
+ var divFirstSelect =3D node.firstChild.nextSibling;
+ var divSecondSelect =3D divFirstSelect.nextSibling;
+ =20
+ if((divFirstSelect.value !=3D -1) && (divSecondSelect.value!=3D =
-1)) //Verify if something has been selected
{
- //CAUTION: we start from the second child because the first =
is a text node (title) !!!!
- var divFirstSelect =3D node.firstChild.nextSibling;
- var divSecondSelect =3D divFirstSelect.nextSibling;
- =20
- if((divFirstSelect.value !=3D -1) && (divSecondSelect.value!=
=3D -1)) //Verify if something has been selected
+ if(this.inputLine.type =3D=3D 'TWOSELECTANDINPUT')
{
- //alert("divFirstSelect:" + divFirstSelect);
+ alert("divFirstSelect:" + divFirstSelect);
res +=3D divFirstSelect.value + "|";
- //alert("divSecondSelect:" + divSecondSelect);
- res +=3D divSecondSelect.value;
- res +=3D ","; //Separator between two order
+ alert("divSecondSelect:" + divSecondSelect);
+ res +=3D divSecondSelect.value + "|";
+ var divInput =3D divSecondSelect.nextSibling;
+ alert("divInput:" + divInput);
+ res +=3D "\'" + divInput.value + "\'";
}
- }
- else
- {
- //Here we must get the input value moreover
- //CAUTION: we start from the second child because the first =
is a text node (title) !!!!
- var divFirstSelect =3D node.firstChild.nextSibling;
- var divSecondSelect =3D divFirstSelect.nextSibling;
=20
- if((divFirstSelect.value !=3D -1) && (divSecondSelect.value!=
=3D -1)) //Verify if something has been selected
+ if(this.inputLine.type =3D=3D 'TWOSELECT')
{
//alert("divFirstSelect:" + divFirstSelect);
- res +=3D divFirstSelect.value + "|";
- =20
+ res +=3D divFirstSelect.value + "|"; =20
//alert("divSecondSelect:" + divSecondSelect);
- res +=3D divSecondSelect.value + "|";
- =20
- var divInput =3D divSecondSelect.nextSibling;
- //alert("divInput:" + divInput);
- res +=3D "\'" + divInput.value + "\'";
- =20
- var queue =3D "";
- if(node.nextSibling =3D=3D null) //Last criteria ?
- {
- queue =3D "|0|0";
- }
- else=20
- {
- queue =3D "|1|0";
- }
- res +=3D queue;
- res+=3D ";"; //Separator between two where
+ res +=3D divSecondSelect.value; =20
}
+ res+=3D ";"; //Separator between two lines
}
node =3D node.nextSibling;
}
- //Leave last coma (caracter)
- if(res !=3D "") //In case select was put to nothing
- {
- res =3D res.substring(0,res.length-1);
- }
- //alert("res expand:" + res);
-
- return res;
-}
-
-function ExpandFormGetOptionsString(value,selectedValueIndex)
-{
- var optionsArray;
=20
- if( value=3D=3D 1)
- {
- optionArray =3D this.optionArray1;
- }
- else
- {
- optionArray =3D this.optionArray2; =20
- }
+ res =3D res.substring(0,res.length-1);//remove last ;
=20
- var resStr =3D "";
- =20
- for(i=3D0;i<optionArray.length;i++)
- {
- =20
- var selected =3D "";
- if (selectedValueIndex =3D=3D i)
- {
- selected =3D " selected ";
- }
- resStr +=3D "<option name=3D\"" + this.selfRefName + i + "\"=
value =3D\"" + optionArray[i]["value"] + "\"" + selected + ">"
- + optionArray[i]["text"] + "</option>";
- }
- //alert(resStr);
- return resStr;
+ alert("res:" + res);
+ return res;
}
=20
+
function ExpandFormRemoveLine()
{
var divReceptor =3D GetNodeByTagNameAndAttName("div",this.selfRefNam=
e)[0]; //Unique id in the document as every
@@ -358,18 +222,19 @@
this.receptorNode.innerHTML =3D innerHtml; =20
=20
//Add lines with preselected values if inputValues exists
- if(this.inputValues !=3D null)
+ if(this.inputLine.HasPreselected() =3D=3D true)
{
var i;
+ var nbPreselected =3D this.inputLine.GetNumberOfPreselected();
//alert("size inputs: " + this.inputValues.Size());
- for(i=3D0; i < this.inputValues.Size();i++)
+ for(i=3D0; i < nbPreselected;i++)
{
- this.AddLine(i,false);
+ this.AddLine(i);
}
}
else
{
- this.AddLine(); =20
+ this.AddLine(); //Add empty line
}
}
=20
@@ -387,6 +252,8 @@
{
///////////////////////////////////////////////
TestGroupWrite("ExpandFormTest");
+ =20
+ =20
var divReceptor =3D GetNodeByTagNameAndAttName("div","ExpandForm")[0=
];=20
var divInsideReceptor =3D document.createElement("div");
divReceptor.appendChild(divInsideReceptor);
@@ -396,69 +263,45 @@
=20
divReceptor.appendChild(buttonShowValues);
=20
- var optionArray1 =3D new Array();
- optionArray1[0] =3D new Array();
- optionArray1[0]["value"] =3D "17";
- optionArray1[0]["text"] =3D "email";
- optionArray1[1] =3D new Array();
- optionArray1[1]["value"] =3D "18";
- optionArray1[1]["text"] =3D "file";
=20
- var optionArray2 =3D new Array();
- optionArray2[0] =3D new Array();
- optionArray2[0]["value"] =3D "asc";
- optionArray2[0]["text"] =3D "Ascendant";
- optionArray2[1] =3D new Array();
- optionArray2[1]["value"] =3D "desc";
- optionArray2[1]["text"] =3D "Descendant";
+ //Preselected values
+ var select0Arr =3D new Array();
+ select0Arr[0] =3D new Array();
+ select0Arr[0]["text"] =3D 'attribute0';
+ select0Arr[0]["value"] =3D 'att0';
=20
- aExpandForm =3D new ExpandForm("aExpandForm",divInsideReceptor,false=
,optionArray1,optionArray2,"Order");
+ select0Arr[1] =3D new Array();
+ select0Arr[1]["text"] =3D 'attribute1';
+ select0Arr[1]["value"] =3D 'att1';
=20
- ////////////////////////////////////////////////////////////////////=
////////////////////////////////////
+ select0Arr[2] =3D new Array();
+ select0Arr[2]["text"] =3D 'attribute2';
+ select0Arr[2]["value"] =3D 'att2';
=20
+ var select1Arr =3D new Array();
+ select1Arr[0] =3D new Array();
+ select1Arr[0]["text"] =3D 'EqualTo';
+ select1Arr[0]["value"] =3D '4';
=20
- //Build an expand form with preselected values
- var optionArray1 =3D new Array();
- optionArray1[0] =3D new Array();
- optionArray1[0]["value"] =3D "17";
- optionArray1[0]["text"] =3D "email";
- optionArray1[1] =3D new Array();
- optionArray1[1]["value"] =3D "18";
- optionArray1[1]["text"] =3D "file";
- optionArray1[2] =3D new Array();
- optionArray1[2]["value"] =3D "19";
- optionArray1[2]["text"] =3D "text";
+ select1Arr[1] =3D new Array();
+ select1Arr[1]["text"] =3D 'GreaterThan';
+ select1Arr[1]["value"] =3D '5';
=20
- var optionArray2 =3D new Array();
- optionArray2[0] =3D new Array();
- optionArray2[0]["value"] =3D "0";
- optionArray2[0]["text"] =3D "<=3D";
- optionArray2[1] =3D new Array();
- optionArray2[1]["value"] =3D "1";
- optionArray2[1]["text"] =3D "=3D";
+ var InputLineParams =3D
+ {
+ type: 'TWOSELECTANDINPUT',
+ select0: select0Arr,
+ select1: select1Arr,
+ input0: '',
+ PreselectedInput0: new Array('hola','hola2'),
+ PreselectedSelect0: new Array(0,2),
+ PreselectedSelect1: new Array(1,0),
+ refName: 'aExpandForm'
+ }
+
+ anInputLine =3D new InputLine(InputLineParams);
=20
- var selectOption1Arr =3D new Array();
- selectOption1Arr[0] =3D 0; //select file by default
- selectOption1Arr[1] =3D 2; //select text by default
- =20
- var selectOption2Arr =3D new Array();
- selectOption2Arr[0] =3D 0; //asc
- selectOption2Arr[1] =3D 1; //desc
- =20
- var inputValuesArr =3D new Array();
- inputValuesArr[0] =3D "toto.xsl";
- inputValuesArr[1] =3D "texto... Hola";
- =20
- aInputValues =3D new InputValues(selectOption1Arr,selectOption2Arr,i=
nputValuesArr);
- otherExpandForm =3D new ExpandForm("otherExpandForm",divInsideRecept=
or,true,optionArray1,optionArray2,"TestExpand: ",aInputValues);
- Test("LENGTH","Size of inputValues",aInputValues.Size() =3D=3D 2); =
=20
- Test("GetTriplet","Call #1",aInputValues.GetTriplet(0)["option1"] =3D=
=3D 0=20
- && aInputValues.GetTriplet(0)["option2"]=
=3D=3D 0
- && aInputValues.GetTriplet(0)["input"] =3D=
=3D "toto.xsl");
- Test("GetTriplet","Call #2",aInputValues.GetTriplet(1)["option1"] =3D=
=3D 2=20
- && aInputValues.GetTriplet(1)["option2"]=
=3D=3D 1
- && aInputValues.GetTriplet(1)["input"] =3D=
=3D "texto... Hola");
- =20
+ aExpandForm =3D new ExpandForm("aExpandForm",divInsideReceptor,"Expa=
ndFormReport",anInputLine);
}
=20
=20
Added: humano2/trunk/web/builder/site/js/grafcomponents/inputline.js
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/js/grafcomponents/inputline.js 2005-05=
-19 16:58:18 UTC (rev 1098)
+++ humano2/trunk/web/builder/site/js/grafcomponents/inputline.js 2005-05=
-19 18:12:47 UTC (rev 1099)
@@ -0,0 +1,237 @@
+//
+// 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
+//
+//
+
+
+/**
+ * Class that generates a line with various option, buttons, input selec=
t.
+ * If preselected values of these inputs are entered, then it is possibl=
e to display
+ * all the lines (one after this other) with the values.
+ * @param params object that contains all parameters needed to build the=
input
+ */
+function InputLine(params)
+{
+ =20
+ this.type =3D params.type; //the type of line (2 select, 2 se=
lect and input etc...)
+ this.refName =3D params.refName; //For the ids of the html elements
+ =20
+ //The content of html elements
+ this.select0 =3D params.select0;
+ this.select1 =3D params.select1;
+ this.lineTitle =3D params.lineTitle;
+ =20
+ //The preselected values
+ switch(this.type)
+ {
+ case 'TWOSELECT': =20
+ this.PreselectedSelect0 =3D params.PreselectedSelect0;
+ this.PreselectedSelect1 =3D params.PreselectedSelect1;
+ break;
+ case 'TWOSELECTANDINPUT':
+ case 'INPUTANDTWOSELECT':
+ this.PreselectedSelect0 =3D params.PreselectedSelect0;
+ this.PreselectedSelect1 =3D params.PreselectedSelect1;
+ this.PreselectedInput0 =3D params.PreselectedInput0;
+ break;
+ =20
+ default:=20
+ alert("Oopps... Looks like the InputLine has been badly init=
ialized!");
+ break;
+ }
+ =20
+ //Methods
+ this.GetLine =3D InputLineGetLine;
+ this.GetEmptyLineHtml =3D InputLineGetEmptyLineHtml;
+ this.GetPreselectedLineHtml =3D InputLineGetPreselectedLineHtml;
+ this.GetNumberOfPreselected =3D InputLineGetNumberOfPreselected;
+ this.GetOptionString =3D InputLineGetOptionString;
+ this.HasPreselected =3D InputLineHasPreselected;
+}
+
+
+function InputLineHasPreselected()
+{
+ var bool;
+ if (this.PreselectedSelect0 !=3D null)
+ {
+ bool =3D (this.PreselectedSelect0.length > 0); //If the array is=
empty no preselection neither bool =3D true; =20
+ }
+ else
+ {
+ bool =3D false;
+ }
+ return bool;
+}
+
+function InputLineGetOptionString(optionArray,index, preselectedArray)
+{
+ =20
+ var resStr =3D "";
+ =20
+ var optionPreselectedValue=20
+ =20
+ if(index >=3D 0)
+ {
+ optionPreselectedValue =3D preselectedArray[index];
+ }
+ else
+ {
+ optionPreselectedValue =3D -1;
+ }
+ =20
+ //alert("optionPreselectedValue: " + optionPreselectedValue);
+ var i;
+ for(i=3D0;i<optionArray.length;i++)
+ {
+ var selected;
+ selected=3D"";
+ =20
+ if (optionPreselectedValue =3D=3D i)
+ {
+ selected =3D " selected ";
+ }
+ =20
+ resStr +=3D "<option name=3D\"" + this.refName + i + "\" value =3D=
\"" + optionArray[i]["value"] + "\"" + selected + ">"
+ + optionArray[i]["text"] + "</option>";
+ }
+ //alert(resStr);
+ return resStr; =20
+}
+
+
+function InputLineGetLine(index,lineNumber)
+{
+ var res =3D "";
+ =20
+ var option1String =3D this.GetOptionString(this.select0,index,this.P=
reselectedSelect0);
+ var option2String =3D this.GetOptionString(this.select1,index,this.P=
reselectedSelect1);
+ =20
+ var inputValue;
+ if((this.PreselectedInput0 !=3D null) && (index >=3D 0) )
+ {
+ inputValue =3D this.PreselectedInput0[index];
+ }
+ else
+ {
+ inputValue =3D ""; =20
+ }
+ =20
+ switch(this.type)=20
+ {
+ case 'TWOSELECTANDINPUT':
+ res =3D this.lineTitle + lineNumber + ": " + "<select style=3D=
\"width:100px;\" name=3D\"select1" + this.refName + lineNumber + "\" clas=
s=3D\"drpdwn2\">"
+ + option1String
+ + "</select>"
+ + "<select style=3D\"width:100px;\" name=3D\"selec=
t2" + this.refName + lineNumber + "\" class=3D\"drpdwn2\">"
+ + option2String =20
+ + "</select>"
+ + "<input name=3D\"input" + this.refName + lineNum=
ber + "\" value=3D\"" + inputValue + "" + "\" id=3D\"\"></input>";=20
+ break;
+ =20
+ case 'TWOSELECT':
+ res =3D this.lineTitle + lineNumber + ": " + "<select style=
=3D\"width:100px;\" name=3D\"select1" + this.refName + lineNumber + "\" c=
lass=3D\"drpdwn2\">"
+ + option1String
+ + "</select>"
+ + "<select style=3D\"width:100px;\" name=3D\"selec=
t2" + this.refName + lineNumber + "\" class=3D\"drpdwn2\">"
+ + option2String =20
+ + "</select>"
+ break;
+ }
+ =20
+ return res;
+}
+
+function InputLineGetEmptyLineHtml(lineNumber)
+{
+ return this.GetLine(-1,lineNumber);
+}
+
+/**
+ * Get the preselected line with its number
+ */
+function InputLineGetPreselectedLineHtml(index,lineNumber)
+{
+ return this.GetLine(index,lineNumber);
+}
+
+function InputLineGetNumberOfPreselected()
+{
+ var preselectedArr =3D this.PreselectedSelect0;
+ if (preselectedArr !=3D null)
+ {
+ res =3D preselectedArr.length;
+ }
+ else
+ res =3D 0;
+ =20
+ return res; =20
+}
+
+function InputLineTest()
+{
+ ///////////////////////////////////////////////
+ TestGroupWrite("InputLineTest");
+ =20
+ var select0Arr =3D new Array();
+ select0Arr[0] =3D new Array();
+ select0Arr[0]["text"] =3D 'attribute0';
+ select0Arr[0]["value"] =3D 'att0';
+ =20
+ select0Arr[1] =3D new Array();
+ select0Arr[1]["text"] =3D 'attribute1';
+ select0Arr[1]["value"] =3D 'att1';
+ =20
+ select0Arr[2] =3D new Array();
+ select0Arr[2]["text"] =3D 'attribute2';
+ select0Arr[2]["value"] =3D 'att2';
+ =20
+ var select1Arr =3D new Array();
+ select1Arr[0] =3D new Array();
+ select1Arr[0]["text"] =3D 'EqualTo';
+ select1Arr[0]["value"] =3D '4';
+ =20
+ select1Arr[1] =3D new Array();
+ select1Arr[1]["text"] =3D 'GreaterThan';
+ select1Arr[1]["value"] =3D '5';
+ =20
+ =20
+ var InputLineParams =3D
+ {
+ type: 'TWOSELECTANDINPUT',
+ select0: select0Arr,
+ select1: select1Arr,
+ input0: '',
+ PreselectedInput0: new Array('hola','hola2'),
+ PreselectedSelect0: new Array(1,2),
+ PreselectedSelect1: new Array(1,1),
+ refName: 'toto'
+ }
+
+ var aInputLine =3D new InputLine(InputLineParams);
+ =20
+ var EmptyLineHtml =3D aInputLine.GetEmptyLineHtml(0);
+ var nbOfPreselected =3D aInputLine.GetNumberOfPreselected();
+ Test("GetEmptyLineHtml","an empty line", EmptyLineHtml =3D=3D '');
+ document.write("EmptyLineHtml: " + EmptyLineHtml);
+ Test("GetNumberOfPreselected","Should be 2", nbOfPreselected =3D=3D =
2);
+ =20
+ =20
+ var PreselectedLineHtml =3D "";
+ var OraclePreselectedLineHtmlArr =3D new Array('','');
+ var i;
+ for(i=3D0;i<nbOfPreselected;i++)
+ {
+ PreselectedLineHtml =3D aInputLine.GetPreselectedLineHtml(i,i+3)=
;
+ //alert("PreselectedLineHtml[" + i +"]: \n" + PreselectedLineHt=
ml);
+ document.write("<br>" + " PreselectedLineHtml[" + i +"]: "+ Pr=
eselectedLineHtml + "<br>");
+ Test("GetPreselectedLineHtml[" + i + "]:", "A preselected line",=
PreselectedLineHtml =3D=3D OraclePreselectedLineHtmlArr[i]);
+ }
+ =20
+}
Modified: humano2/trunk/web/builder/site/js/grafcomponents/test.html
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/js/grafcomponents/test.html 2005-05-19=
16:58:18 UTC (rev 1098)
+++ humano2/trunk/web/builder/site/js/grafcomponents/test.html 2005-05-19=
18:12:47 UTC (rev 1099)
@@ -10,53 +10,59 @@
$Id $
-->
<html>
- <head> =20
- <script language=3D"Javascript" src=3D"misc.js"></script=
>
- <script language=3D"javascript" src=3D"test.js"></script=
>
- <script language=3D"Javascript" src=3D"sortedlist.js"></=
script>
- <script language=3D"Javascript" src=3D"sortedgraphicalli=
st.js"></script>
- <script language=3D"Javascript" src=3D"radiobuttonexpand=
.js"></script>
- <script language=3D"Javascript" src=3D"expandform.js"></=
script>
- <script language=3D"Javascript">
- var aSortedGraphicalList;
- var aRadioButtonExpand;
- var aExpandForm;
- </script>
- </head>
- <body>
- <center>
- <h1>
- Test of graphical components
- <h1> =20
- </center>
- <br>
- <br>
- <div>
- <script language=3D"Javascript">
- SortedListTest();
- </script>
- </div>
- =20
- <div id=3D"hola" id=3D"hola">
- <script language=3D"Javascript">
- MiscTest();
- </script>
- </div>
- =20
- <div id=3D"SortedGraphicalList">
- <script language=3D"Javascript">
- SortedGraphicalListTest();
- </script>
- </div>
- <div id=3D"RadioButtonExpand">
- <script language=3D"Javascript">
- RadioButtonExpandTest();
- </script>
- </div>
- <div id=3D"ExpandForm">
- <script language=3D"Javascript">
- ExpandFormTest();
- </script>
- </div>
- </body>
+ <head> =20
+ <script language=3D"Javascript" src=3D"misc.js"></script>
+ <script language=3D"javascript" src=3D"test.js"></script>
+ <script language=3D"Javascript" src=3D"sortedlist.js"></script>
+ <script language=3D"Javascript" src=3D"sortedgraphicallist.js"><=
/script>
+ <script language=3D"Javascript" src=3D"radiobuttonexpand.js"></s=
cript>
+ <script language=3D"Javascript" src=3D"expandformreport.js"></sc=
ript>
+ <script language=3D"Javascript" src=3D"inputline.js"></script>
+ <script language=3D"Javascript">
+ var aSortedGraphicalList;
+ var aRadioButtonExpand;
+ var aExpandForm;
+ </script>
+ </head>
+ <body>
+ <center>
+ <h1>
+ Test of graphical components
+ <h1> =20
+ </center>
+ <br>
+ <br>
+ <div>
+ <script language=3D"Javascript">
+ SortedListTest();
+ </script>
+ </div>
+ =20
+ <div id=3D"hola" id=3D"hola">
+ <script language=3D"Javascript">
+ MiscTest();
+ </script>
+ </div>
+ =20
+ <div id=3D"SortedGraphicalList">
+ <script language=3D"Javascript">
+ SortedGraphicalListTest();
+ </script>
+ </div>
+ <div id=3D"RadioButtonExpand">
+ <script language=3D"Javascript">
+ RadioButtonExpandTest();
+ </script>
+ </div>
+ <div id=3D"ExpandForm">
+ <script language=3D"Javascript">
+ ExpandFormTest();
+ </script>
+ </div>
+ <div id=3D"InputLine">
+ <script language=3D"Javascript">
+ InputLineTest();
+ </script>
+ </div>
+ </body>
</html>
Modified: humano2/trunk/web/builder/site/xsl/createreport.xsl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/xsl/createreport.xsl 2005-05-19 16:58:=
18 UTC (rev 1098)
+++ humano2/trunk/web/builder/site/xsl/createreport.xsl 2005-05-19 18:12:=
47 UTC (rev 1099)
@@ -4,25 +4,26 @@
<xsl:template match=3D"/">
<html>
<head>
- <title>Report Edit</title>
- <script language=3D"javascript">
- function ConfirmDelete(userId)
- {
- return confirm("Are you sure you want to remove this rep=
ort?");
- }
- </script>
- <!-- For the graphical components -->
- <script language=3D"Javascript" src=3D"js/grafcomponents/misc.js=
"></script>
- <script language=3D"javascript" src=3D"js/grafcomponents/test.js=
"></script>
- <script language=3D"Javascript" src=3D"js/grafcomponents/sortedl=
ist.js"></script>
- <script language=3D"Javascript" src=3D"js/grafcomponents/sortedg=
raphicallist.js"></script>
- <script language=3D"Javascript" src=3D"js/grafcomponents/radiobu=
ttonexpand.js"></script>
- <script language=3D"Javascript" src=3D"js/grafcomponents/expandf=
ormreport.js"></script>
- <!-- Load this script before the next one -->
- <script language=3D"Javascript" src=3D"js/formreport.js" type=3D=
"text/javascript"></script>=20
- =20
+ <title>Report Edit</title>
+ <script language=3D"javascript">
+ function ConfirmDelete(userId)
+ {
+ return confirm("Are you sure you want to remove this=
report?");
+ }
+ </script>
+ <!-- For the graphical components -->
+ <script language=3D"Javascript" src=3D"js/grafcomponents/mis=
c.js"></script>
+ <script language=3D"javascript" src=3D"js/grafcomponents/tes=
t.js"></script>
+ <script language=3D"Javascript" src=3D"js/grafcomponents/sor=
tedlist.js"></script>
+ <script language=3D"Javascript" src=3D"js/grafcomponents/sor=
tedgraphicallist.js"></script>
+ <script language=3D"Javascript" src=3D"js/grafcomponents/rad=
iobuttonexpand.js"></script>
+ <script language=3D"Javascript" src=3D"js/grafcomponents/inp=
utline.js"></script>
+ <script language=3D"Javascript" src=3D"js/grafcomponents/exp=
andformreport.js"></script>
+ <!-- Load this script before the next one -->
+ <script language=3D"Javascript" src=3D"js/formreport.js" typ=
e=3D"text/javascript"></script>=20
+ <link href=3D"styles/css/general_styles_verde.css" rel=3D"st=
ylesheet" type=3D"text/css"></link>
</head>
- <link href=3D"styles/css/general_styles_verde.css" rel=3D"stylesheet"=
type=3D"text/css"/>
+ =09
<!-- Here we create an array and use it as parameter for For=
m class constructor -->
<script language=3D"Javascript">
=20
@@ -33,39 +34,11 @@
var reportColumnsArray =3D new Array();
var i=3D0;
<xsl:for-each select=3D"/report/reportDatas/reportParams=
/columns/column">
- reportColumnsArray[i++] =3D "<xsl:value-of select=3D"." =
/>";
+ reportColumnsArray[i++] =3D "<xsl:value-of select=3D=
"." />";
</xsl:for-each>
//alert(reportColumnsArray.length);
var ReportParams =3D new ReportParams(reportColumnsArray=
,null,null);
=20
- //Filters =20
- var selectOption1Array =3D new Array();
- var selectOption2Array =3D new Array();
- var inputTagValuesArray =3D new Array();
- =20
- var i=3D0;
- <xsl:for-each select=3D"/report/reportDatas/reportParams=
/conditions/condition">
- selectOption1Array[i] =3D <xsl:value-of select=3D"i=
dAtt" />;
- selectOption2Array[i] =3D <xsl:value-of select=3D"o=
perator" />;
- inputTagValuesArray[i] =3D <xsl:value-of select=3D"=
value" />;
- i++;
- </xsl:for-each>
- =20
- var inputValuesFilter;
- inputValuesFilter =3D new InputValues(selectOption1Array=
,selectOption2Array,inputTagValuesArray);
- =20
- //Order
- var selectOption1ArrayOrder =3D new Array();
- var selectOption2ArrayOrder =3D new Array();
- var i=3D0;
- <xsl:for-each select=3D"/report/reportDatas/reportParams=
/orders/order">
- selectOption1ArrayOrder[i] =3D <xsl:value-of select=
=3D"idAtt" />;
- selectOption2ArrayOrder[i] =3D <xsl:value-of select=
=3D"ascOrDesc" />;
- i++;
- </xsl:for-each>
- var inputValuesOrder;
- inputValuesOrder =3D new InputValues(selectOption1ArrayO=
rder,selectOption2ArrayOrder,null);
- =20
////////////////////////
//The form
var formArray =3D new Array();
@@ -90,6 +63,141 @@
</xsl:if>
//alert(Form.GetOptionString(0));
=20
+ //Filters =20
+ var selectOption0ArrayFilter =3D new Array();
+ var selectOption1ArrayFilter =3D new Array();
+ var inputTagValuesArrayFilter =3D new Array();
+ =20
+ var i=3D0;
+ <xsl:for-each select=3D"/report/reportDatas/reportParams=
/conditions/condition">
+ selectOption0ArrayFilter[i] =3D <xsl:value-of selec=
t=3D"idAtt" />;
+ selectOption1ArrayFilter[i] =3D <xsl:value-of selec=
t=3D"operator" />;
+ inputTagValuesArrayFilter[i] =3D <xsl:value-of sele=
ct=3D"value" />;
+ i++;
+ </xsl:for-each>
+ =20
+ function AttribsGetSelect0Arr(formArray,classId)
+ {
+ var lengthArray =3D formArray[classId].length;
+ //alert("lengthArray: " + lengthArray);
+ =20
+ var optionArray =3D new Array();
+ optionArray[0] =3D new Array();
+ optionArray[0]["value"] =3D "-1";
+ optionArray[0]["text"] =3D "--Nothing--"
+ for (var i =3D 0; i < lengthArray ;i++)=20
+ {
+ optionArray[i+1] =3D new Array(); //Begin to sec=
ond element
+ optionArray[i+1]["value"] =3D formArray[classId]=
[i]["value"];
+ optionArray[i+1]["text"] =3D formArray[classId]=
[i]["name"];
+ }
+ =20
+ return optionArray;
+ } =20
+ =20
+ function FilterGetSelect1Arr()
+ {
+ var optionArray =3D new Array();
+ =20
+ optionArray[0] =3D new Array();
+ optionArray[0]["value"] =3D "-1";
+ optionArray[0]["text"] =3D "--Nothing--";
+ optionArray[1] =3D new Array();
+ optionArray[1]["value"] =3D "0";
+ optionArray[1]["text"] =3D "GreaterOrEqualThan";
+ optionArray[2] =3D new Array();
+ optionArray[2]["value"] =3D "1";
+ optionArray[2]["text"] =3D "LessEqualThan";
+ optionArray[3] =3D new Array();
+ optionArray[3]["value"] =3D "2";
+ optionArray[3]["text"] =3D "GreaterThan";
+ optionArray[4] =3D new Array();
+ optionArray[4]["value"] =3D "3";
+ optionArray[4]["text"] =3D "LessThan";
+ optionArray[5] =3D new Array();
+ optionArray[5]["value"] =3D "4";
+ optionArray[5]["text"] =3D "EqualTo";
+ optionArray[6] =3D new Array();
+ optionArray[6]["value"] =3D "5";
+ optionArray[6]["text"] =3D "DistinctTo";
+ optionArray[7] =3D new Array();
+ optionArray[7]["value"] =3D "6";
+ optionArray[7]["text"] =3D "BeginWith";
+ optionArray[8] =3D new Array();
+ optionArray[8]["value"] =3D "7";
+ optionArray[8]["text"] =3D "ContainsTo";
+ optionArray[9] =3D new Array();
+ optionArray[9]["value"] =3D "8";
+ optionArray[9]["text"] =3D "In";
+ =20
+ return optionArray;
+ }
+ =20
+ <xsl:if test=3D"/report/reportDatas/classId!=3D''">
+ var InputLineParamsFilters =3D
+ {
+ type: 'TWOSELECTANDINPUT',
+ select0: AttribsGetSelect0Arr(formArray,<xsl:val=
ue-of select=3D"/report/reportDatas/classId" />),
+ select1: FilterGetSelect1Arr(),
+ lineTitle: 'Filter',
+ input0: '',
+ PreselectedInput0: inputTagValuesArrayFilter,
+ PreselectedSelect0: selectOption0ArrayFilter,
+ PreselectedSelect1: selectOption1ArrayFilter,
+ refName: 'expandFormFilter'
+ }
+ var InputLineFilters =3D new InputLine(InputLinePara=
msFilters);
+ </xsl:if>
+ =20
+ =20
+ //Order
+ var selectOption0ArrayOrder =3D new Array();
+ var selectOption1ArrayOrder =3D new Array();
+ var i=3D0;
+ <xsl:for-each select=3D"/report/reportDatas/reportParams=
/orders/order">
+ selectOption0ArrayOrder[i] =3D <xsl:value-of select=
=3D"idAtt" />;
+ selectOption1ArrayOrder[i] =3D <xsl:value-of select=
=3D"ascOrDesc" />;
+ i++;
+ </xsl:for-each>
+ =20
+ function OrderGetSelect1Arr()
+ {
+ var optionArray =3D new Array();
+ =20
+ optionArray[0] =3D new Array();
+ optionArray[0]["value"] =3D "-1";
+ optionArray[0]["text"] =3D "--Nothing--";
+ optionArray[1] =3D new Array();
+ optionArray[1]["value"] =3D "0";
+ optionArray[1]["text"] =3D "Asc";
+ optionArray[2] =3D new Array();
+ optionArray[2]["value"] =3D "1";
+ optionArray[2]["text"] =3D "Desc";
+ =20
+ return optionArray;
+ }
+ =20
+ <xsl:if test=3D"/report/reportDatas/classId!=3D''">
+ var InputLineParamsOrders =3D
+ {
+ type: 'TWOSELECT',
+ select0: AttribsGetSelect0Arr(formArray,<xsl:val=
ue-of select=3D"/report/reportDatas/classId" />),
+ select1: OrderGetSelect1Arr(),
+ lineTitle: 'Order',
+ input0: '',
+ PreselectedInput0: null,
+ PreselectedSelect0: selectOption0ArrayOrder,
+ PreselectedSelect1: selectOption1ArrayOrder,
+ refName: 'expandFormSort'
+ }
+ var InputLineOrders =3D new InputLine(InputLineParam=
sOrders);
+ </xsl:if>
+ =20
+ //var inputValuesOrder;
+ //inputValuesOrder =3D new InputValues(selectOption1Arra=
yOrder,selectOption2ArrayOrder,null);
+ =20
+ =20
+ =20
function recargar()
{
<![CDATA[
@@ -188,6 +296,7 @@
</xsl:for-each>
}
</script>
+ =20
<style type=3D"text/css">=20
=20
.s { font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000=
; font-size:10pt}
@@ -315,13 +424,10 @@
</table>
<script language=3D"Javascript">
var divFilter =3D GetNodeByT=
agNameAndAttName("div","Filter")[0];
- var expandFormFilter =3D new=
ExpandForm("expandFormFilter",
- =
divFilter,
- =
true,
- =
Form.GetFilterArray(1),
- =
Form.GetFilterArray(2),
- =
"Filter",
- =
inputValuesFilter);
+ var expandFormFilter =3D new=
ExpandForm( "expandFormFilter",
+ =
divFilter,
+ =
"Filter",
+ =
InputLineFilters);
</script>
</td>
</tr>
@@ -443,11 +549,13 @@
var divSort =3D GetNodeByTag=
NameAndAttName("div","Sort")[0];
var expandFormSort =3D new E=
xpandForm("expandFormSort",
=
divSort,
- =
false,
- =
Form.GetSortArray(1),
- =
Form.GetSortArray(2),
=
"Order",
- =
inputValuesOrder);
+ =
InputLineOrders);
+ =
=20
+ =
var expandFormFilter =3D new ExpandForm( "expandFormFilter",
+ =
divFilter,
+ =
"Filter",
+ =
InputLineFilters);
</script>
</td>
</tr>
@@ -460,7 +568,7 @@
<table width=3D"100%" border=3D"0" cellSpacing=3D"0" cellPadding=
=3D"0">
<tr>
<td width=3D"100%" colspan=3D"2">
- <div class=3D"lev1divider"><IMG height=3D"9" src=3D"clear2x2.=
gif" width=3D"100%"/></div>
+ <div class=3D"lev1divider"><img height=3D"9" src=3D"clear2x2.=
gif" width=3D"100%"/></div>
</td>
</tr>
</table>
|
|
From: <sv...@de...> - 2005-05-19 16:58:23
|
Author: marijn
Date: 2005-05-19 12:58:18 -0400 (Thu, 19 May 2005)
New Revision: 1098
Modified:
humano2/trunk/web/builder/site/js/fn_formsmng.js
Log:
* Can now create a folder with no content.
* Fixed message when forgetting to set the folder name.
Modified: humano2/trunk/web/builder/site/js/fn_formsmng.js
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/js/fn_formsmng.js 2005-05-19 13:18:22 =
UTC (rev 1097)
+++ humano2/trunk/web/builder/site/js/fn_formsmng.js 2005-05-19 16:58:18 =
UTC (rev 1098)
@@ -34,13 +34,9 @@
=20
if (frm.formName.value =3D=3D "")
{
- strError +=3D "Error, you must insert the Form Name\n";
+ strError +=3D "Error, you must insert a name.\n";
}
=20
- if(rightColumn.fSortedList.Length() =3D=3D 0)
- {
- strError +=3D "Error, you must define wish field's you want =
display\n";
- }
frm.LstAttrib.value =3D "";
=20
for( var i =3D 0;i < rightColumn.fSortedList.Length();i++)
@@ -90,4 +86,4 @@
frm.folderparentid.value =3D parentid;
}
//alert(frm.folderparent.options[pos].value); =20
- } =20
\ No newline at end of file
+ } =20
|
|
From: <sv...@de...> - 2005-05-19 13:18:29
|
Author: svera
Date: 2005-05-19 09:18:22 -0400 (Thu, 19 May 2005)
New Revision: 1097
Modified:
humano2/trunk/components/webTools/Adapter.cs
Log:
* modified for paging
Modified: humano2/trunk/components/webTools/Adapter.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/webTools/Adapter.cs 2005-05-19 12:39:27 UTC =
(rev 1096)
+++ humano2/trunk/components/webTools/Adapter.cs 2005-05-19 13:18:22 UTC =
(rev 1097)
@@ -377,33 +377,32 @@
vtTable.Rows[0]["order"] =3D order; // Set the order with which are=
recovered the values.
}
=09
-
if(page !=3D 0)=20
{ =20
Logger.Log("ExecViewFromDataTable: page: " + page , LogLevel.Trace)=
;
=20
-// vt.Page =3D 1; // Do Pageing
-// //vt.RowsView =3D 20; // Number of rows per page.
-// vt.RowsView =3D 2; // Number of rows per page.
-// vt.PageView =3D page; // Set the current page
+ vt.Page =3D 1; // Do Pageing
+ vt.RowsView =3D 20; // Number of rows per page.
+ //vt.RowsView =3D 2; // Number of rows per page.
+ vt.PageView =3D page; // Set the current page
}
Logger.Log("ExecViewFromDataTable: vtTable.Rows[0][\"order\"=
]=3D " + vtTable.Rows[0]["order"],LogLevel.Trace);
DataTable viewInstancesData =3D new DataTable();
=20
// Ejecuta el ViewTools y traye todos los valores en un dataTable.
viewInstancesData =3D vt.GetSQLDataTable(vtTable);
- /*
+ =09
int TotalRecord =3D vt.TotalRecordCount;
if(vt.TotalRecordCount !=3D 0)=20
{
- numberOfPagesInPagedView =3D vt.TotalRecordCount / vt.RowsView;
+ numberOfPagesInPagedView =3D vt.TotalRecordCount / vt.RowsView;
if ((vt.RowsView*numberOfPagesInPagedView)<TotalRecord){
numberOfPagesInPagedView++;
}
- Logger.Log("ExecViewFromDataTable: numberOfPagesInPagedView : " + n=
umberOfPagesInPagedView, LogLevel.Trace);
+ Logger.Log("ExecViewFromDataTable: numberOfPagesInPagedView : " + nu=
mberOfPagesInPagedView, LogLevel.Trace);
}
- */
=20
+ =20
//This call has been removed because the change from sysname=
to name is now made
// in viewmain.aspx.cs: createXml to allow to know if an att=
ribute is primary (with its sysName that is unique)
// Change attSysName to attName to be nicer to the users
|
|
From: <sv...@de...> - 2005-05-19 12:39:31
|
Author: svera
Date: 2005-05-19 08:39:27 -0400 (Thu, 19 May 2005)
New Revision: 1096
Modified:
humano2/trunk/web/portal/site/showView.aspx.cs
Log:
* File modified for paging
Modified: humano2/trunk/web/portal/site/showView.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/portal/site/showView.aspx.cs 2005-05-19 12:38:16 UT=
C (rev 1095)
+++ humano2/trunk/web/portal/site/showView.aspx.cs 2005-05-19 12:39:27 UT=
C (rev 1096)
@@ -40,6 +40,8 @@
protected System.Web.UI.WebControls.DataGrid DataGrid1;
protected System.Web.UI.WebControls.RadioButtonList rblSeparador;
int iniClass;
+ bool nextPage =3D false;
+ bool prevPage =3D false;
/// <summary>
/// Creates an xml with all needed data.=20
/// Then an xsl file will process this xml to produce the output
@@ -97,7 +99,11 @@
DataTable viewRes =3D dbAdapter.ExecViewFromDataTable(iniCla=
ss, viewTable, idEntity, orderArr, currPage, 1);
=20
int pageCount=3D dbAdapter.NumberOfPagesInPagedView;
- =20
+ if (pageCount > 1)
+ {
+ nextPage =3D true;
+ prevPage =3D true;
+ }
//Logger.Log("showView pageCount: POST NumberOfPagesInPagedV=
iew: " + pageCount, LogLevel.Trace);
=20
//computes the url for each instance and put it in the table
@@ -140,13 +146,15 @@
xmlString +=3D "<recordCount>" + pageCount + "</recordCount>=
";
xmlString +=3D "<id_entity>" + idEntity + "</id_entity>";
xmlString +=3D "<classId>" + iniClass + "</classId>";
+ xmlString +=3D "<nextPage>" + nextPage + "</nextPage>";
+ xmlString +=3D "<prevPage>" + prevPage + "</prevPage>";
xmlString +=3D "</infoView>";
=09
xmlString +=3D "</instances>";
=20
=20
- //Add the header
- xmlString =3D "<?xml version=3D\"1.0\" encoding=3D\"UTF-8 =
\"?>"
+ //Add the header
+ xmlString =3D "<?xml version=3D\"1.0\" encoding=3D\"UTF-8\=
"?>"
+ "<?xml-stylesheet type=3D\"text/xsl\" href=3D\=
"xsl/showview.xsl\"?>"=20
+ xmlString;
=20
|
|
From: <sv...@de...> - 2005-05-19 12:38:22
|
Author: svera
Date: 2005-05-19 08:38:16 -0400 (Thu, 19 May 2005)
New Revision: 1095
Modified:
humano2/trunk/web/portal/site/Data_structured.aspx.cs
Log:
* File modified for paging
Modified: humano2/trunk/web/portal/site/Data_structured.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/portal/site/Data_structured.aspx.cs 2005-05-19 12:3=
4:59 UTC (rev 1094)
+++ humano2/trunk/web/portal/site/Data_structured.aspx.cs 2005-05-19 12:3=
8:16 UTC (rev 1095)
@@ -19,24 +19,7 @@
/// Summary description for Data_structured.
/// </summary>
public class Data_structured : basePage
- {
- /*
- protected System.Web.UI.WebControls.Label Label1;
- protected System.Web.UI.WebControls.Label Label2;
- protected System.Web.UI.WebControls.Label Label3;
- protected System.Web.UI.WebControls.Label Label4;
- protected System.Web.UI.WebControls.Label Label5;
- */
-
- //Don't use this to transmit data to the aspx page. For security=
reasons
- // Mono forbbides it.
- =20
- //protected System.Web.UI.WebControls.Literal Var_id_entity;
- //protected System.Web.UI.WebControls.Literal Var_display;
- //protected System.Web.UI.WebControls.Literal Var_action;
- //protected System.Web.UI.WebControls.Literal Var_classId;
- //
- =20
+ { =20
private string id_entity;
private string display;
private string action;
@@ -45,11 +28,15 @@
private string Param;
private string idView;
private string formsId;
+ private int nextPage;
+ private int prevPage;
private int Label1;
private int Label2;
private int Label3;
private int Label4;
private int Label5; =09
+ private string antPage =3D "true";
+ private string sigPage =3D "true";
=09
private void Page_Load(object sender, System.EventArgs e)
{
@@ -61,8 +48,17 @@
textToSearch =3D Request.QueryString["textToSearch"]+"";
formsId =3D Request.QueryString["formsId"]+"";
Param =3D Request.ServerVariables["QUERY_STRING"];
+ nextPage =3D Convert.ToInt32(Request["nextpage"]);
+ prevPage =3D Convert.ToInt32(Request["prevpage"]);
+ if (nextPage > 0)
+ {
+ sigPage=3D "true";
+ }
+ if (prevPage > 0)
+ {
+ antPage=3D "true";
+ }
=20
-
if (idView.Trim()=3D=3D"")
{
idView =3D id_entity;
@@ -81,53 +77,31 @@
Label4=3D0;
Label5=3D0;
=20
- //Label1.Visible=3Dfalse;
- //Label2.Visible=3Dfalse;
- //Label3.Visible=3Dfalse;
-
Logger.Log("After",LogLevel.Trace);
=20
if (action.Trim()!=3D"") //View
{
if (action.Trim()=3D=3D"read")
{=20
- //Label1.Visible=3Dtrue;
- //Label2.Visible=3Dtrue;
- //Label5.Visible=3Dtrue;
Label2=3D1;
Label5=3D1;
- //Label3=3D1;
}
=09
if (action.Trim()=3D=3D"update" || action.Trim()=3D=3D"create")
{=20
- //Label3.Visible=3Dtrue;
Label3=3D1;
if (action.Trim()=3D=3D"update")
{
- //Label5.Visible=3Dtrue;
Label5=3D1;
}
}
=20
}
else{ //ShowView
- //Label1.Visible=3Dtrue;
- //Label4.Visible=3Dtrue;
- //Label5.Visible=3Dtrue;
Label1=3D1;
Label4=3D1;
Label5=3D1;
}
- =20
- //Don't use this to transmit data to the aspx page. For secu=
rity reasons
- // Mono forbbides it.
- /*
- Var_id_entity.Text=3Did_entity;
- Var_display.Text=3Ddisplay;
- Var_action.Text=3Daction;
- Var_classId.Text=3DclassId;
- */
}
=20
override protected string createXml()
@@ -143,6 +117,8 @@
strXml +=3D "<textToSearch>" + textToSearch + "</textToSearch>"=
; =20
strXml +=3D "<Param><![CDATA[" + Param + "]]></Param>"; =20
strXml +=3D "<formsId><![CDATA[" + formsId + "]]></formsId>"; =20
+ strXml +=3D "<prevPage>" + antPage + "</prevPage>"; =20
+ strXml +=3D "<nextPage>" + sigPage + "</nextPage>"; =20
=20
adapter dbAdapter =3D userCred.CoreAdapter;
=20
|
|
From: <sv...@de...> - 2005-05-19 12:35:10
|
Author: svera
Date: 2005-05-19 08:34:59 -0400 (Thu, 19 May 2005)
New Revision: 1094
Modified:
humano2/trunk/web/portal/site/xsl/showview.xsl
Log:
* File more clean
Modified: humano2/trunk/web/portal/site/xsl/showview.xsl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/portal/site/xsl/showview.xsl 2005-05-19 12:33:59 UT=
C (rev 1093)
+++ humano2/trunk/web/portal/site/xsl/showview.xsl 2005-05-19 12:34:59 UT=
C (rev 1094)
@@ -155,9 +155,6 @@
padding-left: 10px;
}
=20
-
-
-
</style>
<xsl:variable name=3D"RowCount" select=3D"count(/instances/instance)"/=
>
<xsl:variable name=3D"FieldCount" select=3D"count(/instances/attribute=
s/attribute/value)"/>
@@ -166,7 +163,8 @@
<xsl:variable name=3D"order" select=3D"/instances/infoView/order"/>
<xsl:variable name=3D"idEntity" select=3D"/instances/infoView/id_entit=
y"/>
<xsl:variable name=3D"classId" select=3D"/instances/infoView/classId"/=
>
-
+ <xsl:variable name=3D"nextPage" select=3D"/instances/infoView/nextPage=
"/>
+ <xsl:variable name=3D"prevPage" select=3D"/instances/infoView/prevPage=
"/>
<xsl:choose>
<xsl:when test=3D"$RowCount > 0 ">
<table width=3D"100%" border=3D"0" cellspacing=3D"0" cellpadding=3D=
"0">
@@ -196,12 +194,10 @@
<td id=3D"RowTd{position()}" width=3D"9%" class=3D"celcontlist=
Sel1">
<input type=3D"checkbox" name=3D"intEntityId" value=3D"{$id_e=
ntity}" onClick=3D"CCA(this,'RowTd{$pos}')" onblur=3D"CCA(this,'RowTd{$po=
s}')"/>
</td>
- =09
<xsl:variable name=3D"IdRead" select=3D"value[position()=3D 1]=
/IdRead"/>
<xsl:for-each select=3D"value">
<xsl:variable name=3D"pos1" select=3D"position()-1"/>
<xsl:if test=3D"show =3D'1'">
- =09
<td class=3D"celcontlistSel1" id=3D"RowTd{$pos}">
<xsl:variable name=3D"idurl">
<xsl:choose>
@@ -213,16 +209,15 @@
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
-
<xsl:if test=3D"text !=3D ''">
<font size=3D"1" face=3D"Verdana, Arial, Helvetica, sans=
-serif">
<xsl:choose>
<xsl:when test=3D"isPrimary=3D'true'">
- =09
<a href=3D"Data_structured.aspx?id_entity=3D{$idurl}&a=
mp;display=3DreadXslt.aspx&&iniClass=3D{/instances/infoView/class=
Id}&idView=3D{/instances/infoView/id_entity}&action=3Dread&fo=
rmsId=3D{$IdRead}" target=3D"mainFrame"><xsl:value-of select=3D"text"/></=
a>=09
</xsl:when>
<xsl:when test=3D"isSelfLookup=3D'true'">
- <a href=3D"Data_structured.aspx?id_entity=3D{$idurl}&a=
mp;display=3DreadXslt.aspx&action=3Dread&iniClass=3D{/instances/i=
nfoView/classId}&formsId=3D{$IdRead}" target=3D"mainFrame"><xsl:value=
-of select=3D"text"/></a>=09
+ <a href=3D"Data_structured.aspx?id_entity=3D{$idurl}&a=
mp;display=3DreadXslt.aspx&action=3Dread&iniClass=3D{/instances/i=
nfoView/classId}&formsId=3D{$IdRead}" target=3D"mainFrame">
+ <xsl:value-of select=3D"text"/></a>=09
</xsl:when>
<xsl:otherwise> =09
<xsl:value-of select=3D"text"/>=09
@@ -241,83 +236,22 @@
</xsl:for-each>
</table>
<table id=3D"toolbar" cellspacing=3D"0" cellpadding=3D"0" valign=3D=
"center"><tr><td align=3D"center">
-
- <!-- <a href=3D"#" onclick=3D"gotoPage({$currentPageNr}-1, {$recor=
dCount})">Previous</a>
- Page <xsl:value-of select=3D"$currentPageNr"/> of <xsl:value-of s=
elect=3D"$recordCount"/>
- <a href=3D"#" onclick=3D"gotoPage({$currentPageNr}+1, {$recordCou=
nt})">Next</a>
- =09
- Goto Page <input type=3D"text" name=3D"gotoPageNumber" value=3D"{=
$currentPageNr}" size=3D"3" />=20
- <input type=3D"button" value=3D"Go" size=3D"3" onclick=3D"gotoPag=
e(form.gotoPageNumber.value, {$recordCount})"/> -->
-
<input type=3D"hidden" name=3D"currentPageNr" value=3D"{$currentP=
ageNr}" />=20
<input type=3D"hidden" name=3D"order" value=3D"{$order}" />=20
<input type=3D"hidden" name=3D"recordCount" value=3D"{$recordCoun=
t}" />=20
<input type=3D"hidden" name=3D"id_entity" value=3D"{$idEntity}" /=
>=20
<input type=3D"hidden" name=3D"classId" value=3D"{$classId}" />=20
</td></tr></table>
- =09
</xsl:when>
<xsl:when test=3D"$RowCount =3D 0 ">
<table width=3D"100%" border=3D"0" cellspacing=3D"0" cellpadding=3D=
"0">
<tr bgcolor=3D"#FFFFFF">
<td class=3D"topcenter-tables2">
- No Existen resultados para esta consulta.
+ There's no result's for this query.
</td>
</tr>
</table>=09
</xsl:when>
</xsl:choose>
-=09
- <!--
- <center>
- <table class=3D"mainTable">
- <tr class=3D"headerLine"> =20
- <td />
- <td />
- <xsl:for-each select=3D"/instances/a=
ttributes/attribute/value">
- <td>
- <xsl:value-of select=
=3D"."/>
- </td>
- </xsl:for-each>
- </tr>
- <xsl:for-each select=3D"/instances/instance"=
>
- <tr class=3D"line">
- <td>
- <input type=3D"checkbox" ></inpu=
t>
- </td>
- <td>
- <a>
- <xsl:attribute name=3D"href"=
>
- <xsl:value-of select=3D"=
url/update"/>
- </xsl:attribute>
- <xsl:attribute name=3D"targe=
t">
- <xsl:value-of select=3D"=
'mainFrame'"/>
- </xsl:attribute>
- Update
- </a>
- </td>
- <xsl:for-each select=3D"value">
- <td>
- <xsl:if test=3D"isPrimar=
y =3D 'true'">
- <a>
- <xsl:attribute n=
ame=3D"href">
- <xsl:value-o=
f select=3D"../url/show"/>
- </xsl:attribute>
- <xsl:attribute name=3D"target">
- <xsl:value-of select=3D"'mainFrame'"/>
- </xsl:attribute>
- <xsl:value-of se=
lect=3D"text" />
- </a>
- </xsl:if>
- <xsl:if test=3D"isPrimar=
y !=3D 'true'">
- <xsl:value-of select=
=3D"text" />
- </xsl:if>
- </td>
- </xsl:for-each>
- </tr>
- </xsl:for-each>
- </table>
- </center>
- -->
</xsl:template>
-</xsl:stylesheet>
+</xsl:stylesheet>
\ No newline at end of file
|
|
From: <sv...@de...> - 2005-05-19 12:34:09
|
Author: svera
Date: 2005-05-19 08:33:59 -0400 (Thu, 19 May 2005)
New Revision: 1093
Modified:
humano2/trunk/web/portal/site/xsl/data_structured.xsl
Log:
* Fix for paging
Modified: humano2/trunk/web/portal/site/xsl/data_structured.xsl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/portal/site/xsl/data_structured.xsl 2005-05-18 21:1=
5:05 UTC (rev 1092)
+++ humano2/trunk/web/portal/site/xsl/data_structured.xsl 2005-05-19 12:3=
3:59 UTC (rev 1093)
@@ -90,12 +90,16 @@
<table valign=3D"center" cellspacing=3D"0" cellpadding=3D"0">
<tr>
<td height=3D"25" align=3D"center" class=3D"Texto">
- <span>
- <a href=3D"javascript:prevPage()" class=3D"links-bold">Previous=
</a>
- Page <font id=3D"IntActual">1</font> de <font id=3D"CantR=
egBottom">0</font>=20
- <a href=3D"javascript:nextPage()" class=3D"links-bold">=
next</a></span>
- <span>Goto Page <input type=3D"text" name=3D"textfield" size=3D=
"1" class=3D"input"/>
- <input type=3D"button" name=3D"btn_ok" value=3D"OK" cl=
ass=3D"input" onclick=3D"javascript:gotoPage(document.formulario.textfiel=
d.value)"/></span>
+ <xsl:if test=3D"page/prevPage=3D'true'">
+ <a href=3D"javascript:prevPage()" class=3D"links-bold">previous=
</a>
+ </xsl:if>
+ page <font id=3D"IntActual">1</font> of <font id=3D"CantR=
egBottom">0</font>=C2=A0
+ <xsl:if test=3D"page/nextPage=3D'true'">
+ <a href=3D"javascript:nextPage()" class=3D"links-bold">=
next</a>
+ </xsl:if>
+ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Go to page=C2=A0
+ <input type=3D"text" name=3D"textfield" size=3D"1" class=3D"inp=
ut"/>=C2=A0
+ <input type=3D"button" name=3D"btn_ok" value=3D"OK" cl=
ass=3D"input" onclick=3D"javascript:gotoPage(document.formulario.textfiel=
d.value)"/>
</td>
</tr>
</table>
|
|
From: <sv...@de...> - 2005-05-18 21:15:20
|
Author: svera
Date: 2005-05-18 17:15:05 -0400 (Wed, 18 May 2005)
New Revision: 1092
Modified:
humano2/trunk/web/builder/site/foldermanagement.aspx.cs
humano2/trunk/web/builder/site/formmanagement.aspx.cs
Log:
* Fix some problem's with the rigth's element in the select box.
Modified: humano2/trunk/web/builder/site/foldermanagement.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/foldermanagement.aspx.cs 2005-05-18 20=
:16:37 UTC (rev 1091)
+++ humano2/trunk/web/builder/site/foldermanagement.aspx.cs 2005-05-18 21=
:15:05 UTC (rev 1092)
@@ -234,10 +234,18 @@
{
foreach(DataRow row in dtResult.Rows)
{
- strAttrLeft +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fals=
e),",row["id_entity"],row[1]);
+ if (strAttrLeft.Length > 0)
+ {
+ strAttrLeft +=3D ",";
+ }
+ strAttrLeft +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fals=
e)",row["id_entity"],row[1]);
if (countElement < 4)
{
- strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse),",row["id_entity"],row[1]);
+ if(strAttrRigth.Length > 0)
+ {
+ strAttrRigth +=3D ",";
+ }
+ strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse)",row["id_entity"],row[1]);
}
countElement++;
}
@@ -253,10 +261,18 @@
foreach(DataRow row in dtResult.Rows)
{
strText =3D String.Format("{0}[{1}]",row[1],prevText);
- strAttrLeft +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fals=
e),",row["id_entity"],strText);
+ if(strAttrLeft.Length > 0)
+ {
+ strAttrLeft +=3D ",";
+ }
+ strAttrLeft +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fals=
e)",row["id_entity"],strText);
if (countElement < 4)
{
- strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse),",row["id_entity"],strText);
+ if(strAttrRigth.Length > 0)
+ {
+ strAttrRigth +=3D ",";
+ }
+ strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse)",row["id_entity"],strText);
}
countElement++;
}
@@ -314,7 +330,11 @@
if(flag =3D=3D 1)
{
string rigthText =3D String.Format("{0}[{1}]",row[1],strText);
- strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse),",row["id_entity"],rigthText);
+ if(strAttrRigth.Length > 0)
+ {
+ strAttrRigth +=3D ",";
+ }
+ strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse)",row["id_entity"],rigthText);
}
}
dtResult =3D null;
@@ -329,11 +349,13 @@
if (strAttrLeft.Length > 0)
{
Response.Write(strAttrLeft);
+ return;
}
}else{
if(strAttrRigth.Length > 0)
{
Response.Write(strAttrRigth);
+ return;
}
}
=20
Modified: humano2/trunk/web/builder/site/formmanagement.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/formmanagement.aspx.cs 2005-05-18 20:1=
6:37 UTC (rev 1091)
+++ humano2/trunk/web/builder/site/formmanagement.aspx.cs 2005-05-18 21:1=
5:05 UTC (rev 1092)
@@ -182,10 +182,18 @@
int count =3D 1;
foreach(DataRow row in dtResult.Rows)
{
- strAttrLeft +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fals=
e),",row["id_entity"],row["attName"]);
+ if(strAttrLeft.Length > 0)
+ {
+ strAttrLeft +=3D ",";
+ }
+ strAttrLeft +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fals=
e)",row["id_entity"],row["attName"]);
if (count < 4)
{
- strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse),",row["id_entity"],row["attName"]);
+ if (strAttrRigth.Length > 0)
+ {
+ strAttrRigth +=3D ",";
+ }
+ strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse)",row["id_entity"],row["attName"]);
}
count++;
}
@@ -223,7 +231,11 @@
}
if(flag =3D=3D 1)
{
- strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse),",row["id_entity"],row["attName"]);
+ if(strAttrRigth.Length > 0)
+ {
+ strAttrRigth +=3D ",";
+ }
+ strAttrRigth +=3D String.Format("new ListElement(\"{1}\",\"{0}\",fa=
lse)",row["id_entity"],row["attName"]);
}
}
}
@@ -237,11 +249,13 @@
if (strAttrLeft.Length > 0)
{
Response.Write(strAttrLeft);
+ return;
}
}else{
if(strAttrRigth.Length > 0)
{
Response.Write(strAttrRigth);
+ return;
}
}
=20
|
|
From: <sv...@de...> - 2005-05-18 20:16:40
|
Author: pcamacho
Date: 2005-05-18 16:16:37 -0400 (Wed, 18 May 2005)
New Revision: 1091
Modified:
humano2/trunk/web/builder/site/createreport.aspx.cs
humano2/trunk/web/builder/site/functionclasses.aspx.cs
humano2/trunk/web/builder/site/xsl/functionindex.xsl
Log:
ADD: in builder, the reports appears ready for editing in the function tr=
ee as views,folders and forms.
Modified: humano2/trunk/web/builder/site/createreport.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/createreport.aspx.cs 2005-05-18 19:48:=
18 UTC (rev 1090)
+++ humano2/trunk/web/builder/site/createreport.aspx.cs 2005-05-18 20:16:=
37 UTC (rev 1091)
@@ -612,14 +612,11 @@
salida +=3D "<id>" + idatt + "^" + row2["id_entity"].ToString() + =
"</id>";
salida +=3D "<name>" + className + "." + attName + "</name>";
salida +=3D "</attribute>";
-
}
salida +=3D "</attributes>";
salida +=3D "</class>";
}
-
}
- =09
return salida;
}
=20
@@ -638,7 +635,6 @@
=20
dr["columna"] =3D "0";
=20
-
//Explicacion de los filtros...
//atributo 67|4|'true' =3D> isPrimary=3D'true'
//atributo 40|4|idClass =3D> classId=3DidClass
Modified: humano2/trunk/web/builder/site/functionclasses.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/functionclasses.aspx.cs 2005-05-18 19:=
48:18 UTC (rev 1090)
+++ humano2/trunk/web/builder/site/functionclasses.aspx.cs 2005-05-18 20:=
16:37 UTC (rev 1091)
@@ -61,11 +61,12 @@
override protected string createXml()
{
string xmlString =3D "";
- xmlString +=3D "<vff>"; //views folders forms
+ xmlString +=3D "<vffr>"; //views folders forms
xmlString +=3D getViewsXml();
xmlString +=3D getFolders();
xmlString +=3D getForms();
- xmlString +=3D "</vff>";
+ xmlString +=3D getReports();
+ xmlString +=3D "</vffr>";
=20
//Add the header
xmlString =3D "<?xml version=3D\"1.0\" encoding=3D\"UTF-8 =
\"?>"
@@ -145,6 +146,26 @@
return xmlString;
}
=20
+ private string getReports()
+ {
+ adapter dbAdapter =3D userCred.CoreAdapter;
+ DataTable DTReport =3D dbAdapter.GenerateViewTools(1300,"0,1=
307","","","","",0);
+ =20
+ string xmlString =3D "";
+ =20
+ xmlString +=3D "<reports>";
+ foreach(DataRow Dr in DTReport.Rows)=20
+ {
+ xmlString +=3D "<report>";
+ xmlString +=3D "<id>" + Dr["id_entity"] + "</id>";
+ xmlString +=3D "<name>" + Dr["reportName"] + "</name>=
";
+ xmlString +=3D "</report>";
+ }
+ xmlString +=3D "</reports>"; =20
+ =20
+ return xmlString;
+ }
+ =20
override protected void OnInit(EventArgs e)
{
InitializeComponent();
Modified: humano2/trunk/web/builder/site/xsl/functionindex.xsl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/xsl/functionindex.xsl 2005-05-18 19:48=
:18 UTC (rev 1090)
+++ humano2/trunk/web/builder/site/xsl/functionindex.xsl 2005-05-18 20:16=
:37 UTC (rev 1091)
@@ -48,7 +48,7 @@
//Views
var viewBranch =3D new WebFXTreeItem('Views',action)=
;
tree.add(viewBranch);
- <xsl:for-each select=3D"vff/views/view">
+ <xsl:for-each select=3D"vffr/views/view">
var titleLink =3D '<xsl:value-of select=3D"name"=
/>';
var contentLink =3D 'viewmain.aspx?viewId=3D<xsl=
:value-of select=3D"id" />';
viewBranch.add(new WebFXTreeItem(titleLink,conte=
ntLink,'','img/webfxtree/view.jpeg'));
@@ -57,7 +57,7 @@
//Folders
var folderBranch =3D new WebFXTreeItem('Folders',act=
ion);
tree.add(folderBranch);
- <xsl:for-each select=3D"/vff/folders/folder">
+ <xsl:for-each select=3D"/vffr/folders/folder">
var titleLink =3D '<xsl:value-of select=3D"name"=
/>';
var contentLink =3D 'foldermanagement.aspx?folde=
rId=3D<xsl:value-of select=3D"id" />&opaction=3D2';
folderBranch.add(new WebFXTreeItem(titleLink,con=
tentLink,'','img/webfxtree/view.jpeg'));
@@ -66,13 +66,31 @@
//Forms
var formBranch =3D new WebFXTreeItem('Forms',action)=
;
tree.add(formBranch);
- <xsl:for-each select=3D"/vff/forms/form">
+ <xsl:for-each select=3D"/vffr/forms/form">
<xsl:if test=3D"id!=3D''">
- var child_<xsl:value-of select=3D"id" /> =3D new=
WebFXTreeItem('<xsl:value-of select=3D"name" />','formmanagement.aspx?fo=
rmid=3D<xsl:value-of select=3D"id" />&classId=3D<xsl:value-of select=3D=
"classId" />&opaction=3D2','','img/webfxtree/view.jpeg');
+ var child_<xsl:value-of select=3D"id" /> =3D new=
WebFXTreeItem('<xsl:value-of select=3D"name" />',
+ =
'formmanagement.aspx?formid=3D<xsl:value-of select=3D"id" />&=
amp;classId=3D<xsl:value-of select=3D"classId" />&opaction=3D2',
+ =
'',
+ =
'img/webfxtree/view.jpeg');
formBranch.add(child_<xsl:value-of select=3D"id"=
/>);
</xsl:if> =09
</xsl:for-each>=09
=20
+ =20
+ //Reports
+ var reportBranch =3D new WebFXTreeItem('Reports',act=
ion);
+ tree.add(reportBranch);
+ <xsl:for-each select=3D"/vffr/reports/report">
+ <xsl:if test=3D"id!=3D''">
+ var child_<xsl:value-of select=3D"id" /> =3D new=
WebFXTreeItem('<xsl:value-of select=3D"name" />',
+ =
'createreport.aspx?reportId=3D<xsl:value-of select=3D"id" />',
+ =
'',
+ =
'img/webfxtree/view.jpeg');
+ reportBranch.add(child_<xsl:value-of select=3D"i=
d"/>);
+ </xsl:if> =09
+ </xsl:for-each>=09
+ =20
+ =20
//Write all tree
document.write(tree);
</script>
|
Author: pcamacho
Date: 2005-05-18 15:48:18 -0400 (Wed, 18 May 2005)
New Revision: 1090
Added:
humano2/trunk/web/builder/site/createreport.aspx
humano2/trunk/web/builder/site/createreport.aspx.cs
humano2/trunk/web/builder/site/js/formreport.js
humano2/trunk/web/builder/site/js/formview.js
humano2/trunk/web/builder/site/js/grafcomponents/expandformreport.js
humano2/trunk/web/builder/site/xsl/createreport.xsl
Removed:
humano2/trunk/web/builder/site/js/form.js
Modified:
humano2/trunk/components/webTools/Adapter.cs
humano2/trunk/core/db/absComplex.cs
humano2/trunk/core/db/consts.cs
humano2/trunk/core/db/mssql/mssqlComplex.cs
humano2/trunk/core/db/pgsql/pgsqlComplex.cs
humano2/trunk/web/builder/site/functionoperationbar.aspx
humano2/trunk/web/builder/site/js/grafcomponents/expandform.js
humano2/trunk/web/builder/site/xsl/createview.xsl
humano2/trunk/web/portal/site/readXslt.aspx
Log:
ADD: First step for creation of reports. The interface is for now the sam=
e as views but the datas are saved in the=20
table report.
Modified: humano2/trunk/components/webTools/Adapter.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/webTools/Adapter.cs 2005-05-18 19:23:33 UTC =
(rev 1089)
+++ humano2/trunk/components/webTools/Adapter.cs 2005-05-18 19:48:18 UTC =
(rev 1090)
@@ -1310,6 +1310,7 @@
=20
return crud.Create(classId, formTable);=09
}
+ =20
=09
///<summary>Updates values for a class instance</summary>
///<remarks>better to do this seperately so we can better control what=
get's changed.</remarks>
@@ -1376,6 +1377,16 @@
=09
return cId;
}
+ =20
+ public int CreateReport(DataTable reportTable, SessionCredencial=
cred)
+ {
+ crud.Domain =3D cred.DomainIds[cred.CurrentDomainIndex];
+ Logger.Log("******** CreateReport ***********",LogLevel.Trace);
+ int cId =3D crud.Create((int) ReportConsts.ReportClass, reportTable);
+ =09
+ return cId;
+ }
+ =20
=20
///<summary>Marks an instance as deleted.</summary>
public void DeleteInstance(int instanceId, SessionCredencial cred)
@@ -1663,6 +1674,11 @@
{
return complex.GetViewData(viewId);
}
+ =20
+ public DataTable GetReportData(int reportId)=20
+ {
+ return complex.GetReportData(reportId);
+ }
=09
private DataTable genTableFromAttributesAndData(NameValueCollection at=
tributeDict, NameValueCollection data)
{
Modified: humano2/trunk/core/db/absComplex.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/core/db/absComplex.cs 2005-05-18 19:23:33 UTC (rev 1089=
)
+++ humano2/trunk/core/db/absComplex.cs 2005-05-18 19:48:18 UTC (rev 1090=
)
@@ -192,6 +192,12 @@
///<returns>a datatable with the information about the view.</returns>
abstract public DataTable GetViewData(int viewId);
=20
+ ///<summary>Get the structure of a report.</summary>
+ ///<param name=3D"viewId">The id of the report.</param>
+ ///<returns>a datatable with the information about the report.</return=
s>
+ abstract public DataTable GetReportData(int reportId);
+ =09
+ =20
///<summary>gets all the formulas that are related to attribtes of =
a class</summary>
///<param name=3D"classId">The Id of fthe class</param>
///<returns>A dataTable with the ideas of the formulas.</returns>
Modified: humano2/trunk/core/db/consts.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/core/db/consts.cs 2005-05-18 19:23:33 UTC (rev 1089)
+++ humano2/trunk/core/db/consts.cs 2005-05-18 19:48:18 UTC (rev 1090)
@@ -54,6 +54,18 @@
Name =3D 1018,
}
=20
+ public enum ReportConsts: int
+ {
+ ReportClass =3D 1300,
+ Columns =3D 1301,
+ Where =3D 1302,
+ GroupBy =3D 1303,
+ Having =3D 1304,
+ Order =3D 1305,
+ Class =3D 1306,
+ Name =3D 1307,
+ }
+ =20
public enum FormulaConsts : int {
FormulaClass =3D 1001,
Formula =3D 1002,
Modified: humano2/trunk/core/db/mssql/mssqlComplex.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/core/db/mssql/mssqlComplex.cs 2005-05-18 19:23:33 UTC (=
rev 1089)
+++ humano2/trunk/core/db/mssql/mssqlComplex.cs 2005-05-18 19:48:18 UTC (=
rev 1090)
@@ -84,6 +84,14 @@
=20
return res; =09
}
+ =20
+ ///<summary>Get the structure of a report.</summary>
+ ///<param name=3D"viewId">The id of the report.</param>
+ ///<returns>a datatable with the information about the report.</return=
s>
+ public override DataTable GetReportData(int reportId)=20
+ {
+ return null;
+ }
=09
///<summary>gets all the formulas that are related to attribtes of =
a class</summary>
///<param name=3D"classId">The Id of fthe class</param>
Modified: humano2/trunk/core/db/pgsql/pgsqlComplex.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/core/db/pgsql/pgsqlComplex.cs 2005-05-18 19:23:33 UTC (=
rev 1089)
+++ humano2/trunk/core/db/pgsql/pgsqlComplex.cs 2005-05-18 19:48:18 UTC (=
rev 1090)
@@ -82,6 +82,17 @@
return res; =09
}
=09
+ ///<summary>Get the structure of a report.</summary>
+ ///<param name=3D"viewId">The id of the report.</param>
+ ///<returns>a datatable with the information about the report.</return=
s>
+ public override DataTable GetReportData(int reportId)=20
+ {
+ string query =3D "select id_entity, \"columns\", \"where\", \"groupby=
\", \"having\", \"order\", \"idClassReport\", \"reportName\" "+=20
+ "from \"report\" where id_entity =3D " + reportId;
+ DataTable res =3D this.doSelect(query);
+ return res; =09
+ }
+ =20
///<summary>gets all the formulas that are related to attribtes of =
a class</summary>
///<param name=3D"classId">The Id of fthe class</param>
///<returns>A dataTable with the ideas of the formulas.</returns>
Added: humano2/trunk/web/builder/site/createreport.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/createreport.aspx 2005-05-18 19:23:33 =
UTC (rev 1089)
+++ humano2/trunk/web/builder/site/createreport.aspx 2005-05-18 19:48:18 =
UTC (rev 1090)
@@ -0,0 +1,6 @@
+<%@ Page language=3D"c#" Codebehind=3D"createreport.aspx.cs" AutoEventWi=
reup=3D"false" Inherits=3D"Builder.site.CreateReport" %>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
+<% getContent("xsl/createreport.xsl"); %>
+<% //Response.Write(createXml());%>
+
+
Added: humano2/trunk/web/builder/site/createreport.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/createreport.aspx.cs 2005-05-18 19:23:=
33 UTC (rev 1089)
+++ humano2/trunk/web/builder/site/createreport.aspx.cs 2005-05-18 19:48:=
18 UTC (rev 1090)
@@ -0,0 +1,720 @@
+//
+// 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
+//
+//
+
+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;
+
+namespace Builder.site
+{
+ public class CreateReport : basePage
+ {=09
+ =20
+ private string reportName;
+ private int reportId;
+ private string delete;
+ =20
+ private string receivedCreateUpdate;
+ =20
+ //Update this variables when create=3Dtrue is passed in paramete=
r of page
+ private string receivedReportName;
+ private string receivedClassId;
+ private string receivedColumnsStr; =20
+ private string receivedWhereStr;
+ private string receivedOrderStr;
+ =20
+ private void Page_Load(object sender, System.EventArgs e)
+ {
+ reportId =3D Convert.ToInt32(Request["reportId"]);
+ delete =3D Request["delete"];
+ receivedCreateUpdate =3D Request["sendCreateUpdate"];
+ =20
+ Logger.Log("delete: " + delete, LogLevel.Trace);
+ Logger.Log("reportId: " + reportId, LogLevel.Trace);
+ Logger.Log("receivedCreateUpdate: " + receivedCreateUpdate, =
LogLevel.Trace);
+ =20
+ if (delete=3D=3D"true")
+ {
+ deleteReport();
+ return;
+ }
+ =20
+ if(receivedCreateUpdate =3D=3D "true")
+ {
+ ProcessCreationUpdate();
+ return;
+ } =20
+ }
+ =20
+ override protected string createXml()
+ {
+ =20
+ DataTable currReport =3D null;
+ Logger.Log("ReportMain: reportId =3D " + Convert.ToString(re=
portId),LogLevel.Trace);
+ if(reportId !=3D 0)
+ {
+ currReport =3D userCred.CoreAdapter.GetReportData(report=
Id);
+ reportName =3D Convert.ToString(currReport.Rows[0]["repo=
rtName"]);
+ }
+ else
+ {
+ reportName =3D ""; =20
+ }
+ =20
+ string strXml =3D "";
+ strXml +=3D "<report>";
+ strXml +=3D "<reportDatas>";
+ strXml +=3D "<id>";
+ strXml +=3D Convert.ToString(reportId);
+ strXml +=3D "</id>";
+ strXml +=3D String.Format("<name>{0}</name>",repor=
tName);
+ =20
+ //Put the classId if necessary
+ string classId;
+ string classidaux =3D Request["classList"];
+ =20
+ if(currReport !=3D null)
+ {
+ reportName =3D Convert.ToString(currReport.Rows[0]["reportName"]);
+ classId =3D Convert.ToString(Convert.ToInt32(currReport.Rows[0]["idC=
lassReport"]));
+ }
+ else if(classidaux!=3D"")
+ {
+ classId =3D Request["classList"];
+ }
+ else
+ {
+ classId =3D "0";
+ }
+ =20
+ if(reportId =3D=3D 0) //To create a report
+ {
+ strXml +=3D String.Format("<saveName>{0}</save=
Name>","Create");
+ strXml +=3D "<displayDeleteButton>false</displ=
ayDeleteButton>";
+ }
+ else //To update a report
+ {
+ strXml +=3D String.Format("<saveName>{0}</save=
Name>","Update");
+ strXml +=3D "<displayDeleteButton>true</displa=
yDeleteButton>";
+ strXml +=3D "<classReportName>" + userCred.Cor=
eAdapter.GetClassNameById(Convert.ToInt32(classId)) +"</classReportName>"=
;
+ strXml +=3D getReportContent();
+ Logger.Log("getReportContent(): " + getReportContent(),L=
ogLevel.Trace);
+ }=20
+ =20
+ strXml +=3D "<classId>" + classId + "</classId>";
+ strXml +=3D "</reportDatas>";
+ strXml +=3D "<classes>";
+ //Se necesita traer las clases, pero en vez de traerlas toda=
s, solo traeremos las
+ //relacionadas...
+ if(Convert.ToInt32(classId) > 0)
+ {
+ strXml +=3D formAttribList(Convert.ToInt32(classId));
+ }
+ strXml +=3D getClassList();
+ strXml +=3D "</classes>";
+ strXml +=3D "</report>";
+ =20
+ Logger.Log("ReportMain: createXml(): " + strXml, LogLevel.Tr=
ace);
+ =20
+ return strXml;
+ }
+ =20
+ override protected void OnInit(EventArgs e)
+ {
+ =20
+ InitializeComponent();
+ base.OnInit(e);
+ }
+ =20
+ private void InitializeComponent()
+ { =20
+ this.Load +=3D new System.EventHandler(this.Page_Load);
+ }
+ =20
+ private string getReportContent()
+ {
+ =20
+ DataTable dt =3D userCred.CoreAdapter.GetReportData(reportId=
);
+ =09
+ string res =3D"";
+ =20
+ res +=3D "<reportParams>";
+ res +=3D getReportColumnsXml((dt.Rows[0]["columns"]).ToStrin=
g()); // The columns
+ res +=3D getReportWhereXml((dt.Rows[0]["where"]).ToString())=
; //Where=20
+ res +=3D getReportOrderXml((dt.Rows[0]["order"]).ToString())=
; //Order
+ res +=3D "</reportParams>";
+
+ return res;
+ }
+ =20
+ private string getReportColumnsXml(string columns)
+ {
+ string [] allColumns =3D columns.Split(new char [] {','}); =
=20
+ string xmlRes =3D "";
+ =20
+ if(allColumns.Length <=3D 1)
+ {
+ return "";
+ }
+ xmlRes +=3D "<columns>";
+ for(int i=3D0;i<allColumns.Length;i++)
+ {
+ xmlRes +=3D"<column>";
+ xmlRes +=3D allColumns[i];
+ xmlRes +=3D "</column>";
+ }
+ xmlRes +=3D "</columns>";
+ return xmlRes;
+ }
+
+ private string getReportWhereXml(string where)
+ {
+ string [] tabWhere =3D where.Split(new char [] {'|',';'}); =
=20
+ string xmlRes =3D "";
+ =20
+ if(tabWhere.Length <=3D 1)
+ {
+ return "";
+ }
+ =20
+ xmlRes +=3D "<conditions>";
+ string [] columnsList =3D getColumnsList();
+ =20
+ for(int i=3D0;i<tabWhere.Length;i+=3D5) //The string is |att=
Id|numCond|'valor'|0 or 1|
+ {
+ string operatorValue =3D Convert.ToString(Convert.ToInt3=
2(tabWhere[i+1]) +1); //Because the first item in the list is -----
+ string attributeValue =3D Convert.ToString(Convert.ToInt=
32(getIndexOfElement(tabWhere[i+0],columnsList)) + 1);
+ xmlRes +=3D"<condition>";
+ xmlRes +=3D"<idAtt>" + attributeValue + "</idAtt>";
+ xmlRes +=3D"<operator>" + operatorValue + "</operator>";
+ xmlRes +=3D"<value>";
+ if(operatorValue =3D=3D "9") //In special case (don't fo=
rget the operator value has been incremented (9=3D8+1)...)
+ {
+ xmlRes +=3D convertInCaseFromReportToInterface(tabWh=
ere[i+2]);
+ }
+ else
+ { =20
+ xmlRes +=3D tabWhere[i+2];
+ }
+ xmlRes +=3D "</value>";
+ xmlRes +=3D "</condition>";
+ }
+ xmlRes +=3D "</conditions>";
+ =20
+ return xmlRes;
+ }
+
+
+ ///<summary>
+ /// Basically this function takes a string of form: "[(item1,ite=
m2,item3)]" and returns "item1 item2 item3"
+ ///</summary>
+ private string convertInCaseFromReportToInterface(string strInCa=
se)
+ {
+ string convertedStr =3D "";
+ convertedStr +=3D "'";
+ string [] strInCaseArr =3D strInCase.Split(new char [] {','=
,'[','(',']',')','\''});
+ for(int i=3D0; i<strInCaseArr.Length;i++)
+ {
+ if(strInCaseArr[i] !=3D "") //Remove unuseful strings
+ {
+ convertedStr +=3D strInCaseArr[i] + " ";=20
+ Logger.Log("convertedStr[" + Convert.ToString(i) +"]=
:" + convertedStr,LogLevel.Trace);
+ }
+ }
+ convertedStr =3D convertedStr.Substring(0,convertedStr.Lengt=
h-1); //remove last space
+ convertedStr +=3D "'";
+ Logger.Log("convertedStr: " + convertedStr,LogLevel.Trace);
+ return convertedStr;
+ }
+ =20
+ ///<summary>
+ ///The result of this function allow to use getIndexOfElement
+ ///</summary>
+ private string [] getColumnsList()
+ {
+ string [] list;
+ //Get class id
+ DataTable currReport =3D null;
+ currReport =3D userCred.CoreAdapter.GetReportData(reportId);
+ int classId =3D Convert.ToInt32(currReport.Rows[0]["idClassR=
eport"]);
+ DataTable res =3D userCred.CoreAdapter.GetAttributesFromClas=
s(classId);
+
+ string listAtt =3D "";
+ =20
+ string separator=3D"|";
+ foreach(DataRow row in res.Rows)
+ {
+ int idAtt =3D Convert.ToInt32(row["id_entity"]);
+ if(row["attType"].ToString()!=3D"pertinence")
+ {
+ listAtt+=3D Convert.ToString(idAtt) + separator;
+ }
+ else
+ {
+ DataTable dtpert =3D userCred.CoreAdapter.GetClassesFromPertinence(=
Convert.ToInt32(row["id_entity"]));
+ DataRow dr2 =3D dtpert.Rows[0];
+ int idClassRel =3D Convert.ToInt32(dr2["to"].ToString());
+ =09
+ //For each attribute of pertinence put the id with t=
ogo
+ int attLogin =3D 0;
+ int [] listAttId =3D getAttributeIdListForClass(idCl=
assRel);
+ int size =3D listAttId.Length;
+ for(int k=3D0;k<size;k++)
+ {
+ attLogin =3D listAttId[k];
+ listAtt +=3D idAtt + "^" + attLogin + separator;
+ }
+ }
+ }
+ //Remove last separator
+ listAtt =3D listAtt.Substring(0,listAtt.Length-1);
+ =20
+ //Now split the string create the list
+ string [] listAttArr =3D listAtt.Split(new char [] {'|'});
+ for(int i=3D0;i<listAttArr.Length;i++)
+ {
+ Logger.Log("listAttArr[" +Convert.ToString(i) + "]=3D " =
+ listAttArr[i],LogLevel.Trace);
+ }
+ return listAttArr;
+ }
+ =20
+ ///<summary>
+ ///This functions is used because of the javascript interface th=
at needs to know which element of
+ /// the combo box list is selected
+ ///</summary>
+ private string getIndexOfElement(string element, string [] tabEl=
ements)
+ {
+ int index =3D 0;
+ for(int i=3D0;i<tabElements.Length;i++)
+ {
+ if(element =3D=3D tabElements[i])
+ {
+ index=3Di;
+ break;
+ }
+ }
+ return Convert.ToString(index);
+ }
+ =20
+ private string getReportOrderXml(string order)
+ {
+ string [] tabOrder =3D order.Split(new char [] {',','|'}); =
=20
+ string xmlRes =3D "";
+ string [] columnsList =3D getColumnsList();
+ =20
+ if(tabOrder.Length <=3D 1)
+ {
+ return "";
+ }
+ =20
+ xmlRes +=3D "<orders>";
+ for(int i=3D0;i<tabOrder.Length;i+=3D2) //The string is attI=
d|0 or 1
+ {
+ string orderAtt =3D Convert.ToString(Convert.ToInt32(get=
IndexOfElement(tabOrder[i+0],columnsList))+1);
+ string orderAscOrDesc =3D Convert.ToString(Convert.ToInt=
32(tabOrder[i+1])+1);
+ xmlRes +=3D"<order>";
+ xmlRes +=3D"<idAtt>" + orderAtt + "</idAtt>";
+ xmlRes +=3D"<ascOrDesc>" + orderAscOrDesc + "</ascOrDesc=
>";
+ xmlRes +=3D "</order>";
+ }
+ xmlRes +=3D "</orders>";
+ =20
+ return xmlRes;
+ }
+ =20
+ ///<summary>
+ /// Returns an xml string as this:
+ /// <class>
+ /// <id> </id>
+ /// <name> </name>
+ /// </class>
+ ///</summary>
+ private string getClassList()=20
+ {
+ string xmlString =3D "";
+
+ DataTable res =3D userCred.CoreAdapter.GetAllClassesOfDomain=
(userCred);
+ DataRow startRow =3D res.NewRow();
+ startRow["id_entity"] =3D 0;
+ startRow["name"] =3D "-- Classes --";
+ res.Rows.InsertAt(startRow, 0);
+ =20
+ //Parse the table and build the xml string
+ =20
+ foreach(DataRow row in res.Rows)
+ {
+ int classId =3D Convert.ToInt32(row["id_entity"]);
+ =20
+ xmlString +=3D "<class>";
+ xmlString +=3D "<id>";
+ xmlString +=3D row["id_entity"];
+ xmlString +=3D "</id>"; =20
+ xmlString +=3D "<name>"; =20
+ xmlString +=3D row["name"];
+ xmlString +=3D "</name>";=20
+ xmlString +=3D "</class>";
+ }
+ //Logger.Log("ReportMain getClassList: " + xmlString, LogLev=
el.Trace);
+ return xmlString;
+ }
+ =20
+ private void deleteReport()
+ {
+ Logger.Log("deleteReport called", LogLevel.Trace);
+ userCred.CoreAdapter.DeleteInstance(reportId, userCred);
+ sendMessageToUser(UserMessage.DELETEVIEWOK);
+ this.MyRedirect();
+ return;
+ }
+ =20
+ private DataTable createReportTable()
+ {
+ // Report's Name
+ if(receivedReportName =3D=3D "")
+ {
+ Logger.Log("No name for report", LogLevel.Trace);
+ return null;
+ }
+ =20
+ // Class that the report belongs to.
+ int classId =3D Convert.ToInt32(receivedClassId);
+ if(classId =3D=3D 0)=20
+ { // There was no class chosen, don't do anything.
+ Logger.Log("ClassId =3D=3D 0", LogLevel.Trace);
+ return null;
+ }
+ =20
+ // List of attributes to show.
+ string columnsStr =3D "0,";
+ =20
+ if(receivedColumnsStr =3D=3D "0") //No columns =3D> No Updat=
e/Create
+ {
+ Logger.Log("No columns for report",LogLevel.Trace);
+ return null; =20
+ }
+ =20
+ DataTable dt =3D createReportDataTable();
+ DataRow dr =3D dt.NewRow();
+ dr["idClassReport"] =3D receivedClassId;
+ dr["reportName"] =3D receivedReportName;
+ =20
+ //Logger.Log("reportmain: checkForPertinence: " + userCred.C=
oreAdapter.CheckForPertinence(receivedColumnsStr),LogLevel.Trace);
+ =20
+ //dr["columns"] =3D userCred.CoreAdapter.CheckForPertinence(=
receivedColumnsStr); //If a column is a pertinence, change it
+ dr["columns"] =3D receivedColumnsStr; //If a column is a per=
tinence, change it
+ =20
+ //Special case for IN filter
+ dr["where"] =3D treatInSpecialCase(receivedWhereStr);=20
+ =20
+ dr["order"] =3D receivedOrderStr;
+ Logger.Log("receivedOrderStr" + receivedOrderStr, LogLevel.T=
race);
+ Logger.Log("receivedWhereStr" + receivedWhereStr, LogLevel.T=
race);
+ =09
+ dt.Rows.Add(dr);
+ =20
+ return dt;
+ }
+ =20
+ ///<summary>
+ /// The IN filter must be treated in a special maner. If the val=
ue to compare to is "20 30", then=20
+ /// this value must be changed to ['20','30']; (ReportToolsDoc)
+ ///</summary> =20
+ private string treatInSpecialCase(string where)
+ {
+ if(where =3D=3D "")
+ {
+ return ""; =20
+ }
+ string [] whereArr =3D where.Split(new char [] {'|',';'});
+ =20
+ for(int i=3D0;i<whereArr.Length;i++)
+ {
+ Logger.Log("whereArr" +"[" + Convert.ToString(i) + "]=3D=
" + whereArr[i],LogLevel.Trace);
+ }
+ =20
+ string newWhere=3D"";=20
+ for(int i=3D0;i<whereArr.Length;i+=3D5)
+ { =20
+ if(whereArr[i+1] =3D=3D "8") //In case
+ {
+ string [] inStrArr =3D whereArr[i+2].Split(new char =
[] {' ','\''});
+ //rebuild the where str
+ string whereValueStr =3D "";
+ whereValueStr +=3D "[(";
+ for(int j=3D0;j<inStrArr.Length;j++)=20
+ {
+ if(inStrArr[j] !=3D "") //Remove empty strings a=
fter split
+ whereValueStr +=3D "'" + inStrArr[j] + "'" +=
","; =20
+ }
+ whereValueStr =3D whereValueStr.Substring(0,whereVal=
ueStr.Length-1); //Remove last coma
+ whereValueStr +=3D")]";
+ =20
+ newWhere +=3D whereArr[0+i] + "|" + whereArr[1+i] + =
"|" + whereValueStr + "|" +whereArr[3+i] + "|" +whereArr[4+i] + ";";
+ }
+ else
+ {
+ newWhere +=3D whereArr[0+i] + "|" + whereArr[1+i] + =
"|" + whereArr[2+i] + "|" +whereArr[3+i] + "|" +whereArr[4+i] + ";";
+ }
+ }
+ newWhere =3D newWhere.Substring(0,newWhere.Length-1); //remo=
ve last ';'
+ Logger.Log("reportmain: treatInSpecialCase return=3D " + new=
Where, LogLevel.Trace);
+ return newWhere;
+ } =20
+ =20
+ private void ProcessCreationUpdate()
+ {
+ =20
+ Logger.Log("ReportMain: ProcessCreationUpdate", LogLevel.Tra=
ce);
+ =20
+ receivedClassId =3D Request["sendClassId"];
+ receivedReportName =3D Request["sendReportName"];
+ receivedColumnsStr =3D Request["sendColumnsStr"];
+ receivedOrderStr =3D Request["sendOrderStr"];
+ receivedWhereStr =3D Request["sendWhereStr"];
+ =20
+ Logger.Log("receivedClassId: " + receivedClassId, LogLevel.T=
race);
+ Logger.Log("receivedReportName: " + receivedReportName, LogL=
evel.Trace);
+ Logger.Log("receivedColumnsStr: " + receivedColumnsStr, LogL=
evel.Trace);
+ Logger.Log("receivedWhereStr: " + receivedWhereStr, LogLevel=
.Trace);
+
+ int reportId =3D Convert.ToInt32(Request.QueryString["report=
Id"]);
+ Logger.Log("reportId: " + reportId, LogLevel.Trace);
+ =20
+ //Creates the table now
+ DataTable reportTable =3D createReportTable();
+ if(reportTable !=3D null)=20
+ {=20
+ if(reportId =3D=3D 0)
+ {
+ //Response.Write("Create");
+ Logger.Log("Creation of report",LogLevel.Trace);
+ userCred.CoreAdapter.CreateReport(reportTable, userC=
red);
+ sendMessageToUser(UserMessage.CREATEVIEWOK); //Chang=
e
+ }
+ else=20
+ {
+ //Response.Write("Update");
+ Logger.Log("Update of report",LogLevel.Trace);
+ userCred.CoreAdapter.UpdateInstance(reportId, report=
Table, userCred);
+ sendMessageToUser(UserMessage.UPDATEVIEWOK); //Chang=
e
+ }
+ }=09
+ this.MyRedirect();
+ }
+
+ public void MyRedirect()
+ {
+ Response.Write("<script language=3D\"Javascript\">\n");
+ Response.Write("top.frames[1].mainframe.location =3D \"" + Html.genAb=
soluteUrl("/builder/site/functionindex.aspx") + "\";");
+ Response.Write("</script>\n");
+ }
+
+ // Funcion agregada por negro que solo traera la informacion necesaria=
...
+ private string formAttribList(int classId)=20
+ {
+ string salida=3D"";
+ int attlogin =3D 0;
+ int idatt =3D 0;
+ DataTable dtpert;
+ DataTable dtrel;
+ int idClassRel =3D 0;
+ string className =3D "";
+
+ DataTable dt =3D userCred.CoreAdapter.GetAttributesFromClass(classId)=
;
+
+ adapter dbAdapter =3D new adapter();
+ className =3D dbAdapter.GetClassNameById(classId);
+ //className =3D dt.Rows[0]["name"].ToString();
+
+ salida +=3D "<class>";
+ salida +=3D "<id>" + classId + "</id>";
+ salida +=3D "<name>" + className + "</name>";
+ salida +=3D "<attributes>";
+ =09
+ foreach(DataRow row in dt.Rows)=20
+ {
+ string attName =3D Convert.ToString(row["attName"]);
+ string attType =3D Convert.ToString(row["attType"]);
+ if(attType=3D=3D"pertinence")
+ {
+ idatt =3D Convert.ToInt32(row["id_entity"]);
+ dtpert =3D userCred.CoreAdapter.GetClassesFromPertinence(idatt);
+ DataRow dr2 =3D dtpert.Rows[0];
+ idClassRel =3D Convert.ToInt32(dr2["to"].ToString());
+ =09
+ //For each attribute of pertinence put the id with t=
ogo and=20
+ // the pertname.attname
+ int [] listAttId =3D getAttributeIdListForClass(idCl=
assRel);
+ string [] listAttName =3D getAttributeNameListForCla=
ss(idClassRel);
+ int size =3D listAttId.Length;
+ for(int i=3D0;i<size;i++)
+ {
+ attlogin =3D listAttId[i];
+ salida +=3D "<attribute>";
+ salida +=3D "<id>" + idatt + "^" + attlogin + "<=
/id>";
+ salida +=3D "<name>" + attName + "." + listAttN=
ame[i]+ "</name>";
+ salida +=3D "</attribute>";
+ }
+ }
+ else
+ {
+ salida +=3D "<attribute>";
+ salida +=3D "<id>" + row["id_entity"].ToString() + "</id>";
+ salida +=3D "<name>" + attName + "</name>";
+ salida +=3D "</attribute>";
+ }
+ }
+ salida +=3D "</attributes>";
+ salida +=3D "</class>";
+
+ foreach(DataRow row in dt.Select("attType=3D'pertinence'"))=20
+ {
+ idatt =3D Convert.ToInt32(row["id_entity"]);
+ dtpert =3D userCred.CoreAdapter.GetClassesFromPertinence(idatt);
+ =20
+
+ foreach(DataRow dr in dtpert.Rows)
+ {
+ idClassRel =3D Convert.ToInt32(dr["to"].ToString());
+ dtrel =3D userCred.CoreAdapter.GetAttributesFromClass(idClassRel);
+ className =3D dbAdapter.GetClassNameById(idClassRel);
+
+ salida +=3D "<class>";
+ salida +=3D "<id>" + idClassRel + "</id>";
+ salida +=3D "<name>" + className + "</name>";
+ salida +=3D "<attributes>";
+
+ foreach(DataRow row2 in dtrel.Rows)=20
+ {
+ string attName =3D Convert.ToString(row2["attName"]);
+ className =3D Convert.ToString(dr["name"]);
+ //res.Append("<option>"+className+":"+attName+"</option>");
+ salida +=3D "<attribute>";
+ salida +=3D "<id>" + idatt + "^" + row2["id_entity"].ToString() + =
"</id>";
+ salida +=3D "<name>" + className + "." + attName + "</name>";
+ salida +=3D "</attribute>";
+
+ }
+ salida +=3D "</attributes>";
+ salida +=3D "</class>";
+ }
+
+ }
+ =09
+ return salida;
+ }
+ =20
+ public int GetAttributePrimary(int idClass)
+ {
+ int iniClass;
+ DataTable dt1;
+ adapter dbAdapter =3D userCred.CoreAdapter;
+
+ //DataTable dtParam =3D myform.makeDataTableInReportTools();
+ DataTable dtParam =3D this.makeDataTableInViewTools();
+ DataRow dr =3D dtParam.NewRow();
+
+ //clase de los atributos.
+ iniClass =3D 5;
+
+ dr["columna"] =3D "0";
+
+
+ //Explicacion de los filtros...
+ //atributo 67|4|'true' =3D> isPrimary=3D'true'
+ //atributo 40|4|idClass =3D> classId=3DidClass
+ dr["filtros"] =3D "67|4|'true'|1|0;40|4|'"+idClass+"'|0|0";
+
+ dtParam.Rows.Add(dr);
+
+ dt1 =3D dbAdapter.GetDataTableView(dtParam, iniClass);
+ if(dt1.Rows.Count=3D=3D1)
+ {
+ return Convert.ToInt32(dt1.Rows[0][0].ToString());
+ }
+ else
+ {
+ return -1;
+ }
+ }
+ =20
+ private DataTable makeDataTableInViewTools()
+ {
+ DataTable dt1 =3D new DataTable();
+ DataColumn dc1;
+ dc1 =3D new DataColumn("columna",typeof(string));
+ dt1.Columns.Add(dc1);
+ dc1 =3D new DataColumn("filtros",typeof(string));
+ dt1.Columns.Add(dc1);
+ dc1 =3D new DataColumn("group",typeof(string));
+ dt1.Columns.Add(dc1);
+ dc1 =3D new DataColumn("having",typeof(string));
+ dt1.Columns.Add(dc1);
+ dc1 =3D new DataColumn("order",typeof(string));
+ dt1.Columns.Add(dc1);
+ dc1 =3D new DataColumn("claves",typeof(string));
+ dt1.Columns.Add(dc1);
+ return dt1;
+ }
+
+ private DataTable createReportDataTable()
+ {
+ DataTable dt =3D new DataTable();
+ dt.Columns.Add("columns");
+ dt.Columns.Add("where");
+ dt.Columns.Add("groupby");
+ dt.Columns.Add("having");
+ dt.Columns.Add("order");
+ dt.Columns.Add("idClassReport");
+ dt.Columns.Add("reportName");
+ return dt;
+ }
+ =20
+ =20
+ ///<summary> The list of all attributes id for a class</summary>
+ private int[] getAttributeIdListForClass(int classId)
+ {
+ DataTable res =3D userCred.CoreAdapter.GetAttributesFromClas=
s(classId);
+ int [] idArr =3D new int[res.Rows.Count];
+ int i=3D0;
+ foreach(DataRow row in res.Rows)
+ {
+ idArr[i++] =3D Convert.ToInt32(row["id_entity"]);
+ }
+ =20
+ return idArr;
+ }
+ =20
+ ///<summary> The list of all attributes name for a class </summa=
ry>
+ private string[] getAttributeNameListForClass(int classId)
+ {
+ DataTable res =3D userCred.CoreAdapter.GetAttributesFromClas=
s(classId);
+ string [] nameArr =3D new string[res.Rows.Count];
+ int i=3D0;
+ foreach(DataRow row in res.Rows)
+ {
+ nameArr[i++] =3D Convert.ToString(row["attName"]);
+ }
+ return nameArr;
+ }
+ }
+}
Modified: humano2/trunk/web/builder/site/functionoperationbar.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/functionoperationbar.aspx 2005-05-18 1=
9:23:33 UTC (rev 1089)
+++ humano2/trunk/web/builder/site/functionoperationbar.aspx 2005-05-18 1=
9:48:18 UTC (rev 1090)
@@ -32,6 +32,12 @@
var mainFrame =3D parent.frames["maindata"];
mainFrame.location.href =3D "foldermanagement.aspx";
}
+ =20
+ function CreateReport()
+ {
+ var mainFrame =3D parent.frames["maindata"];
+ mainFrame.location.href =3D "createreport.aspx";
+ }
=20
</script>
</HEAD>
@@ -42,6 +48,7 @@
<!--div id=3D"CreateRule"><a href=3D"#" onClick=3D"CreateRule()">Crea=
te Rule</a></div-->
<div id=3D"CreateForm"><a href=3D"#" onClick=3D"CreateForm()">Create =
Form</a></div>
<div id=3D"CreateFolder"><a href=3D"#" onClick=3D"CreateFolder()">Cre=
ate Folder</a></div>
+ <div id=3D"CreateReport"><a href=3D"#" onClick=3D"CreateRepo=
rt()">Create Report</a></div>
</div>
<form id=3D"Form1" method=3D"post" runat=3D"server">
<input id=3D"classId2" name=3D"classId2" type=3D"hidden">=20
Deleted: humano2/trunk/web/builder/site/js/form.js
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/js/form.js 2005-05-18 19:23:33 UTC (re=
v 1089)
+++ humano2/trunk/web/builder/site/js/form.js 2005-05-18 19:48:18 UTC (re=
v 1090)
@@ -1,442 +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
-//
-//
-*/
-
-
-/**
- * When you choose a class you have to update the buttons Crud
- */
-function UpdateHeader()
-{
- //Update crudbuttons =20
- var crudTag1 =3D GetNodeByTagNameAndAttName("div","CrudButtons1")[0]=
;
- =20
- crudTag1.innerHTML=3D
- "<input type=3D\"submit\" value=3D\"Create\" onclick=3D=
\"Form.UpdateSubmitAll(rightColumn,expandFormSort,expandFormFilter);\">"
- + "</input>";
- =20
- var crudTag2 =3D GetNodeByTagNameAndAttName("div","CrudButtons2")[0]=
;
- //alert("crudTag2: " + crudTag2);
- crudTag2.innerHTML =3D ""; //No delete button
- =20
- =20
- //update input viewname =20
- var viewNameDiv =3D GetNodeByTagNameAndAttName("div","ViewName")[0];
- viewNameDiv.innerHTML =3D=20
- "<input type=3D\"text\" id=3D \"viewNameInput\" name=3D\"vie=
wNameInput\">"
- +"</input>";
-}
-
-
-//////////////////////////////////////////////ViewParams Class /////////=
//////////////////////////////////////////////
-function ViewParams(columns,where,order)
-{
- =20
- //Fields
- this.columns =3D columns;
- this.where =3D where;
- this.order =3D order;
-
- //alert("columns.length: " + columns.length);
- =20
- //Methods
- this.GetColumns =3D ViewParamsGetColumns;
- this.GetWhere =3D ViewParamsGetWhere;
- this.GetOrder =3D ViewParamsGetOrder;
- this.Empty =3D ViewParamsEmpty;
-=20
-}
-
-function ViewParamsEmpty()
-{
- var res =3D ((this.GetColumns().length =3D=3D 0) && (this.where =3D=3D=
null) && (this.order =3D=3D null));
- //alert("ViewParamsEmpty: " + res);
- return res;
-}
-
-function ViewParamsGetColumns()
-{
- //Jump the first unuseful element (0,10035,10025) for example
- var res =3D new Array()
- for(i=3D1;i<this.columns.length;i++)
- {
- res[i-1] =3D this.columns[i]; =20
- }
- //alert("ViewParamsGetColumns: length=3D " + res.length);
- return res;
-}
-
-function ViewParamsGetWhere()
-{
- return this.where; =20
-}
-
-function ViewParamsGetOrder()
-{
- return this.order; =20
-}
-
-
-////////////////////////////////////////////// Form Class //////////////=
///////////////////////////////////////////////
-function Form(formArray, classId, ViewParams)
-{
- //Fields
- this.attributeLeftArray =3D new Array();
- this.attributeRightArray =3D new Array();
- this.formArray =3D formArray;
- this.classId =3D classId;
- this.ViewParams =3D ViewParams;
- =20
- =20
- //Methods
- this.UpdateAttributes =3D FormUpdateAttributes;
- this.GetRightAtt =3D FormGetRightAtt;
- this.GetLeftAtt =3D FormGetLeftAtt;
- this.UpdateList =3D FormUpdateList;
- this.UpdateLists =3D FormUpdateLists;
- this.SetToDefault =3D FormSetToDefault;
- this.UpdateSubmitAll =3D FormUpdateSubmitAll;
- this.DeleteView =3D FormDeleteView;
- this.GetSortArray =3D FormGetSortArray;
- this.GetFilterArray =3D FormGetFilterArray;
- this.UpdateSort =3D FormUpdateSort;
- this.UpdateFilter =3D FormUpdateFilter;
- this.GetNameOfAttribute =3D FormGetNameOfAttribute;
- =20
- //Update the attributes
- this.UpdateAttributes(this.classId);
-}
-
-function FormUpdateSubmitAll(rightColumn,sort,filter)
-{
- //Get the viewName
- var viewNameInput =3D GetNodeByTagNameAndAttName("input","viewNameIn=
put")[0];
- var viewName =3D viewNameInput.value;
- =20
- if(viewName =3D=3D "")
- {
- alert("You must enter the name of view."); =20
- return false;
- }
- =20
- //alert("viewName:" + viewName);
- =20
- //Get the classId
- var classId =3D this.classId;
- //alert("classId:" + classId);
- =20
- //Build the columnstr string
- //alert(rightColumn);
- var i;
- var sortedList =3D rightColumn.fSortedList;
- //alert(sortedList.Length());
- var columnsStr =3D "";
- for(i=3D0;i<sortedList.Length();i++)
- {
- columnsStr +=3D sortedList.GetItem(i).GetValue() + ",";
- }
- //Remove the last coma
- columnsStr =3D "0," + columnsStr; //Don't forget 0!
- columnsStr =3D columnsStr.substring(0,columnsStr.length-1); =
=20
- //alert("columnsStr:" + columnsStr);
- =20
- //Now the sort
- //alert("sort SelfRefName:" + sort.GetSelfRefName());
- =20
- //TODO: order is unavailable yet due to a problem in ViewTools
- var orderStr =3D sort.ReturnValues();=20
- //var orderStr=3D"";
- =20
- //The filter
- //alert("filter SelfRefName:" + filter.GetSelfRefName());
- var whereStr =3D filter.ReturnValues();
- =20
- //Update the submit all TD
- var divSubmitAll =3D GetNodeByTagNameAndAttName("div","SubmitAll")[0=
];
- //alert(divSubmitAll);
- divSubmitAll.innerHTML +=3D=20
- =20
- "<input type=3D\"hidden\" name=3D\"sendCreateUpdate\" value=3D\"=
true\"></input>"
- +"<input type=3D\"hidden\" name=3D\"sendClassId\" value=3D\""+ c=
lassId +"\"></input>"
- +"<input type=3D\"hidden\" name=3D\"sendViewName\" value=3D\"" +=
viewName + "\"></input>"
- +"<input type=3D\"hidden\" name=3D\"sendColumnsStr\" value=3D\""=
+ columnsStr + "\"></input>"
- +"<input type=3D\"hidden\" name=3D\"sendOrderStr\" value=3D\"" +=
orderStr + "\"></input>"
- +"<input type=3D\"hidden\" name=3D\"sendWhereStr\" value=3D\"" +=
whereStr + "\"></input>";
- =20
- //alert(divSubmitAll.innerHTML);
- return true;
-}
-
-function FormDeleteView(viewId)
-{
- if (confirm("Are you sure you want to delete the view?"))
- {
- var divSubmitAll =3D GetNodeByTagNameAndAttName("div","SubmitAll=
")[0];
- //alert(divSubmitAll);
- divSubmitAll.innerHTML +=3D "<input type=3D\"hidden\" name=3D=
\"delete\" value=3D\"true\"></input>";
- divSubmitAll.innerHTML +=3D "<input type=3D\"hidden\" name=3D=
\"viewId\" value=3D\"" + viewId + "\"></input>";
- return true; =20
- }
- else
- {
- return false; =20
- }
-}
-
-function FormGetRightAtt()
-{
- return this.attributeRightArray;
-}
-
-function FormGetLeftAtt()
-{
- return this.attributeLeftArray;
-}
-
-function FormUpdateList(list,classId,leftOrRight)
-{
- =20
- this.classId =3D classId; //stores classId
- this.UpdateAttributes(classId);
- =20
- var updateArray;
- if(leftOrRight =3D=3D "left")
- {
- updateArray =3D this.attributeLeftArray;
- }
- else
- {
- updateArray =3D this.attributeRightArray; =20
- }
- =20
- list.Set(updateArray);
-}
-
-function FormUpdateLists(left,right,classId)
-{
- this.UpdateList(left,classId,"left");
- this.UpdateList(right,classId,"right");
-}
-
-function FormSetToDefault(left,right)
-{
- this.UpdateLists(left,right,this.classId); =20
-}
-
-function FormGetSortArray(number)
-{
- var optionArray =3D new Array();
- =20
- if(number =3D=3D 1) // The attributes
- {
- var lengthArray =3D this.formArray[this.classId].length;
- //alert("lengthArray: " + lengthArray);
- =20
- optionArray[0] =3D new Array(); //Begin to second element
- optionArray[0]["value"] =3D "-1";
- optionArray[0]["text"] =3D "--Nothing--";
- =20
- for (var i =3D 0; i < lengthArray ;i++)
- {
- optionArray[i+1] =3D new Array(); //Begin to second element
- optionArray[i+1]["value"] =3D this.formArray[this.classId][i=
]["value"];
- optionArray[i+1]["text"] =3D this.formArray[this.classId][i=
]["name"];
- }
- }
- else // Asc Desc etc...
- {
- optionArray[0] =3D new Array();
- optionArray[0]["value"] =3D "-1";
- optionArray[0]["text"] =3D "--Nothing--";
- optionArray[1] =3D new Array();
- optionArray[1]["value"] =3D "0";
- optionArray[1]["text"] =3D "Ascendent";
- optionArray[2] =3D new Array();
- optionArray[2]["value"] =3D "1";
- optionArray[2]["text"] =3D "Descendent";
- }
- return optionArray;
-}
-
-
-function FormGetFilterArray(number)
-{
- var optionArray =3D new Array();
- =20
- if(number =3D=3D 1) // The attributes (as for sort)
- {
- var lengthArray =3D this.formArray[this.classId].length;
- //alert("lengthArray: " + lengthArray);
- =20
- optionArray[0] =3D new Array();
- optionArray[0]["value"] =3D "-1";
- optionArray[0]["text"] =3D "--Nothing--"
- for (var i =3D 0; i < lengthArray ;i++)=20
- {
- optionArray[i+1] =3D new Array(); //Begin to second element
- optionArray[i+1]["value"] =3D this.formArray[this.classId][i=
]["value"];
- optionArray[i+1]["text"] =3D this.formArray[this.classId][i=
]["name"];
- }
- }
- else // Asc Desc etc...
- {
- optionArray[0] =3D new Array();
- optionArray[0]["value"] =3D "-1";
- optionArray[0]["text"] =3D "--Nothing--";
- optionArray[1] =3D new Array();
- optionArray[1]["value"] =3D "0";
- optionArray[1]["text"] =3D "GreaterOrEqualThan";
- optionArray[2] =3D new Array();
- optionArray[2]["value"] =3D "1";
- optionArray[2]["text"] =3D "LessEqualThan";
- optionArray[3] =3D new Array();
- optionArray[3]["value"] =3D "2";
- optionArray[3]["text"] =3D "GreaterThan";
- optionArray[4] =3D new Array();
- optionArray[4]["value"] =3D "3";
- optionArray[4]["text"] =3D "LessThan";
- optionArray[5] =3D new Array();
- optionArray[5]["value"] =3D "4";
- optionArray[5]["text"] =3D "EqualTo";
- optionArray[6] =3D new Array();
- optionArray[6]["value"] =3D "5";
- optionArray[6]["text"] =3D "DistinctTo";
- optionArray[7] =3D new Array();
- optionArray[7]["value"] =3D "6";
- optionArray[7]["text"] =3D "BeginWith";
- optionArray[8] =3D new Array();
- optionArray[8]["value"] =3D "7";
- optionArray[8]["text"] =3D "ContainsTo";
- optionArray[9] =3D new Array();
- optionArray[9]["value"] =3D "8";
- optionArray[9]["text"] =3D "In";
- =20
- }
- =20
- return optionArray;
-}
-
-function FormUpdateSort(sort,classId)
-{
- this.classId =3D classId;
- sort.Update(this.GetSortArray(1),this.GetSortArray(2)); //TODO: sort=
doesn't work yet
-}
-
-function FormUpdateFilter(filter,classId)
-{
- this.classId =3D classId;
- filter.Update(this.GetFilterArray(1),this.GetFilterArray(2)); =20
-}
-
-function FormUpdateAttributes(classId)
-{
- //alert(classId);
- this.classId =3D classId; //stores classId
- this.attributeLeftArray =3D new Array();
- this.attributeRightArray =3D new Array();
- =20
- if(this.ViewParams.Empty() =3D=3D true) //In the case of creation of=
a class
- {
- =20
- //For the columns
- var maxAttNumber =3D this.formArray[classId].length;
- if(maxAttNumber < 3)
- {
- maxAttNumber =3D 0; =20
- }
- else
- {
- maxAttNumber =3D 3;
- }
- =20
- for (var i =3D 0; i < maxAttNumber ;i++)
- {
- var element =3D new ListElement( this.formArray[classId][i]=
["name"],
- this.formArray[classId][i]["=
value"],
- false);
- this.attributeRightArray[i] =3D element; =
=20
- }
- =20
- for (var i =3D 0; i < this.formArray[classId].length ;i++)
- {
- if(i<maxAttNumber)
- {
- var element =3D new ListElement( this.formArray[classId=
][i]["name"],
- this.formArray[classId][=
i]["value"],
- true);
- =20
- }
- else
- {
- var element =3D new ListElement( this.formArray[classId=
][i]["name"],
- this.formArray[classId][=
i]["value"],
- false);
- }
- this.attributeLeftArray[i] =3D element; =
=20
- }
- =20
- }
- else //In the case of update of a class
- {
- var j=3D0; //the counter for rightArray
- for(var i=3D0; i<this.formArray[classId].length;i++)
- {
- var idAttForm =3D this.formArray[classId][i]["value"];
- if(IsInArray(idAttForm,this.ViewParams.GetColumns()) =3D=3D =
true) //If the attribute is in the view
- {
- =20
- =20
- //The left array
- var element =3D new ListElement( this.formArray[classId=
][i]["name"],
- this.formArray[classId][=
i]["value"],
- true);
- this.attributeLeftArray[i] =3D element; =20
- //The right array: the element
- var element =3D new ListElement( this.formArray[classId=
][i]["name"],
- this.formArray[classId][=
i]["value"],
- false);
- this.attributeRightArray[j++] =3D element; =
=20
- =20
- }
- else
- {
- var element =3D new ListElement( this.formArray[classId=
][i]["name"],
- this.formArray[classId][=
i]["value"],
- false);
- //The left array
- this.attributeLeftArray[i] =3D element; =20
- =20
- //The right array: nothing
- =20
- }
- }
- }
-}
-
-
-/**
- * Returns the name of attribute give its id
- */
-function FormGetNameOfAttribute(idAtt)
-{
- for(i=3D0;i<this.formArray[classId].length;i++)
- {
- var elTab =3D this.formArray[classId][i];
- if(idAtt =3D=3D elTab["value"])
- {
- return elTab["name"];
- }
- }
- return "";
-}
-
-////////////////////////////////////////////// END: Form Class /////////=
////////////////////////////////////////////////
Added: humano2/trunk/web/builder/site/js/formreport.js
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/js/formreport.js 2005-05-18 19:23:33 U=
TC (rev 1089)
+++ humano2/trunk/web/builder/site/js/formreport.js 2005-05-18 19:48:18 U=
TC (rev 1090)
@@ -0,0 +1,442 @@
+/*
+//
+// 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
+//
+//
+*/
+
+
+/**
+ * When you choose a class you have to update the buttons Crud
+ */
+function UpdateHeader()
+{
+ //Update crudbuttons =20
+ var crudTag1 =3D GetNodeByTagNameAndAttName("div","CrudButtons1")[0]=
;
+ =20
+ crudTag1.innerHTML=3D
+ "<input type=3D\"submit\" value=3D\"Create\" onclick=3D=
\"Form.UpdateSubmitAll(rightColumn,expandFormSort,expandFormFilter);\">"
+ + "</input>";
+ =20
+ var crudTag2 =3D GetNodeByTagNameAndAttName("div","CrudButtons2")[0]=
;
+ //alert("crudTag2: " + crudTag2);
+ crudTag2.innerHTML =3D ""; //No delete button
+ =20
+ =20
+ //update input reportname =20
+ var reportNameDiv =3D GetNodeByTagNameAndAttName("div","ReportName")=
[0];
+ reportNameDiv.innerHTML =3D=20
+ "<input type=3D\"text\" id=3D \"reportNameInput\" name=3D\"r=
eportNameInput\">"
+ +"</input>";
+}
+
+
+//////////////////////////////////////////////ReportParams Class ///////=
////////////////////////////////////////////////
+function ReportParams(columns,where,order)
+{
+ =20
+ //Fields
+ this.columns =3D columns;
+ this.where =3D where;
+ this.order =3D order;
+
+ //alert("columns.length: " + columns.length);
+ =20
+ //Methods
+ this.GetColumns =3D ReportParamsGetColumns;
+ this.GetWhere =3D ReportParamsGetWhere;
+ this.GetOrder =3D ReportParamsGetOrder;
+ this.Empty =3D ReportParamsEmpty;
+=20
+}
+
+function ReportParamsEmpty()
+{
+ var res =3D ((this.GetColumns().length =3D=3D 0) && (this.where =3D=3D=
null) && (this.order =3D=3D null));
+ //alert("ReportParamsEmpty: " + res);
+ return res;
+}
+
+function ReportParamsGetColumns()
+{
+ //Jump the first unuseful element (0,10035,10025) for example
+ var res =3D new Array()
+ for(i=3D1;i<this.columns.length;i++)
+ {
+ res[i-1] =3D this.columns[i]; =20
+ }
+ //alert("ReportParamsGetColumns: length=3D " + res.length);
+ return res;
+}
+
+function ReportParamsGetWhere()
+{
+ return this.where; =20
+}
+
+function ReportParamsGetOrder()
+{
+ return this.order; =20
+}
+
+
+////////////////////////////////////////////// Form Class //////////////=
///////////////////////////////////////////////
+function Form(formArray, classId, ReportParams)
+{
+ //Fields
+ this.attributeLeftArray =3D new Array();
+ this.attributeRightArray =3D new Array();
+ this.formArray =3D formArray;
+ this.classId =3D classId;
+ this.ReportParams =3D ReportParams;
+ =20
+ =20
+ //Methods
+ this.UpdateAttributes =3D FormUpdateAttributes;
+ this.GetRightAtt =3D FormGetRightAtt;
+ this.GetLeftAtt =3D FormGetLeftAtt;
+ this.UpdateList =3D FormUpdateList;
+ this.UpdateLists =3D FormUpdateLists;
+ this.SetToDefault =3D FormSetToDefault;
+ this.UpdateSubmitAll =3D FormUpdateSubmitAll;
+ this.DeleteReport =3D FormDeleteReport;
+ this.GetSortArray =3D FormGetSortArray;
+ this.GetFilterArray =3D FormGetFilterArray;
+ this.UpdateSort =3D FormUpdateSort;
+ this.UpdateFilter =3D FormUpdateFilter;
+ this.GetNameOfAttribute =3D FormGetNameOfAttribute;
+ =20
+ //Update the attributes
+ this.UpdateAttributes(this.classId);
+}
+
+function FormUpdateSubmitAll(rightColumn,sort,filter)
+{
+ //Get the ReportName
+ var reportNameInput =3D GetNodeByTagNameAndAttName("input","reportNa=
meInput")[0];
+ var reportName =3D reportNameInput.value;
+ =20
+ if(reportName =3D=3D "")
+ {
+ alert("You must enter the name of report."); =20
+ return false;
+ }
+ =20
+ //alert("reportName:" + reportName);
+ =20
+ //Get the classId
+ var classId =3D this.classId;
+ //alert("classId:" + classId);
+ =20
+ //Build the columnstr string
+ //alert(rightColumn);
+ var i;
+ var sortedList =3D rightColumn.fSortedList;
+ //alert(sortedList.Length());
+ var columnsStr =3D "";
+ for(i=3D0;i<sortedList.Length();i++)
+ {
+ columnsStr +=3D sortedList.GetItem(i).GetValue() + ",";
+ }
+ //Remove the last coma
+ columnsStr =3D "0," + columnsStr; //Don't forget 0!
+ columnsStr =3D columnsStr.substring(0,columnsStr.length-1); =
=20
+ //alert("columnsStr:" + columnsStr);
+ =20
+ //Now the sort
+ //alert("sort SelfRefName:" + sort.GetSelfRefName());
+ =20
+ =20
+ var orderStr =3D sort.ReturnValues();=20
+ =20
+ =20
+ //The filter
+ //alert("filter SelfRefName:" + filter.GetSelfRefName());
+ var whereStr =3D filter.ReturnValues();
+ =20
+ //Update the submit all TD
+ var divSubmitAll =3D GetNodeByTagNameAndAttName("div","SubmitAll")[0=
];
+ //alert(divSubmitAll);
+ divSubmitAll.innerHTML +=3D=20
+ =20
+ "<input type=3D\"hidden\" name=3D\"sendCreateUpdate\" value=3D\"=
true\"></input>"
+ +"<input type=3D\"hidden\" name=3D\"sendClassId\" value=3D\""+ c=
lassId +"\"></input>"
+ +"<input type=3D\"hidden\" name=3D\"sendReportName\" value=3D\""=
+ reportName + "\"></input>"
+ +"<input type=3D\"hidden\" name=3D\"sendColumnsStr\" value=3D\""=
+ columnsStr + "\"></input>"
+ +"<input type=3D\"hidden\" name=3D\"sendOrderStr\" value=3D\"" +=
orderStr + "\"></input>"
+ +"<input type=3D\"hidden\" name=3D\"sendWhereStr\" value=3D\"" +=
whereStr + "\"></input>";
+ =20
+ //alert(divSubmitAll.innerHTML);
+ return true;
+}
+
+function FormDeleteReport(reportId)
+{
+ if (confirm("Are you sure you want to delete the report?"))
+ {
+ var divSubmitAll =3D GetNodeByTagNameAndAttName("div","SubmitAll=
")[0];
+ //alert(divSubmitAll);
+ divSubmitAll.innerHTML +=3D "<input type=3D\"hidden\" name=3D=
\"delete\" value=3D\"true\"></input>";
+ divSubmitAll.innerHTML +=3D "<input type=3D\"hidden\" name=3D=
\"reportId\" value=3D\"" + reportId + "\"></input>";
+ return true; =20
+ }
+ else
+ {
+ return false; =20
+ }
+}
+
+function FormGetRightAtt()
+{
+ return this.attributeRightArray;
+}
+
+function FormGetLeftAtt()
+{
+ return this.attributeLeftArray;
+}
+
+function FormUpdateList(list,classId,leftOrRight)
+{
+ =20
+ this.classId =3D classId; //stores classId
+ this.UpdateAttributes(classId);
+ =20
+ var updateArray;
+ if(leftOrRight =3D=3D "left")
+ {
+ updateArray =3D this.attributeLeftArray;
+ }
+ else
+ {
+ updateArray =3D this.attributeRightArray; =20
+ }
+ =20
+ list.Set(updateArray);
+}
+
+function FormUpdateLists(left,right,classId)
+{
+ this.UpdateList(left,classId,"left");
+ this.UpdateList(right,classId,"right");
+}
+
+function FormSetToDefault(left,right)
+{
+ this.UpdateLists(left,right,this.classId); =20
+}
+
+function FormGetSortArray(number)
+{
+ var optionArray =3D new Array();
+ =20
+ if(number =3D=3D 1) // The attributes
+ {
+ var lengthArray =3D this.formArray[this.classId].length;
+ //alert("lengthArray: " + lengthArray);
+ =20
+ optionArray[0] =3D new Array(); //Begin to second element
+ optionArray[0]["value"] =3D "-1";
+ optionArray[0]["text"] =3D "--Nothing--";
+ =20
+ for (var i =3D 0; i < lengthArray ;i++)
+ {
+ optionArray[i+1] =3D new Array(); //Begin to second element
+ optionArray[i+1]["value"] =3D this.formArray[this.classId][i=
]["value"];
+ optionArray[i+1]["text"] =3D this.formArray[this.classId][i=
]["name"];
+ }
+ }
+ else // Asc Desc etc...
+ {
+ optionArray[0] =3D new Array();
+ optionArray[0]["value"] =3D "-1";
+ optionArray[0]["text"] =3D "--Nothing--";
+ optionArray[1] =3D new Array();
+ optionArray[1]["value"] =3D "0";
+ optionArray[1][...
[truncated message content] |
|
From: <sv...@de...> - 2005-05-18 19:43:20
|
Author: pcamacho
Date: 2005-05-18 15:23:33 -0400 (Wed, 18 May 2005)
New Revision: 1089
Modified:
humano2/trunk/web/portal/site/xsl/dateTime.xsl
Log:
FIX: with various dateTime attributes the creation of an instance was fai=
ling (to set a date).
Modified: humano2/trunk/web/portal/site/xsl/dateTime.xsl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/portal/site/xsl/dateTime.xsl 2005-05-18 17:46:14 UT=
C (rev 1088)
+++ humano2/trunk/web/portal/site/xsl/dateTime.xsl 2005-05-18 19:23:33 UT=
C (rev 1089)
@@ -9,38 +9,6 @@
<xsl:variable name=3D"sysAttName" select=3D"/page/classInstance/struct=
ure/attribute[id_entity=3D$idEntity]/sysAttName"/>
<xsl:variable name=3D"isEditable" select=3D"/page/classInstance/=
structure/attribute[id_entity=3D$idEntity]/isEditable"/>
=20
- <!-- calendar stylesheet -->
- <link rel=3D"stylesheet" type=3D"text/css" media=3D"all" href=3D=
"js/calendar/calendar-win2k-cold-1.css" title=3D"win2k-cold-1" />
- <!-- main calendar program -->
- <script type=3D"text/javascript" src=3D"js/calendar/calendar.js"=
></script>
- <!-- language for the calendar -->
- <script type=3D"text/javascript" src=3D"js/calendar/lang/calenda=
r-es.js"></script>
- <!-- the following script defines the Calendar.setup helper func=
tion, which makes
- adding a calendar a matter of 1 or 2 lines of code. -->
- <script type=3D"text/javascript" src=3D"js/calendar/calendar-set=
up.js"></script>
- <script language=3D"JavaScript">
- function convertISO(date, format)=20
- {
- if(date!=3D"" ) {
- var year =3D date.substr(0,4);
- var month =3D date.substr(5,2);
- var day =3D date.substr(8,2); =09
- var hour =3D date.substr(11,2); =09
- var minute =3D date.substr(14,2); =09
- var second =3D date.substr(17,2); =09
- var output;=09
- if (format=3D=3D"dd/MM/yyyy") output =3D day + "/" +=
month + "/" + year;
- else if (format=3D=3D"MM/dd/yyyy") output =3D month =
+ "/" + day + "/" + year;
- else if (format=3D=3D"hh:mm") output =3D hour + ":" =
+ minute;
- else if (format=3D=3D"hh:mm:ss") output =3D hour + "=
:" + minute + ":" + second;
- else if (format=3D=3D"yyyy/MM/dd=
") output =3D year + "/" + mounth + "/" + day;
- else output =3D date;=09
- return output;
- }
- else return "no date";
- }
- </script>
- =20
<xsl:choose>=09
<xsl:when test=3D"/page/flagaction=3D'Read'">
<script language=3D"JavaScript">
@@ -55,19 +23,19 @@
<table cellspacing=3D"0" cellpadding=3D"0" style=3D"=
border-collapse: collapse">
<tr>
<td>
- <input type=3D"text" id=3D"f_date_c" nam=
e=3D"{$sysAttName}" value=3D"{$data}" readonly=3D"1" />
+ <input type=3D"text" id=3D"f_date_c{$sys=
AttName}" name=3D"{$sysAttName}" value=3D"{$data}" readonly=3D"1" />
</td>
<td>
- <img src=3D"js/calendar/img.gif" id=3D"f_tri=
gger_c" style=3D"cursor: pointer; border: 1px solid red;" title=3D"Date s=
elector"
+ <img src=3D"js/calendar/img.gif" id=3D"f_tri=
gger_c{$sysAttName}" style=3D"cursor: pointer; border: 1px solid red;" ti=
tle=3D"Date selector"
onmouseover=3D"this.style.background=3D'=
red';" onmouseout=3D"this.style.background=3D''" />
</td>
</tr>
</table>
<script type=3D"text/javascript">
Calendar.setup({
- inputField : "f_date_c", // id of=
the input field
- ifFormat : "%Y/%m/%d", // form=
at of the input field
- button : "f_trigger_c", // trigg=
er for the calendar (button ID)
+ inputField : "f_date_c<xsl:value-of s=
elect=3D"$sysAttName" />", // id of the input field
+ ifFormat : "%Y-%m-%d", // form=
at of the input field
+ button : "f_trigger_c<xsl:value-o=
f select=3D"$sysAttName" />", // trigger for the calendar (button ID)
align : "Tl", // align=
ment (defaults to "Bl")
singleClick : true
});
@@ -88,19 +56,19 @@
<table cellspacing=3D"0" cellpadding=3D"0" style=3D"=
border-collapse: collapse">
<tr>
<td>
- <input type=3D"text" id=3D"f_date_c" na=
me=3D"{$sysAttName}" value=3D"{$data}" readonly=3D"1" />
+ <input type=3D"text" id=3D"f_date_c{$sys=
AttName}" name=3D"{$sysAttName}" value=3D"{$data}" readonly=3D"1" />
</td>
<td>
- <img src=3D"js/calendar/img.gif" id=3D"f=
_trigger_c" style=3D"cursor: pointer; border: 1px solid red;" title=3D"Da=
te selector"
+ <img src=3D"js/calendar/img.gif" id=3D"f=
_trigger_c{$sysAttName}" style=3D"cursor: pointer; border: 1px solid red;=
" title=3D"Date selector"
onmouseover=3D"this.style.background=
=3D'red';" onmouseout=3D"this.style.background=3D''" />
</td>
</tr>
</table>
<script type=3D"text/javascript">
Calendar.setup({
- inputField : "f_date_c", // id of=
the input field
- ifFormat : "%Y/%m/%d", // form=
at of the input field
- button : "f_trigger_c", // trigg=
er for the calendar (button ID)
+ inputField : "f_date_c<xsl:value-of s=
elect=3D"$sysAttName" />", // id of the input field
+ ifFormat : "%Y-%m-%d", // form=
at of the input field
+ button : "f_trigger_c<xsl:value-o=
f select=3D"$sysAttName" />", // trigger for the calendar (button ID)
align : "Tl", // align=
ment (defaults to "Bl")
singleClick : true
});
@@ -108,6 +76,5 @@
</xsl:if>
</xsl:when>
</xsl:choose>
-
</xsl:template>
</xsl:stylesheet>
|
|
From: <sv...@de...> - 2005-05-18 17:46:24
|
Author: svera
Date: 2005-05-18 13:46:14 -0400 (Wed, 18 May 2005)
New Revision: 1088
Modified:
humano2/trunk/web/portal/site/leftbar.aspx.cs
humano2/trunk/web/portal/site/xsl/leftbar.xsl
Log:
* the left bar now include the report's to show
Modified: humano2/trunk/web/portal/site/leftbar.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/portal/site/leftbar.aspx.cs 2005-05-18 17:42:31 UTC=
(rev 1087)
+++ humano2/trunk/web/portal/site/leftbar.aspx.cs 2005-05-18 17:46:14 UTC=
(rev 1088)
@@ -109,6 +109,8 @@
=20
DataTable DTView =3D dbAdapter.GenerateViewTools(1011,"0,1017,1018",=
filtro,"","","",0);
=20
+ DataTable DTReport =3D dbAdapter.GenerateViewTools(1300,"0,1307",fil=
tro,"","","",0);
+
filtro =3D String.Format("1201|4|'CREATE'|1|0;{0}",filtro);
DataTable DTForm =3D dbAdapter.GenerateViewTools(1200,"0,1203,1202,1=
201",filtro,"","","",0);
=20
@@ -119,7 +121,17 @@
xmlString +=3D " <folder>";
xmlString +=3D " <id>" + Dr["id_entity"] + "</id>";
xmlString +=3D " <name>" + Dr[1] + "</name>";
- xmlString +=3D " <parent>" + Dr[3] + "</parent>";
+ if (Dr[3] !=3D null)
+ {
+ if (Dr[3].ToString() !=3D "" && Dr[3].ToString() !=3D "0")
+ {
+ xmlString +=3D " <parent>" + Dr[3] + "</parent>";
+ }else{
+ xmlString +=3D " <parent></parent>";
+ }
+ }else{
+ xmlString +=3D " <parent></parent>";
+ }
Forms =3D Convert.ToString(Dr[2]);
=20
if (Forms!=3D"")
@@ -143,7 +155,15 @@
xmlString +=3D " <type></type>";
xmlString +=3D " </form>";
}
-
+ foreach(DataRow Dr3 in DTReport.Select("id_entity in (" + Forms + =
")"))=20
+ {
+ xmlString +=3D " <report>";
+ xmlString +=3D " <id>" + Dr3["id_entity"] + "</id>";
+ xmlString +=3D " <classId></classId>";
+ xmlString +=3D " <name>" + Dr3[1] + "</name>";
+ xmlString +=3D " <type></type>";
+ xmlString +=3D " </report>";
+ }
}
xmlString +=3D " </folder>";
}
Modified: humano2/trunk/web/portal/site/xsl/leftbar.xsl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/portal/site/xsl/leftbar.xsl 2005-05-18 17:42:31 UTC=
(rev 1087)
+++ humano2/trunk/web/portal/site/xsl/leftbar.xsl 2005-05-18 17:46:14 UTC=
(rev 1088)
@@ -86,7 +86,21 @@
tree_<xsl:value-of select=3D"$idFolder"/>.add(child_<xsl:value=
-of select=3D"id"/>);
</xsl:if> =09
</xsl:for-each>=09
- =09
+<!--SVERA Inicio seccion Report --> =09
+ <xsl:for-each select=3D"report">
+ <xsl:if test=3D"id!=3D''">
+ <!--
+ <xsl:if test=3D"type!=3D''">
+ var child_<xsl:value-of select=3D"id" /> =3D new WebFXTreeIte=
m('<xsl:value-of select=3D"name" />','Data_structured.aspx?action=3Dcreat=
e&display=3DreadXslt.aspx&id_entity=3D<xsl:value-of select=3D"cla=
ssId" />&formsId=3D<xsl:value-of select=3D"id" />','','img/webfxtree/=
crearinstance.jpeg');
+ </xsl:if> -->
+ <!-- =09
+ <xsl:if test=3D"type=3D''"> -->
+ var child_<xsl:value-of select=3D"id" /> =3D new WebFXTreeIte=
m('<xsl:value-of select=3D"name" />','report.aspx?id_entity=3D<xsl:value-=
of select=3D"id" />&classId=3D<xsl:value-of select=3D"classId" />',''=
,'img/webfxtree/reporte.jpeg');
+ <!-- </xsl:if> --> =09
+ tree_<xsl:value-of select=3D"$idFolder"/>.add(child_<xsl:value=
-of select=3D"id"/>);
+ </xsl:if> =09
+ </xsl:for-each>
+<!-- Fin seccion Report --> =09
</xsl:for-each><!--Para Folders-->
</xsl:if>
=20
|
|
From: <sv...@de...> - 2005-05-18 17:42:32
|
Author: marijn
Date: 2005-05-18 13:42:31 -0400 (Wed, 18 May 2005)
New Revision: 1087
Modified:
humano2/trunk/web/portal/site/xsl/topbar.xsl
Log:
Changing interface to english.
Modified: humano2/trunk/web/portal/site/xsl/topbar.xsl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/portal/site/xsl/topbar.xsl 2005-05-18 17:35:20 UTC =
(rev 1086)
+++ humano2/trunk/web/portal/site/xsl/topbar.xsl 2005-05-18 17:42:31 UTC =
(rev 1087)
@@ -20,15 +20,15 @@
<tr>
<td width=3D"406" class=3D"topbar1">
<span id=3D"LabelFolder">   <img src=3D'img/btn_ini=
cio.gif' align=3D'absMiddle'/>
- <a href=3D'leftbar.aspx?mode=3D1' target=3D'leftFrame' class=3D'l=
inks-dblue'> Folder...</a>
+ <a href=3D'leftbar.aspx?mode=3D1' target=3D'leftFrame' class=3D'l=
inks-dblue'> Folders...</a>
</span>
=09
<span id=3D"LabelExplorar">   <img src=3D'img/btn_e=
xplorar.gif' align=3D'absMiddle'/>
- <a href=3D'leftbar.aspx' target=3D'leftFrame' class=3D'links-dblu=
e'> Explorar...</a>
+ <a href=3D'leftbar.aspx' target=3D'leftFrame' class=3D'links-dblu=
e'> Explore...</a>
</span>
=09
<span id=3D"LabelExplorarSystemClass">   <img src=3D=
'img/btn_explorar.gif' align=3D'absMiddle'/>
- <a href=3D'leftbar.aspx?mode=3D2' target=3D'leftFrame' class=3D'l=
inks-dblue'> Explorar System Class...</a>
+ <a href=3D'leftbar.aspx?mode=3D2' target=3D'leftFrame' class=3D'l=
inks-dblue'> Explore System Classes...</a>
</span>
=09
</td>
@@ -37,7 +37,7 @@
<img src=3D"img/topbar_curve.jpg" width=3D"66" height=3D"36"/>
</td>
<td width=3D"295" class=3D"topbar-username-box">
- <span id=3D"LabelLogin"><xsl:value-of disable-output-escaping=3D"=
yes" select=3D"Page/Current-Info/UserName"/></span>  - =
60;<span id=3D"LabelDominio"><xsl:value-of disable-output-escaping=3D"yes=
" select=3D"Page/Current-Info/DomainName"/></span>-<a href=3D"login.aspx"=
target=3D"_top" class=3D"links-wt">Salir</a>
+ <span id=3D"LabelLogin"><xsl:value-of disable-output-escaping=3D"=
yes" select=3D"Page/Current-Info/UserName"/></span>  - =
60;<span id=3D"LabelDominio"><xsl:value-of disable-output-escaping=3D"yes=
" select=3D"Page/Current-Info/DomainName"/></span>  - =
0;<a href=3D"login.aspx" target=3D"_top" class=3D"links-wt">Logout</a>
</td>
<td width=3D"81" class=3D"topbar-logo">
<img id=3D"ImageLogo" src=3D"img/topbar_backgrd_logo.jpg" alt=3D"=
" border=3D"0" />
@@ -48,7 +48,7 @@
<td class=3D"topbar2" colspan=3D"4">
<table border=3D"0" width=3D"100%" cellspacing=3D"0" cellpaddi=
ng=3D"0">
<tr height=3D"23">
- <td width=3D"50">Crear:</td>
+ <td width=3D"50">Create:</td>
<td align=3D"left" width=3D"150">
<span id=3D"LabelCrear">
<select name=3D"createType" onchange=3D"showType()">=20
@@ -71,7 +71,7 @@
<span id=3D"LabelBuscar">
<table border=3D"0" cellspacing=3D"0" cellpadding=3D"0">
<tr>
- <td>Buscar por:</td>
+ <td>Search in:</td>
<td>
<select name=3D"intEntityType" id=3D"intEntityType" style=3D"=
width:150px;" onchange=3D"javascript:ChargeAtt(this)">
<option value=3D"0">Seleccionar...</option>
@@ -93,7 +93,7 @@
<input name=3D"strSearchedText" type=3D"text" class=3D"textfi=
eld"/>
</td> =09
<td>  </td>
- <td><input type=3D"button" value=3D"Buscar" onclick=3D"javascr=
ipt:EntitySearch()"/></td>
+ <td><input type=3D"button" value=3D"Search" onclick=3D"javascr=
ipt:EntitySearch()"/></td>
<td>  </td>
</tr>
</table>
|
|
From: <sv...@de...> - 2005-05-18 17:35:23
|
Author: marijn
Date: 2005-05-18 13:35:20 -0400 (Wed, 18 May 2005)
New Revision: 1086
Modified:
humano2/trunk/web/portal/site/Data_structured.aspx.cs
humano2/trunk/web/portal/site/xsl/data_structured.xsl
Log:
Changing interface to english.
Modified: humano2/trunk/web/portal/site/Data_structured.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/portal/site/Data_structured.aspx.cs 2005-05-18 17:0=
5:39 UTC (rev 1085)
+++ humano2/trunk/web/portal/site/Data_structured.aspx.cs 2005-05-18 17:3=
5:20 UTC (rev 1086)
@@ -176,7 +176,7 @@
strXml +=3D " <form>";
strXml +=3D " <id>" + Dr2["id_entity"] + "</id>";
strXml +=3D " <classId>" + Dr2[1] + "</classId>";
- strXml +=3D " <name>" + Dr2[2] + "</name>";
+ strXml +=3D " <name>" + Dr2[2] + "</name>";
strXml +=3D " <type>" + Dr2[3] + "</type>";
strXml +=3D " </form>"; =09
}
Modified: humano2/trunk/web/portal/site/xsl/data_structured.xsl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/portal/site/xsl/data_structured.xsl 2005-05-18 17:0=
5:39 UTC (rev 1085)
+++ humano2/trunk/web/portal/site/xsl/data_structured.xsl 2005-05-18 17:3=
5:20 UTC (rev 1086)
@@ -30,19 +30,19 @@
<tr>
<xsl:if test=3D"page/infoShowView/labels/label1=3D1">
<td vAlign=3D"top" width=3D"60" onclick=3D"javascript:New_inst=
ance()">
- <div onmouseup=3D"changeClass4(this)" class=3D"altButtonForma=
t" onmousedown=3D"changeClass3(this)" id=3D"Div_1" onmouseover=3D"changeC=
lass1(this)" title=3D"" onmouseout=3D"changeClass2(this)"><img id=3D"ImgL=
abel1" style=3D"VERTICAL-ALIGN: bottom" height=3D"16" src=3D"img/mostrar_=
imagen.gif" width=3D"16" align=3D"absMiddle"/>Nuevo</div>
+ <div onmouseup=3D"changeClass4(this)" class=3D"altButtonForma=
t" onmousedown=3D"changeClass3(this)" id=3D"Div_1" onmouseover=3D"changeC=
lass1(this)" title=3D"" onmouseout=3D"changeClass2(this)"><img id=3D"ImgL=
abel1" style=3D"VERTICAL-ALIGN: bottom" height=3D"16" src=3D"img/mostrar_=
imagen.gif" width=3D"16" align=3D"absMiddle"/>New</div>
</td>
</xsl:if> =09
=09
<xsl:if test=3D"page/infoShowView/labels/label2=3D1">
<td vAlign=3D"top" width=3D"60" onclick=3D"javascript:Edit_ins=
tance()">
- <div onmouseup=3D"changeClass4(this)" class=3D"altButtonForma=
t" onmousedown=3D"changeClass3(this)" id=3D"Div_2" onmouseover=3D"changeC=
lass1(this)" title=3D"" onmouseout=3D"changeClass2(this)"><img id=3D"ImgL=
abel2" style=3D"VERTICAL-ALIGN: bottom" height=3D"16" src=3D"img/mostrar_=
imagen.gif" width=3D"16" align=3D"absMiddle"/>Editar</div>
+ <div onmouseup=3D"changeClass4(this)" class=3D"altButtonForma=
t" onmousedown=3D"changeClass3(this)" id=3D"Div_2" onmouseover=3D"changeC=
lass1(this)" title=3D"" onmouseout=3D"changeClass2(this)"><img id=3D"ImgL=
abel2" style=3D"VERTICAL-ALIGN: bottom" height=3D"16" src=3D"img/mostrar_=
imagen.gif" width=3D"16" align=3D"absMiddle"/>Edit</div>
</td>
</xsl:if> =09
=09
<xsl:if test=3D"page/infoShowView/labels/label3=3D1">
<td vAlign=3D"top" width=3D"70" onclick=3D"javascript:window.f=
rames['FrameSHowView'].saveInstance();">
- <div onmouseup=3D"changeClass4(this)" class=3D"altButtonForma=
t" onmousedown=3D"changeClass3(this)" id=3D"Div_3" onmouseover=3D"changeC=
lass1(this)" title=3D"" onmouseout=3D"changeClass2(this)" ><img id=3D"Img=
Label3" style=3D"VERTICAL-ALIGN: bottom" height=3D"16" src=3D"img/mostrar=
_imagen.gif" width=3D"16" align=3D"absMiddle"/>Guardar</div>
+ <div onmouseup=3D"changeClass4(this)" class=3D"altButtonForma=
t" onmousedown=3D"changeClass3(this)" id=3D"Div_3" onmouseover=3D"changeC=
lass1(this)" title=3D"" onmouseout=3D"changeClass2(this)" ><img id=3D"Img=
Label3" style=3D"VERTICAL-ALIGN: bottom" height=3D"16" src=3D"img/mostrar=
_imagen.gif" width=3D"16" align=3D"absMiddle"/>Save</div>
</td>
</xsl:if> =09
=09
@@ -90,12 +90,12 @@
<table valign=3D"center" cellspacing=3D"0" cellpadding=3D"0">
<tr>
<td height=3D"25" align=3D"center" class=3D"Texto">
- <a href=3D"javascript:prevPage()" class=3D"links-bold">anterior=
</a>
- p=C3=A1gina <font id=3D"IntActual">1</font> de <font id=3D=
"CantRegBottom">0</font>=C2=A0
- <a href=3D"javascript:nextPage()" class=3D"links-bold">=
siguiente</a>
- =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Saltar a p=C3=A1gina=C2=A0
- <input type=3D"text" name=3D"textfield" size=3D"1" class=3D"inp=
ut"/>=C2=A0
- <input type=3D"button" name=3D"btn_ok" value=3D"OK" cl=
ass=3D"input" onclick=3D"javascript:gotoPage(document.formulario.textfiel=
d.value)"/>
+ <span>
+ <a href=3D"javascript:prevPage()" class=3D"links-bold">Previous=
</a>
+ Page <font id=3D"IntActual">1</font> de <font id=3D"CantR=
egBottom">0</font>=20
+ <a href=3D"javascript:nextPage()" class=3D"links-bold">=
next</a></span>
+ <span>Goto Page <input type=3D"text" name=3D"textfield" size=3D=
"1" class=3D"input"/>
+ <input type=3D"button" name=3D"btn_ok" value=3D"OK" cl=
ass=3D"input" onclick=3D"javascript:gotoPage(document.formulario.textfiel=
d.value)"/></span>
</td>
</tr>
</table>
|
|
From: <sv...@de...> - 2005-05-18 17:05:50
|
Author: marijn Date: 2005-05-18 13:05:39 -0400 (Wed, 18 May 2005) New Revision: 1085 Modified: humano2/trunk/web/portal/site/xsl/showviewrelation.xsl Log: Changing language to English. Modified: humano2/trunk/web/portal/site/xsl/showviewrelation.xsl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/portal/site/xsl/showviewrelation.xsl 2005-05-18 17:= 02:22 UTC (rev 1084) +++ humano2/trunk/web/portal/site/xsl/showviewrelation.xsl 2005-05-18 17:= 05:39 UTC (rev 1085) @@ -263,7 +263,7 @@ <table width=3D"100%" border=3D"0" cellspacing=3D"0" cellpadding=3D= "0"> <tr bgcolor=3D"#FFFFFF"> <td class=3D"topcenter-tables2"> - No Existen resultados para esta consulta. + No data for this relation. </td> </tr> </table>=09 |
|
From: <sv...@de...> - 2005-05-18 17:02:32
|
Author: marcelo Date: 2005-05-18 13:02:22 -0400 (Wed, 18 May 2005) New Revision: 1084 Added: humano2/branches/datareader/core/schema/mssql/mssql-2-formulas.sql humano2/branches/datareader/core/schema/mssql/mssql-3-view.sql Log: Added: humano2/branches/datareader/core/schema/mssql/mssql-2-formulas.sql =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/branches/datareader/core/schema/mssql/mssql-2-formulas.sql 20= 05-05-18 17:01:42 UTC (rev 1083) +++ humano2/branches/datareader/core/schema/mssql/mssql-2-formulas.sql 20= 05-05-18 17:02:22 UTC (rev 1084) @@ -0,0 +1,48 @@ +-- 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: mssql-2-formulas.sql 1082 2005-05-18 16:58:10Z marcelo $ + +CREATE TABLE formula ( + "id_entity" integer PRIMARY KEY, + "formula" text, + "attributeId" integer, + "orderFormula" integer,=20 + "formulaName" text, + "descFormula" text +); +set identity_insert entity on +INSERT INTO entity ("id_entity","domainId","class","delDate","status")=20 + VALUES (1001, 10, 2, NULL, NULL); +INSERT INTO entity ("id_entity","domainId","class","delDate","status") + VALUES (1002, 10, 13, NULL, NULL); +INSERT INTO entity ("id_entity","domainId","class","delDate","status") + VALUES (1003, 10, 81, NULL, NULL); +INSERT INTO entity ("id_entity","domainId","class","delDate","status") + VALUES (1004, 10, 9, NULL, NULL); +INSERT INTO entity ("id_entity","domainId","class","delDate","status") + VALUES (1005, 10, 13, NULL, NULL); +INSERT INTO entity ("id_entity","domainId","class","delDate","status") + VALUES (1006, 10, 13, NULL, NULL); +set identity_insert entity off + +INSERT INTO "class" VALUES (1001, 27, 'formula', 'formula', 3, 0, 0, NUL= L); + +INSERT INTO "attribute" VALUES (1002, 1001, 'formula', 'formula', 0.00, = 0, 1, 0, 1, 0, 1, 0, 0, NULL, 1, 0 ); +INSERT INTO "attribute" VALUES (1003, 1001, 'attributeId', 'attributeId'= , 0.00, 0, 1, 0, 0, 0, 0, 0, 0, NULL, 1, 0 ); +INSERT INTO "attribute" VALUES (1004, 1001, 'orderFormula', 'order', 0.0= 0, 0, 1, 0, 1, 0, 0, 0, 0, NULL, 1, 0); +INSERT INTO "attribute" VALUES (1005, 1001, 'formulaName', 'name', 0.00,= 0, 1, 0, 1, 0, 0, 0, 0, NULL, 1, 0); +INSERT INTO "attribute" VALUES (1006, 1001, 'descFormula', 'desciption',= 0.00, 0, 1, 0, 1, 0, 0, 0, 0, NULL, 1, 0); + +INSERT INTO "numeric" VALUES (1004, NULL, NULL, NULL, NULL); + +INSERT INTO "pertinence" VALUES (1003, 1003, 5, 'n:1', NULL, NULL,NULL); + +INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1002, 5= , 40, 0); +INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1005, 5= , 25, 0); +INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1006, 5= , 25, 0); Added: humano2/branches/datareader/core/schema/mssql/mssql-3-view.sql =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/branches/datareader/core/schema/mssql/mssql-3-view.sql 2005-0= 5-18 17:01:42 UTC (rev 1083) +++ humano2/branches/datareader/core/schema/mssql/mssql-3-view.sql 2005-0= 5-18 17:02:22 UTC (rev 1084) @@ -0,0 +1,51 @@ +-- 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: mssql-3-view.sql 1082 2005-05-18 16:58:10Z marcelo $ + +CREATE TABLE "view" ( + id_entity integer PRIMARY KEY, + "columns" text, + "where" text, + "groupby" text, + "having" text, + "order" text, + "idClassView" integer, + "viewName" character varying(50) +); + +set identity_insert entity ON +INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1011, 10, 2, NULL, NULL); +INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1012, 10, 13, NULL, NULL); +INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1013, 10, 13, NULL, NULL); +INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1014, 10, 13, NULL, NULL); +INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1015, 10, 13, NULL, NULL); +INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1016, 10, 13, NULL, NULL); +INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1017, 10, 81,NULL, NULL); +INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1018, 10, 8, NULL, NULL); +set identity_insert entity Off + +INSERT INTO "class" VALUES (1011, 27, 'view', 'view', 3, 0, 0, NULL); + +INSERT INTO attribute VALUES (1012, 1011, 'columns', 'columns', 0.00, 0,= 1, 0, 1, 0, 0, 0, 0, NULL, 1, 0); +INSERT INTO attribute VALUES (1013, 1011, 'where', 'where', 0.00, 0, 1, = 0, 1, 0, 0, 0, 0, NULL, 1, 0); +INSERT INTO attribute VALUES (1014, 1011, 'groupby', 'groupby', 0.00, 0,= 1, 0, 1, 0, 0, 0, 0, NULL, 1, 0); +INSERT INTO attribute VALUES (1015, 1011, 'having', 'having', 0.00, 0, 1= , 0, 1, 0, 0, 0, 0, NULL, 1, 0); +INSERT INTO attribute VALUES (1016, 1011, 'order', 'order', 0.00, 0, 1, = 0, 1, 0, 0, 0, 0, NULL, 1, 0); +INSERT INTO attribute VALUES (1017, 1011, 'idClassView', 'class', 0.00, = 0, 1, 0, 0, 0, 0, 0, 0, NULL, 1, 0); +INSERT INTO attribute VALUES (1018, 1011, 'viewName', 'name', 0.00, 0, 1= , 0, 1, 0, 1, 0, 0, NULL, 1, 0); + +INSERT INTO pertinence VALUES (1017, 1017, 2, 'n:1', NULL, NULL, NULL); + +INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1012,5= ,25,0); +INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1013,5= ,25,0); +INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1014,5= ,25,0); +INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1015,5= ,25,0); +INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1016,5= ,25,0); + +INSERT INTO textline VALUES (1018, NULL, NULL, NULL, NULL); |
|
From: <sv...@de...> - 2005-05-18 17:01:51
|
Author: marcelo Date: 2005-05-18 13:01:42 -0400 (Wed, 18 May 2005) New Revision: 1083 Removed: humano2/branches/datareader/core/schema/mssql/msql-2-formulas.sql humano2/branches/datareader/core/schema/mssql/msql-3-view.sql Modified: humano2/branches/datareader/core/schema/mssql/mssql-1-metadata.sql humano2/branches/datareader/core/schema/mssql/mssql-4-extendedAttribut= es.sql humano2/branches/datareader/core/schema/mssql/mssql-5-rules.sql humano2/branches/datareader/core/schema/mssql/mssql-6-form.sql humano2/branches/datareader/core/schema/mssql/mssql-7-report.sql humano2/branches/datareader/core/schema/mssql/mssql-8-folder.sql Log: Deleted: humano2/branches/datareader/core/schema/mssql/msql-2-formulas.sq= l =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/branches/datareader/core/schema/mssql/msql-2-formulas.sql 200= 5-05-18 16:58:10 UTC (rev 1082) +++ humano2/branches/datareader/core/schema/mssql/msql-2-formulas.sql 200= 5-05-18 17:01:42 UTC (rev 1083) @@ -1,48 +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: pgsql-2-formulas.sql 946 2005-05-10 14:53:11Z marijn $ - -CREATE TABLE formula ( - "id_entity" integer PRIMARY KEY, - "formula" text, - "attributeId" integer, - "orderFormula" integer,=20 - "formulaName" text, - "descFormula" text -); -set identity_insert entity on -INSERT INTO entity ("id_entity","domainId","class","delDate","status")=20 - VALUES (1001, 10, 2, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") - VALUES (1002, 10, 13, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") - VALUES (1003, 10, 81, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") - VALUES (1004, 10, 9, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") - VALUES (1005, 10, 13, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") - VALUES (1006, 10, 13, NULL, NULL); -set identity_insert entity off - -INSERT INTO "class" VALUES (1001, 27, 'formula', 'formula', 3, 'f', 'f',= NULL); - -INSERT INTO "attribute" VALUES (1002, 1001, 'formula', 'formula', 0.00, = 'f', 't', 'f', 't', 'f', 't', 'f', 'f', NULL, 't', 0 ); -INSERT INTO "attribute" VALUES (1003, 1001, 'attributeId', 'attributeId'= , 0.00, 'f', 't', 'f', 'f', 'f', 'f', 'f', 'f', NULL, 't', 0 ); -INSERT INTO "attribute" VALUES (1004, 1001, 'orderFormula', 'order', 0.0= 0, 'f', 't', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0); -INSERT INTO "attribute" VALUES (1005, 1001, 'formulaName', 'name', 0.00,= 'f', 't', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0); -INSERT INTO "attribute" VALUES (1006, 1001, 'descFormula', 'desciption',= 0.00, 'f', 't', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0); - -INSERT INTO "numeric" VALUES (1004, NULL, NULL, NULL, NULL); - -INSERT INTO "pertinence" VALUES (1003, 1003, 5, 'n:1', NULL, NULL,NULL); - -INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1002, 5= , 40, 'f'); -INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1005, 5= , 25, 'f'); -INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1006, 5= , 25, 'f'); Deleted: humano2/branches/datareader/core/schema/mssql/msql-3-view.sql =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/branches/datareader/core/schema/mssql/msql-3-view.sql 2005-05= -18 16:58:10 UTC (rev 1082) +++ humano2/branches/datareader/core/schema/mssql/msql-3-view.sql 2005-05= -18 17:01:42 UTC (rev 1083) @@ -1,51 +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: pgsql-3-view.sql 817 2005-05-06 00:49:38Z pcamacho $ - -CREATE TABLE "view" ( - id_entity integer PRIMARY KEY, - "columns" text, - "where" text, - "groupby" text, - "having" text, - "order" text, - "idClassView" integer, - "viewName" character varying(50) -); - -set identity_insert entity ON -INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1011, 10, 2, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1012, 10, 13, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1013, 10, 13, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1014, 10, 13, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1015, 10, 13, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1016, 10, 13, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1017, 10, 81,NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1018, 10, 8, NULL, NULL); -set identity_insert entity Off - -INSERT INTO "class" VALUES (1011, 27, 'view', 'view', 3, 'f', 'f', NULL)= ; - -INSERT INTO attribute VALUES (1012, 1011, 'columns', 'columns', 0.00, 'f= ', 't', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0); -INSERT INTO attribute VALUES (1013, 1011, 'where', 'where', 0.00, 'f', '= t', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0); -INSERT INTO attribute VALUES (1014, 1011, 'groupby', 'groupby', 0.00, 'f= ', 't', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0); -INSERT INTO attribute VALUES (1015, 1011, 'having', 'having', 0.00, 'f',= 't', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0); -INSERT INTO attribute VALUES (1016, 1011, 'order', 'order', 0.00, 'f', '= t', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0); -INSERT INTO attribute VALUES (1017, 1011, 'idClassView', 'class', 0.00, = 'f', 't', 'f', 'f', 'f', 'f', 'f', 'f', NULL, 't', 0); -INSERT INTO attribute VALUES (1018, 1011, 'viewName', 'name', 0.00, 'f',= 't', 'f', 't', 'f', 't', 'f', 'f', NULL, 't', 0); - -INSERT INTO pertinence VALUES (1017, 1017, 2, 'n:1', NULL, NULL, NULL); - -INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1012,5= ,25,'f'); -INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1013,5= ,25,'f'); -INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1014,5= ,25,'f'); -INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1015,5= ,25,'f'); -INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1016,5= ,25,'f'); - -INSERT INTO textline VALUES (1018, NULL, NULL, NULL, NULL); Modified: humano2/branches/datareader/core/schema/mssql/mssql-1-metadata.= sql =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/branches/datareader/core/schema/mssql/mssql-1-metadata.sql 20= 05-05-18 16:58:10 UTC (rev 1082) +++ humano2/branches/datareader/core/schema/mssql/mssql-1-metadata.sql 20= 05-05-18 17:01:42 UTC (rev 1083) @@ -6,7 +6,7 @@ -- the Free Software Foundation; either version 2 of the License, or -- (at your option) any later version. =20 -- --- $Id: pgsql-1-metadata.sql 941 2005-05-10 07:07:42Z marijn $ +-- $Id: mssql-1-metadata.sql 1082 2005-05-18 16:58:10Z marcelo $ =20 -- Este archivo contiene el eschema para la base de datos PostgreSQL de -- La meta data y sistema de Humano2. @@ -19,16 +19,16 @@ "sysAttName" Varchar(50) NOT NULL, "attName" Varchar(50) NOT NULL, "order" Numeric(10,2) NOT NULL DEFAULT 0, - "isObligatory" char(1) NOT NULL DEFAULT 'f', -- No se puede crear si e= sto es true, pero el attributo no esta definido - "isActive" char(1) NOT NULL DEFAULT 't', -- Es activo (=3D habilitado)= en el definicion del class - "isSearchable" char(1) NOT NULL DEFAULT 't', -- Se debe habilitar para= full-text search.=20 - "isEditable" char(1) NOT NULL DEFAULT 't', -- Si se puede editar una v= ez creado. - "isSelfLookup" char(1) NOT NULL DEFAULT 'f', -- Para si este attributo= tiene la posibilidad de hacer un drilldown. - "isPrimary" char(1) NOT NULL DEFAULT 'f', -- Si es llave primaria (UNI= QUE, NOT NULL) - "isUnique" char(1) NOT NULL DEFAULT 'f', -- Si es el valor del attribu= to es unico en la class. - "isVirtual" char(1) NOT NULL DEFAULT 'f', -- Si el atributo es virtual= no genera una columna + "isObligatory" Bit NOT NULL DEFAULT 0, -- No se puede crear si esto es= true, pero el attributo no esta definido + "isActive" Bit NOT NULL DEFAULT 1, -- Es activo (=3D habilitado) en el= definicion del class + "isSearchable" Bit NOT NULL DEFAULT 1, -- Se debe habilitar para full-= text search.=20 + "isEditable" Bit NOT NULL DEFAULT 1, -- Si se puede editar una vez cre= ado. + "isSelfLookup" Bit NOT NULL DEFAULT 0, -- Para si este attributo tiene= la posibilidad de hacer un drilldown. + "isPrimary" Bit NOT NULL DEFAULT 0, -- Si es llave primaria (UNIQUE, N= OT NULL) + "isUnique" Bit NOT NULL DEFAULT 0, -- Si es el valor del attributo es = unico en la class. + "isVirtual" Bit NOT NULL DEFAULT 0, -- Si el atributo es virtual no ge= nera una columna "descAtt" text, -- Descripcion del attributo. - "protection" char(1) NOT NULL DEFAULT 'f', -- Para que no se puede bo= rrar a nivel del builder (=3D anti-condoro) + "protection" Bit NOT NULL DEFAULT 0, -- Para que no se puede borrar a= nivel del builder (=3D anti-condoro) "display" Integer, primary key ("id_entity") ); @@ -40,7 +40,7 @@ "group" Integer NOT NULL, -- Grupo de opciones a la que pertenece la= opcion "value" Varchar(50) NOT NULL, "parent" Integer, -- Para relaciones entre opciones, Region, Comuna. - "isActiveOption" char(1) not null default 't', -- Si es activo. + "isActiveOption" Bit not null default 1, -- Si es activo. "orderOption" Numeric(10,2), primary key ("id_entity") ); @@ -61,8 +61,8 @@ "sysName" Varchar(50) NOT NULL, -- Nombre de la tabla en la BD "name" Varchar(50) NOT NULL, -- Nombre explicativo, human name "parentId" Integer, -- Clase padre, de la cual se hereda. - "isAbstract" char(1) NOT NULL default 'f', -- significa que no se pued= e instanciar solo (como entity) - "isHidden" char(1) NOT NULL default 'f', -- significa que el class no = es visible al usuario.=09 + "isAbstract" Bit NOT NULL default 0, -- significa que no se puede inst= anciar solo (como entity) + "isHidden" Bit NOT NULL default 0, -- significa que el class no es vis= ible al usuario.=09 "descClass" text, primary key ("id_entity") ); @@ -110,7 +110,7 @@ "maxsize" integer NOT NULL, -- Tamano maximo para subir en Kilobytes. "path" Varchar(50), -- Ubicacion en el sistema de archivos. "extensions" Varchar(50), -- Extenciones de archivos permitidos. - "link" char(1), -- FIXME + "link" Bit, -- FIXME primary key ("id_entity") ); =20 @@ -157,7 +157,7 @@ "id_entity" Integer NOT NULL, "rows" Integer NOT NULL, -- Numero of rows for the TextArea "cols" Integer NOT NULL, -- Numero of columns for the TextArea - "isHtml" char(1) NOT NULL DEFAULT 'f', + "isHtml" Bit NOT NULL DEFAULT 0, primary key ("id_entity") ); =20 @@ -202,6 +202,14 @@ primary key ("id_entity") ); =20 +Create table "version" +( + "id_entity" Integer NOT NULL, + "versionItem" Varchar(50),=09 + "versionValue" Varchar(50),=09 + primary key ("id_entity") +); + /* Create Foreign Keys */ ALTER TABLE "Boolean" ADD CONSTRAINT FK_Boolean_attribute FOREIGN KEY= (id_entity) REFERENCES "attribute" ("id_entity") ON DELETE CASCADE Alter table "dateTime" ADD CONSTRAINT FK_dateTime_attribute FOREIGN KE= Y (id_entity) references "attribute" ("id_entity") ON DELETE CASCADE; @@ -224,26 +232,27 @@ INSERT INTO "classType" ("id_entity","sysClassTypeName","parentClassTyp= e") VALUES (27,'component',NULL); INSERT INTO "classType" ("id_entity","sysClassTypeName","parentClassTyp= e") VALUES (29,'solutionData',NULL); =20 -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (1,1, 'classType','classType',3,'f'); -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (2,1, 'class','class',3,'f'); -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (3,1, 'entity','entity',NULL,'t'); -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (5,1, 'attribute','attribute',3,'t'); -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (6,27, 'domain','domain',3,'f'); -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (7,27, 'user','user',3,'f'); -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (8,1, 'textline','textline',5,'f'); -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (9,1, 'numeric','numeric',5,'f'); -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (12,1,'dateTime','dateTime',5,'f'); -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (13,1,'text','text',5,'f'); -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (14,1,'inheritance','inheritance',5,'f'); -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (15,1,'choice','choice',81,'f'); -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (26,27,'user_domain','user_domain',3,'f'); -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (39,1,'file','file',5,'f'); -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (80,1, 'option','option',3,'f'); -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (81,1,'pertinence','pertinence',5,'f'); -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (82,1,'Boolean','Boolean',5,'f'); -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (130,1,'optionGroup','optionGroup',3,'f'); -INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (149,1,'displayAttribute','displayAttribute',3,'f= '); - +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (1,1, 'classType','classType',3,0); +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (2,1, 'class','class',3,0); +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (3,1, 'entity','entity',NULL,1); +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (5,1, 'attribute','attribute',3,1); +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (6,27, 'domain','domain',3,0); +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (7,27, 'user','user',3,0); +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (8,1, 'textline','textline',5,0); +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (9,1, 'numeric','numeric',5,0); +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (12,1,'dateTime','dateTime',5,0); +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (13,1,'text','text',5,0); +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (14,1,'inheritance','inheritance',5,0); +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (15,1,'choice','choice',81,0); +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (26,27,'user_domain','user_domain',3,0); +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (39,1,'file','file',5,0); +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (80,1, 'option','option',3,0); +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (81,1,'pertinence','pertinence',5,0); +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (82,1,'Boolean','Boolean',5,0); +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (130,1,'optionGroup','optionGroup',3,0); +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (149,1,'displayAttribute','displayAttribute',3,0)= ; +INSERT INTO "class" ("id_entity","classType","sysName","name","parentId= ","isAbstract") VALUES (153,1,'version','version',3,0); + SET IDENTITY_INSERT "entity" ON=20 INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"= ) VALUES (1,10,2,NULL,NULL); INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"= ) VALUES (2,10,2,NULL,NULL); @@ -378,88 +387,93 @@ INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"= ) VALUES (150,10,39,NULL,NULL); INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"= ) VALUES (151,10,81,NULL,NULL); INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"= ) VALUES (152,10,13,NULL,NULL); +INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"= ) VALUES (153,10,2,NULL,NULL); +INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"= ) VALUES (154,10,8,NULL,NULL); +INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"= ) VALUES (155,10,8,NULL,NULL); +INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"= ) VALUES (156,10,153,NULL,NULL); SET IDENTITY_INSERT "entity" Off =20 =20 -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (4,1,'parentCla= ssType','parentId',4,'t','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (16,6,'domainNa= me','name',1,'t','t','t','t','t','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (17,6,'statusDo= main','status',2,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (18,7,'email','= email',0,'f','t','f','f','f','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (19,7,'pass','p= ass',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (20,80,'group',= 'group',0,'f','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (21,80,'value',= 'value',0,'t','t','f','t','f','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (22,80,'parent'= ,'parent',0,'f','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (23,80,'isActiv= eOption','isActive',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (24,80,'orderOp= tion','order',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","isVirtual","protection","display") VALUES (25= ,7,'domains','domains',0,'f','t','f','f','t','f','f','t','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (30,1,'sysClass= TypeName','sysName',0,'t','t','f','f','f','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (31,2,'classTyp= e','classType',0,'t','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (32,2,'sysName'= ,'sysName',0,'t','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (33,2,'parentId= ','parentId',0,'t','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (34,3,'domainId= ','domainId',0,'t','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (35,3,'class','= class',0,'t','t','f','f','f','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (36,3,'delDate'= ,'delDate',0,'f','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (37,3,'status',= 'status',0,'f','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (40,5,'classId'= ,'classId',0,'t','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (41,5,'order','= order',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (42,5,'attName'= ,'name',-1,'t','t','f','t','f','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (43,8,'maxLengt= h','maximum size',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (44,8,'minLengt= h','minimum size',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (45,8,'defaultT= ext','default',0,'f','t','f','t','f','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (46,8,'dispSize= ','dispSize',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (47,9,'decimals= ','decimals',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (48,9,'max','ma= x',0,'f','t','f','t','f','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (49,9,'min','mi= n',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (50,9,'default'= ,'default',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (51,12,'format'= ,'format',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (52,12,'dispHou= rs','dispHours',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (53,13,'cols','= cols',0,'t','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (54,13,'rows','= rows',0,'t','t','f','t','f','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (55,13,'isHtml'= ,'isHtml',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (56,14,'From','= From',0,'f','t','f','f','f','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (57,14,'To','To= ',0,'f','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (60,15,'groupTy= pe','group',0,'f','t','f','f','f','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (61,5,'isObliga= tory','isObligatory',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (62,5,'isActive= ','isActive',0,'f','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (63,5,'isSearch= able','isSearchable',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (64,5,'isEditab= le','isEditable',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (65,5,'isSelfLo= okup','isSelfLookup',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (66,2,'name','n= ame',0,'t','t','f','t','f','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (67,5,'isPrimar= y','isPrimary',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (68,12,'custom'= ,'custom',0,'f','t','f','t','f','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (69,5, 'protect= ion','protection',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (70,81,'owner',= 'owner',0,'t','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (71,81,'to','to= ',0,'f','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (72,81,'ratio',= 'ratio',0,'f','t','f','f','f','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (76,82,'display= Text','displayText',0,'f','t','f','t','f','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (77,82,'numTrue= Value','numTrueValue',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (78,82,'numFals= eValue','numFalseValue',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (83,39,'maxsize= ','maxsize',1,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (84,39,'path','= path',2,'f','t','f','t','f','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (85,39,'extensi= ons','extensions',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (86,39,'link','= link',4,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (102,2,'isAbstr= act','isAbstract',5,'f','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (103,5,'sysAttN= ame','sysName',0,'t','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (104,3,'createD= ate','createDate',0,'f','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (105,3,'modDate= ','modDate',0,'t','f','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (106,5,'isUniqu= e','isUnique',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (107,5,'descAtt= ','desc',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (108,2,'descCla= ss','description',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (114,5,'isVirtu= al','isVirtual',0,'f','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (125,2,'isHidde= n','isHidden',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","isVirtual","protection","display") VALUES (12= 6,6,'users','users',0,'f','t','f','f','t','f','f','t','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (127,26,'domain= Table','domainTable',0,'f','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (128,26,'userTa= ble','userTable',0,'f','t','f','f','f','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (129,81,'parent= Pertinence','parentId',0,'f','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (131,130,'optio= nGroupName','name',0,'f','t','f','t','f','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (134,5,'display= ','display',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (136,15,'parent= Choice','parent',0,'f','t','f','f','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (137,81,'visual= Attrib','visualAttrib',0,'f','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (150,149,'xslt'= ,'xslt',0,'t','t','f','t','f','t','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (151,149,'attTy= peRef','attTypeRef',0,'t','t','f','t','f','f','f','t',null); -INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (152,81,'filter= View','filterView',0,'t','f','f','f','f','f','f','t',null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (4,1,'parentCla= ssType','parentId',4,1,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (16,6,'domainNa= me','name',1,1,1,1,1,1,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (17,6,'statusDo= main','status',2,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (18,7,'email','= email',0,0,1,0,0,0,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (19,7,'pass','p= ass',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (20,80,'group',= 'group',0,0,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (21,80,'value',= 'value',0,1,1,0,1,0,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (22,80,'parent'= ,'parent',0,0,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (23,80,'isActiv= eOption','isActive',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (24,80,'orderOp= tion','order',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","isVirtual","protection","display") VALUES (25= ,7,'domains','domains',0,0,1,0,0,1,0,0,1,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (30,1,'sysClass= TypeName','sysName',0,1,1,0,0,0,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (31,2,'classTyp= e','classType',0,1,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (32,2,'sysName'= ,'sysName',0,1,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (33,2,'parentId= ','parentId',0,1,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (34,3,'domainId= ','domainId',0,1,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (35,3,'class','= class',0,1,1,0,0,0,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (36,3,'delDate'= ,'delDate',0,0,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (37,3,'status',= 'status',0,0,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (40,5,'classId'= ,'classId',0,1,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (41,5,'order','= order',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (42,5,'attName'= ,'name',-1,1,1,0,1,0,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (43,8,'maxLengt= h','maximum size',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (44,8,'minLengt= h','minimum size',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (45,8,'defaultT= ext','default',0,0,1,0,1,0,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (46,8,'dispSize= ','dispSize',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (47,9,'decimals= ','decimals',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (48,9,'max','ma= x',0,0,1,0,1,0,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (49,9,'min','mi= n',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (50,9,'default'= ,'default',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (51,12,'format'= ,'format',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (52,12,'dispHou= rs','dispHours',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (53,13,'cols','= cols',0,1,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (54,13,'rows','= rows',0,1,1,0,1,0,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (55,13,'isHtml'= ,'isHtml',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (56,14,'from','= from',0,0,1,0,0,0,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (57,14,'to','to= ',0,0,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (60,15,'groupTy= pe','group',0,0,1,0,0,0,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (61,5,'isObliga= tory','isObligatory',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (62,5,'isActive= ','isActive',0,0,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (63,5,'isSearch= able','isSearchable',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (64,5,'isEditab= le','isEditable',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (65,5,'isSelfLo= okup','isSelfLookup',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (66,2,'name','n= ame',0,1,1,0,1,0,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (67,5,'isPrimar= y','isPrimary',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (68,12,'custom'= ,'custom',0,0,1,0,1,0,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (69,5, 'protect= ion','protection',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (70,81,'owner',= 'owner',0,1,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (71,81,'to','to= ',0,0,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (72,81,'ratio',= 'ratio',0,0,1,0,0,0,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (76,82,'display= Text','displayText',0,0,1,0,1,0,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (77,82,'numTrue= Value','numTrueValue',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (78,82,'numFals= eValue','numFalseValue',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (83,39,'maxsize= ','maxsize',1,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (84,39,'path','= path',2,0,1,0,1,0,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (85,39,'extensi= ons','extensions',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (86,39,'link','= link',4,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (102,2,'isAbstr= act','isAbstract',5,0,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (103,5,'sysAttN= ame','sysName',0,1,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (104,3,'createD= ate','createDate',0,0,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (105,3,'modDate= ','modDate',0,1,0,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (106,5,'isUniqu= e','isUnique',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (107,5,'descAtt= ','desc',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (108,2,'descCla= ss','description',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (114,5,'isVirtu= al','isVirtual',0,0,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (125,2,'isHidde= n','isHidden',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","isVirtual","protection","display") VALUES (12= 6,6,'users','users',0,0,1,0,0,1,0,0,1,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (127,26,'domain= Table','domainTable',0,0,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (128,26,'userTa= ble','userTable',0,0,1,0,0,0,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (129,81,'parent= Pertinence','parentId',0,0,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (131,130,'optio= nGroupName','name',0,0,1,0,1,0,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (134,5,'display= ','display',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (136,15,'parent= Choice','parent',0,0,1,0,0,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (137,81,'visual= Attrib','visualAttrib',0,0,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (150,149,'xslt'= ,'xslt',0,1,1,0,1,0,1,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku= p","isPrimary","isUnique","protection","display") VALUES (151,149,'attTy= peRef','attTypeRef',0,1,1,0,1,0,0,0,1,null); +INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","= order","isObligatory"... [truncated message content] |
|
From: <sv...@de...> - 2005-05-18 16:58:29
|
Author: marcelo
Date: 2005-05-18 12:58:10 -0400 (Wed, 18 May 2005)
New Revision: 1082
Modified:
humano2/trunk/core/schema/mssql/mssql-1-metadata.sql
humano2/trunk/core/schema/mssql/mssql-2-formulas.sql
humano2/trunk/core/schema/mssql/mssql-3-view.sql
humano2/trunk/core/schema/mssql/mssql-4-extendedAttributes.sql
humano2/trunk/core/schema/mssql/mssql-5-rules.sql
humano2/trunk/core/schema/mssql/mssql-6-form.sql
humano2/trunk/core/schema/mssql/mssql-7-report.sql
humano2/trunk/core/schema/mssql/mssql-8-folder.sql
Log:
* Updated the MsSQl schema, replaced char(1) to BIT so that the c# code=
Convert.ToBoolean does not crash.=20
Modified: humano2/trunk/core/schema/mssql/mssql-1-metadata.sql
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/core/schema/mssql/mssql-1-metadata.sql 2005-05-18 16:24=
:51 UTC (rev 1081)
+++ humano2/trunk/core/schema/mssql/mssql-1-metadata.sql 2005-05-18 16:58=
:10 UTC (rev 1082)
@@ -19,16 +19,16 @@
"sysAttName" Varchar(50) NOT NULL,
"attName" Varchar(50) NOT NULL,
"order" Numeric(10,2) NOT NULL DEFAULT 0,
- "isObligatory" char(1) NOT NULL DEFAULT 'f', -- No se puede crear si e=
sto es true, pero el attributo no esta definido
- "isActive" char(1) NOT NULL DEFAULT 't', -- Es activo (=3D habilitado)=
en el definicion del class
- "isSearchable" char(1) NOT NULL DEFAULT 't', -- Se debe habilitar para=
full-text search.=20
- "isEditable" char(1) NOT NULL DEFAULT 't', -- Si se puede editar una v=
ez creado.
- "isSelfLookup" char(1) NOT NULL DEFAULT 'f', -- Para si este attributo=
tiene la posibilidad de hacer un drilldown.
- "isPrimary" char(1) NOT NULL DEFAULT 'f', -- Si es llave primaria (UNI=
QUE, NOT NULL)
- "isUnique" char(1) NOT NULL DEFAULT 'f', -- Si es el valor del attribu=
to es unico en la class.
- "isVirtual" char(1) NOT NULL DEFAULT 'f', -- Si el atributo es virtual=
no genera una columna
+ "isObligatory" Bit NOT NULL DEFAULT 0, -- No se puede crear si esto es=
true, pero el attributo no esta definido
+ "isActive" Bit NOT NULL DEFAULT 1, -- Es activo (=3D habilitado) en el=
definicion del class
+ "isSearchable" Bit NOT NULL DEFAULT 1, -- Se debe habilitar para full-=
text search.=20
+ "isEditable" Bit NOT NULL DEFAULT 1, -- Si se puede editar una vez cre=
ado.
+ "isSelfLookup" Bit NOT NULL DEFAULT 0, -- Para si este attributo tiene=
la posibilidad de hacer un drilldown.
+ "isPrimary" Bit NOT NULL DEFAULT 0, -- Si es llave primaria (UNIQUE, N=
OT NULL)
+ "isUnique" Bit NOT NULL DEFAULT 0, -- Si es el valor del attributo es =
unico en la class.
+ "isVirtual" Bit NOT NULL DEFAULT 0, -- Si el atributo es virtual no ge=
nera una columna
"descAtt" text, -- Descripcion del attributo.
- "protection" char(1) NOT NULL DEFAULT 'f', -- Para que no se puede bo=
rrar a nivel del builder (=3D anti-condoro)
+ "protection" Bit NOT NULL DEFAULT 0, -- Para que no se puede borrar a=
nivel del builder (=3D anti-condoro)
"display" Integer,
primary key ("id_entity")
);
@@ -40,12 +40,12 @@
"group" Integer NOT NULL, -- Grupo de opciones a la que pertenece la=
opcion
"value" Varchar(50) NOT NULL,
"parent" Integer, -- Para relaciones entre opciones, Region, Comuna.
- "isActiveOption" char(1) not null default 't', -- Si es activo.
+ "isActiveOption" Bit not null default 1, -- Si es activo.
"orderOption" Numeric(10,2),
primary key ("id_entity")
);
=20
-Create table "boolean"
+Create table "Boolean"
(
"id_entity" Integer NOT NULL,
"displayText" Varchar(20), -- FIXME.
@@ -61,8 +61,8 @@
"sysName" Varchar(50) NOT NULL, -- Nombre de la tabla en la BD
"name" Varchar(50) NOT NULL, -- Nombre explicativo, human name
"parentId" Integer, -- Clase padre, de la cual se hereda.
- "isAbstract" char(1) NOT NULL default 'f', -- significa que no se pued=
e instanciar solo (como entity)
- "isHidden" char(1) NOT NULL default 'f', -- significa que el class no =
es visible al usuario.=09
+ "isAbstract" Bit NOT NULL default 0, -- significa que no se puede inst=
anciar solo (como entity)
+ "isHidden" Bit NOT NULL default 0, -- significa que el class no es vis=
ible al usuario.=09
"descClass" text,
primary key ("id_entity")
);
@@ -110,7 +110,7 @@
"maxsize" integer NOT NULL, -- Tamano maximo para subir en Kilobytes.
"path" Varchar(50), -- Ubicacion en el sistema de archivos.
"extensions" Varchar(50), -- Extenciones de archivos permitidos.
- "link" char(1), -- FIXME
+ "link" Bit, -- FIXME
primary key ("id_entity")
);
=20
@@ -157,7 +157,7 @@
"id_entity" Integer NOT NULL,
"rows" Integer NOT NULL, -- Numero of rows for the TextArea
"cols" Integer NOT NULL, -- Numero of columns for the TextArea
- "isHtml" char(1) NOT NULL DEFAULT 'f',
+ "isHtml" Bit NOT NULL DEFAULT 0,
primary key ("id_entity")
);
=20
@@ -232,27 +232,28 @@
INSERT INTO "classType" ("id_entity","sysClassTypeName","parentClassTyp=
e") VALUES (27,'component',NULL);
INSERT INTO "classType" ("id_entity","sysClassTypeName","parentClassTyp=
e") VALUES (29,'solutionData',NULL);
=20
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (1,1, 'classType','classType',3,'f');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (2,1, 'class','class',3,'f');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (3,1, 'entity','entity',NULL,'t');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (5,1, 'attribute','attribute',3,'t');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (6,27, 'domain','domain',3,'f');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (7,27, 'user','user',3,'f');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (8,1, 'textline','textline',5,'f');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (9,1, 'numeric','numeric',5,'f');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (12,1,'dateTime','dateTime',5,'f');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (13,1,'text','text',5,'f');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (14,1,'inheritance','inheritance',5,'f');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (15,1,'choice','choice',81,'f');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (26,27,'user_domain','user_domain',3,'f');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (39,1,'file','file',5,'f');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (80,1, 'option','option',3,'f');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (81,1,'pertinence','pertinence',5,'f');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (82,1,'boolean','boolean',5,'f');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (130,1,'optionGroup','optionGroup',3,'f');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (149,1,'displayAttribute','displayAttribute',3,'f=
');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (153,1,'version','version',3,'f');
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (1,1, 'classType','classType',3,0);
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (2,1, 'class','class',3,0);
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (3,1, 'entity','entity',NULL,1);
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (5,1, 'attribute','attribute',3,1);
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (6,27, 'domain','domain',3,0);
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (7,27, 'user','user',3,0);
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (8,1, 'textline','textline',5,0);
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (9,1, 'numeric','numeric',5,0);
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (12,1,'dateTime','dateTime',5,0);
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (13,1,'text','text',5,0);
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (14,1,'inheritance','inheritance',5,0);
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (15,1,'choice','choice',81,0);
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (26,27,'user_domain','user_domain',3,0);
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (39,1,'file','file',5,0);
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (80,1, 'option','option',3,0);
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (81,1,'pertinence','pertinence',5,0);
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (82,1,'Boolean','Boolean',5,0);
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (130,1,'optionGroup','optionGroup',3,0);
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (149,1,'displayAttribute','displayAttribute',3,0)=
;
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (153,1,'version','version',3,0);
=20
+SET IDENTITY_INSERT "entity" ON=20
INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"=
) VALUES (1,10,2,NULL,NULL);
INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"=
) VALUES (2,10,2,NULL,NULL);
INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"=
) VALUES (3,10,2,NULL,NULL);
@@ -390,89 +391,88 @@
INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"=
) VALUES (154,10,8,NULL,NULL);
INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"=
) VALUES (155,10,8,NULL,NULL);
INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"=
) VALUES (156,10,153,NULL,NULL);
-
SET IDENTITY_INSERT "entity" Off
=20
=20
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (4,1,'parentCla=
ssType','parentId',4,'t','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (16,6,'domainNa=
me','name',1,'t','t','t','t','t','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (17,6,'statusDo=
main','status',2,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (18,7,'email','=
email',0,'f','t','f','f','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (19,7,'pass','p=
ass',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (20,80,'group',=
'group',0,'f','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (21,80,'value',=
'value',0,'t','t','f','t','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (22,80,'parent'=
,'parent',0,'f','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (23,80,'isActiv=
eOption','isActive',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (24,80,'orderOp=
tion','order',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","isVirtual","protection","display") VALUES (25=
,7,'domains','domains',0,'f','t','f','f','t','f','f','t','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (30,1,'sysClass=
TypeName','sysName',0,'t','t','f','f','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (31,2,'classTyp=
e','classType',0,'t','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (32,2,'sysName'=
,'sysName',0,'t','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (33,2,'parentId=
','parentId',0,'t','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (34,3,'domainId=
','domainId',0,'t','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (35,3,'class','=
class',0,'t','t','f','f','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (36,3,'delDate'=
,'delDate',0,'f','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (37,3,'status',=
'status',0,'f','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (40,5,'classId'=
,'classId',0,'t','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (41,5,'order','=
order',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (42,5,'attName'=
,'name',-1,'t','t','f','t','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (43,8,'maxLengt=
h','maximum size',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (44,8,'minLengt=
h','minimum size',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (45,8,'defaultT=
ext','default',0,'f','t','f','t','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (46,8,'dispSize=
','dispSize',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (47,9,'decimals=
','decimals',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (48,9,'max','ma=
x',0,'f','t','f','t','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (49,9,'min','mi=
n',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (50,9,'default'=
,'default',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (51,12,'format'=
,'format',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (52,12,'dispHou=
rs','dispHours',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (53,13,'cols','=
cols',0,'t','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (54,13,'rows','=
rows',0,'t','t','f','t','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (55,13,'isHtml'=
,'isHtml',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (56,14,'from','=
from',0,'f','t','f','f','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (57,14,'to','to=
',0,'f','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (60,15,'groupTy=
pe','group',0,'f','t','f','f','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (61,5,'isObliga=
tory','isObligatory',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (62,5,'isActive=
','isActive',0,'f','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (63,5,'isSearch=
able','isSearchable',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (64,5,'isEditab=
le','isEditable',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (65,5,'isSelfLo=
okup','isSelfLookup',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (66,2,'name','n=
ame',0,'t','t','f','t','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (67,5,'isPrimar=
y','isPrimary',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (68,12,'custom'=
,'custom',0,'f','t','f','t','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (69,5, 'protect=
ion','protection',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (70,81,'owner',=
'owner',0,'t','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (71,81,'to','to=
',0,'f','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (72,81,'ratio',=
'ratio',0,'f','t','f','f','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (76,82,'display=
Text','displayText',0,'f','t','f','t','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (77,82,'numTrue=
Value','numTrueValue',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (78,82,'numFals=
eValue','numFalseValue',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (83,39,'maxsize=
','maxsize',1,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (84,39,'path','=
path',2,'f','t','f','t','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (85,39,'extensi=
ons','extensions',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (86,39,'link','=
link',4,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (102,2,'isAbstr=
act','isAbstract',5,'f','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (103,5,'sysAttN=
ame','sysName',0,'t','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (104,3,'createD=
ate','createDate',0,'f','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (105,3,'modDate=
','modDate',0,'t','f','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (106,5,'isUniqu=
e','isUnique',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (107,5,'descAtt=
','desc',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (108,2,'descCla=
ss','description',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (114,5,'isVirtu=
al','isVirtual',0,'f','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (125,2,'isHidde=
n','isHidden',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","isVirtual","protection","display") VALUES (12=
6,6,'users','users',0,'f','t','f','f','t','f','f','t','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (127,26,'domain=
Table','domainTable',0,'f','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (128,26,'userTa=
ble','userTable',0,'f','t','f','f','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (129,81,'parent=
Pertinence','parentId',0,'f','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (131,130,'optio=
nGroupName','name',0,'f','t','f','t','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (134,5,'display=
','display',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (136,15,'parent=
Choice','parent',0,'f','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (137,81,'visual=
Attrib','visualAttrib',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (150,149,'xslt'=
,'xslt',0,'t','t','f','t','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (151,149,'attTy=
peRef','attTypeRef',0,'t','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (152,81,'filter=
View','filterView',0,'f','t','f','f','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (154,153,'versi=
onItem','versionItem',0,'t','t','f','f','f','t','t','f',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (155,153,'versi=
onValue','versionValue',0,'t','t','f','f','f','f','f','f',null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (4,1,'parentCla=
ssType','parentId',4,1,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (16,6,'domainNa=
me','name',1,1,1,1,1,1,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (17,6,'statusDo=
main','status',2,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (18,7,'email','=
email',0,0,1,0,0,0,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (19,7,'pass','p=
ass',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (20,80,'group',=
'group',0,0,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (21,80,'value',=
'value',0,1,1,0,1,0,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (22,80,'parent'=
,'parent',0,0,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (23,80,'isActiv=
eOption','isActive',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (24,80,'orderOp=
tion','order',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","isVirtual","protection","display") VALUES (25=
,7,'domains','domains',0,0,1,0,0,1,0,0,1,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (30,1,'sysClass=
TypeName','sysName',0,1,1,0,0,0,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (31,2,'classTyp=
e','classType',0,1,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (32,2,'sysName'=
,'sysName',0,1,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (33,2,'parentId=
','parentId',0,1,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (34,3,'domainId=
','domainId',0,1,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (35,3,'class','=
class',0,1,1,0,0,0,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (36,3,'delDate'=
,'delDate',0,0,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (37,3,'status',=
'status',0,0,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (40,5,'classId'=
,'classId',0,1,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (41,5,'order','=
order',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (42,5,'attName'=
,'name',-1,1,1,0,1,0,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (43,8,'maxLengt=
h','maximum size',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (44,8,'minLengt=
h','minimum size',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (45,8,'defaultT=
ext','default',0,0,1,0,1,0,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (46,8,'dispSize=
','dispSize',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (47,9,'decimals=
','decimals',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (48,9,'max','ma=
x',0,0,1,0,1,0,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (49,9,'min','mi=
n',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (50,9,'default'=
,'default',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (51,12,'format'=
,'format',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (52,12,'dispHou=
rs','dispHours',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (53,13,'cols','=
cols',0,1,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (54,13,'rows','=
rows',0,1,1,0,1,0,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (55,13,'isHtml'=
,'isHtml',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (56,14,'from','=
from',0,0,1,0,0,0,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (57,14,'to','to=
',0,0,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (60,15,'groupTy=
pe','group',0,0,1,0,0,0,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (61,5,'isObliga=
tory','isObligatory',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (62,5,'isActive=
','isActive',0,0,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (63,5,'isSearch=
able','isSearchable',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (64,5,'isEditab=
le','isEditable',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (65,5,'isSelfLo=
okup','isSelfLookup',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (66,2,'name','n=
ame',0,1,1,0,1,0,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (67,5,'isPrimar=
y','isPrimary',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (68,12,'custom'=
,'custom',0,0,1,0,1,0,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (69,5, 'protect=
ion','protection',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (70,81,'owner',=
'owner',0,1,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (71,81,'to','to=
',0,0,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (72,81,'ratio',=
'ratio',0,0,1,0,0,0,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (76,82,'display=
Text','displayText',0,0,1,0,1,0,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (77,82,'numTrue=
Value','numTrueValue',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (78,82,'numFals=
eValue','numFalseValue',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (83,39,'maxsize=
','maxsize',1,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (84,39,'path','=
path',2,0,1,0,1,0,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (85,39,'extensi=
ons','extensions',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (86,39,'link','=
link',4,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (102,2,'isAbstr=
act','isAbstract',5,0,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (103,5,'sysAttN=
ame','sysName',0,1,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (104,3,'createD=
ate','createDate',0,0,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (105,3,'modDate=
','modDate',0,1,0,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (106,5,'isUniqu=
e','isUnique',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (107,5,'descAtt=
','desc',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (108,2,'descCla=
ss','description',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (114,5,'isVirtu=
al','isVirtual',0,0,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (125,2,'isHidde=
n','isHidden',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","isVirtual","protection","display") VALUES (12=
6,6,'users','users',0,0,1,0,0,1,0,0,1,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (127,26,'domain=
Table','domainTable',0,0,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (128,26,'userTa=
ble','userTable',0,0,1,0,0,0,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (129,81,'parent=
Pertinence','parentId',0,0,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (131,130,'optio=
nGroupName','name',0,0,1,0,1,0,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (134,5,'display=
','display',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (136,15,'parent=
Choice','parent',0,0,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (137,81,'visual=
Attrib','visualAttrib',0,0,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (150,149,'xslt'=
,'xslt',0,1,1,0,1,0,1,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (151,149,'attTy=
peRef','attTypeRef',0,1,1,0,1,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (152,81,'filter=
View','filterView',0,0,1,0,0,0,0,0,1,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (154,153,'versi=
onItem','versionItem',0,1,1,0,0,0,1,1,0,null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (155,153,'versi=
onValue','versionValue',0,1,1,0,0,0,0,0,0,null);
=20
INSERT INTO "numeric" ("id_entity","decimals","max","min","default") V=
ALUES (17,2,NULL,0,NULL);
INSERT INTO "numeric" ("id_entity","decimals","max","min","default") V=
ALUES (24,2,NULL,0,NULL);
@@ -561,13 +561,13 @@
INSERT INTO "choice" ("id_entity","groupType") VALUES (52,133);
INSERT INTO "choice" ("id_entity","groupType") VALUES (134,135); -- a=
ca ? decimales
=20
-INSERT INTO "option" ("id_entity","group","value","parent","isActiveOpt=
ion","orderOption") VALUES (116,132,'dd/mm/aaaa',NULL,'t',1);
-INSERT INTO "option" ("id_entity","group","value","parent","isActiveOpt=
ion","orderOption") VALUES (117,132,'mm/dd/aaaa',NULL,'t',2);
-INSERT INTO "option" ("id_entity","group","value","parent","isActiveOpt=
ion","orderOption") VALUES (118,133,'none',NULL,'t',1);
-INSERT INTO "option" ("id_entity","group","value","parent","isActiveOpt=
ion","orderOption") VALUES (119,133,'hh:mm',NULL,'t',2);
-INSERT INTO "option" ("id_entity","group","value","parent","isActiveOpt=
ion","orderOption") VALUES (120,133,'hh:mm:ss',NULL,'t',NULL);
+INSERT INTO "option" ("id_entity","group","value","parent","isActiveOpt=
ion","orderOption") VALUES (116,132,'dd/mm/aaaa',NULL,1,1);
+INSERT INTO "option" ("id_entity","group","value","parent","isActiveOpt=
ion","orderOption") VALUES (117,132,'mm/dd/aaaa',NULL,1,2);
+INSERT INTO "option" ("id_entity","group","value","parent","isActiveOpt=
ion","orderOption") VALUES (118,133,'none',NULL,1,1);
+INSERT INTO "option" ("id_entity","group","value","parent","isActiveOpt=
ion","orderOption") VALUES (119,133,'hh:mm',NULL,1,2);
+INSERT INTO "option" ("id_entity","group","value","parent","isActiveOpt=
ion","orderOption") VALUES (120,133,'hh:mm:ss',NULL,1,NULL);
=20
-INSERT INTO "displayAttribute" ("id_entity","attTypeRef","xslt") VALUE=
S (138,82,'boolean');
+INSERT INTO "displayAttribute" ("id_entity","attTypeRef","xslt") VALUE=
S (138,82,'Boolean');
INSERT INTO "displayAttribute" ("id_entity","attTypeRef","xslt") VALUE=
S (139,87,'currency');
INSERT INTO "displayAttribute" ("id_entity","attTypeRef","xslt") VALUE=
S (140,81,'pertinence');
INSERT INTO "displayAttribute" ("id_entity","attTypeRef","xslt") VALUE=
S (141,13,'text');
@@ -584,9 +584,9 @@
INSERT INTO "inheritance" ("id_entity","from","to") VALUES (33,2,2);
=20
=20
-INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (107,5,=
25,'f');
-INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (108,5,=
25,'f');
-INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (152,5,=
25,'f');
+INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (107,5,=
25,0);
+INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (108,5,=
25,0);
+INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (152,5,=
25,0);
=20
INSERT INTO "domain" ("id_entity","domainName","statusDomain") VALUES =
(10,'SystemDomain',NULL);
INSERT INTO "domain" ("id_entity","domainName","statusDomain") VALUES =
(122,'DefaultDomain',NULL);
@@ -610,4 +610,4 @@
-- Agregando algunas indices para agilizar el metamodelo.
CREATE INDEX entity_class_idx ON entity ("class");
CREATE INDEX attribute_classid_idx ON attribute ("classId");
-
+
Modified: humano2/trunk/core/schema/mssql/mssql-2-formulas.sql
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/core/schema/mssql/mssql-2-formulas.sql 2005-05-18 16:24=
:51 UTC (rev 1081)
+++ humano2/trunk/core/schema/mssql/mssql-2-formulas.sql 2005-05-18 16:58=
:10 UTC (rev 1082)
@@ -6,7 +6,7 @@
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version. =20
--
--- $Id: pgsql-2-formulas.sql 946 2005-05-10 14:53:11Z marijn $
+-- $Id$
=20
CREATE TABLE formula (
"id_entity" integer PRIMARY KEY,
@@ -29,20 +29,20 @@
VALUES (1005, 10, 13, NULL, NULL);
INSERT INTO entity ("id_entity","domainId","class","delDate","status")
VALUES (1006, 10, 13, NULL, NULL);
-set identity_insert entity off
+set identity_insert entity off
=20
-INSERT INTO "class" VALUES (1001, 27, 'formula', 'formula', 3, 'f', 'f',=
NULL);
+INSERT INTO "class" VALUES (1001, 27, 'formula', 'formula', 3, 0, 0, NUL=
L);
=20
-INSERT INTO "attribute" VALUES (1002, 1001, 'formula', 'formula', 0.00, =
'f', 't', 'f', 't', 'f', 't', 'f', 'f', NULL, 't', 0 );
-INSERT INTO "attribute" VALUES (1003, 1001, 'attributeId', 'attributeId'=
, 0.00, 'f', 't', 'f', 'f', 'f', 'f', 'f', 'f', NULL, 't', 0 );
-INSERT INTO "attribute" VALUES (1004, 1001, 'orderFormula', 'order', 0.0=
0, 'f', 't', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0);
-INSERT INTO "attribute" VALUES (1005, 1001, 'formulaName', 'name', 0.00,=
'f', 't', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0);
-INSERT INTO "attribute" VALUES (1006, 1001, 'descFormula', 'desciption',=
0.00, 'f', 't', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0);
+INSERT INTO "attribute" VALUES (1002, 1001, 'formula', 'formula', 0.00, =
0, 1, 0, 1, 0, 1, 0, 0, NULL, 1, 0 );
+INSERT INTO "attribute" VALUES (1003, 1001, 'attributeId', 'attributeId'=
, 0.00, 0, 1, 0, 0, 0, 0, 0, 0, NULL, 1, 0 );
+INSERT INTO "attribute" VALUES (1004, 1001, 'orderFormula', 'order', 0.0=
0, 0, 1, 0, 1, 0, 0, 0, 0, NULL, 1, 0);
+INSERT INTO "attribute" VALUES (1005, 1001, 'formulaName', 'name', 0.00,=
0, 1, 0, 1, 0, 0, 0, 0, NULL, 1, 0);
+INSERT INTO "attribute" VALUES (1006, 1001, 'descFormula', 'desciption',=
0.00, 0, 1, 0, 1, 0, 0, 0, 0, NULL, 1, 0);
=20
INSERT INTO "numeric" VALUES (1004, NULL, NULL, NULL, NULL);
=20
INSERT INTO "pertinence" VALUES (1003, 1003, 5, 'n:1', NULL, NULL,NULL);
=20
-INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1002, 5=
, 40, 'f');
-INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1005, 5=
, 25, 'f');
-INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1006, 5=
, 25, 'f');
+INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1002, 5=
, 40, 0);
+INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1005, 5=
, 25, 0);
+INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1006, 5=
, 25, 0);
Modified: humano2/trunk/core/schema/mssql/mssql-3-view.sql
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D...
[truncated message content] |
|
From: <sv...@de...> - 2005-05-18 16:24:56
|
Author: marijn
Date: 2005-05-18 12:24:51 -0400 (Wed, 18 May 2005)
New Revision: 1081
Modified:
humano2/trunk/core/schema/mssql/mssql-1-metadata.sql
humano2/trunk/core/schema/mssql/mssql-2-formulas.sql
humano2/trunk/core/schema/mssql/mssql-3-view.sql
humano2/trunk/core/schema/mssql/mssql-4-extendedAttributes.sql
humano2/trunk/core/schema/mssql/mssql-5-rules.sql
humano2/trunk/core/schema/mssql/mssql-6-form.sql
humano2/trunk/core/schema/mssql/mssql-7-report.sql
humano2/trunk/core/schema/mssql/mssql-8-folder.sql
Log:
* Updating to be sync with pgsql model.
Modified: humano2/trunk/core/schema/mssql/mssql-1-metadata.sql
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/core/schema/mssql/mssql-1-metadata.sql 2005-05-18 15:20=
:22 UTC (rev 1080)
+++ humano2/trunk/core/schema/mssql/mssql-1-metadata.sql 2005-05-18 16:24=
:51 UTC (rev 1081)
@@ -6,7 +6,7 @@
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version. =20
--
--- $Id: pgsql-1-metadata.sql 941 2005-05-10 07:07:42Z marijn $
+-- $Id$
=20
-- Este archivo contiene el eschema para la base de datos PostgreSQL de
-- La meta data y sistema de Humano2.
@@ -45,7 +45,7 @@
primary key ("id_entity")
);
=20
-Create table "Boolean"
+Create table "boolean"
(
"id_entity" Integer NOT NULL,
"displayText" Varchar(20), -- FIXME.
@@ -202,6 +202,14 @@
primary key ("id_entity")
);
=20
+Create table "version"
+(
+ "id_entity" Integer NOT NULL,
+ "versionItem" Varchar(50),=09
+ "versionValue" Varchar(50),=09
+ primary key ("id_entity")
+);
+
/* Create Foreign Keys */
ALTER TABLE "Boolean" ADD CONSTRAINT FK_Boolean_attribute FOREIGN KEY=
(id_entity) REFERENCES "attribute" ("id_entity") ON DELETE CASCADE
Alter table "dateTime" ADD CONSTRAINT FK_dateTime_attribute FOREIGN KE=
Y (id_entity) references "attribute" ("id_entity") ON DELETE CASCADE;
@@ -240,11 +248,11 @@
INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (39,1,'file','file',5,'f');
INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (80,1, 'option','option',3,'f');
INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (81,1,'pertinence','pertinence',5,'f');
-INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (82,1,'Boolean','Boolean',5,'f');
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (82,1,'boolean','boolean',5,'f');
INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (130,1,'optionGroup','optionGroup',3,'f');
INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (149,1,'displayAttribute','displayAttribute',3,'f=
');
-
-SET IDENTITY_INSERT "entity" ON=20
+INSERT INTO "class" ("id_entity","classType","sysName","name","parentId=
","isAbstract") VALUES (153,1,'version','version',3,'f');
+
INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"=
) VALUES (1,10,2,NULL,NULL);
INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"=
) VALUES (2,10,2,NULL,NULL);
INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"=
) VALUES (3,10,2,NULL,NULL);
@@ -378,6 +386,11 @@
INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"=
) VALUES (150,10,39,NULL,NULL);
INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"=
) VALUES (151,10,81,NULL,NULL);
INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"=
) VALUES (152,10,13,NULL,NULL);
+INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"=
) VALUES (153,10,2,NULL,NULL);
+INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"=
) VALUES (154,10,8,NULL,NULL);
+INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"=
) VALUES (155,10,8,NULL,NULL);
+INSERT INTO "entity" ("id_entity","domainId","class","delDate","status"=
) VALUES (156,10,153,NULL,NULL);
+
SET IDENTITY_INSERT "entity" Off
=20
=20
@@ -416,8 +429,8 @@
INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (53,13,'cols','=
cols',0,'t','t','f','t','f','f','f','t',null);
INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (54,13,'rows','=
rows',0,'t','t','f','t','f','t','f','t',null);
INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (55,13,'isHtml'=
,'isHtml',0,'f','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (56,14,'From','=
From',0,'f','t','f','f','f','t','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (57,14,'To','To=
',0,'f','t','f','f','f','f','f','t',null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (56,14,'from','=
from',0,'f','t','f','f','f','t','f','t',null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (57,14,'to','to=
',0,'f','t','f','f','f','f','f','t',null);
INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (60,15,'groupTy=
pe','group',0,'f','t','f','f','f','t','f','t',null);
INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (61,5,'isObliga=
tory','isObligatory',0,'f','t','f','t','f','f','f','t',null);
INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (62,5,'isActive=
','isActive',0,'f','t','f','f','f','f','f','t',null);
@@ -457,9 +470,10 @@
INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (137,81,'visual=
Attrib','visualAttrib',0,'f','t','f','t','f','f','f','t',null);
INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (150,149,'xslt'=
,'xslt',0,'t','t','f','t','f','t','f','t',null);
INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (151,149,'attTy=
peRef','attTypeRef',0,'t','t','f','t','f','f','f','t',null);
-INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (152,81,'filter=
View','filterView',0,'t','f','f','f','f','f','f','t',null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (152,81,'filter=
View','filterView',0,'f','t','f','f','f','f','f','t',null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (154,153,'versi=
onItem','versionItem',0,'t','t','f','f','f','t','t','f',null);
+INSERT INTO "attribute" ("id_entity","classId","sysAttName","attName","=
order","isObligatory","isActive","isSearchable","isEditable","isSelfLooku=
p","isPrimary","isUnique","protection","display") VALUES (155,153,'versi=
onValue','versionValue',0,'t','t','f','f','f','f','f','f',null);
=20
-
INSERT INTO "numeric" ("id_entity","decimals","max","min","default") V=
ALUES (17,2,NULL,0,NULL);
INSERT INTO "numeric" ("id_entity","decimals","max","min","default") V=
ALUES (24,2,NULL,0,NULL);
INSERT INTO "numeric" ("id_entity","decimals","max","min","default") V=
ALUES (41,2,NULL,0,NULL);
@@ -491,6 +505,8 @@
INSERT INTO "textline" ("id_entity","maxLength","minLength","dispSize")=
VALUES (76,20,1,20);
INSERT INTO "textline" ("id_entity","maxLength","minLength","dispSize")=
VALUES (84,20,0,20);
INSERT INTO "textline" ("id_entity","maxLength","minLength","dispSize")=
VALUES (131,20,1,20);
+INSERT INTO "textline" ("id_entity","maxLength","minLength","dispSize")=
VALUES (154,50,1,50);
+INSERT INTO "textline" ("id_entity","maxLength","minLength","dispSize")=
VALUES (155,50,1,50);
=20
=20
INSERT INTO "dateTime" ("id_entity","format","dispHours","custom") VAL=
UES (36,116,118,NULL);
@@ -517,16 +533,18 @@
INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (20,20,5,'n:1',NULL);-- ok
INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (22,22,80,'n:1',NULL);-- ok
INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (25,128,26,'n:m',NULL);-- ok
-INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (126,127,26,'n:m',25);-- ok
INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (31,31,1,'n:1',NULL);-- ok
INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (34,34,6,'n:1',NULL);-- ok
INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (35,35,2,'n:1',NULL); -- ok
INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (40,40,2,'n:1',NULL); -- ok
+INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (51,51,80,'n:1',NULL);
+INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (52,52,80,'n:1',NULL);
INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (56,56,2,'n:1',NULL);-- ok
INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (57,57,2,'n:1',NULL);-- ok
INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (60,60,130,'n:1',NULL);-- ok
INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (70,70,5,'n:1',NULL);-- ok
INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (71,71,2,'n:1',NULL);-- ok
+INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (126,127,26,'n:m',25);-- ok
INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (127,127,6,'n:1',25);-- ok
INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (128,128,7,'n:1',25);-- ok
INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (129,129,81,'n:1',NULL);-- ok
@@ -535,24 +553,21 @@
INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (137,137,5,'n:1',NULL);-- ok
INSERT INTO "pertinence" ("id_entity","owner","to","ratio","parentPerti=
nence") VALUES (151,151,2,'n:1',NULL);-- ok
=20
-
INSERT INTO "optionGroup" ("id_entity","optionGroupName") VALUES (132,=
'Formato fecha');
INSERT INTO "optionGroup" ("id_entity","optionGroupName") VALUES (133,=
'Formato hora');
INSERT INTO "optionGroup" ("id_entity","optionGroupName") VALUES (135,=
'Display');
=20
-
INSERT INTO "choice" ("id_entity","groupType") VALUES (51,132);
INSERT INTO "choice" ("id_entity","groupType") VALUES (52,133);
INSERT INTO "choice" ("id_entity","groupType") VALUES (134,135); -- a=
ca ? decimales
=20
-
INSERT INTO "option" ("id_entity","group","value","parent","isActiveOpt=
ion","orderOption") VALUES (116,132,'dd/mm/aaaa',NULL,'t',1);
INSERT INTO "option" ("id_entity","group","value","parent","isActiveOpt=
ion","orderOption") VALUES (117,132,'mm/dd/aaaa',NULL,'t',2);
INSERT INTO "option" ("id_entity","group","value","parent","isActiveOpt=
ion","orderOption") VALUES (118,133,'none',NULL,'t',1);
INSERT INTO "option" ("id_entity","group","value","parent","isActiveOpt=
ion","orderOption") VALUES (119,133,'hh:mm',NULL,'t',2);
INSERT INTO "option" ("id_entity","group","value","parent","isActiveOpt=
ion","orderOption") VALUES (120,133,'hh:mm:ss',NULL,'t',NULL);
=20
-INSERT INTO "displayAttribute" ("id_entity","attTypeRef","xslt") VALUE=
S (138,82,'Boolean');
+INSERT INTO "displayAttribute" ("id_entity","attTypeRef","xslt") VALUE=
S (138,82,'boolean');
INSERT INTO "displayAttribute" ("id_entity","attTypeRef","xslt") VALUE=
S (139,87,'currency');
INSERT INTO "displayAttribute" ("id_entity","attTypeRef","xslt") VALUE=
S (140,81,'pertinence');
INSERT INTO "displayAttribute" ("id_entity","attTypeRef","xslt") VALUE=
S (141,13,'text');
@@ -590,6 +605,8 @@
=20
INSERT INTO "file" ("id_entity","maxsize") VALUES(150,10000000);
=20
+INSERT INTO "version" ("id_entity", "versionItem", "versionValue") VALUE=
S ('156', 'MetaData', '5.0.0');
+
-- Agregando algunas indices para agilizar el metamodelo.
CREATE INDEX entity_class_idx ON entity ("class");
CREATE INDEX attribute_classid_idx ON attribute ("classId");
Property changes on: humano2/trunk/core/schema/mssql/mssql-1-metadata.sql
___________________________________________________________________
Name: svn:keywords
+ Id
Property changes on: humano2/trunk/core/schema/mssql/mssql-2-formulas.sql
___________________________________________________________________
Name: svn:keywords
+ Id
Property changes on: humano2/trunk/core/schema/mssql/mssql-3-view.sql
___________________________________________________________________
Name: svn:keywords
+ Id
Property changes on: humano2/trunk/core/schema/mssql/mssql-4-extendedAttr=
ibutes.sql
___________________________________________________________________
Name: svn:keywords
+ Id
Property changes on: humano2/trunk/core/schema/mssql/mssql-5-rules.sql
___________________________________________________________________
Name: svn:keywords
+ Id
Property changes on: humano2/trunk/core/schema/mssql/mssql-6-form.sql
___________________________________________________________________
Name: svn:keywords
+ Id
Property changes on: humano2/trunk/core/schema/mssql/mssql-7-report.sql
___________________________________________________________________
Name: svn:keywords
+ Id
Property changes on: humano2/trunk/core/schema/mssql/mssql-8-folder.sql
___________________________________________________________________
Name: svn:keywords
+ Id
|
|
From: <sv...@de...> - 2005-05-18 15:20:37
|
Author: marijn Date: 2005-05-18 11:20:22 -0400 (Wed, 18 May 2005) New Revision: 1080 Added: humano2/trunk/core/schema/mssql/mssql-2-formulas.sql humano2/trunk/core/schema/mssql/mssql-3-view.sql Removed: humano2/trunk/core/schema/mssql/msql-2-formulas.sql humano2/trunk/core/schema/mssql/msql-3-view.sql Log: Uniforming naming of files. Deleted: humano2/trunk/core/schema/mssql/msql-2-formulas.sql =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/core/schema/mssql/msql-2-formulas.sql 2005-05-18 13:30:= 22 UTC (rev 1079) +++ humano2/trunk/core/schema/mssql/msql-2-formulas.sql 2005-05-18 15:20:= 22 UTC (rev 1080) @@ -1,48 +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: pgsql-2-formulas.sql 946 2005-05-10 14:53:11Z marijn $ - -CREATE TABLE formula ( - "id_entity" integer PRIMARY KEY, - "formula" text, - "attributeId" integer, - "orderFormula" integer,=20 - "formulaName" text, - "descFormula" text -); -set identity_insert entity on -INSERT INTO entity ("id_entity","domainId","class","delDate","status")=20 - VALUES (1001, 10, 2, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") - VALUES (1002, 10, 13, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") - VALUES (1003, 10, 81, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") - VALUES (1004, 10, 9, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") - VALUES (1005, 10, 13, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") - VALUES (1006, 10, 13, NULL, NULL); -set identity_insert entity off - -INSERT INTO "class" VALUES (1001, 27, 'formula', 'formula', 3, 'f', 'f',= NULL); - -INSERT INTO "attribute" VALUES (1002, 1001, 'formula', 'formula', 0.00, = 'f', 't', 'f', 't', 'f', 't', 'f', 'f', NULL, 't', 0 ); -INSERT INTO "attribute" VALUES (1003, 1001, 'attributeId', 'attributeId'= , 0.00, 'f', 't', 'f', 'f', 'f', 'f', 'f', 'f', NULL, 't', 0 ); -INSERT INTO "attribute" VALUES (1004, 1001, 'orderFormula', 'order', 0.0= 0, 'f', 't', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0); -INSERT INTO "attribute" VALUES (1005, 1001, 'formulaName', 'name', 0.00,= 'f', 't', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0); -INSERT INTO "attribute" VALUES (1006, 1001, 'descFormula', 'desciption',= 0.00, 'f', 't', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0); - -INSERT INTO "numeric" VALUES (1004, NULL, NULL, NULL, NULL); - -INSERT INTO "pertinence" VALUES (1003, 1003, 5, 'n:1', NULL, NULL,NULL); - -INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1002, 5= , 40, 'f'); -INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1005, 5= , 25, 'f'); -INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1006, 5= , 25, 'f'); Deleted: humano2/trunk/core/schema/mssql/msql-3-view.sql =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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/core/schema/mssql/msql-3-view.sql 2005-05-18 13:30:22 U= TC (rev 1079) +++ humano2/trunk/core/schema/mssql/msql-3-view.sql 2005-05-18 15:20:22 U= TC (rev 1080) @@ -1,51 +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: pgsql-3-view.sql 817 2005-05-06 00:49:38Z pcamacho $ - -CREATE TABLE "view" ( - id_entity integer PRIMARY KEY, - "columns" text, - "where" text, - "groupby" text, - "having" text, - "order" text, - "idClassView" integer, - "viewName" character varying(50) -); - -set identity_insert entity ON -INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1011, 10, 2, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1012, 10, 13, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1013, 10, 13, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1014, 10, 13, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1015, 10, 13, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1016, 10, 13, NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1017, 10, 81,NULL, NULL); -INSERT INTO entity ("id_entity","domainId","class","delDate","status") V= ALUES (1018, 10, 8, NULL, NULL); -set identity_insert entity Off - -INSERT INTO "class" VALUES (1011, 27, 'view', 'view', 3, 'f', 'f', NULL)= ; - -INSERT INTO attribute VALUES (1012, 1011, 'columns', 'columns', 0.00, 'f= ', 't', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0); -INSERT INTO attribute VALUES (1013, 1011, 'where', 'where', 0.00, 'f', '= t', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0); -INSERT INTO attribute VALUES (1014, 1011, 'groupby', 'groupby', 0.00, 'f= ', 't', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0); -INSERT INTO attribute VALUES (1015, 1011, 'having', 'having', 0.00, 'f',= 't', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0); -INSERT INTO attribute VALUES (1016, 1011, 'order', 'order', 0.00, 'f', '= t', 'f', 't', 'f', 'f', 'f', 'f', NULL, 't', 0); -INSERT INTO attribute VALUES (1017, 1011, 'idClassView', 'class', 0.00, = 'f', 't', 'f', 'f', 'f', 'f', 'f', 'f', NULL, 't', 0); -INSERT INTO attribute VALUES (1018, 1011, 'viewName', 'name', 0.00, 'f',= 't', 'f', 't', 'f', 't', 'f', 'f', NULL, 't', 0); - -INSERT INTO pertinence VALUES (1017, 1017, 2, 'n:1', NULL, NULL, NULL); - -INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1012,5= ,25,'f'); -INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1013,5= ,25,'f'); -INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1014,5= ,25,'f'); -INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1015,5= ,25,'f'); -INSERT INTO "text" ("id_entity","rows","cols","isHtml") VALUES (1016,5= ,25,'f'); - -INSERT INTO textline VALUES (1018, NULL, NULL, NULL, NULL); Copied: humano2/trunk/core/schema/mssql/mssql-2-formulas.sql (from rev 10= 79, humano2/trunk/core/schema/mssql/msql-2-formulas.sql) Copied: humano2/trunk/core/schema/mssql/mssql-3-view.sql (from rev 1079, = humano2/trunk/core/schema/mssql/msql-3-view.sql) |