Commit f3957724 authored by frank.xa.zhang's avatar frank.xa.zhang

add code for JFQC, not finished yet

according to requirement to do this
parent 96bd74d8
package pwc.taxtech.atms.vat.service.impl.report.functions;
import org.apache.poi.ss.formula.OperationEvaluationContext;
import org.apache.poi.ss.formula.eval.NumberEval;
import org.apache.poi.ss.formula.eval.ValueEval;
import org.apache.poi.ss.formula.functions.FreeRefFunction;
/// <summary>
/// 借方期初
/// </summary>
/// <param name="acctType"></param>
/// <param name="acctCode"></param>
/// <param name="year"></param>
/// <param name="period"></param>
/// <returns></returns>
public class JFQC extends FunctionBase implements FreeRefFunction {
public JFQC(FormulaContext formulaContext) {
super(formulaContext);
}
@Override
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
if (args.length < 4) {
return NumberEval.ZERO;
}
Integer acctType = getIntParam(args[0],ec);
String acctCode = getStringParam(args[1],ec);
Integer year = getIntParam(args[2],ec);
Integer period = getIntParam(args[3],ec);
return null;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment