apzl_leasing/src_tenwa/com/tenwa/platform/controller/PfTaskAllocationRoleDelete.java
2019-10-14 15:56:57 +08:00

27 lines
747 B
Java

package com.tenwa.platform.controller;
import com.amarsoft.are.jbo.JBOTransaction;
import com.amarsoft.awe.util.SqlObject;
import com.amarsoft.awe.util.Transaction;
public class PfTaskAllocationRoleDelete {
private String roleid;
public String getRoleid() {
return roleid;
}
public void setRoleid(String roleid) {
this.roleid = roleid;
}
public String deleteRole(JBOTransaction tx) throws Exception{
Transaction Sqlca = null;
Sqlca = Transaction.createTransaction(tx);
Sqlca.executeSQL(new SqlObject("delete from pf_task_allocation_role where ROLEID='"+roleid+"'"));
Sqlca.executeSQL(new SqlObject("delete from pf_task_allocation_user where ROLEID='"+roleid+"'"));
return "½Çɫɾ³ý³É¹¦!";
}
}