📄 popselect.js.vm
字号:
##初始化流程图的基本设置
<script language="javascript">
function Js_openModalDialog(filename,prop_w,prop_h,prop_l,prop_t)
{
var features =
'dialogWidth:' + prop_w + 'px;' +
'dialogHeight:' + prop_h + 'px;' +
'dialogLeft:' + prop_l + 'px;' +
'dialogTop:' + prop_t + 'px;'+
'directories:yes; localtion:yes; menubar:no; status=no; toolbar=no;scrollbars:no;Resizeable=no';
returnval=window.showModalDialog(filename,"NewWindow",features);
if(returnval)
document.location.reload();
}
function fPopUpSimpleSelectDlg(url,intID,strName,prop_w,prop_h,prop_l,prop_t)
{
var features =
'dialogWidth:' + prop_w + 'px;' +
'dialogHeight:' + prop_h + 'px;' +
'dialogLeft:' + prop_l + 'px;' +
'dialogTop:' + prop_t + 'px;'+
'directories:yes; localtion:yes; menubar:no; status=no; toolbar=no;scrollbars:no;Resizeable=no';
retval=window.showModalDialog(url,"NewWindow",features);
var ss=retval.split("#");
intID.value=ss[0];
strName.value=ss[1];
}
function fPopUpSelectDlg(actionNameSpace,allGroup,strIDList,strName)
{
if((allGroup!="true")&&(allGroup!="false"))
allGroup = "?";
showx = event.screenX - event.offsetX - 4 - 210 ; // + deltaX;
showy = event.screenY - event.offsetY + 18; // + deltaY;
newWINwidth = 210 + 4 + 18;
var strIDList=document.getElementById(strIDList);
var strName=document.getElementById(strName);
if(allGroup=="?")
retval = window.showModalDialog(actionNameSpace+"?allGroup=false&jsSelect.strTargetIDList="+strIDList.value, "", "dialogWidth:465px; dialogHeight:345px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scrollbars:no;Resizable=no; " );
else
retval = window.showModalDialog(actionNameSpace+"?allGroup="+allGroup+"&jsSelect.strTargetIDList="+strIDList.value, "", "dialogWidth:465px; dialogHeight:345px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scrollbars:no;Resizable=no; " );
if( retval != null )
{
var ss=retval.split("#");
if(ss[0]!=null && ss[0].indexOf(',')>-1){
ss[0]=ss[0].substring(1);
if(ss[0]!=null && ss[0].lastIndexOf(',')>-1){
ss[0]=ss[0].substring(0,ss[0].length-1);
}
}
if(ss[1]!=null && ss[1].indexOf(',')>-1){
ss[1]=ss[1].substring(1);
if(ss[1]!=null && ss[1].lastIndexOf(',')>-1){
ss[1]=ss[1].substring(0,ss[1].length-1);
}
}
strIDList.value=ss[0];
strName.value=ss[1];
}
}
function fPopUpSelectDlgForWorkFlow(url,strSql,strValue)
{
url=url+"?strSql="+strSql.value;
url=url+"&strValue="+strValue.value;
//var k=showModalDialog(url,"","dialogWidth:465px;status:no;dialogHeight:380px");
var k=showModalDialog(url,"","dialogWidth:465px;status:no;dialogHeight:380px");
if((k)&&(k.length>0))
{
var strArr= k.split("$#@&!");
strSql.value=strArr[0];
strValue.value=strArr[1];
}
}
function trimPoint(strValInfo)
{
var strArr=strValInfo.split(",");
var tmpStr="";
for(var i=0;i<strArr.length;i++)
{
if(strArr[i])
tmpStr+=","+strArr[i];
}
return tmpStr=tmpStr.substr(1);
}
function fPopUpSelectDlgForNodeUser(url,strSql,strID,strValue,intSourceUnitID,intSourceUserID)
{
url=url+"?strSql="+strSql.value;
url=url+"&strNodeUserID="+strID.value;
url=url+"&intSourceUnitID="+intSourceUnitID.value;
url=url+"&intSourceUserID="+intSourceUserID.value;
//var k=showModalDialog(url,"","dialogWidth:465px;status:no;dialogHeight:380px");
var k=showModalDialog(url,"","dialogWidth:465px;status:no;dialogHeight:380px");
if((k)&&(k.length>0))
{
var strArr= k.split("#");
strID.value=strArr[0];
strValue.value=trimPoint(strArr[1]);
}
}
function fPopUpSelectDlgForWorkFlowIn(url,strSql,strValue,intID)
{
url=url+"?strSql="+strSql.value;
url=url+"&strValue="+strValue.value;
url=url+"&intID="+intID.value;
//var k=showModalDialog(url,"","dialogWidth:465px;status:no;dialogHeight:380px");
var k=showModalDialog(url,"","dialogWidth:465px;status:no;dialogHeight:380px");
if((k)&&(k.length>0))
{
var strArr= k.split("$#@&!");
strSql.value=strArr[0];
strValue.value=strArr[1];
}
}
function fPopUpSelectDlgForWorkFlowOut(url,strSql,strValue,intID)
{
url=url+"?strSql="+strSql.value;
url=url+"&strValue="+strValue.value;
url=url+"&intID="+intID.value;
//var k=showModalDialog(url,"","dialogWidth:465px;status:no;dialogHeight:380px");
var k=showModalDialog(url,"","dialogWidth:200px;status:no;dialogHeight:100px");
if((k)&&(k.length>0))
{
var strArr= k.split("$#@&!");
strSql.value=strArr[0];
strValue.value=strArr[1];
}
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -