配置流程权限
This commit is contained in:
parent
50bbffd93e
commit
0212932d85
@ -7,16 +7,31 @@
|
||||
*/
|
||||
|
||||
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
|
||||
String applytype = CurPage.getParameter("ApplyType");
|
||||
String ishistory=CurPage.getParameter("IsHistory");
|
||||
String RightType=CurPage.getParameter("RightType");
|
||||
ASObjectModel doTemp = new ASObjectModel("TodoAdjustInterestList");
|
||||
|
||||
//判断业务类型
|
||||
String businessType="";
|
||||
String orgId=CurUser.getOrgID().substring(0,7);
|
||||
if("AdjustInterestCarApply".equals(applytype)){
|
||||
businessType="1";
|
||||
}else{
|
||||
if("8009010".equals(orgId)){
|
||||
businessType="2";
|
||||
}else if("8009011".equals(orgId)){
|
||||
businessType="3";
|
||||
}else{
|
||||
businessType="";
|
||||
}
|
||||
}
|
||||
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.MultiSelect = true;
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow(sFlowUnid+","+sFlowUnid);
|
||||
dwTemp.genHTMLObjectWindow(businessType+","+sFlowUnid+","+sFlowUnid);
|
||||
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
|
||||
isShowButton=false;
|
||||
}
|
||||
|
||||
@ -6,18 +6,34 @@
|
||||
History Log:
|
||||
*/
|
||||
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
|
||||
String applytype = CurPage.getParameter("ApplyType");
|
||||
String ishistory=CurPage.getParameter("IsHistory");
|
||||
String RightType=CurPage.getParameter("RightType");
|
||||
ASObjectModel doTemp = new ASObjectModel("LCAdjustContractRoll");
|
||||
if(null!=ishistory&&ishistory.equals("true")){
|
||||
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataListHistory");//如果是历史则新显示历史数据
|
||||
}
|
||||
//判断业务类型
|
||||
String businessType="";
|
||||
String orgId=CurUser.getOrgID().substring(0,7);
|
||||
if("AdjustRollBackApply".equals(applytype)){
|
||||
businessType="1";
|
||||
}else{
|
||||
if("8009010".equals(orgId)){
|
||||
businessType="2";
|
||||
}else if("8009011".equals(orgId)){
|
||||
businessType="3";
|
||||
}else{
|
||||
businessType="";
|
||||
}
|
||||
}
|
||||
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.MultiSelect = true;
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow(sFlowUnid);
|
||||
dwTemp.genHTMLObjectWindow(sFlowUnid+","+businessType);
|
||||
if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){
|
||||
isShowButton=false;
|
||||
}
|
||||
|
||||
@ -5,7 +5,17 @@
|
||||
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
|
||||
function newApply()
|
||||
{
|
||||
AsDialog.OpenSelector("SelectContractForEnd","","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
var orgId="<%=CurUser.getOrgID()%>".substring(0,7);
|
||||
var businessType="";
|
||||
if(orgId=="8009010"){
|
||||
businessType="2";
|
||||
}else if(orgId=="8009011"){
|
||||
businessType="3";
|
||||
}else{
|
||||
alert("当前用户不能发起申请!");
|
||||
return;
|
||||
}
|
||||
AsDialog.OpenSelector("SelectContractForEnd","businessType,"+businessType,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="_NONE_"){
|
||||
//alert(getHtmlMessage('1'));//请选择一条信息!
|
||||
return;
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
|
||||
function newApply()
|
||||
{
|
||||
AsDialog.OpenSelector("TriditionselectContractOnhireChange","","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
AsDialog.OpenSelector("selectContractOnhireChange","","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="_NONE_"){
|
||||
//alert(getHtmlMessage('1'));//请选择一条信息!
|
||||
return;
|
||||
|
||||
@ -5,7 +5,17 @@
|
||||
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
|
||||
function newApply()
|
||||
{
|
||||
AsDialog.OpenSelector("TriditionselectContractOnhireChange","","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
var orgId="<%=CurUser.getOrgID()%>".substring(0,7);
|
||||
var businessType="";
|
||||
if(orgId=="8009010"){
|
||||
businessType="2";
|
||||
}else if(orgId=="8009011"){
|
||||
businessType="3";
|
||||
}else{
|
||||
alert("当前用户不能发起申请!");
|
||||
return;
|
||||
}
|
||||
AsDialog.OpenSelector("TriditionselectContractOnhireChange","businessType,"+businessType,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="_NONE_"){
|
||||
//alert(getHtmlMessage('1'));//请选择一条信息!
|
||||
return;
|
||||
|
||||
@ -5,7 +5,17 @@
|
||||
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
|
||||
function newApply()
|
||||
{
|
||||
AsDialog.OpenSelector("selectTraditionContractPaymentPlanTerminate","","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
var orgId="<%=CurUser.getOrgID()%>".substring(0,7);
|
||||
var businessType="";
|
||||
if(orgId=="8009010"){
|
||||
businessType="2";
|
||||
}else if(orgId=="8009011"){
|
||||
businessType="3";
|
||||
}else{
|
||||
alert("当前用户不能发起申请!");
|
||||
return;
|
||||
}
|
||||
AsDialog.OpenSelector("selectTraditionContractPaymentPlanTerminate","businessType,"+businessType,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="_NONE_"){
|
||||
//alert(getHtmlMessage('1'));//请选择一条信息!
|
||||
return;
|
||||
|
||||
@ -205,6 +205,13 @@
|
||||
if(!checkCertidRepeat()){
|
||||
return;
|
||||
}
|
||||
var assurerelation = getItemValue(0,0,"ASSURE_RELATION");
|
||||
if(assurerelation.length>10){
|
||||
setErrorTips("ASSURE_RELATION","关系输入过长!!");
|
||||
return;
|
||||
}else{
|
||||
setErrorTips("ASSURE_RELATION","");
|
||||
}
|
||||
/*var ID = getItemValue(0,getRow(0),'ID');
|
||||
if("undefined"==ID||""==ID || null==ID){
|
||||
AsDebug.showMessage("提示","请选中一条数据!","","",true);
|
||||
|
||||
@ -5,9 +5,25 @@
|
||||
|
||||
String flowunid = CurPage.getParameter("FlowUnid");
|
||||
String rightType = CurPage.getParameter("RightType");
|
||||
String applytype = CurPage.getParameter("ApplyType");
|
||||
String factDate = JBOFactory.createBizObjectQuery(LC_EBANK_TEMP.CLASS_NAME, "flowunid=:flowunid")
|
||||
.setParameter("flowunid", flowunid).getSingleResult(false).getAttribute("FACT_DATE").getString();
|
||||
CurPage.setAttribute("fact_date", factDate);
|
||||
|
||||
//判断业务类型
|
||||
String businessType="";
|
||||
String orgId=CurUser.getOrgID().substring(0,7);
|
||||
if("FundCollectionApply".equals(applytype)){
|
||||
businessType="1";
|
||||
}else{
|
||||
if("8009010".equals(orgId)){
|
||||
businessType="2";
|
||||
}else if("8009011".equals(orgId)){
|
||||
businessType="3";
|
||||
}else{
|
||||
businessType="";
|
||||
}
|
||||
}
|
||||
ASObjectModel doTemp = new ASObjectModel("VILCRentPlanList");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
@ -16,7 +32,7 @@
|
||||
dwTemp.MultiSelect = true;
|
||||
}
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow(factDate);
|
||||
dwTemp.genHTMLObjectWindow(businessType+","+factDate);
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user