[ 2011567 ] Implement background image for Document printed
http://sourceforge.net/tracker/index.php?func=detail&aid=2011567&group_id=176962&atid=879335
This commit is contained in:
parent
b4f4756a4e
commit
c6c4dd7dcb
|
@ -52,6 +52,21 @@ public interface I_AD_PrintTableFormat
|
|||
|
||||
/** Load Meta Data */
|
||||
|
||||
/** Column name AD_Image_ID */
|
||||
public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID";
|
||||
|
||||
/** Set Image.
|
||||
* Image or Icon
|
||||
*/
|
||||
public void setAD_Image_ID (int AD_Image_ID);
|
||||
|
||||
/** Get Image.
|
||||
* Image or Icon
|
||||
*/
|
||||
public int getAD_Image_ID();
|
||||
|
||||
public I_AD_Image getAD_Image() throws Exception;
|
||||
|
||||
/** Column name AD_PrintTableFormat_ID */
|
||||
public static final String COLUMNNAME_AD_PrintTableFormat_ID = "AD_PrintTableFormat_ID";
|
||||
|
||||
|
@ -169,19 +184,6 @@ public interface I_AD_PrintTableFormat
|
|||
*/
|
||||
public int getHdrLine_PrintColor_ID();
|
||||
|
||||
/** Column name Hdr_PrintFont_ID */
|
||||
public static final String COLUMNNAME_Hdr_PrintFont_ID = "Hdr_PrintFont_ID";
|
||||
|
||||
/** Set Header Row Font.
|
||||
* Header row Font
|
||||
*/
|
||||
public void setHdr_PrintFont_ID (int Hdr_PrintFont_ID);
|
||||
|
||||
/** Get Header Row Font.
|
||||
* Header row Font
|
||||
*/
|
||||
public int getHdr_PrintFont_ID();
|
||||
|
||||
/** Column name HdrStroke */
|
||||
public static final String COLUMNNAME_HdrStroke = "HdrStroke";
|
||||
|
||||
|
@ -234,6 +236,19 @@ public interface I_AD_PrintTableFormat
|
|||
*/
|
||||
public int getHdrTextFG_PrintColor_ID();
|
||||
|
||||
/** Column name Hdr_PrintFont_ID */
|
||||
public static final String COLUMNNAME_Hdr_PrintFont_ID = "Hdr_PrintFont_ID";
|
||||
|
||||
/** Set Header Row Font.
|
||||
* Header row Font
|
||||
*/
|
||||
public void setHdr_PrintFont_ID (int Hdr_PrintFont_ID);
|
||||
|
||||
/** Get Header Row Font.
|
||||
* Header row Font
|
||||
*/
|
||||
public int getHdr_PrintFont_ID();
|
||||
|
||||
/** Column name HeaderCenter */
|
||||
public static final String COLUMNNAME_HeaderCenter = "HeaderCenter";
|
||||
|
||||
|
@ -325,19 +340,6 @@ public interface I_AD_PrintTableFormat
|
|||
*/
|
||||
public boolean isPaintBoundaryLines();
|
||||
|
||||
/** Column name IsPaintHeaderLines */
|
||||
public static final String COLUMNNAME_IsPaintHeaderLines = "IsPaintHeaderLines";
|
||||
|
||||
/** Set Paint Header Lines.
|
||||
* Paint Lines over/under the Header Line
|
||||
*/
|
||||
public void setIsPaintHeaderLines (boolean IsPaintHeaderLines);
|
||||
|
||||
/** Get Paint Header Lines.
|
||||
* Paint Lines over/under the Header Line
|
||||
*/
|
||||
public boolean isPaintHeaderLines();
|
||||
|
||||
/** Column name IsPaintHLines */
|
||||
public static final String COLUMNNAME_IsPaintHLines = "IsPaintHLines";
|
||||
|
||||
|
@ -351,6 +353,19 @@ public interface I_AD_PrintTableFormat
|
|||
*/
|
||||
public boolean isPaintHLines();
|
||||
|
||||
/** Column name IsPaintHeaderLines */
|
||||
public static final String COLUMNNAME_IsPaintHeaderLines = "IsPaintHeaderLines";
|
||||
|
||||
/** Set Paint Header Lines.
|
||||
* Paint Lines over/under the Header Line
|
||||
*/
|
||||
public void setIsPaintHeaderLines (boolean IsPaintHeaderLines);
|
||||
|
||||
/** Get Paint Header Lines.
|
||||
* Paint Lines over/under the Header Line
|
||||
*/
|
||||
public boolean isPaintHeaderLines();
|
||||
|
||||
/** Column name IsPaintVLines */
|
||||
public static final String COLUMNNAME_IsPaintVLines = "IsPaintVLines";
|
||||
|
||||
|
@ -377,19 +392,6 @@ public interface I_AD_PrintTableFormat
|
|||
*/
|
||||
public boolean isPrintFunctionSymbols();
|
||||
|
||||
/** Column name Line_PrintColor_ID */
|
||||
public static final String COLUMNNAME_Line_PrintColor_ID = "Line_PrintColor_ID";
|
||||
|
||||
/** Set Line Color.
|
||||
* Table line color
|
||||
*/
|
||||
public void setLine_PrintColor_ID (int Line_PrintColor_ID);
|
||||
|
||||
/** Get Line Color.
|
||||
* Table line color
|
||||
*/
|
||||
public int getLine_PrintColor_ID();
|
||||
|
||||
/** Column name LineStroke */
|
||||
public static final String COLUMNNAME_LineStroke = "LineStroke";
|
||||
|
||||
|
@ -416,6 +418,19 @@ public interface I_AD_PrintTableFormat
|
|||
*/
|
||||
public String getLineStrokeType();
|
||||
|
||||
/** Column name Line_PrintColor_ID */
|
||||
public static final String COLUMNNAME_Line_PrintColor_ID = "Line_PrintColor_ID";
|
||||
|
||||
/** Set Line Color.
|
||||
* Table line color
|
||||
*/
|
||||
public void setLine_PrintColor_ID (int Line_PrintColor_ID);
|
||||
|
||||
/** Get Line Color.
|
||||
* Table line color
|
||||
*/
|
||||
public int getLine_PrintColor_ID();
|
||||
|
||||
/** Column name Name */
|
||||
public static final String COLUMNNAME_Name = "Name";
|
||||
|
||||
|
|
|
@ -17,9 +17,11 @@
|
|||
/** Generated Model - DO NOT CHANGE */
|
||||
package org.compiere.model;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
import java.util.logging.Level;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
|
@ -43,9 +45,9 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat,
|
|||
setAD_PrintTableFormat_ID (0);
|
||||
setIsDefault (false);
|
||||
setIsPaintBoundaryLines (false);
|
||||
setIsPaintHLines (false);
|
||||
setIsPaintHeaderLines (true);
|
||||
// Y
|
||||
setIsPaintHLines (false);
|
||||
setIsPaintVLines (false);
|
||||
setIsPrintFunctionSymbols (false);
|
||||
setName (null);
|
||||
|
@ -80,6 +82,45 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat,
|
|||
return sb.toString();
|
||||
}
|
||||
|
||||
public I_AD_Image getAD_Image() throws Exception
|
||||
{
|
||||
Class<?> clazz = MTable.getClass(I_AD_Image.Table_Name);
|
||||
I_AD_Image result = null;
|
||||
try {
|
||||
Constructor<?> constructor = null;
|
||||
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||
result = (I_AD_Image)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Image_ID()), get_TrxName()});
|
||||
} catch (Exception e) {
|
||||
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
||||
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
||||
throw e;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/** Set Image.
|
||||
@param AD_Image_ID
|
||||
Image or Icon
|
||||
*/
|
||||
public void setAD_Image_ID (int AD_Image_ID)
|
||||
{
|
||||
if (AD_Image_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_Image_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_Image_ID, Integer.valueOf(AD_Image_ID));
|
||||
}
|
||||
|
||||
/** Get Image.
|
||||
@return Image or Icon
|
||||
*/
|
||||
public int getAD_Image_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Image_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Print Table Format.
|
||||
@param AD_PrintTableFormat_ID
|
||||
Table Format in Reports
|
||||
|
@ -270,31 +311,6 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat,
|
|||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Hdr_PrintFont_ID AD_Reference_ID=267 */
|
||||
public static final int HDR_PRINTFONT_ID_AD_Reference_ID=267;
|
||||
/** Set Header Row Font.
|
||||
@param Hdr_PrintFont_ID
|
||||
Header row Font
|
||||
*/
|
||||
public void setHdr_PrintFont_ID (int Hdr_PrintFont_ID)
|
||||
{
|
||||
if (Hdr_PrintFont_ID < 1)
|
||||
set_Value (COLUMNNAME_Hdr_PrintFont_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_Hdr_PrintFont_ID, Integer.valueOf(Hdr_PrintFont_ID));
|
||||
}
|
||||
|
||||
/** Get Header Row Font.
|
||||
@return Header row Font
|
||||
*/
|
||||
public int getHdr_PrintFont_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_Hdr_PrintFont_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Header Stroke.
|
||||
@param HdrStroke
|
||||
Width of the Header Line Stroke
|
||||
|
@ -393,6 +409,31 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat,
|
|||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Hdr_PrintFont_ID AD_Reference_ID=267 */
|
||||
public static final int HDR_PRINTFONT_ID_AD_Reference_ID=267;
|
||||
/** Set Header Row Font.
|
||||
@param Hdr_PrintFont_ID
|
||||
Header row Font
|
||||
*/
|
||||
public void setHdr_PrintFont_ID (int Hdr_PrintFont_ID)
|
||||
{
|
||||
if (Hdr_PrintFont_ID < 1)
|
||||
set_Value (COLUMNNAME_Hdr_PrintFont_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_Hdr_PrintFont_ID, Integer.valueOf(Hdr_PrintFont_ID));
|
||||
}
|
||||
|
||||
/** Get Header Row Font.
|
||||
@return Header row Font
|
||||
*/
|
||||
public int getHdr_PrintFont_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_Hdr_PrintFont_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Header Center.
|
||||
@param HeaderCenter
|
||||
Content of the center portion of the header.
|
||||
|
@ -533,30 +574,6 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat,
|
|||
return false;
|
||||
}
|
||||
|
||||
/** Set Paint Header Lines.
|
||||
@param IsPaintHeaderLines
|
||||
Paint Lines over/under the Header Line
|
||||
*/
|
||||
public void setIsPaintHeaderLines (boolean IsPaintHeaderLines)
|
||||
{
|
||||
set_Value (COLUMNNAME_IsPaintHeaderLines, Boolean.valueOf(IsPaintHeaderLines));
|
||||
}
|
||||
|
||||
/** Get Paint Header Lines.
|
||||
@return Paint Lines over/under the Header Line
|
||||
*/
|
||||
public boolean isPaintHeaderLines ()
|
||||
{
|
||||
Object oo = get_Value(COLUMNNAME_IsPaintHeaderLines);
|
||||
if (oo != null)
|
||||
{
|
||||
if (oo instanceof Boolean)
|
||||
return ((Boolean)oo).booleanValue();
|
||||
return "Y".equals(oo);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Set Paint Horizontal Lines.
|
||||
@param IsPaintHLines
|
||||
Paint horizontal lines
|
||||
|
@ -581,6 +598,30 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat,
|
|||
return false;
|
||||
}
|
||||
|
||||
/** Set Paint Header Lines.
|
||||
@param IsPaintHeaderLines
|
||||
Paint Lines over/under the Header Line
|
||||
*/
|
||||
public void setIsPaintHeaderLines (boolean IsPaintHeaderLines)
|
||||
{
|
||||
set_Value (COLUMNNAME_IsPaintHeaderLines, Boolean.valueOf(IsPaintHeaderLines));
|
||||
}
|
||||
|
||||
/** Get Paint Header Lines.
|
||||
@return Paint Lines over/under the Header Line
|
||||
*/
|
||||
public boolean isPaintHeaderLines ()
|
||||
{
|
||||
Object oo = get_Value(COLUMNNAME_IsPaintHeaderLines);
|
||||
if (oo != null)
|
||||
{
|
||||
if (oo instanceof Boolean)
|
||||
return ((Boolean)oo).booleanValue();
|
||||
return "Y".equals(oo);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Set Paint Vertical Lines.
|
||||
@param IsPaintVLines
|
||||
Paint vertical lines
|
||||
|
@ -629,31 +670,6 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat,
|
|||
return false;
|
||||
}
|
||||
|
||||
/** Line_PrintColor_ID AD_Reference_ID=266 */
|
||||
public static final int LINE_PRINTCOLOR_ID_AD_Reference_ID=266;
|
||||
/** Set Line Color.
|
||||
@param Line_PrintColor_ID
|
||||
Table line color
|
||||
*/
|
||||
public void setLine_PrintColor_ID (int Line_PrintColor_ID)
|
||||
{
|
||||
if (Line_PrintColor_ID < 1)
|
||||
set_Value (COLUMNNAME_Line_PrintColor_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_Line_PrintColor_ID, Integer.valueOf(Line_PrintColor_ID));
|
||||
}
|
||||
|
||||
/** Get Line Color.
|
||||
@return Table line color
|
||||
*/
|
||||
public int getLine_PrintColor_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_Line_PrintColor_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Line Stroke.
|
||||
@param LineStroke
|
||||
Width of the Line Stroke
|
||||
|
@ -702,6 +718,31 @@ public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat,
|
|||
return (String)get_Value(COLUMNNAME_LineStrokeType);
|
||||
}
|
||||
|
||||
/** Line_PrintColor_ID AD_Reference_ID=266 */
|
||||
public static final int LINE_PRINTCOLOR_ID_AD_Reference_ID=266;
|
||||
/** Set Line Color.
|
||||
@param Line_PrintColor_ID
|
||||
Table line color
|
||||
*/
|
||||
public void setLine_PrintColor_ID (int Line_PrintColor_ID)
|
||||
{
|
||||
if (Line_PrintColor_ID < 1)
|
||||
set_Value (COLUMNNAME_Line_PrintColor_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_Line_PrintColor_ID, Integer.valueOf(Line_PrintColor_ID));
|
||||
}
|
||||
|
||||
/** Get Line Color.
|
||||
@return Table line color
|
||||
*/
|
||||
public int getLine_PrintColor_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_Line_PrintColor_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Name.
|
||||
@param Name
|
||||
Alphanumeric identifier of the entity
|
||||
|
|
|
@ -18,17 +18,24 @@ package org.compiere.print;
|
|||
|
||||
import java.awt.*;
|
||||
import java.math.*;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.sql.*;
|
||||
import java.util.*;
|
||||
|
||||
import org.compiere.model.*;
|
||||
|
||||
import java.util.logging.*;
|
||||
|
||||
import org.compiere.util.*;
|
||||
|
||||
/**
|
||||
* Table Print Format
|
||||
*
|
||||
* @author Jorg Janke
|
||||
* @author victor.perez@e-evolution.com, e-Evolution
|
||||
* <li>BF [ 2011567 ] Implement Background Image for Document printed
|
||||
* <li>http://sourceforge.net/tracker/index.php?func=detail&aid=2011567&group_id=176962&atid=879335
|
||||
* @version $Id: MPrintTableFormat.java,v 1.3 2006/07/30 00:53:02 jjanke Exp $
|
||||
*/
|
||||
public class MPrintTableFormat extends X_AD_PrintTableFormat
|
||||
|
@ -94,6 +101,8 @@ public class MPrintTableFormat extends X_AD_PrintTableFormat
|
|||
private Stroke lineH_Stroke; // -
|
||||
private Stroke lineV_Stroke; // |
|
||||
//
|
||||
private Image m_image = null;
|
||||
private Image m_image_water_mark = null;
|
||||
|
||||
/**************************************************************************
|
||||
* Set Standard Font to derive other fonts if not defined
|
||||
|
@ -586,5 +595,76 @@ public class MPrintTableFormat extends X_AD_PrintTableFormat
|
|||
return tf;
|
||||
} // get
|
||||
|
||||
/**
|
||||
* Load Attachment
|
||||
* @param AD_PrintFormatItem_ID record id
|
||||
* @throws MalformedURLException
|
||||
*/
|
||||
private void loadImages(int AD_PrintTableFormatItem_ID)
|
||||
{
|
||||
if(this.isImageIsAttached())
|
||||
{
|
||||
MAttachment attachment = MAttachment.get(Env.getCtx(),
|
||||
MPrintFormatItem.Table_ID, AD_PrintTableFormatItem_ID);
|
||||
if (attachment == null)
|
||||
{
|
||||
log.log(Level.WARNING, "No Attachment - AD_PrintFormatItem_ID=" + AD_PrintTableFormatItem_ID);
|
||||
return;
|
||||
}
|
||||
if (attachment.getEntryCount() != 1)
|
||||
{
|
||||
log.log(Level.WARNING, "Need just 1 Attachment Entry = " + attachment.getEntryCount());
|
||||
return;
|
||||
}
|
||||
byte[] imageData = attachment.getEntryData(0);
|
||||
if (imageData != null)
|
||||
m_image = Toolkit.getDefaultToolkit().createImage(imageData);
|
||||
if (m_image != null)
|
||||
log.fine(attachment.getEntryName(0)
|
||||
+ " - Size=" + imageData.length);
|
||||
else
|
||||
log.log(Level.WARNING, attachment.getEntryName(0)
|
||||
+ " - not loaded (must be gif or jpg) - AD_PrintFormatItem_ID=" + AD_PrintTableFormatItem_ID);
|
||||
}
|
||||
else if (getImageURL()!= null)
|
||||
{
|
||||
URL url;
|
||||
try
|
||||
{
|
||||
url = new URL(getImageURL());
|
||||
Toolkit tk = Toolkit.getDefaultToolkit();
|
||||
m_image = tk.getImage(url);
|
||||
} catch (MalformedURLException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
else if(getAD_Image_ID() > 0)
|
||||
m_image_water_mark = MImage.get(getCtx(), getAD_Image_ID()).getImage();
|
||||
|
||||
} // loadAttachment
|
||||
|
||||
|
||||
/**
|
||||
* Get the Image
|
||||
* @return image
|
||||
*/
|
||||
public Image getImage()
|
||||
{
|
||||
if(m_image==null)
|
||||
loadImages(getAD_PrintTableFormat_ID());
|
||||
|
||||
return m_image;
|
||||
} // getImage
|
||||
|
||||
/**
|
||||
* Get the Image
|
||||
* @return image
|
||||
*/
|
||||
public Image getImageWaterMark()
|
||||
{
|
||||
if(m_image_water_mark==null)
|
||||
loadImages(getAD_PrintTableFormat_ID());
|
||||
return m_image_water_mark;
|
||||
} // getImage
|
||||
} // MPrintTableFormat
|
||||
|
|
|
@ -238,7 +238,7 @@ public class ReportEngine implements PrintServiceAttributeListener
|
|||
throw new IllegalStateException ("No print format");
|
||||
if (m_printData == null)
|
||||
throw new IllegalStateException ("No print data (Delete Print Format and restart)");
|
||||
m_layout = new LayoutEngine (m_printFormat, m_printData, m_query, m_trxName);
|
||||
m_layout = new LayoutEngine (m_printFormat, m_printData, m_query, m_info, m_trxName);
|
||||
} // layout
|
||||
|
||||
/**
|
||||
|
|
|
@ -46,6 +46,9 @@ import org.compiere.util.*;
|
|||
* <li>BF [ 1807917 ] Layout positioning issue with m_maxHeightSinceNewLine
|
||||
* <li>BF [ 1825876 ] Layout boxes with auto width not working
|
||||
* <li>FR [ 1966406 ] Report Engine: AD_PInstance_Logs should be displayed
|
||||
* @author victor.perez@e-evolution.com, e-Evolution
|
||||
* <li>BF [ 2011567 ] Implement Background Image for Document printed
|
||||
* <li>http://sourceforge.net/tracker/index.php?func=detail&aid=2011567&group_id=176962&atid=879335
|
||||
*/
|
||||
public class LayoutEngine implements Pageable, Printable, Doc
|
||||
{
|
||||
|
@ -55,9 +58,9 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
|||
* @param data Print Data
|
||||
* @param query query for parameter info
|
||||
*/
|
||||
public LayoutEngine (MPrintFormat format, PrintData data, MQuery query)
|
||||
public LayoutEngine (MPrintFormat format, PrintData data, MQuery query, PrintInfo info )
|
||||
{
|
||||
this(format, data, query, null);
|
||||
this(format, data, query, info , null);
|
||||
} // LayoutEngine
|
||||
|
||||
/**
|
||||
|
@ -67,7 +70,7 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
|||
* @param query query for parameter info
|
||||
* @param trxName
|
||||
*/
|
||||
public LayoutEngine (MPrintFormat format, PrintData data, MQuery query, String trxName)
|
||||
public LayoutEngine (MPrintFormat format, PrintData data, MQuery query, PrintInfo info , String trxName)
|
||||
{
|
||||
m_TrxName = trxName;
|
||||
log.info(format + " - " + data + " - " + query);
|
||||
|
@ -75,6 +78,7 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
|||
//
|
||||
setPrintFormat(format, false);
|
||||
setPrintData(data, query, false);
|
||||
setPrintInfo(info);
|
||||
layout();
|
||||
} // LayoutEngine
|
||||
|
||||
|
@ -101,6 +105,8 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
|||
private int m_columnCount = -1;
|
||||
/** Transaction name */
|
||||
private String m_TrxName = null;
|
||||
/** PrintInfo **/
|
||||
private PrintInfo m_PrintInfo = null;
|
||||
|
||||
|
||||
/** Paper - default: standard portrait */
|
||||
|
@ -425,6 +431,29 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
|||
DisplayType.getDateFormat(DisplayType.Date, m_format.getLanguage()).format(now));
|
||||
Env.setContext(m_printCtx, Page.CONTEXT_TIME,
|
||||
DisplayType.getDateFormat(DisplayType.DateTime, m_format.getLanguage()).format(now));
|
||||
|
||||
/*Page Background Image*/
|
||||
Image image = null;
|
||||
MPrintTableFormat tf = new MPrintTableFormat(getCtx(), m_format.getAD_PrintTableFormat_ID(), m_TrxName);
|
||||
if (tf==null)
|
||||
tf = MPrintTableFormat.getDefault(getCtx());
|
||||
|
||||
String table_name = MTable.getTableName(getCtx(), getPrintInfo().getAD_Table_ID());
|
||||
String sql = "SELECT AD_Column_ID FROM AD_Column WHERE ColumnName='IsPrinted' AND AD_Table_ID="+ getPrintInfo().getAD_Table_ID();
|
||||
int AD_Column_ID = DB.getSQLValue(m_TrxName, sql);
|
||||
if(AD_Column_ID > 0)
|
||||
{
|
||||
sql = "SELECT IsPrinted FROM "+table_name + " WHERE " +table_name+"_ID="+ getPrintInfo().getRecord_ID();
|
||||
if("Y".equals(DB.getSQLValueString(m_TrxName, sql)))
|
||||
{
|
||||
image = tf.getImageWaterMark();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
image = tf.getImage();
|
||||
}
|
||||
|
||||
// Update Page Info
|
||||
int pages = m_pages.size();
|
||||
for (int i = 0; i < pages; i++)
|
||||
|
@ -434,6 +463,7 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
|||
pageInfo = String.valueOf(pageNo) + getPageInfo(pageNo);
|
||||
page.setPageInfo(pageInfo);
|
||||
page.setPageCount(pages);
|
||||
page.setBackgroundImage(image);
|
||||
}
|
||||
|
||||
m_hasLayout = true;
|
||||
|
@ -1866,4 +1896,22 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
|||
return null;
|
||||
} // getStreamForBytes
|
||||
|
||||
/**
|
||||
*
|
||||
* @param PrintInfo info
|
||||
*/
|
||||
public void setPrintInfo(PrintInfo info)
|
||||
{
|
||||
m_PrintInfo = info;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return PrintInfo
|
||||
*/
|
||||
public PrintInfo getPrintInfo()
|
||||
{
|
||||
return m_PrintInfo;
|
||||
}
|
||||
|
||||
} // LayoutEngine
|
||||
|
|
|
@ -70,6 +70,8 @@ public class Page
|
|||
private Properties m_ctx;
|
||||
/** Page content */
|
||||
private ArrayList<PrintElement> m_elements = new ArrayList<PrintElement>();
|
||||
/** Background Image */
|
||||
private Image m_image = null;
|
||||
|
||||
/**
|
||||
* Get Page No
|
||||
|
@ -160,6 +162,15 @@ public class Page
|
|||
g2D.setColor(Color.white);
|
||||
g2D.fillRect(bounds.x, bounds.y, bounds.width, bounds.height);
|
||||
//
|
||||
//backgroundImage
|
||||
if(m_image!=null)
|
||||
{
|
||||
int x = (bounds.width/2) - (m_image.getWidth(null)/2);
|
||||
int y = (bounds.height/2) - (m_image.getHeight(null)/2);
|
||||
|
||||
g2D.drawImage(m_image, x ,y ,null);
|
||||
}
|
||||
//
|
||||
Point pageStart = new Point(bounds.getLocation());
|
||||
for (int i = 0; i < m_elements.size(); i++)
|
||||
{
|
||||
|
@ -202,6 +213,23 @@ public class Page
|
|||
return retValue;
|
||||
} // getDrillAcross
|
||||
|
||||
/**
|
||||
* set Background Image
|
||||
* @param image
|
||||
*/
|
||||
public void setBackgroundImage(Image image)
|
||||
{
|
||||
m_image = image;
|
||||
}
|
||||
|
||||
/**
|
||||
* get Background Image
|
||||
* @return
|
||||
*/
|
||||
public Image getBackgroundImage()
|
||||
{
|
||||
return m_image;
|
||||
}
|
||||
|
||||
/**
|
||||
* String Representation
|
||||
|
|
|
@ -258,7 +258,8 @@ public class ReportCtl
|
|||
return false;
|
||||
}
|
||||
|
||||
if(re.getPrintFormat() != null && re.getPrintFormat().getJasperProcess_ID() > 0)
|
||||
//if(re.getPrintFormat() != null && re.getPrintFormat().getJasperProcess_ID() > 0)
|
||||
if(re.getPrintFormat().getJasperProcess_ID() > 0)
|
||||
{
|
||||
ProcessInfo pi = new ProcessInfo ("", re.getPrintFormat().getJasperProcess_ID());
|
||||
pi.setPrintPreview( !IsDirectPrint );
|
||||
|
|
|
@ -0,0 +1,229 @@
|
|||
-- Aug 7, 2008 9:55:42 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56301,1639,0,19,523,'AD_Image_ID',TO_DATE('2008-08-07 21:55:41','YYYY-MM-DD HH24:MI:SS'),0,'Image or Icon','D',22,'Images and Icon can be used to display supported graphic formats (gif, jpg, png).
|
||||
You can either load the image (in the database) or point to a graphic via a URI (i.e. it can point to a resource, http address)','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Image',0,TO_DATE('2008-08-07 21:55:41','YYYY-MM-DD HH24:MI:SS'),0,0)
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 9:55:42 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56301 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:02 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
ALTER TABLE AD_PrintTableFormat ADD AD_Image_ID NUMBER(10)
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:41 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56301,56335,0,435,TO_DATE('2008-08-07 22:05:40','YYYY-MM-DD HH24:MI:SS'),0,'Image or Icon',22,'D','Images and Icon can be used to display supported graphic formats (gif, jpg, png).
|
||||
You can either load the image (in the database) or point to a graphic via a URI (i.e. it can point to a resource, http address)','Y','Y','Y','N','N','N','N','N','Image',TO_DATE('2008-08-07 22:05:40','YYYY-MM-DD HH24:MI:SS'),0)
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:41 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56335 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=8299
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=8303
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=8302
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=8298
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=8304
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=8301
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=5794
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=5796
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=5798
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=5803
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=5786
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=5790
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=8305
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=5791
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=5800
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=5792
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=8948
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=5787
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=8947
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=8946
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=5802
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=5788
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=5789
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=5799
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=8949
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=8950
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=5801
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=5797
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=5795
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=5793
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=8306
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=8300
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=56335
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:06:41 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET DisplayLogic='@ImageIsAttached@=''N''',Updated=TO_DATE('2008-08-07 22:06:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=8300
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:06:45 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-08-07 22:06:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=8300
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 9:47:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=8306
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 9:47:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=8300
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 9:47:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=56335
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 9:52:03 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET Description='Image Water Mark', Help='This Image is show when a document is printed for second time',Updated=TO_DATE('2008-08-07 21:52:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56335
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 9:52:03 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field_Trl SET IsTranslated='N' WHERE AD_Field_ID=56335
|
||||
;
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,227 @@
|
|||
-- Aug 7, 2008 9:55:42 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56301,1639,0,19,523,'AD_Image_ID',TO_TIMESTAMP('2008-08-07 21:55:41','YYYY-MM-DD HH24:MI:SS'),0,'Image or Icon','D',22,'Images and Icon can be used to display supported graphic formats (gif, jpg, png).
|
||||
You can either load the image (in the database) or point to a graphic via a URI (i.e. it can point to a resource, http address)','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Image',0,TO_TIMESTAMP('2008-08-07 21:55:41','YYYY-MM-DD HH24:MI:SS'),0,0)
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 9:55:42 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56301 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:02 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
ALTER TABLE AD_PrintTableFormat ADD COLUMN AD_Image_ID NUMERIC(10)
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:41 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56301,56335,0,435,TO_TIMESTAMP('2008-08-07 22:05:40','YYYY-MM-DD HH24:MI:SS'),0,'Image or Icon',22,'D','Images and Icon can be used to display supported graphic formats (gif, jpg, png).
|
||||
You can either load the image (in the database) or point to a graphic via a URI (i.e. it can point to a resource, http address)','Y','Y','Y','N','N','N','N','N','Image',TO_TIMESTAMP('2008-08-07 22:05:40','YYYY-MM-DD HH24:MI:SS'),0)
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:41 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56335 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=8299
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=8303
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=8302
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=8298
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=8304
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=8301
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=5794
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=5796
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=5798
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=5803
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=5786
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=5790
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=8305
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=5791
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=5800
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=5792
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=8948
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=5787
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=8947
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=8946
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=5802
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=5788
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=5789
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=5799
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=8949
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=8950
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=5801
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=5797
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=5795
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=5793
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=8306
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=8300
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:05:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=56335
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:06:41 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET DisplayLogic='@ImageIsAttached@=''N''',Updated=TO_TIMESTAMP('2008-08-07 22:06:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=8300
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 10:06:45 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-08-07 22:06:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=8300
|
||||
;
|
||||
-- Aug 7, 2008 9:47:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=8306
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 9:47:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=8300
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 9:47:57 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=56335
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 9:52:03 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field SET Description='Image Water Mark', Help='This Image is show when a document is printed for second time',Updated=TO_TIMESTAMP('2008-08-07 21:52:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56335
|
||||
;
|
||||
|
||||
-- Aug 7, 2008 9:52:03 PM CDT
|
||||
-- Water Mark for Document Printed
|
||||
UPDATE AD_Field_Trl SET IsTranslated='N' WHERE AD_Field_ID=56335
|
||||
;
|
||||
|
||||
|
Loading…
Reference in New Issue