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

📄 basedata.aspx

📁 通过配置表中的各列支持绝大部分的基础数据
💻 ASPX
字号:
<%@ Page language="c#" Codebehind="BaseData.aspx.cs" AutoEventWireup="false" Inherits="comm.BaseData" %>
<%@ Register TagPrefix="cc1" Namespace="E3S.Controls" Assembly="E3S.Controls" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>BaseData</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="css/style.css" type="text/css" rel="stylesheet">
		<LINK href="css/title.css" type="text/css" rel="stylesheet">
		<script language="javascript">
	<!--
		function  GetDialogRet(table,col,refcol,strUrl)//获得窗口返回值
		{	
			//window.open(strUrl + "?Ran=" + Math.random()+"&tablename="+table+"&ip=<%=Session["ip"]%>&usr=<%=Session["usr"]%>&pwd=<%=Session["pwd"]%>&system=<%=Session["system"]%>");	
			/**/
			//var ret=new Array(3); 
			
			var ret = window.showModalDialog(strUrl + "?Ran=" + Math.random()+"&tablename="+table+"&col="+refcol, "", "dialogHeight: 575px; dialogWidth: 720px; edge: Raised; center: Yes; help: No; resizable: No; status: No;");			
			//window.alert(ret);
			
			if (ret != null)
			{
			   document.all["edit_"+col].value = ret.split(',')[0];
			   document.all["hidtxt_"+col].value = ret.split(',')[1];
			}/**/
			
		}
		
		function clear_txt(col)
		{
			document.all["edit_"+col].value="";
			document.all["hidtxt_"+col].value="";
		}
		-->
		</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<table width="100%">
				<tr>
					<td align="right"><asp:panel id="Panel_Operate" runat="server" Width="100%">
							<TABLE class="maintext" height="10" cellSpacing="0" cellPadding="0" width="100%" border="0">
								<TR>
									<TD align="right" width="100%">
										<asp:Label id="lbl_tablename" runat="server" Visible="False"></asp:Label>
										<asp:Label id="hid_act" runat="server" Visible="False"></asp:Label>
										<asp:RadioButtonList id="rdlist_shift" runat="server" Visible="False" AutoPostBack="True" RepeatDirection="Horizontal">
											<asp:ListItem Value="1" Selected="True">所有</asp:ListItem>
											<asp:ListItem Value="2">编辑</asp:ListItem>
											<asp:ListItem Value="3">明细</asp:ListItem>
										</asp:RadioButtonList>
										<asp:ImageButton id="ibtn_qry" runat="server" ImageUrl="images/button/search_1.gif"></asp:ImageButton>
										<asp:ImageButton id="ibtn_add" runat="server" ImageUrl="images/button/add_1.gif"></asp:ImageButton>
										<asp:ImageButton id="ibtn_save" runat="server" ImageUrl="images/button/edit2.gif"></asp:ImageButton>
										<asp:ImageButton id="ibtn_del" runat="server" ImageUrl="images/button/del.gif"></asp:ImageButton>
										<asp:ImageButton id="ibtn_clr" runat="server" ImageUrl="images/button/clean_.gif"></asp:ImageButton>
										<asp:ImageButton id="ibtn_prt" runat="server" ImageUrl="images/button/print_.gif"></asp:ImageButton></TD>
								</TR>
							</TABLE>
						</asp:panel></td>
				</tr>
				<tr>
					<td class="maintext" align="left"><asp:panel id="Panel_Edit" runat="server" Width="100%" Height="10px"><!--<TABLE class="" height="1" cellSpacing="1" cellPadding="2" width="100%" bgColor=""
								border="0">
								<TR bgColor="">
									<TD>-->
							<asp:Table id="ht" runat="server" Font-Bold="True" Font-Size="8pt" border="0" cellpadding="0"
								cellspacing="0" bordercolor="White"  BorderlighColor="LightGray" width="100%"></asp:Table> <!--</TD>
								</TR>
							</TABLE>-->
						</asp:panel></td>
				</tr>
				<tr>
					<td><asp:Label ID="show_message" Runat="server"></asp:Label></td>
				</tr>
				<tr>
					<td align="left"><asp:panel id="Panel_Page" runat="server" Width="100%" DESIGNTIMEDRAGDROP="19">
							<TABLE class="maintext" cellSpacing="0" cellPadding="0" width="100%" border="0">
								<TR>
									<TD>
										<TABLE class="maintext" align="right">
											<TR>
												<TD>
													<asp:ImageButton id="imgbtn_first" runat="server" ImageUrl="images/pagehome.gif"></asp:ImageButton></TD>
												<TD>
													<asp:ImageButton id="imgbtn_pre" runat="server" ImageUrl="images/pageup.gif"></asp:ImageButton></TD>
												<TD>
													<asp:ImageButton id="imgbtn_next" runat="server" ImageUrl="images/pagedown.gif"></asp:ImageButton></TD>
												<TD>
													<asp:ImageButton id="imgbtn_end" runat="server" ImageUrl="images/pageend.gif"></asp:ImageButton></TD>
												<TD width="200">第
													<asp:Label id="lbl_currpage" runat="server">1</asp:Label>页/共
													<asp:Label id="lbl_pagecnt" runat="server">1</asp:Label>页 转到
													<asp:TextBox id="txt_page" runat="server" Width="27px"></asp:TextBox>
													<asp:ImageButton id="imgbtn_go" runat="server" ImageUrl="images/go.gif"></asp:ImageButton></TD>
											</TR>
										</TABLE>
									</TD>
								</TR>
							</TABLE>
						</asp:panel></td>
				</tr>
				<tr>
					<td align="center"><asp:panel id="Panel_DG" runat="server" Width="100%"><!--<TABLE class="maintext" height="1" cellSpacing="1" cellPadding="2" width="100%" bgColor="#486d95"
								border="0">
								<TR bgColor="#e1f0fc">
									<TD><DIV style="OVERFLOW: auto; WIDTH: 750px; HEIGHT: 300px">-->
							<asp:datagrid id="dg" runat="server" Font-Size="X-Small" cellspacing="1" width="100%" BorderColor="#466599"
								AutoGenerateColumns="False" Borderwidth="0px" BackColor="#486D95" AllowSorting="True" CellPadding="2"
								AllowPaging="True">
								<SelectedItemStyle Font-Bold="True"></SelectedItemStyle>
								<AlternatingItemStyle Font-Size="8pt" BackColor="#CBDEF5"></AlternatingItemStyle>
								<ItemStyle Font-Size="8pt" BackColor="#F1F6FC"></ItemStyle>
								<HeaderStyle Font-Size="8pt" Font-Bold="True" HorizontalAlign="Center" BackColor="#89B6E3"></HeaderStyle>
								<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
								<Columns>
									<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="" CancelText="" EditText="编辑">
										<HeaderStyle Width="30pt"></HeaderStyle>
									</asp:EditCommandColumn>
								</Columns>
								<PagerStyle Visible="False"></PagerStyle>
							</asp:datagrid> <!--</DIV></TD>
								</TR>
							</TABLE>-->
						</asp:panel></td>
				</tr>
			</table>
		</form>
	</body>
</HTML>

⌨️ 快捷键说明

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