jacky6024
7 jaren geleden
34 gewijzigde bestanden met toevoegingen van 738 en 155 verwijderingen
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,37 @@ |
|||
package com.bstek.ureport.build; |
|||
|
|||
/** |
|||
* @author Jacky.gao |
|||
* @since 2017年6月19日 |
|||
*/ |
|||
public class Splash { |
|||
public void doPrint(){ |
|||
StringBuilder sb=new StringBuilder(); |
|||
sb.append("\n"); |
|||
sb.append("`7MMF' `7MF'`7MM\"\"\"Mq. `7MM\"\"\"YMM `7MM\"\"\"Mq. .g8\"\"8q. `7MM\"\"\"Mq. MMP\"\"MM\"\"YMM "); |
|||
sb.append("\n"); |
|||
sb.append(" MM M MM `MM. MM `7 MM `MM..dP' `YM. MM `MM. P' MM `7 "); |
|||
sb.append("\n"); |
|||
sb.append(" MM M MM ,M9 MM d MM ,M9 dM' `MM MM ,M9 MM pd*\"*b. "); |
|||
sb.append("\n"); |
|||
sb.append(" MM M MMmmdM9 MMmmMM MMmmdM9 MM MM MMmmdM9 MM (O) j8 "); |
|||
sb.append("\n"); |
|||
sb.append(" MM M MM YM. MM Y , MM MM. ,MP MM YM. MM ,;j9 "); |
|||
sb.append("\n"); |
|||
sb.append(" YM. ,M MM `Mb. MM ,M MM `Mb. ,dP' MM `Mb. MM ,-=' "); |
|||
sb.append("\n"); |
|||
sb.append(" `bmmmmd\"' .JMML. .JMM..JMMmmmmMMM .JMML. `\"bmmd\"' .JMML. .JMM. .JMML. Ammmmmmm "); |
|||
sb.append("\n"); |
|||
sb.append("....................................................................................................."); |
|||
sb.append("\n"); |
|||
sb.append(". uReport, is a Chinese style report engine"); |
|||
sb.append(" licensed under the Apache License 2.0, ."); |
|||
sb.append("\n"); |
|||
sb.append(". which is opensource, free of charge, easy to use,"); |
|||
sb.append("high-performance, with browser-based-designer. ."); |
|||
sb.append("\n"); |
|||
sb.append("....................................................................................................."); |
|||
sb.append("\n"); |
|||
System.out.println(sb.toString()); |
|||
} |
|||
} |
@ -0,0 +1,41 @@ |
|||
/******************************************************************************* |
|||
* Copyright 2017 Bstek |
|||
* |
|||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
|||
* use this file except in compliance with the License. You may obtain a copy |
|||
* of the License at |
|||
* |
|||
* http://www.apache.org/licenses/LICENSE-2.0
|
|||
* |
|||
* Unless required by applicable law or agreed to in writing, software |
|||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
|||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
|||
* License for the specific language governing permissions and limitations under |
|||
* the License. |
|||
******************************************************************************/ |
|||
package com.bstek.ureport.definition; |
|||
|
|||
/** |
|||
* @author Jacky.gao |
|||
* @since 2017年6月19日 |
|||
*/ |
|||
public class ConditionPaging { |
|||
private PagingPosition position; |
|||
/** |
|||
* 当position为after时,line用来指定当前行后多少行进行分页 |
|||
*/ |
|||
private int line; |
|||
|
|||
public PagingPosition getPosition() { |
|||
return position; |
|||
} |
|||
public void setPosition(PagingPosition position) { |
|||
this.position = position; |
|||
} |
|||
public int getLine() { |
|||
return line; |
|||
} |
|||
public void setLine(int line) { |
|||
this.line = line; |
|||
} |
|||
} |
@ -0,0 +1,24 @@ |
|||
/******************************************************************************* |
|||
* Copyright 2017 Bstek |
|||
* |
|||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
|||
* use this file except in compliance with the License. You may obtain a copy |
|||
* of the License at |
|||
* |
|||
* http://www.apache.org/licenses/LICENSE-2.0
|
|||
* |
|||
* Unless required by applicable law or agreed to in writing, software |
|||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
|||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
|||
* License for the specific language governing permissions and limitations under |
|||
* the License. |
|||
******************************************************************************/ |
|||
package com.bstek.ureport.definition; |
|||
|
|||
/** |
|||
* @author Jacky.gao |
|||
* @since 2017年6月19日 |
|||
*/ |
|||
public enum PagingPosition { |
|||
before,after; |
|||
} |
@ -0,0 +1,23 @@ |
|||
package com.bstek.ureport.parser.impl; |
|||
|
|||
import org.dom4j.Element; |
|||
|
|||
import com.bstek.ureport.definition.ConditionPaging; |
|||
import com.bstek.ureport.definition.PagingPosition; |
|||
import com.bstek.ureport.parser.Parser; |
|||
|
|||
/** |
|||
* @author Jacky.gao |
|||
* @since 2017年6月21日 |
|||
*/ |
|||
public class ConditionPagingParser implements Parser<ConditionPaging> { |
|||
@Override |
|||
public ConditionPaging parse(Element element) { |
|||
ConditionPaging paging=new ConditionPaging(); |
|||
String position=element.attributeValue("position"); |
|||
paging.setPosition(PagingPosition.valueOf(position)); |
|||
String line=element.attributeValue("line"); |
|||
paging.setLine(Integer.valueOf(line)); |
|||
return paging; |
|||
} |
|||
} |
Laden…
Reference in new issue