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

📄 default.asp

📁 进销存软件源代码
💻 ASP
字号:
<!-- #include virtual="/eB3KTransaction.asp" --><!-- #include virtual="/Server/ebo.asp" -->
<!-- #include file = "Common.asp" --><%
dim eBI,rs
dim biTitle, biIServerFun

Set eBI = Server.CreateObject("eB3KCommon.BaseInfo")
if eBI.biGetDetailByType(Conn, CLng(biType), rs) = 1 then
	biTitle = CStr(rs("InfoName"))
	biIServerFun = CStr(rs("ISVRFUN"))
	set rs = nothing
end if
set eBI = Nothing
%><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>
var RootID='<%=biIServerFun%>';
</script>
<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 leftmargin="0" topmargin="20">

<table border="0" width="450" cellspacing="0" cellpadding="0" align="center">
	<tr><td width="100%">
<table border="0" width="450" cellspacing="0" cellpadding="0" align="center">
	<tr><td width="100%">
		<table border="0" width="100%" cellspacing="0" cellpadding="0">
			<tr><td width="100%" align="middle" height="18"><%=biTitle%></td></tr>
			<tr><td width="100%" height="18"></td></tr>
			<tr>
				<td width="100%">
				状态:<input type=hidden id="ID">
				<input size="23" value="新建" id="State" readonly>
				<input type="button" value="新建" onClick="ID.value='';State.value='新建';">
				</td>
			</tr>
			<tr><td>加盟时间:<input id=LeagueDate size=30>&nbsp;<input type=button value="↓" onclick="dateShow(LeagueDate)"></td></tr>
			<tr><td width="100%">名  称:<input id="Name" size="30"></td></tr>
			<tr><td width="100%">地  址:<input id="Address" size="30"></td></tr>
			<tr><td width="100%">电  话:<input id="Telephone" size="30"></td></tr>
			<tr><td width="100%">传  真:<input id="Fax" size="30"></td></tr>
			<tr><td width="100%"><input type="checkBox" id="IsCancelLeague" onclick="if(IsCancelLeague.checked){CancelLeagueTR.style.display='block'}else{CancelLeagueTR.style.display='none';CancelLeagueDate.value=''}"><span onclick="IsCancelLeague.click()">是否已经取消加盟</span></td></tr>
			<tr id="CancelLeagueTR" style="display:none"><td width="100%">取消加盟时间:<input id="CancelLeagueDate" size="30">&nbsp;<input type=button value="↓" onclick="dateShow(CancelLeagueDate)"></td></tr>
			<tr><td width="100%">备  注:<input id="MemoInfo" size="60"></td></tr>
			<tr>
				<td width="100%" height="18" align="left">
				<input type="button" value="确定" onClick="saveClick(this)">   
				<input type="button" value="打开" onClick="openClick(Name)">   
				<input type="button" value="取消" onClick="Reset()">
				</td>
			</tr>
		</table></td>
	</tr>
</table>
<iframe id=bdSelectArea 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=500 height=500 style="display: none" border=0 frameborder=0 framespacing=0 marginheight=0 marginwidth=0></iframe>
</body>
<script>
var indata;
var wzjbutton;
function cbSection(ifrid, fun, data){
	if (fun=='data'){
		Section.value=data[0];
		SectionText.value=data[1];
		return;
	}
	return defcbiFrame(ifrid, fun, data);
}

function SectionClick(obj,idCtrl,idCtrlHidden){
	obj.disabled=true;
	followControl(idCtrl,getFrameElement(bdSelectArea));
	IServer(bdSelectArea,'Section.Open','find='+escape(idCtrl.value),cbSection);
	obj.disabled=false;
}

function cbOffice(ifrid, fun, data){
	if (fun=='data'){
		Office.value=data[0];
		OfficeText.value=data[1];
		return;
	}
	return defcbiFrame(ifrid, fun, data);
}

function OfficeClick(obj,idCtrl,idCtrlHidden){
	obj.disabled=true;
	followControl(idCtrl,getFrameElement(bdSelectArea));
	IServer(bdSelectArea,'Office.Open','find='+escape(idCtrl.value),cbOffice);
	obj.disabled=false;
}

function cbLoad(ifrid, fun, data){
	if (fun=='data'){
		indata=data;
		if(data.item("IsCancelLeague")==1){
			CancelLeagueTR.style.display = 'block';
		}else{
			CancelLeagueTR.style.display = 'none';
		}
		eboSet();
		
		return;
	}
}

function loadClick(id){
	if (!isNaN(parseInt(id)) && parseInt(id)!=0)
		IServer(bdLoadSave,RootID+'.Load','ID='+id,cbLoad);
}

loadClick(request('ID'));

function cbSave(ifrid, fun, data){
	if (fun=='data'){
		if (isNaN(parseInt(data[0]))||parseInt(data[0])==0){
				alert('保存失败!');
				
		}
		else{
			ID.value=data[0];
			alert('保存成功!');
			State.value='修改';
			
		}
		wzjbutton.disabled=false;
		return;
	}
	wzjbutton.disabled=false;
}

function saveClick(obj){
	obj.disabled=true;
	wzjbutton=obj;	
	eboGet();
	IServer(bdLoadSave,RootID+'.Save',outdata,cbSave);
	outdata=new Array();
	
}

function cbOpen(ifrid, fun, data){
	if (fun=='data'){
		loadClick(data[0]);
		State.value='修改';
		return;
	}
	return defcbiFrame(ifrid, fun, data);
}

function openClick(obj){
	obj.disabled=true;
	followControl(Name,getFrameElement(bdSelectArea));
	IServer(bdSelectArea,RootID+'.Open','',cbOpen);
	obj.disabled=false;
}


function Reset(){
	var i;
	for (i=0;i<_ebo.length;i++){
		_ebo[i].id.value='';
		State.value='新建';
		IsCancelLeague.checked = false;
		CancelLeagueTR.style.display = 'none';
	}
}

function usercbSave(ifrid,fun,data){}
function saveChildClick(obj){
	obj.disabled=true;
	eboGet();
	IServer(bdLoadSave,RootID+'.SaveChild',outdata,cbSave);
	outdata=new Array();
	obj.disabled=false;
}

function changeClick(obj,objhidden){
	if (obj.value=='经销部' && objhidden.value==0){
		obj.value='生产厂';
		objhidden.value=1;
		return;
	}
	obj.value='经销部';
	objhidden.value=0;
	return;
}

</script>

<script Title="eboReg">

eboReg('ID',ID,'',deftextproc);
eboReg('LeagueDate',LeagueDate,'',deftextproc);
eboReg('Name',Name,'',deftextproc);
eboReg('Address',Address,'',deftextproc);
eboReg('Telephone',Telephone,'',deftextproc);
eboReg('Fax',Fax,'',deftextproc);
eboReg('IsCancelLeague',IsCancelLeague,'',defcheckproc);
eboReg('CancelLeagueDate',CancelLeagueDate,'',deftextproc);
eboReg('MemoInfo',MemoInfo,'',deftextproc);

</script>


</html>

⌨️ 快捷键说明

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