经销商 发起 申请

This commit is contained in:
liujiaji 2018-08-28 10:17:24 +08:00
parent 8f3eeb5bf4
commit ea52f1e7f1

View File

@ -5,8 +5,10 @@ import java.util.Map;
import java.util.UUID;
import com.amarsoft.app.util.ProductParamUtil;
import com.amarsoft.are.ARE;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.JBOTransaction;
import com.amarsoft.awe.Configure;
import com.amarsoft.awe.util.SqlObject;
import com.amarsoft.awe.util.Transaction;
import com.amarsoft.context.ASUser;
@ -39,6 +41,27 @@ public class BusinessApprovalStartAction extends BaseFlowStartAction{
private String geartype;
private String ProductName;
private String ProductId;
private String CurOrgID;
@SuppressWarnings("deprecation")
public String askApplyStart(JBOTransaction tx) throws Exception {
try {
Transaction Sqlca = null;
Configure CurConfig = Configure.getInstance();
String sDataSource = CurConfig.getDataSource();
Sqlca = Transaction.createTransaction(sDataSource);
String sReturn = "false";
String jobName = Sqlca.getString("SELECT distributor_status FROM distributor_info WHERE orgid='"+CurOrgID+"'");
if(jobName != null&&jobName=="distributor_status04"){
sReturn = "true";
}
return sReturn;
} catch (Exception e) {
ARE.getLog().error(e);
return "false";
}
}
@Override
public void customOperation(JBOTransaction tx,BizObject flowBussiness) throws Exception {