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

📄 default.asp

📁 进销存软件源代码
💻 ASP
字号:
<!-- #include virtual="/eB3KTransaction.asp" -->
<HTML><HEAD><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><LINK REL=stylesheet HREF="/Client/All.css" TYPE="text/css"><script src="/Client/ebComm.js"></script></HEAD>
<script src="/client/ebo.js"></script>
<script src="/client/Request.js"></script>
<script src="/client/IClient.js"></script>
<script src="/client/IServer.js"></script>
<script src="/client/grid.js"></script>
<script src="/client/cbLib.js"></script>
<script src="/client/datectrl.js"></script>
<BODY topmargin="10">
<TABLE>

<TR><TD width=30%></TD><TD width=70% align="center">查看总帐</TD></TR>
<TR><TD width=30%></TD><TD width=70%>选择科目:<input id=subject type=hidden><input id=Code type=hidden><input id=subjectText>&nbsp;<input type=button value="选择" onclick="subjectClick(this,subject)"></TD></TR>
<TR><TD width=30%></TD><TD width="70%">选择日期:<input id=dateFrom size=20>&nbsp;<input type=button value="↓" onclick="dateShow(dateFrom)"> — <input id=dateTo size=20>&nbsp;<input type=button value="↓" onclick="dateShow(dateTo)"></TD></TR>
<tr><td width="30%"></td><td width=%70>搜索:<input id=search size=20></td></tr>		
<tr><td width="30%"></td><td width=70%>
<table><tr>
		<td width="100%">显示子公司:</td></tr>
		<tr><td width="100"><div id=bdBodyChildDetail width="100%"></div></td>
</tr></table>
</td>	
<TR><TD width=30%></TD><TD width="70%">        <input type=button value="查看帐页" onClick="searchClick()"></TD></TR></TABLE>
<iframe id=bdSelectArea width=500 height=500 style="display: none" border=0 frameborder=0 framespacing=0 marginheight=0 marginwidth=0></iframe>
<iframe id=bdSelectArea2 width=500 height=500 style="DISPLAY: none" border=0 frameborder=0 framespacing=0 marginheight=0 marginwidth=0></iframe></td></tr></table>
<iframe id=bdLoadSave width=0 height=0 style="DISPLAY: none" border=0 frameborder=0 framespacing=0 marginheight=0 marginwidth=0></iframe>
<div id=bdPanel width=100 height=60 style="position:absolute; display:none; border:1 solid #000000">
<div id=bdPanelProduct><input type=button value="删除" onclick="panelDelete()"></div>
</BODY>
<script>

var sDetail,pDetail;
var iPanelx=0,iPanely=0,detailName;
bdPanel.style.left=0;
bdPanel.style.top=0;
bdPanel.style.backgroundColor=document.bgColor;

function panelShow(idCtrl,idPanel,idChild,dir){
	var coll=idPanel.all.tags('div');
	for (i=0;i<coll.length;i++){
		if (coll(i)==idChild)
			coll(i).style.display='block';
		else
			coll(i).style.display='none';
	}
	idPanel.style.display='block';
	var rect=idCtrl.getBoundingClientRect();
	var rectPanel=idPanel.getBoundingClientRect();
	idPanel.style.left=rect.right-(rectPanel.right-rectPanel.left);
	idPanel.style.top=idCtrl.getBoundingClientRect().top;
	idPanel.style.left=parseInt(idPanel.style.left)+document.body.scrollLeft;
	idPanel.style.top=parseInt(idPanel.style.top)+document.body.scrollTop;

}
function panelHide(){bdPanel.style.display='none';}
function panelDelete(){
	panelHide();
	detailName.remove(iPanelx);
	detailName.refreshAll(1,0);
}

function cbChildSelect(ifrid, fun, data){
	if (fun=='data'){
		var i
		for (i=0;i<childDetail.data.length;i++){
			if (childDetail.data[i][0]==data[0]){
			alert ("该子公司已选择!!");
			return;}
		}
		childDetail.append(data[0],data[1]);
		childDetail.refreshAll(1,0);
		return;
	}
	search.value='';
	return defcbiFrame(ifrid, fun, data);
}

function ecbChildDetail(eo,szEvent,x,y){
	if (szEvent=='MOUSECLICK'){
		iPanelx=eo.showpos+x;
		detailName=eo;
		if (iPanelx>=eo.data.length){
			followControl(eo.grid.rows(x+1).cells(y+1),getFrameElement(bdSelectArea2));
			IServer(bdSelectArea2,'Corperation.OpenChildJXB','find='+escape(search.value),cbChildSelect);
		}
		else panelShow(eo.grid.rows(x+1).cells(y+1),bdPanel,bdPanelProduct,1);
	}
}

function cbSubjectSelect(ifrid, fun, data){
	if (fun=='data'){
		subject.value=data[0];
		Code.value=data[1];
		subjectText.value=data[2];
		return;
	}
	return defcbiFrame(ifrid, fun, data);
}

function subjectClick(obj,idCtrl){
	obj.disabled=true;
	followControl(subjectText,getFrameElement(bdSelectArea));
	IServer(bdSelectArea,'Subject.Open','DisPlay=1&Find='+subjectText.value,cbSubjectSelect);
	obj.disabled=false;
}

var outdata=new Array();
function cbSearch(ifrid, fun, data){
	if (fun=='data'){
		return;
	}
}

function searchClick(obj){
	eboGet();
	var newindow=window.open('', 'liwei','toolbar=no,directories=no menubar=no,scrollbars=yes,resizable=yes,location=no,width=780,heigth=550,left=0,top=46');
	IServer(newindow,'Account.Search',outdata,cbSearch);
	outdata=new Array();
}

childDetail = new ZYDGRID(new ZYDGRIDFORIEBUG(),bdBodyChildDetail,6,2,'100%','',1,testUndefine,testUndefine,ecbChildDetail);
childDetail.title[0].text='№';
childDetail.title[1].text='序号';
childDetail.title[1].width=1;
childDetail.title[2].text='子公司';
childDetail.title[2].width=500;
childDetail.refreshAll();

</script>
<script>
eboReg('subject',subject,'',deftextproc);
eboReg('Code',Code,'',deftextproc);
eboReg('subjectText',subjectText,'',deftextproc);
eboReg('dateFrom',dateFrom,'',deftextproc);
eboReg('dateTo',dateTo,'',deftextproc);
//eboReg('corpCheck',corpCheck,'',defcheckproc);
</script>

</HTML>

⌨️ 快捷键说明

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