Example #1
0
	Model.prototype.trgPrintDOMActivate = function(event){
		// 打印
		;
		var process = this.getContext().getCurrentProcess();
		var activity = this.getContext().getCurrentActivity();
		var rowid = this.comp("dDoc").getCurrentRowID();
		if ("OA_DC_SendDoc" == this.docType) {
			if (rowid) {
				var dlgSendDocRpt = this.comp('dlgSendDocRpt');
				dlgSendDocRpt.open({data:{rowid:rowid}});
			}
		}else if("OA_DC_SendDocPaper" == this.docType){
			alert('暂不支持OA_DC_SendDocPaper')
			//justep.HtmlPrint.printForm(["vSendDocPaper"]);
		} else if ("OA_DC_ReceiveDoc" == this.docType) {
			if (rowid) {
				var url = "$UI/OA/doc/process/reportDoc/receiveReportDoc/mainActivity.w?process="
				+ process + "&activity=" + activity + "&rowid=" + rowid;
				justep.Portal.openWindow(url,{title:"收文打印"});
			}
		} else if ("OA_DC_SignReport" == this.docType) {
			alert('暂不支持OA_DC_SignReport')
			//justep.HtmlPrint.printForm(["vSignReport"]);
		}
	};
Example #2
0
    Model.prototype.openBookDetail = function(id) {
        ;
      
        var ctx = this.getContext();
        
    	var process = ctx.getCurrentProcess();
    	var activity = ctx.getCurrentActivity();
    	var openPortalOperator = "";
    	var url = "";
    	if (id == "null") {
    		openPortalOperator = "new";
    		url = "$UI/OA/book/process/bookDetail/bookDetailActivity.w?process="
				+ process + "&activity=" + activity + "&openPortalOperator="
				+ openPortalOperator+ "&callerName="
				+ window.name ;
    	} else {
    		openPortalOperator = "edit";
    		url = "$UI/OA/book/process/bookDetail/bookDetailActivity.w?process="
				+ process + "&activity=" + activity + "&openPortalOperator="
				+ openPortalOperator + "&id=" + id+ "&callerName="
				+ window.name ;
    	}
   
    //	justep.Portal.openWindow(url);
    	justep.Portal.openWindow(url,{title:"图书详细信息"});
    };
	Model.prototype.listDataRowDblClick = function(event){
		var process = this.getContext().getCurrentProcess();
		var activity = this.getContext().getCurrentActivity();
		var rowID = event.rowID;
		var url = "$UI/OA/asset/process/assetDealApplyQuery/assetDealApplyDetail.w"
		 + "?process=" + process + "&activity=" + activity
		 + "&rowID="+ rowID;
		justep.Portal.openWindow(url,{title:'资产处置详细'});
	};
	Model.prototype.orderTablesRowDblClick = function(event){
		var process = this.getContext().getCurrentProcess();
		var activity = this.getContext().getCurrentActivity();
		var rowID = event.rowID;
		var url = "$UI/OA/officeSupplyConsumables/process/officeSupplyBuyApplyQuery/officeSupplyBuyApplyDetail.w"
		 + "?process=" + process + "&activity=" + activity
		 + "&rowID="+ rowID;
		justep.Portal.openWindow(url,{title:'办公用品请购详细'});
	};
Example #5
0
	Model.prototype.openLink = function(title, kwid) {

		var process = "/OA/knowledge/process/knowledgePortlet/knowledgePortletProcess";
		var activity = "textAndPicPortletActivity";
		var url = "$UI/OA/knowledge/process/viewKnowledge/viewKnowledge.a" + "?process=" + process + "&activity=" + activity + "&kwid=" + kwid;
		justep.Portal.openWindow(url, {
			title : "详细"
		});
	}
Example #6
0
	Model.prototype.addBtnClick = function(event) {
		var url = this.getUrl({
			url : '$UI/OA/workTime/process/outApply/mainActivity.m.w',
			param : {
				process : '/OA/workTime/process/outApply/outApplyProcess',
				activity : 'mainActivity'
			}
		});
		justep.Portal.openWindow(url);
	};
	Model.prototype.openDetail = function(id) {
        var ctx = this.getContext();
        
    	var process = ctx.getCurrentProcess();
    	var activity = ctx.getCurrentActivity();
    	var url = "";
    	
    	url = "$UI/OA/badgut/process/badgutApplyDetail/detailActivity.w?process="+ process + "&activity=" + activity + "&id=" + id ;
  
    	justep.Portal.openWindow(url,{title:"预算申请详细信息"});
    };
	Model.prototype.gotoDetail = function(operator){
		var data = this.comp('mainData');
		var id = data.getCurrentRowID();
		var process = this.getContext().getCurrentProcess();
		var activity = this.getContext().getCurrentActivity();
		var url = "$UI/OA/officeSupplyConsumables/process/officeSupplyUseRegisterDetail/officeSupplyUseRegisterDetail.a?process=" + process + "&activity=" + activity + "&operator=" + operator
				+ "&id=" + id;
		justep.Portal.openWindow(url, {
			title : '办公用品领用登记'
		});
	};
 Model.prototype.openBookApplyDetail = function(id){
 	var ctx = this.getContext();
     
 	var process = ctx.getCurrentProcess();
 	var activity = ctx.getCurrentActivity();
 	var operator = "view";
 	var url = "$UI/OA/book/process/bookBorrowApplyDetail/bookBorrowApplyDetailActivity.w?process="
 		+ process +"&activity=" + activity + "&operator=" + operator + "&id=" + id;
 	justep.Portal.openWindow(url,{title:"图书借阅申请详细"});
 	
 };
Example #10
0
	Model.prototype.dtSignatureRowDblClick = function(event){
		
		var dKnowledge = this.comp('dSignature');
		var process = this.getContext().getCurrentProcess();
		var activity = this.getContext().getCurrentActivity();
		var kwid = dKnowledge.getCurrentRowID();
		var url = "$UI/OA/signature/process/signatureApplyQuery/signatureApplyDetail.w"
		 + "?process=" + process + "&activity=" + activity
		 + "&kwid="+ kwid;
		justep.Portal.openWindow(url,{title:'印章管理详细'});
	};
Example #11
0
	Model.prototype.newBtnClick = function(event){
//新建
		var ctx = this.getContext();
        
    	var process = ctx.getCurrentProcess();
    	var activity = ctx.getCurrentActivity();
    	var operator = "new";
    	var url = "$UI/OA/meeting/process/boardroomDetail/boardroomDetail.w?process="
    		+ process +"&activity=" + activity + "&operator=" + operator ;
    	justep.Portal.openWindow(url,{title:"会议室信息"});
    	
	};
Example #12
0
	Model.prototype.addBtn = function(event){
	   var ctx = this.getContext();
        
    	var process = ctx.getCurrentProcess();
    	var activity = ctx.getCurrentActivity();
    	var operator = "new";
    	var url = "$UI/OA/car/process/carUseRecord/carUseRecordDetail.w?process="
    		+ process +"&activity=" + activity + "&operator=" + operator ;
    	justep.Portal.openWindow(url,{title:"用车记录详细"});
    	
	
	};
	Model.prototype.mainGridRowDblClick = function(event) {
		var rowID = event.rowID;
		if (rowID) {
			var url = new justep.URL(require.toUrl("$UI/OA/license/process/licanseAnnualReminder/licanseAnnualReminderDetail.w"));
			url.setParam('rowID', rowID);
			url.setParam('process', this.getContext().getProcess());
			url.setParam('activity', this.getContext().getActivity());
			justep.Portal.openWindow(url.toString(), {
				title : '证照详细信息'
			});
		}
	};
	Model.prototype.listTablesRowDblClick = function(event) {
		var rowID = event.rowID;
		if (rowID) {
			var url = new justep.URL(require.toUrl("$UI/OA/license/process/licenseApplyQuery/signatureApplyDetail.w"));
			url.setParam('rowID', rowID);
			url.setParam('process', this.getContext().getProcess());
			url.setParam('activity', this.getContext().getActivity());
			justep.Portal.openWindow(url.toString(), {
				title : '证照借用申请详细信息'
			});
		}
	};
Example #15
0
	Model.prototype.openDetail = function(id) {
        debugger;
        var ctx = this.getContext();
        
    	var process = ctx.getCurrentProcess();
    	var activity = ctx.getCurrentActivity();
    	var url = "";
    	
    	url = "$UI/OA/workTime/process/repairQuery/detailActivity.w?process="+ process + "&activity=" + activity + "&id=" + id ;
  
    	justep.Portal.openWindow(url,{title:"补签申请详细信息"});
    };
Example #16
0
	Model.prototype.executoristClick = function(event) {
		var row = event.bindingContext.$object;
		var task = row.val("sID");
		var process = row.val("sProcess");
		var activity = row.val("sActivity");
		var url = this.toAURL(row.val("sEURL"));
		url += ((url.indexOf("?") == -1) ? "?" : "&");
		url += "&process=" + process + "&activity=" + activity + "&task=" + task;
		url = encodeURI(url);

		url = url + "&bsessionid=" + this.getContext().getBSessionID();
		justep.Portal.openWindow(url);
	};
Example #17
0
	Model.prototype.openDetail = function(id){
		var mainData = this.comp("mainData");
	
	
		var ctx = this.getContext();
        
    	var process = ctx.getCurrentProcess();
    	var activity = ctx.getCurrentActivity();
    	var operator = "edit";
    	var url = "$UI/OA/meeting/process/boardroomDetail/boardroomDetail.w?process="
    		+ process +"&activity=" + activity + "&operator=" + operator + "&id=" + id;
    	justep.Portal.openWindow(url,{title:"会议室信息"});
	}
Example #18
0
	Model.prototype.gotoDetile = function(operate){
		var dSummary = this.comp('dSummary');
		var process = this.getContext().getCurrentProcess();
		var activity = this.getContext().getCurrentActivity();
		var rowID = dSummary.getCurrentRowID();

		var url = "$UI/OA/meeting/process/boardroomSummary/summaryDetail.w"
		 + "?process=" + process + "&activity=" + activity
		 + "&rowID="+ rowID
		 + "&operate="+ operate;
		justep.Portal.openWindow(url,{title:'会议纪要信息'});
	
	};
	Model.prototype.mainGridRowDblClick = function(event) {
		var mainData = this.comp("mainData");
		var rowId = mainData.getCurrentRowID();
		var ctx = this.getContext();
    	var process = ctx.getCurrentProcess();
    	var activity = ctx.getCurrentActivity();
    	var operator = "edit";
    	var url = "$UI/OA/license/process/licenseManageQuery/licenseManageQueryDetail.w?process="
    		+ process +"&activity=" + activity + "&operator=" + operator 
    		+ + "&callerName="
			+ "licenseManageActivity.w" + "&rowID=" + rowId;
    	justep.Portal.openWindow(url,{title:"证照详细信息"});
	};
Example #20
0
	Model.prototype.editBtnClick = function(event){
	
		var row = this.comp("dCarUseApplyQuery").getCurrentRow();
		var id = row.getID()

		
		var ctx = this.getContext();
        
    	var process = ctx.getCurrentProcess();
    	var activity = ctx.getCurrentActivity();
    	var operator = "view";
    	var url = "$UI/OA/car/process/carUseApplyQuery/carUseApplyDetail.w?process="
    		+ process +"&activity=" + activity + "&operator=" + operator + "&id=" + id;
    	justep.Portal.openWindow(url,{title:"用车申请详细"});
	};
	Model.prototype.openDetail = function(id) {
        var ctx = this.getContext();
        var data = this.comp('mainData');
    	var process = ctx.getCurrentProcess();
    	var activity = ctx.getCurrentActivity();
    	var url = "";
//    	var fFuncURL ="$UI/OA/badgut/process/badgutHistoryQuery/detailActivity.w";
    	var fFuncURL = data.getValue("fFuncURL");
    	var fBusinessID = data.getValue("fBusinessID");
//    	url = "$UI/OA/badgut/process/badgutAlterDetail/detailActivity.w?process="+ process + "&activity=" + activity + "&id=" + id ;
    	url = "$UI"+fFuncURL+"?process="+ process + "&activity=" + activity + "&id=" + fBusinessID ;
  
//    	justep.Portal.openWindow(url,{title:"预算历史流水明细"});
    	justep.Portal.openWindow(url,{title:data.getValue("fKindName") +"明细"});
 
    };
