71 lines
2.2 KiB
Java
71 lines
2.2 KiB
Java
package com.tenwa.flow.comm.handler;
|
|
|
|
import com.amarsoft.awe.util.SqlObject;
|
|
import com.amarsoft.awe.util.Transaction;
|
|
|
|
public class LCPayCondtion{
|
|
int show_Index = 0;//ÐòºÅ
|
|
String sSql = "";
|
|
String flowUnid = "";
|
|
String plan_Number = "";
|
|
String fee_Type = "";
|
|
String plan_List = "";
|
|
|
|
public String getFlowUnid() {
|
|
return flowUnid;
|
|
}
|
|
|
|
public void setFlowUnid(String flowUnid) {
|
|
this.flowUnid = flowUnid;
|
|
}
|
|
|
|
public String getPlan_Number() {
|
|
return plan_Number;
|
|
}
|
|
|
|
public void setPlan_Number(String plan_Number) {
|
|
this.plan_Number = plan_Number;
|
|
}
|
|
|
|
public String getFee_Type() {
|
|
return fee_Type;
|
|
}
|
|
|
|
public void setFee_Type(String fee_Type) {
|
|
this.fee_Type = fee_Type;
|
|
}
|
|
|
|
public String getPlan_List() {
|
|
return plan_List;
|
|
}
|
|
|
|
public void setPlan_List(String plan_List) {
|
|
this.plan_List = plan_List;
|
|
}
|
|
public Object selectShowIndex(Transaction Sqlca) throws Exception{
|
|
|
|
sSql = "select Max(Show_Index) + 1 from LC_PAY_CONDTION_TEMP O right join LC_FUND_PLAN_TEMP pc "
|
|
+ "on O.Plan_Number=pc.CONTRACT_Plan_Number and O.FEE_TYPE=pc.FEE_TYPE and O.PLAN_LIST=pc.PLAN_LIST "
|
|
+ "where O.FlowUnid=:FlowUnid and O.Plan_Number=:Plan_Number and O. Fee_Type=:Fee_Type and O.Plan_List=:Plan_List ";
|
|
SqlObject sqlo = new SqlObject(sSql).setParameter("FlowUnid", flowUnid).setParameter("Plan_Number", plan_Number).setParameter("Fee_Type", fee_Type).setParameter("Plan_List", plan_List);
|
|
String result = Sqlca.getString(sqlo);
|
|
if(result == null){
|
|
result = "1" ;
|
|
}
|
|
return result;
|
|
}
|
|
|
|
public Object selectShowIndexForProj(Transaction Sqlca) throws Exception{
|
|
|
|
sSql = "select Max(Show_Index) + 1 from LC_PAY_CONDTION_TEMP O right join LC_FUND_PLAN_TEMP pc "
|
|
+ "on O.Project_Plan_Number=pc.Project_Plan_Number and O.FEE_TYPE=pc.FEE_TYPE and O.PLAN_LIST=pc.PLAN_LIST "
|
|
+ "where O.FlowUnid=:FlowUnid and O.project_plan_number=:Plan_Number and O. Fee_Type=:Fee_Type and O.Plan_List=:Plan_List ";
|
|
SqlObject sqlo = new SqlObject(sSql).setParameter("FlowUnid", flowUnid).setParameter("Plan_Number", plan_Number).setParameter("Fee_Type", fee_Type).setParameter("Plan_List", plan_List);
|
|
String result = Sqlca.getString(sqlo);
|
|
if(result == null){
|
|
result = "1" ;
|
|
}
|
|
return result;
|
|
}
|
|
}
|