⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 archives.js

📁 很全面的hrm管理。提供通用的企业人力资源管理。
💻 JS
字号:
function openArchivesView(_defaultVal,_url,_inputType){

    dialogBoxWidth  = 620 //window.screen.width / 2;
    dialogBoxHeight = 440 //window.screen.height / 2;
    dialogBoxLeft   = 100 //dialogBoxWidth / 2;
    dialogBoxTop    = 100 //dialogBoxHeight /2;
    
	var defaultVal = "";
	if (_defaultVal){
		defaultVal = _defaultVal;
	}	
	var url = "../common/archivesListAction.do";
	if (_url) {
		url = _url;
	}
	var inputType = "checkbox";
	if (_inputType) {
		inputType = _inputType;
	}
	
	if (url.indexOf('?') == -1) {
		url = url + "?inputType=" + inputType;
	} else {
		url = url + "&inputType=" + inputType;
	}
	
	var newWindow = window.showModalDialog(url, defaultVal,'dialogWidth:' + dialogBoxWidth + 'px;dialogHeight:' + dialogBoxHeight + 'px;dialogLeft:' + dialogBoxLeft + 'px;dialogTop:' + dialogBoxTop + 'px;center:yes;help:no;resizable:yes;status:no');
	return newWindow;
}

function openSkillArchivesView(_defaultVal,_url){
	dialogBoxWidth  = 620 //window.screen.width / 2;
    dialogBoxHeight = 440 //window.screen.height / 2;
    dialogBoxLeft   = 100 //dialogBoxWidth / 2;
    dialogBoxTop    = 100 //dialogBoxHeight /2;
	var defaultVal = "";
	if (_defaultVal){
		defaultVal = _defaultVal;
	}	
	var url = "popupArchSelectAction.do?select=archives";
	if (_url) {
		url = _url;
	}
	var newWindow = window.showModalDialog(url, defaultVal,'dialogWidth:' + dialogBoxWidth + 'px;dialogHeight:' + dialogBoxHeight + 'px;dialogLeft:' + dialogBoxLeft + 'px;dialogTop:' + dialogBoxTop + 'px;center:yes;help:no;resizable:yes;status:no');
	return newWindow;
}

function getPeople(){
			var archivesArray = openArchivesView('','','radio');
			if (archivesArray && archivesArray[0]) {
				if (document.forms(0).name1) {
					document.forms(0).name1.value = archivesArray[0]['name'];
				} 
				if (document.forms(0).name){
					document.forms(0).name.value = archivesArray[0]['name'];
				}
				if (document.forms(0).userid) {
					document.forms(0).userid.value = archivesArray[0]['id'];
				} 
				if (document.forms(0).nameid) {
					document.forms(0).nameid.value = archivesArray[0]['id'];
				}

			}
		}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -