流程发起权限设置

This commit is contained in:
tangfutang 2018-09-13 19:33:14 +08:00
parent cd4147f4ed
commit 13a78be8d6
13 changed files with 105 additions and 15 deletions

View File

@ -84,7 +84,7 @@ FROM
ON lccs.payment_number = lcc.payment_number
LEFT JOIN lb_contract_status lcs
ON lcs.STATUS_CODE = lccs.plan_status
WHERE IFNULL(l.fact_money, 0) = lcc.CAUTION_MONEY
WHERE lci.businesstype='#businessType' AND IFNULL(l.fact_money, 0) = lcc.CAUTION_MONEY
AND (
lcc.CAUTION_DEDUCTION_MONEY - IFNULL(lr.fact_money, 0)
) > 0

View File

@ -74,7 +74,7 @@ FROM
ON lccs.payment_number = lcc.payment_number
LEFT JOIN lb_contract_status lcs
ON lcs.status_code = lccs.plan_status
WHERE IFNULL(l.fact_money, 0) > 0
WHERE lci.businesstype='#businessType' AND IFNULL(l.fact_money, 0) > 0
AND (
lcc.CAUTION_MONEY_REMAIN - IFNULL(lr.fact_money, 0)
) > 0

View File

@ -85,7 +85,7 @@ FROM
LEFT JOIN user_info AS ui
ON lci.PROJECT_MANAGE = ui.userid
left join vi_distributor_lines di on lci.distributor_id=di.distributor_no
WHERE (
WHERE lci.businesstype='#businessType' AND (
lci.contract_status = '21'
OR lci.contract_status = '25'
OR lci.contract_status = '26'

View File

@ -6,7 +6,8 @@
Content:
History Log:
*/
String sObjectType = CurPage.getParameter("FlowNo");//流程类型
String sObjectType = CurPage.getParameter("FlowNo");//流程类型PhaseNo
String phaseno = CurPage.getParameter("PhaseNo");
String flowunid = CurPage.getParameter("FlowUnid");
String RightType= CurPage.getParameter("RightType");
String contractid= CurPage.getParameter("ContractId");
@ -19,10 +20,14 @@
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow(flowunid);
String button = "false";
if("0010".equals(phaseno)){
button = "true";
}
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","All","Button","上传","上传合同","upload()","","","","btn_icon_save"},
{"true","","Button","删除","删除","deletefile()","","","","btn_icon_delete",""},
{button,"All","Button","上传","上传合同","upload()","","","","btn_icon_save"},
{button,"","Button","删除","删除","deletefile()","","","","btn_icon_delete",""},
};
sButtonPosition = "north";
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>

View File

@ -12,12 +12,23 @@
{ var userid="<%=CurUser.getUserID()%>";
var flowno="<%=CurPage.getParameter("ApplyType")%>";
var selname="";
var orgId="<%=CurUser.getOrgID()%>".substring(0,7);
var businessType="";
if(flowno=="BContractApproveApply"){
selname="SelectProjectForContract_Car";
businessType="1";
}else{
selname="SelectProjectForContract";
if(orgId=="8009010"){
businessType="2";
}else if(orgId=="8009011"){
businessType="3";
}else{
alert("当前用户不能发起申请!");
return;
}
}
AsDialog.OpenSelector(selname,"userid,"+userid,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
AsDialog.OpenSelector(selname,"userid,"+userid+",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;

View File

@ -5,7 +5,17 @@
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newApply()
{
AsDialog.OpenSelector("SelectPassPaymentPlan","","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("SelectPassPaymentPlan","businessType,"+businessType,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
//alert(getHtmlMessage('1'));//请选择一条信息!
return;

View File

@ -4,7 +4,6 @@
<script type="text/javascript">
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newApply(){
debugger;
var userid="<%=CurUser.getUserID()%>";
AsDialog.OpenSelector("SelectContractPayment","userid,"+userid,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){

View File

@ -4,7 +4,17 @@
<script type="text/javascript">
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newApply(){
AsDialog.OpenSelector("SelectTraditionContractPayment","","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("SelectTraditionContractPayment","businessType,"+businessType,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
return;
}

View File

@ -4,7 +4,17 @@
<script type="text/javascript">
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newApply(){
AsDialog.OpenSelector("SelectProjectCredit","","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("SelectProjectCredit","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_"){
return;
}

View File

@ -4,7 +4,6 @@
<script type="text/javascript">
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newApply(){
debugger;
var orgId="<%=CurUser.getOrgID()%>";
orgId = orgId.substring(0,7);
var businessType="";

View File

@ -4,7 +4,23 @@
<script type="text/javascript">
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newApply(){
AsDialog.OpenSelector("SelectContractOnhireWithDeduction","","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
var flowno="<%=CurPage.getParameter("ApplyType")%>";
var selname="";
var orgId="<%=CurUser.getOrgID()%>".substring(0,7);
var businessType="";
if("CautionMoneyDeductionApply"==flowno){
businessType="1";
}else{
if(orgId=="8009011"){
businessType="3";
}else if(orgId=="8009010"){
businessType="2";
}else{
alert("当前用户不能发起申请!");
return;
}
}
AsDialog.OpenSelector("SelectContractOnhireWithDeduction","businessType,"+businessType,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
//alert(getHtmlMessage('1'));//请选择一条信息!
return;

View File

@ -4,7 +4,22 @@
<script type="text/javascript">
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newApply(){
AsDialog.OpenSelector("SelectContractOnhireWithReturn","","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
var flowno="<%=CurPage.getParameter("ApplyType")%>";
var orgId="<%=CurUser.getOrgID()%>".substring(0,7);
var businessType="";
if("CautionMoneyReturnApply"==flowno){
businessType="1";
}else{
if(orgId=="8009011"){
businessType="3";
}else if(orgId=="8009010"){
businessType="2";
}else{
alert("当前用户不能发起申请!");
return;
}
}
AsDialog.OpenSelector("SelectContractOnhireWithReturn","businessType,"+businessType,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
//alert(getHtmlMessage('1'));//请选择一条信息!
return;

View File

@ -4,7 +4,22 @@
<script type="text/javascript">
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function newApply(){
AsDialog.OpenSelector("SelectPaymentHavePenalty","","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
var flowno="<%=CurPage.getParameter("ApplyType")%>";
var orgId="<%=CurUser.getOrgID()%>".substring(0,7);
var businessType="";
if("PenaltyReductionApply"==flowno){
businessType="1";
}else{
if(orgId=="8009011"){
businessType="3";
}else if(orgId=="8009010"){
businessType="2";
}else{
alert("当前用户不能发起申请!");
return;
}
}
AsDialog.OpenSelector("SelectPaymentHavePenalty","businessType,"+businessType,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
//alert(getHtmlMessage('1'));//请选择一条信息!
return;