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

📄 jiaofeigetdate.aspx

📁 医院进行药品进货,划价,派单等功能的系统
💻 ASPX
字号:
<%@ Page Language="C#" debug="true"%> 
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient"%>
<script Language="c#" runat="server">
void Page_Load(Object Source, EventArgs E)
{
}
public void  ConfirmDate(Object Source, EventArgs E)
{

//	idDate.Value = Calendar1.SelectedDate.ToLongDateString();
	String sMonth;
	sMonth=Calendar1.SelectedDate.Month.ToString();
	sMonth=(sMonth.Length==2?sMonth:"0"+sMonth);
	String sDay;
	sDay=Calendar1.SelectedDate.Day.ToString();
	sDay=(sDay.Length==2?sDay:"0"+sDay);

	idDate.Value =Calendar1.SelectedDate.Year.ToString()+sMonth+sDay;
}
</script>
<HTML>
<HEAD>
<style type="text/css">
<!--
body {background-color:#ffffff;margin-top:0px;margin-left:0px;padding-left:0px;padding-top:0px;}
table{
font-size:12px;
}
-->
</style>
<SCRIPT LANGUAGE="JavaScript">
<!--
function _initGetDate()
{
	if(idDate.value!="")
	{
		parent.idSelectedDate.innerText=idDate.value;
		parent._onGetDateWndHide();
		parent._callShowTable(idDate.value);
	}
}
//-->
</SCRIPT>
</HEAD>

<body onContextMenu='return false'  leftmargin=0 topmargin=0   ondragstart='return false' onselectstart ='return false' onselect='document.selection.empty()' oncopy='document.selection.empty()' onbeforecopy='return false'  leftmargin="0" topmargin="0" onLoad="_initGetDate()">

<TABLE>
<TR>
	<TD><form id="Form1" method="post" runat="server"> 
   <asp:calendar id="Calendar1"  runat="server" AutoPostBack="False" 
    Height="300px" Width="400px" BorderWidth="1px" BackColor="#FFFFCC" DayNameFormat="Full" ForeColor="#663399" 
    Font-Size="8pt" Font-Names="Verdana" BorderColor="#FFCC66" ShowGridLines="True" PrevMonthText="上个月&amp;lt;&amp;lt;" 
    NextMonthText="下个月&amp;gt;&amp;gt;"> 
    <TodayDayStyle ForeColor="#00C000" BackColor="Khaki"></TodayDayStyle> 
    <SelectorStyle BackColor="#FFCC66"></SelectorStyle> 
    <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC"></NextPrevStyle> 
    <DayHeaderStyle Height="1px" BackColor="#FFCC66"></DayHeaderStyle> 
    <SelectedDayStyle Font-Bold="True" BackColor="MediumPurple"></SelectedDayStyle> 
    <TitleStyle Font-Size="9pt" Font-Bold="True" ForeColor="#FFFFCC" BackColor="#990000"></TitleStyle> 
    <OtherMonthDayStyle ForeColor="#CC9966"></OtherMonthDayStyle> 
   </asp:calendar> 
</form> 
</TD>
</TR>
<TR>
	<TD align="center"><input type="button"  value="取  消" onClick="parent._onGetDateWndHide();"><input type="button" onServerClick="ConfirmDate" value="确  认" runat="server"/></TD>
</TR>
</TABLE>
 
<INPUT TYPE="text" id="idDate" style="display:none;" runat="server"/>
</BODY>
</HTML>

⌨️ 快捷键说明

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