汽车档案归档,法人客户权限
This commit is contained in:
parent
f4ac8dbf71
commit
d014e5a62d
@ -10,8 +10,9 @@
|
||||
if(customerType==null)customerType="";
|
||||
if(customerListTemplet==null)customerListTemplet="";
|
||||
ASObjectModel doTemp = new ASObjectModel(customerListTemplet);
|
||||
String otherWhere=DataRightManager.getRightCondition(CurUser,"O","cust");
|
||||
// doTemp.appendJboWhere(otherWhere);
|
||||
//String otherWhere=DataRightManager.getRightCondition(CurUser,"O","cust");
|
||||
doTemp.appendJboWhere(" and O.inputuserid='"+userId+"'");
|
||||
//doTemp.appendJboWhere(otherWhere);
|
||||
//doTemp.setJboWhereWhenNoFilter("ct.custstatus = 'status02' ");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.setPageSize(20);
|
||||
|
||||
@ -7,6 +7,7 @@
|
||||
*/
|
||||
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
||||
if(sPrevUrl == null) sPrevUrl = "";
|
||||
String flowunid = CurPage.getAttribute("ObjectNo");
|
||||
String inputuserid = CurUser.getUserID();
|
||||
String inputusername = CurUser.getUserName();
|
||||
String inputorgid = CurOrg.getOrgID();
|
||||
@ -18,11 +19,11 @@
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "-2";//只读模式
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("SerialNo"));
|
||||
dwTemp.genHTMLObjectWindow(flowunid);
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
|
||||
{"true","All","Button","·µ»Ø","·µ»ØÁбí","returnList()","","","",""}
|
||||
//{"true","All","Button","·µ»Ø","·µ»ØÁбí","returnList()","","","",""}
|
||||
};
|
||||
sButtonPosition = "south";
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
|
||||
@ -0,0 +1,30 @@
|
||||
package com.tenwa.apzl.comm;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
import jbo.app.LB_FILE_ARCHIVING_INFO_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
|
||||
public class CopyFileArchivingInfoTempToFormat extends BaseBussiness{
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String contract_id = this.getAttribute("ContractId").toString();
|
||||
//String flowunid = this.getAttribute("ObjectNo").toString();
|
||||
|
||||
Map<String,String> fromCondtion = new HashMap<String, String>();
|
||||
fromCondtion.put("contract_id", contract_id);
|
||||
|
||||
DataOperatorUtil.copySingleJBO("jbo.app.LB_FILE_ARCHIVING_INFO_TEMP", fromCondtion, "jbo.com.tenwa.lease.comm.LB_FILE_ARCHIVING_INFO", null, null, Sqlca);
|
||||
return "true";
|
||||
}
|
||||
}
|
||||
38
src_tenwa/com/tenwa/apzl/comm/FileArchivingInfoTemp.java
Normal file
38
src_tenwa/com/tenwa/apzl/comm/FileArchivingInfoTemp.java
Normal file
@ -0,0 +1,38 @@
|
||||
package com.tenwa.apzl.comm;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import jbo.app.LB_FILE_ARCHIVING_INFO_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
|
||||
public class FileArchivingInfoTemp extends BaseBussiness{
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String contract_id = this.getAttribute("ContractId").toString();
|
||||
String flowunid = this.getAttribute("ObjectNo").toString();
|
||||
|
||||
//获取合同编号
|
||||
BizObject contractInfoObject = JBOFactory.createBizObjectQuery(LB_CONTRACT_INFO.CLASS_NAME, "id=:contract_id").setParameter("contract_id", contract_id).getSingleResult(false);
|
||||
String contract_number = contractInfoObject.getAttribute("contract_number").toString();
|
||||
BizObjectManager fileArchivingManager = JBOFactory.getBizObjectManager(LB_FILE_ARCHIVING_INFO_TEMP.CLASS_NAME, Sqlca);
|
||||
BizObject fileArchivingObject = fileArchivingManager.createQuery("contract_id=:contract_id").setParameter("contract_id", contract_id).getSingleResult(true);
|
||||
if(fileArchivingObject == null){
|
||||
//新增插入flowunid和contract_id
|
||||
BizObject bo = fileArchivingManager.newObject();
|
||||
String id = UUID.randomUUID().toString().replaceAll("-", "");
|
||||
bo.setAttributeValue("id", id);
|
||||
bo.setAttributeValue("contract_id", contract_id);
|
||||
bo.setAttributeValue("contract_number", contract_number);
|
||||
bo.setAttributeValue("flowunid", flowunid);
|
||||
fileArchivingManager.saveObject(bo);
|
||||
}
|
||||
return "true";
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user