Example #22
0
	Model.prototype.dataTables1RowClick = function(event){
		mainData=this.comp("mainData");
		var link=$(event.domEvent.target);
		if(link.hasClass("view")){			
			if (mainData.getValue("fSState") == '已完成') {
				var process = this.getContext().getCurrentProcess();
				var activity = this.getContext().getCurrentActivity();
				var taskid = mainData.getValue("fTaskID");
				var paperid = mainData.getValue("fPaperID");			
				var url = require.toUrl("$UI/OA/survey/process/surveyTask/surveyTask.j?process=" + process + "&activity=" + activity + "&task=" + taskid + "&paperID=" + paperid + "&surveyID=" + mainData.getCurrentRowID());
				justep.Portal.openWindow(url, {title: "在线调查问卷"});
			} else {
				alert('只能查看已完成问卷的详细信息!');
			}
		}
	};
Example #23
0
	Model.prototype.meetingApply = function(date, time, roomID, roomName, state) {
		roomID = roomID || this.comp("dCondition").getValue('dateRoomID');
		if (state == '申请中') {
			if (!confirm(roomName + "在" + date + " " + time + ":00至" + (time * 1 + 1) + ":00已被申请,是否继续申请?"))
				return;
		} else if (state == '已安排') {
			if (!confirm(roomName + "在" + date + " " + time + ":00至" + (time * 1 + 1) + ":00已被占用,是否继续申请?"))
				return;
		}
		var process = "/OA/meeting/process/boardroomUseApply/boardroomUseApplyProcess";
		var activity = "useApply";
		var url = "$UI/OA/meeting/process/boardroomUseApply/useApply.w?process=" + process + "&activity=" + activity + "&roomID=" + roomID + "&date=" + date + "&time=" + time;
		justep.Portal.openWindow(url, {
			title : '会议室申请'
		});
	};
Example #24
0
	Model.prototype.listClick = function(event){
		//打开任务
		debugger;
		var row = this.comp('taskData').getCurrentRow();
		var task = row.val("SA_Task");
		var process = row.val("sProcess");
		var activity = row.val("sActivity");
		var url = this.toAURL(row.val("sEURL"));
		url += ((url.indexOf("?") == -1) ? "?" : "&");
		url += "&process=" + process + "&activity=" + activity + "&task=" + task;
		url = encodeURI(url);
		
		//TODO 将来由门户的api加bsessionid
		url = url + "&bsessionid=" + this.getContext().getBSessionID();
		justep.Portal.openWindow(url);	
		
	};
Example #25
0
	Model.prototype.editBtnClick = function(event){
	
	   var mainData = this.comp("mainData");
	
		var id = mainData.getCurrentRowID();
		var ctx = this.getContext();
        
    	var process = ctx.getCurrentProcess();
    	var activity = ctx.getCurrentActivity();
    	var operator = "edit";
    	var url = "$UI/OA/car/process/carUseRecord/carUseRecordDetail.w?process="
    		+ process +"&activity=" + activity + "&operator=" + operator + "&id=" + id;
    	justep.Portal.openWindow(url,{title:"用车记录详细"});
    	
	
		
	};
Example #26
0
	Model.prototype.btnApply = function(event) {
		var fID = this.comp("dCondition").getValue("dateRoomID");
		var process = "/OA/meeting/process/boardroomUseApply/boardroomUseApplyProcess";
		var activity = "useApply";
		var url = new justep.URL(require.toUrl("$UI/OA/meeting/process/boardroomUseApply/useApply.w"));
		url.setParam({
			'process' : process
		});
		url.setParam({
			'activity' : activity
		});
		url.setParam({
			'roomID' : fID
		});
		justep.Portal.openWindow(url.toString(), {
			title : '会议室申请'
		});
	};
