上一页 1 ··· 64 65 66 67 68 69 70 71 72 ··· 76 下一页
摘要: 前段时间做项目时遇到判断当前时间是否为工作时间的需求,我认为比较有意思,所以拿出来与大家分享,一同学习。注: 1._strWorkingDayAM等值,这里赋默认值,通常情况下应读配置文件。2.clsArrayList类是将字符串截取为数组的功能类,在我的博客中有写,有兴趣的朋友可以看一下。[代码]     //获取当前周几 private string m_GetWeekNow() { string strWeek = DateTime.Now.DayOfWeek.ToString(); switch (strWeek) { case "Monday" : return "1"; case 阅读全文
posted @ 2010-12-19 13:37 海乐学习 阅读(5931) 评论(0) 推荐(1)
摘要: 客户帐号不能为空:[代码]两次密码必须一致:[代码]文本中的值不可等于某些内容:[代码] 阅读全文
posted @ 2010-12-15 15:53 海乐学习 阅读(453) 评论(0) 推荐(0)
摘要: JavaScript代码: 阅读全文
posted @ 2010-12-13 17:26 海乐学习 阅读(289) 评论(0) 推荐(0)
摘要: JavaScript代码:[代码] 阅读全文
posted @ 2010-12-13 16:45 海乐学习 阅读(1731) 评论(0) 推荐(0)
摘要: 效果图:关系代码:Command Handler="if(command=='butSelectReocrd'){str=record.data.SessionId; #{AjaxMethods}.SelectRecord(str);}" /全部html代码:代码C#代码:代码 阅读全文
posted @ 2010-12-12 12:15 海乐学习 阅读(518) 评论(0) 推荐(0)
摘要: 效果图:关键代码Command Handler="if(command=='butPhone'){location.href='CallIn.aspx?NetUserName='+record.data.NetUserName;} else {location.href='Customer.aspx?NetUserName='+record.data.NetUserName;}" /Html全部代码代码 阅读全文
posted @ 2010-12-12 12:03 海乐学习 阅读(1478) 评论(0) 推荐(0)
摘要: 调用说明:public object Compute(string strExpression,string strFilter)参数:strExpression:要计算的表达式字符串,基本上类似于Sql Server中的统计表达式strFilter:统计的过滤字符串,只有满足这个过滤条件的记录才会被统计示例:假设一个产品销售表table,描述某商场中各促销员销售的实际记录,包含字段为:姓名(Name)、性别(Sex,0为女,1为男)、生日(Birthday)、销售产品的代码(ProID)、销售的数量(Quantity)、销售价格(Price)。1。统计所有性别为女的销售员的数量:table. 阅读全文
posted @ 2010-12-12 10:10 海乐学习 阅读(5738) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Data.SqlClient;using Microsoft.Office.Interop.Excel;using Microsoft.Office.Interop.Word;using System.Collections;using System.IO;namespace Common{ public class DataSetOperation { string exceptionMessage;// 阅读全文
posted @ 2010-12-12 10:06 海乐学习 阅读(574) 评论(0) 推荐(0)
摘要: 实现效果:技术实现:前台代码:%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ASPNet探秘._Default" %%@ Register Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.DataVisualization.Charting" TagPre 阅读全文
posted @ 2010-12-12 10:03 海乐学习 阅读(464) 评论(0) 推荐(0)
摘要: 效果图:技术实现:前台:%@ Page Language="C#" AutoEventWireup="true" CodeFile="RuKD.aspx.cs" Inherits="HuoDGL_DaY_RuKD" %!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"html xmlns="http://www.w3.org/1999/xhtml" head runat="server" t 阅读全文
posted @ 2010-12-12 10:00 海乐学习 阅读(1698) 评论(1) 推荐(0)
上一页 1 ··· 64 65 66 67 68 69 70 71 72 ··· 76 下一页