没有找到合适的产品?
联系客服协助选型:023-68661681
提供3000多款全球软件/控件产品
针对软件研发的各个阶段提供专业培训与技术咨询
根据客户需求提供定制化的软件开发服务
全球知名设计软件,显著提升设计质量
打造以经营为中心,实现生产过程透明化管理
帮助企业合理产能分配,提高资源利用率
快速打造数字化生产线,实现全流程追溯
生产过程精准追溯,满足企业合规要求
以六西格玛为理论基础,实现产品质量全数字化管理
通过大屏电子看板,实现车间透明化管理
对设备进行全生命周期管理,提高设备综合利用率
实现设备数据的实时采集与监控
利用数字化技术提升油气勘探的效率和成功率
钻井计划优化、实时监控和风险评估
提供业务洞察与决策支持实现数据驱动决策
翻译|其它|编辑:郝浩|2005-02-23 09:51:00.000|阅读 1189 次
概述:
# 界面/图表报表/文档/IDE等千款热门软控件火热销售中 >>
前台aspx文件
<%@ Register TagPrefix="componentart" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI"
%>
<%@ Page language="c#" Codebehind="demoCalendar.aspx.cs" AutoEventWireup="false"
Inherits="orderMRP.demo.Calendar.demoCalendar" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>日历控件</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
var dropShow=false
var currentID
function dropdown(el){
if(dropShow){
dropFadeOut()
}else{
currentID=el
el.style.visibility="visible"
dropFadeIn()
}
}
function dropFadeIn(){
if(currentID.filters.alpha.opacity<100){
currentID.filters.alpha.opacity+=20
fadeTimer=setTimeout("dropFadeIn()",50)
}else{
dropShow=true
clearTimeout(fadeTimer)
}
document.all.ddl_Text.innerText="";
}
function dropFadeOut(){
if(currentID.filters.alpha.opacity>0){
clearTimeout(fadeTimer)
currentID.filters.alpha.opacity-=20
fadeTimer=setTimeout("dropFadeOut()",50)
}else{
dropShow=false
currentID.style.visibility="hidden"
}
}
function dropdownHide(){
if(dropShow){
dropFadeOut()
dropShow=false
}
}
/*
function hiLight(el)
{
if(dropShow)
{
for(i=0;i<el.parentElement.childNodes.length;i++)
{
el.parentElement.childNodes(i).className="link_record0"
}
el.className="link_record1"
}
}
//function CheckMe(el){
//document.all.ddl_Text.innerText=el.innerText
//}
*/
document.onclick=dropdownHide
</script>
<LINK href="DDLControl.css" type="text/css" rel="stylesheet">
</HEAD>
<body bgColor="#e6e7ed" onload="document.all.Form1.reset()">
<form id="Form1" runat="server">
<table id="Table20">
<tr>
<td>
<div class="link_box" onselectstart="return false" style="WIDTH: 100px">
<div class="link_head">
<table id="Table30" height="100%" cellSpacing="0" cellPadding="0" width="100%"
border="0">
<tr>
<td>
<div class="link_text"><nobr><asp:textbox id="ddl_Text" runat="server"
Width="97px" Font-Size="9pt" BorderStyle="Groove">---请选择---</asp:textbox><!--onkeyup="dropdown(value11)"
onchange="window.alert('vv')"-->
<!--
<label id="ddl_Text">---请选择---</label>
<input id="ddl_Text" type="text" value="---请选择---" name="ddl_Text">
--></nobr></div>
</td>
<td align="right" width="22"><IMG alt="" src="../../images/other/BIMG.gif"
onLoad="this.style.cursor='hand'" onclick="dropdown(value11)"
onmouseup="this.className='link_arrow0'" class="link_arrow0" onmousedown="this.className='link_arrow1'"
onmouseout="this.className='link_arrow0'"
onmouseover="" height="20" width="16">
<!--
<div onmouseup="this.className='link_arrow0'" class="link_arrow0" onmousedown="this.className='link_arrow1'"
onmouseout="this.className='link_arrow0'">6</div>
-->
</td>
</tr>
</table>
</div>
<div class="link_value" id="value11" style="WIDTH: 200px; HEIGHT: 200px">
<table id="Table40" cellSpacing="0" cellPadding="0" width="100%" align="center"
border="0">
<tr>
<td align="center" bgColor="#ffffff" height="30"><asp:Calendar id="Calendar1"
runat="server" Font-Size="5pt" Width="198px" BackColor="White" CellPadding="1"
ForeColor="RoyalBlue" BorderWidth="1px" DayNameFormat="FirstLetter"
Height="198px" Font-Names="Verdana" BorderColor="#D9D9E6" NextMonthText="下月"
PrevMonthText="上月">
<TodayDayStyle ForeColor="White" BackColor="#99CCCC"></TodayDayStyle>
<SelectorStyle ForeColor="#336666" BackColor="#99CCCC"></SelectorStyle>
<NextPrevStyle Font-Size="8pt" ForeColor="Snow"></NextPrevStyle>
<DayHeaderStyle Height="1px" ForeColor="#336666" BackColor="#99CCCC"></DayHeaderStyle>
<SelectedDayStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedDayStyle>
<TitleStyle Font-Size="7pt" Font-Bold="True" Height="25px" BorderWidth="1px"
ForeColor="White"
BorderStyle="Solid" BorderColor="#D9D9E6" BackColor="#6699CC"></TitleStyle>
<WeekendDayStyle BackColor="#CCCCFF"></WeekendDayStyle>
<OtherMonthDayStyle ForeColor="#999999"></OtherMonthDayStyle>
</asp:Calendar></td>
</tr>
</table>
</div>
</div>
</td>
<td><asp:imagebutton id="ImageButton1" runat="server" ImageUrl="~/images/loginImg/login_ok.gif"></asp:imagebutton></td>
</tr>
</table>
<P> </P>
<P><FONT face="宋体"></FONT> </P>
<P><FONT face="宋体"></FONT> </P>
<P><FONT face="宋体"></FONT> </P>
<P><FONT face="宋体"></FONT> </P>
<P><FONT face="宋体"></FONT> </P>
<P> </P>
</form>
</body>
</HTML>
后台cs文件
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using NickLee.Web.UI;
namespace orderMRP.demo.Calendar
{
/// <summary>
/// demoCalendar 的摘要说明。
/// </summary>
public class demoCalendar : System.Web.UI.Page
{
private NickLee.Web.UI.encryption en1=new encryption();
private webDataFill Fill=new webDataFill();
protected System.Web.UI.WebControls.ImageButton ImageButton1;
protected System.Web.UI.WebControls.TextBox ddl_Text;
protected System.Web.UI.WebControls.Button Button1;
protected System.Web.UI.WebControls.Calendar Calendar1;
private void Page_Load(object sender, System.EventArgs e)
{
Fill.ConString=System.Configuration.ConfigurationSettings.AppSettings["SqlConnectionString"];
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN:该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.ddl_Text.TextChanged += new System.EventHandler(this.ddl_Text_TextChanged);
this.Calendar1.VisibleMonthChanged += new
System.Web.UI.WebControls.MonthChangedEventHandler(this.Calendar1_VisibleMonthChanged);
this.Calendar1.SelectionChanged += new
System.EventHandler(this.Calendar1_SelectionChanged);
this.ImageButton1.Click += new
System.Web.UI.ImageClickEventHandler(this.ImageButton1_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
private void ImageButton1_Click(object sender, System.Web.UI.ImageClickEventArgs
e)
{
if(ddl_Text.Text!="")
{
webJSUtil.Alert(this,ddl_Text.Text);
this.ddl_Text.Text="---请选择---";
// webJSUtil.ExecuteClientScriptOnWindowLoad(this,"dropdown(value11)");
}
else
{
webJSUtil.Alert(this,"请选择或输入!");
}
}
private void Calendar1_SelectionChanged(object sender, System.EventArgs e)
{
ddl_Text.Text=Calendar1.SelectedDate.ToShortDateString();
}
private void Calendar1_VisibleMonthChanged(object sender,
System.Web.UI.WebControls.MonthChangedEventArgs e)
{
webJSUtil.ExecuteClientScriptOnWindowLoad(this,"dropdown(value11)");
}
private void ddl_Text_TextChanged(object sender, System.EventArgs e)
{
// webJSUtil.Alert(this,this.ddl_Text.Text);
}
}
}
本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@evget.com
面对“数字中国”建设和中国制造2025战略实施的机遇期,中车信息公司紧跟时代的步伐,以“集约化、专业化、标准化、精益化、一体化、平台化”为工作目标,大力推进信息服务、工业软件等核心产品及业务的发展。在慧都3D解决方案的实施下,清软英泰建成了多模型来源的综合轻量化显示平台、实现文件不失真的百倍压缩比、针对模型中的大模型文件,在展示平台上进行流畅展示,提升工作效率,优化了使用体验。
本站的模型资源均免费下载,登录后即可下载。模型仅供学习交流,勿做商业用途。
本站的模型资源均免费下载,登录后即可下载。模型仅供学习交流,勿做商业用途。
本站的模型资源均免费下载,登录后即可下载。模型仅供学习交流,勿做商业用途。
服务电话
重庆/ 023-68661681
华东/ 13452821722
华南/ 18100878085
华北/ 17347785263
客户支持
技术支持咨询服务
服务热线:400-700-1020
邮箱:sales@evget.com
关注我们
地址 : 重庆市九龙坡区火炬大道69号6幢
慧都科技 版权所有 Copyright 2003-
2025 渝ICP备12000582号-13 渝公网安备
50010702500608号