Example #27
0
	Model.prototype.button1Click = function(event){		
		paperID = mainData.getCurrentRow();
		dlgOperator = "view";
		var fPublicType = mainData.getValue("fPublicType", paperID);
		var fPublicTypeName = mainData.getValue("fPublicTypeName", paperID);
		var fCreatePsnID = mainData.getValue("fCreatePsnID", paperID);
		if (fPublicType == "Anonymity" || fPublicType == "AnonyPublic") {
			alert("当前调查公布类型为:" + fPublicTypeName + "   不能查看问卷明细!");
			return;
		} else if (fPublicType == "SumPublic" || fPublicType == "NoPublic") {
			if (fCreatePsnID != this.getContext().getCurrentPersonID()) {
				alert("当前调查公布类型为:" + fPublicTypeName + "  只能查看本人创建的调查问卷明细!");
				return;
			}
		}		
		var url = require.toUrl("$UI/OA/survey/process/surveySummary/questionnaireActivity.w?process=/OA/survey/process/surveySummary/surveySummaryProcess&activity=surveySummaryActivity&data=" + mainData.getCurrentRowID());
		justep.Portal.openWindow(url, {title: "问卷明细"});
		//this.comp("windowDialog").open({src:url});
	};
Example #28
0
	Model.prototype.dtKnowledgeRowDblClick = function(event){
		;
		var dKnowledge = this.comp('dKnowledge');
		var dlgPublishKWActivity = this.comp('dlgPublishKWActivity');
		var title = dKnowledge.getValue('fTitle');

		var process = "/OA/knowledge/process/publishKnowledge/publishKnowledgeProcess"
		var activity = "publishKWActivity"
		var kwid = dKnowledge.getCurrentRowID();
		
		
		var process = "/OA/knowledge/process/publishKnowledge/publishKnowledgeProcess"
	    var activity = "publishKWActivity"
	    var url = "$UI/OA/knowledge/process/publishKnowledge/publishKWActivity.w"
			+ "?process=" + process + "&activity=" + activity + "&KWID="
			+ kwid + "&operator=manage";

		justep.Portal.openWindow(url,{title:"知识发布"});
	
	
	};
Example #29
0
	Model.prototype.dataTables1RowClick = function(event){
	    debugger;
		var link=$(event.domEvent.target);
		if(link.hasClass("title")){
		   var process = this.getContext().getCurrentProcess();
			var activity = this.getContext().getCurrentActivity();
			var paperid = this.comp("mainData").getCurrentRowID();
			var taskid = mainData.getValue("fTaskID");
			
			
	       var url =require.toUrl("$UI/OA/survey/process/surveyFinally/surveyFinally.j?process="
			+ process + "&activity=" + activity + "&paperID=" + paperid);
	        justep.Portal.openWindow(url, {title: "在线调查问卷"});
		
		  
		
		/*	var process = this.getContext().getCurrentProcess();
			var activity = this.getContext().getCurrentActivity();
			var taskid = mainData.getValue("fTaskID");
			var paperid = mainData.getValue("fPaperID");			
			var url = require.toUrl("$UI/OA/survey/process/surveyTask/surveyTask.j?process=" + process + "&activity=" + activity + "&task=" + taskid + "&paperID=" + paperid + "&surveyID=" + mainData.getCurrentRowID());
			justep.Portal.openWindow(url, {title: "在线调查问卷"});*/
		}
	};
Example #30
0
	Model.prototype.dataTables1RowDblClick = function(event){
		var url = require.toUrl("$UI/OA/survey/process/surveySend/detailActivity.w?process=/OA/survey/process/surveySend/surveySendProcess&activity=surveySendActivity&type=edit&data=" + mainData.getCurrentRowID());
		justep.Portal.openWindow(url, {title: "问卷调查发布详细"});
	};