合同与资金红冲
This commit is contained in:
parent
4c75804323
commit
2a548389e5
@ -1,18 +1,32 @@
|
||||
<%@page import="jbo.app.tenwa.customer.DISTRIBUTOR_INFO"%>
|
||||
<%@page import="com.tenwa.comm.dataRightmanager.DataRightManager"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
|
||||
<%
|
||||
|
||||
String InfoForType=CurPage.getParameter("InfoForType");
|
||||
String InfoForType=CurPage.getParameter("InfoForType");
|
||||
String userid=CurUser.getUserID().substring(0,5);
|
||||
String Orgid=CurUser.getOrgID();
|
||||
String Model="";
|
||||
String distributor_id="";
|
||||
if(InfoForType.equals("02")){
|
||||
Model="ContractInfoAllViewFroCT";
|
||||
}else{
|
||||
Model="ContractInfoAllViewFroQC";
|
||||
if("8006U".equals(userid)){
|
||||
String sSql = "select distributor_no from O where orgid = :orgid";
|
||||
BizObject bo = JBOFactory.createBizObjectQuery(DISTRIBUTOR_INFO.CLASS_NAME, sSql).setParameter("orgid", Orgid).getSingleResult(false);
|
||||
distributor_id=bo.getAttribute("distributor_no").toString();
|
||||
|
||||
Model="ContractInfoAllViewFroJXS";
|
||||
}else{
|
||||
Model="ContractInfoAllViewFroQC";
|
||||
}
|
||||
}
|
||||
ASObjectModel doTemp = new ASObjectModel(Model);
|
||||
/*String sCondtion=DataRightManager.getRightCondition(CurUser,"O", "contract");
|
||||
doTemp.appendJboWhere(sCondtion);*/
|
||||
if("ContractInfoAllViewFroJXS".equals(Model)){
|
||||
/* String sCondtion=DataRightManager.getRightCondition(CurUser,"O", "contract"); */
|
||||
doTemp.appendJboWhere(" and O.distributor_id='"+distributor_id+"'");
|
||||
}
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
|
||||
@ -0,0 +1,54 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApplyListStart.jspf"%>
|
||||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=自定义函数;]~*/%>
|
||||
<script type="text/javascript">
|
||||
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
|
||||
function newApply(){
|
||||
var userid="<%=CurUser.getUserID()%>";
|
||||
var flowno="<%=CurPage.getParameter("ApplyType")%>";
|
||||
var selname="";
|
||||
var orgId="<%=CurUser.getOrgID()%>".substring(0,7);
|
||||
var businessType="";
|
||||
if(flowno=="RentRebackApply"){
|
||||
businessType="1";
|
||||
}else{
|
||||
if(orgId=="8009010"){
|
||||
businessType="2";
|
||||
}else if(orgId=="8009011"){
|
||||
businessType="3";
|
||||
}else{
|
||||
alert("当前用户不能发起申请!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
AsDialog.OpenSelector("SelectRentReback","businessType,"+businessType,"dialogWidth=" + parseInt(window.screen.width * 0.9) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
var info=sReturn||"";
|
||||
if(info.length>0 && info.indexOf("_CANCEL_")<0){
|
||||
sReturn = sReturn.split("@");
|
||||
var contract_id = sReturn[0];
|
||||
var project_id = sReturn[1];
|
||||
var project_name= sReturn[2];
|
||||
var contract_number = sReturn[3];
|
||||
var payment_number = sReturn[4];
|
||||
var product_id = sReturn[5];
|
||||
sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
|
||||
sParams =sParams+",ProjectId="+project_id+",ContractId="+contract_id+",ProjectName="+project_name+",FlowKey="+contract_number+",PaymentNumber="+payment_number+",ProductId="+product_id;
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams);
|
||||
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
|
||||
var sReturnInfos=sReturnInfo.split("@");
|
||||
if(sReturnInfos[0]=="success")
|
||||
{
|
||||
var objectNo=sReturnInfos[1];
|
||||
FlowFunction.openStartFlowPage(objectNo);
|
||||
}
|
||||
else
|
||||
{
|
||||
var mes=sReturnInfos[1];
|
||||
alert(mes);
|
||||
}
|
||||
reloadSelf();
|
||||
}
|
||||
},"请选择合同");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Tenwa/Core/FlowManager/BaseFlowList/BaseFlowApplyListEnd.jspf"%>
|
||||
@ -4,8 +4,7 @@
|
||||
<script type="text/javascript">
|
||||
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
|
||||
function newApply(){
|
||||
debugger;
|
||||
var userid="<%=CurUser.getUserID()%>";
|
||||
var userid="<%=CurUser.getUserID()%>";
|
||||
var flowno="<%=CurPage.getParameter("ApplyType")%>";
|
||||
var selname="";
|
||||
var orgId="<%=CurUser.getOrgID()%>".substring(0,7);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user