📄 simpleworksheet.jrxml
字号:
<?xml version="1.0" encoding="GB2312" ?>
<!-- Created with iReport - A designer for JasperReports -->
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport
name="SimpleWorkSheet"
columnCount="1"
printOrder="Vertical"
orientation="Portrait"
pageWidth="680"
pageHeight="292"
columnWidth="624"
columnSpacing="0"
leftMargin="28"
rightMargin="28"
topMargin="28"
bottomMargin="28"
whenNoDataType="NoPages"
isTitleNewPage="false"
isSummaryNewPage="false">
<property name="ireport.scriptlethandling" value="0" />
<property name="ireport.encoding" value="GB2312" />
<import value="java.util.*" />
<import value="net.sf.jasperreports.engine.*" />
<import value="net.sf.jasperreports.engine.data.*" />
<reportFont name="宋体" isDefault="false" fontName="宋体" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="STSong-Light" pdfEncoding="Cp1250" isPdfEmbedded="false"/>
<parameter name="报修人" isForPrompting="false" class="java.lang.String">
<parameterDescription><![CDATA[报修人参数,直接由我传进来而不用数据源]]></parameterDescription>
</parameter>
<parameter name="工作单编号" isForPrompting="false" class="java.lang.Long">
<parameterDescription><![CDATA[工作单编号是一个Long型数据]]></parameterDescription>
</parameter>
<parameter name="填单人" isForPrompting="false" class="java.lang.String"/>
<parameter name="维修类别" isForPrompting="false" class="java.lang.String"/>
<parameter name="故障地点" isForPrompting="false" class="java.lang.String"/>
<parameter name="报修时间" isForPrompting="false" class="java.lang.String">
<parameterDescription><![CDATA[我将它转换成字符串把,省着格式不对]]></parameterDescription>
</parameter>
<parameter name="维修工作单类型名" isForPrompting="false" class="java.lang.String">
<parameterDescription><![CDATA[“修理班维修工作单”或“外请人员维修工作单”]]></parameterDescription>
</parameter>
<parameter name="报修人类型名" isForPrompting="false" class="java.lang.String">
<parameterDescription><![CDATA[“报修人”或“公司名称”]]></parameterDescription>
</parameter>
<background>
<band height="0" isSplitAllowed="true" >
</band>
</background>
<title>
<band height="50" isSplitAllowed="true" >
<staticText>
<reportElement
mode="Transparent"
x="403"
y="27"
width="70"
height="20"
forecolor="#000000"
backcolor="#FFFFFF"
key="staticText-2"
stretchType="NoStretch"
positionType="FixRelativeToTop"
isPrintRepeatedValues="true"
isRemoveLineWhenBlank="false"
isPrintInFirstWholeBand="false"
isPrintWhenDetailOverflows="false"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" lineSpacing="Single">
<font reportFont="宋体"/>
</textElement>
<text><![CDATA[编号:]]></text>
</staticText>
<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
mode="Transparent"
x="475"
y="27"
width="88"
height="20"
forecolor="#000000"
backcolor="#FFFFFF"
key="textField-9"
stretchType="NoStretch"
positionType="FixRelativeToTop"
isPrintRepeatedValues="true"
isRemoveLineWhenBlank="false"
isPrintInFirstWholeBand="false"
isPrintWhenDetailOverflows="false"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Left" verticalAlignment="Middle" rotation="None" lineSpacing="Single">
<font reportFont="宋体"/>
</textElement>
<textFieldExpression class="java.lang.Long"><![CDATA[$P{工作单编号}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
mode="Transparent"
x="1"
y="3"
width="561"
height="21"
forecolor="#000000"
backcolor="#FFFFFF"
key="textField-10"
stretchType="NoStretch"
positionType="FixRelativeToTop"
isPrintRepeatedValues="true"
isRemoveLineWhenBlank="false"
isPrintInFirstWholeBand="false"
isPrintWhenDetailOverflows="false"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None" lineSpacing="Single">
<font reportFont="宋体" size="14"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{维修工作单类型名}]]></textFieldExpression>
</textField>
</band>
</title>
<pageHeader>
<band height="0" isSplitAllowed="true" >
</band>
</pageHeader>
<columnHeader>
<band height="0" isSplitAllowed="true" >
</band>
</columnHeader>
<detail>
<band height="122" isSplitAllowed="true" >
<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
mode="Transparent"
x="73"
y="5"
width="117"
height="16"
forecolor="#000000"
backcolor="#FFFFFF"
key="报修人textField"
stretchType="NoStretch"
positionType="FixRelativeToTop"
isPrintRepeatedValues="true"
isRemoveLineWhenBlank="false"
isPrintInFirstWholeBand="false"
isPrintWhenDetailOverflows="false"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single">
<font reportFont="宋体"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{报修人}]]></textFieldExpression>
</textField>
<staticText>
<reportElement
mode="Transparent"
x="193"
y="5"
width="65"
height="16"
forecolor="#000000"
backcolor="#FFFFFF"
key="检修人staticText"
stretchType="NoStretch"
positionType="FixRelativeToTop"
isPrintRepeatedValues="true"
isRemoveLineWhenBlank="false"
isPrintInFirstWholeBand="false"
isPrintWhenDetailOverflows="false"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single">
<font reportFont="宋体"/>
</textElement>
<text><![CDATA[检修人]]></text>
</staticText>
<staticText>
<reportElement
mode="Transparent"
x="378"
y="5"
width="65"
height="16"
forecolor="#000000"
backcolor="#FFFFFF"
key="填单人staticText"
stretchType="NoStretch"
positionType="FixRelativeToTop"
isPrintRepeatedValues="true"
isRemoveLineWhenBlank="false"
isPrintInFirstWholeBand="false"
isPrintWhenDetailOverflows="false"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single">
<font reportFont="宋体"/>
</textElement>
<text><![CDATA[填单人]]></text>
</staticText>
<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
mode="Transparent"
x="447"
y="5"
width="115"
height="16"
forecolor="#000000"
backcolor="#FFFFFF"
key="填单人textField"
stretchType="NoStretch"
positionType="FixRelativeToTop"
isPrintRepeatedValues="true"
isRemoveLineWhenBlank="false"
isPrintInFirstWholeBand="false"
isPrintWhenDetailOverflows="false"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single">
<font reportFont="宋体"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{填单人}]]></textFieldExpression>
</textField>
<staticText>
<reportElement
mode="Transparent"
x="193"
y="24"
width="65"
height="16"
forecolor="#000000"
backcolor="#FFFFFF"
key="维修类别staticText"
stretchType="NoStretch"
positionType="FixRelativeToTop"
isPrintRepeatedValues="true"
isRemoveLineWhenBlank="false"
isPrintInFirstWholeBand="false"
isPrintWhenDetailOverflows="false"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single">
<font reportFont="宋体"/>
</textElement>
<text><![CDATA[维修类别]]></text>
</staticText>
<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
mode="Transparent"
x="260"
y="24"
width="114"
height="16"
forecolor="#000000"
backcolor="#FFFFFF"
key="维修类别textField"
stretchType="NoStretch"
positionType="FixRelativeToTop"
isPrintRepeatedValues="true"
isRemoveLineWhenBlank="false"
isPrintInFirstWholeBand="false"
isPrintWhenDetailOverflows="false"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single">
<font reportFont="宋体"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{维修类别}]]></textFieldExpression>
</textField>
<staticText>
<reportElement
mode="Transparent"
x="378"
y="24"
width="65"
height="16"
forecolor="#000000"
backcolor="#FFFFFF"
key="故障地点staticText"
stretchType="NoStretch"
positionType="FixRelativeToTop"
isPrintRepeatedValues="true"
isRemoveLineWhenBlank="false"
isPrintInFirstWholeBand="false"
isPrintWhenDetailOverflows="false"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single">
<font reportFont="宋体"/>
</textElement>
<text><![CDATA[故障地点]]></text>
</staticText>
<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
mode="Transparent"
x="447"
y="24"
width="115"
height="16"
forecolor="#000000"
backcolor="#FFFFFF"
key="故障地点textField"
stretchType="NoStretch"
positionType="FixRelativeToTop"
isPrintRepeatedValues="true"
isRemoveLineWhenBlank="false"
isPrintInFirstWholeBand="false"
isPrintWhenDetailOverflows="false"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single">
<font reportFont="宋体"/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$P{故障地点}]]></textFieldExpression>
</textField>
<staticText>
<reportElement
mode="Transparent"
x="193"
y="43"
width="65"
height="16"
forecolor="#000000"
backcolor="#FFFFFF"
key="报修时间staticText"
stretchType="NoStretch"
positionType="FixRelativeToTop"
isPrintRepeatedValues="true"
isRemoveLineWhenBlank="false"
isPrintInFirstWholeBand="false"
isPrintWhenDetailOverflows="false"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single">
<font reportFont="宋体"/>
</textElement>
<text><![CDATA[报修时间]]></text>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -