Add jasper report support in dictionary
This commit is contained in:
parent
22a1c8b1d7
commit
222e171fda
|
@ -0,0 +1,74 @@
|
|||
ALTER TABLE ad_process ADD jasperreport NVARCHAR2(255);
|
||||
|
||||
INSERT INTO ad_element
|
||||
(ad_element_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
columnname, entitytype, NAME, printname
|
||||
)
|
||||
VALUES (50039, 0, 0, 'Y',
|
||||
TO_DATE ('01/24/2007 00:55:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('01/24/2007 00:57:04', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'JasperReport', 'D', 'Jasper Report', 'Jasper Report'
|
||||
);
|
||||
|
||||
UPDATE ad_sequence
|
||||
SET currentnextsys = (SELECT MAX (ad_element_id) + 1
|
||||
FROM ad_element
|
||||
WHERE ad_element_id < 1000000)
|
||||
WHERE NAME = 'AD_Element';
|
||||
|
||||
INSERT INTO ad_column
|
||||
(ad_column_id, ad_client_id, ad_org_id, isactive,
|
||||
created,
|
||||
updated, createdby,
|
||||
updatedby, NAME,
|
||||
description, VERSION, entitytype,
|
||||
columnname, ad_table_id, ad_reference_id, fieldlength, iskey,
|
||||
isparent, ismandatory, isupdateable, isidentifier, istranslated,
|
||||
isencrypted, isselectioncolumn, ad_element_id, issyncdatabase,
|
||||
isalwaysupdateable
|
||||
)
|
||||
VALUES (50182, 0, 0, 'Y',
|
||||
TO_DATE ('01/24/2007 00:55:01', 'MM/DD/YYYY HH24:MI:SS'),
|
||||
TO_DATE ('01/24/2007 00:58:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
100, 'Jasper Report',
|
||||
'In this column you store the JasperReport filename', 0, 'D',
|
||||
'JasperReport', 284, 14, 255, 'N',
|
||||
'N', 'N', 'Y', 'N', 'N',
|
||||
'N', 'N', 50039, 'N',
|
||||
'N'
|
||||
);
|
||||
|
||||
UPDATE ad_sequence
|
||||
SET currentnextsys = (SELECT MAX (ad_column_id) + 1
|
||||
FROM ad_column
|
||||
WHERE ad_column_id < 1000000)
|
||||
WHERE NAME = 'AD_Column';
|
||||
|
||||
|
||||
INSERT INTO ad_field
|
||||
(ad_field_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
NAME,
|
||||
description, iscentrallymaintained, ad_tab_id,
|
||||
ad_column_id, isdisplayed, displaylength, isreadonly, seqno,
|
||||
issameline, isheading, isfieldonly, isencrypted, entitytype
|
||||
)
|
||||
VALUES (50156, 0, 0, 'Y',
|
||||
TO_DATE ('01/24/2007 01:00:09', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('01/24/2007 01:01:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'Jasper Report',
|
||||
'In this column you store the JasperReport filename', 'Y', 245,
|
||||
50182, 'Y', 60, 'N', 210,
|
||||
'N', 'N', 'N', 'N', 'D'
|
||||
);
|
||||
|
||||
UPDATE ad_sequence
|
||||
SET currentnextsys = (SELECT MAX (ad_field_id) + 1
|
||||
FROM ad_field
|
||||
WHERE ad_field_id < 1000000)
|
||||
WHERE NAME = 'AD_Field';
|
||||
|
||||
COMMIT ;
|
|
@ -0,0 +1,41 @@
|
|||
INSERT INTO ad_element_trl
|
||||
(ad_element_id, ad_language, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
NAME, printname, istranslated
|
||||
)
|
||||
VALUES (50039, 'es_MX', 0, 0, 'Y',
|
||||
TO_DATE ('01/24/2007 00:55:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('01/24/2007 00:56:58', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'Reporte Jasper', 'Reporte Jasper', 'Y'
|
||||
);
|
||||
|
||||
INSERT INTO ad_column_trl
|
||||
(ad_column_id, ad_language, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
NAME, istranslated
|
||||
)
|
||||
VALUES (50182, 'es_MX', 0, 0, 'Y',
|
||||
TO_DATE ('01/24/2007 00:55:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('01/24/2007 00:57:23', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'Reporte Jasper', 'Y'
|
||||
);
|
||||
|
||||
INSERT INTO ad_field_trl
|
||||
(ad_field_id, ad_language, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
NAME,
|
||||
description,
|
||||
istranslated
|
||||
)
|
||||
VALUES (50156, 'es_MX', 0, 0, 'Y',
|
||||
TO_DATE ('01/24/2007 01:00:09', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('01/24/2007 01:01:49', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'Reporte Jasper',
|
||||
'En esta columna se almacena el nombre de archivo del reporte Jasper',
|
||||
'Y'
|
||||
);
|
||||
|
||||
COMMIT ;
|
|
@ -335,6 +335,23 @@ if (oo != null)
|
|||
}
|
||||
return false;
|
||||
}
|
||||
/** Set Jasper Report.
|
||||
@param JasperReport In this column you store the JasperReport filename */
|
||||
public void setJasperReport (String JasperReport)
|
||||
{
|
||||
if (JasperReport != null && JasperReport.length() > 255)
|
||||
{
|
||||
log.warning("Length > 255 - truncated");
|
||||
JasperReport = JasperReport.substring(0,254);
|
||||
}
|
||||
set_Value ("JasperReport", JasperReport);
|
||||
}
|
||||
/** Get Jasper Report.
|
||||
@return In this column you store the JasperReport filename */
|
||||
public String getJasperReport()
|
||||
{
|
||||
return (String)get_Value("JasperReport");
|
||||
}
|
||||
/** Set Name.
|
||||
@param Name Alphanumeric identifier of the entity */
|
||||
public void setName (String Name)
|
||||
|
|
Loading…
Reference in New Issue