代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
Domino
】
生成WEB页面报表
作者:
entry
/ 发布于
2014/7/25
/
1612
Dim Session As NotesSession Dim Db As NotesDatabase Dim HttpDoc As NotesDocument Sub Initialize On Error Goto Errhandle Set Session = New NotesSession Set Db = Session.CurrentDatabase Set HttpDoc = Session.DocumentContext Dim View As NotesView Dim Vc As NotesViewEntryCollection Dim Entry As NotesViewEntry Dim i,flag Set View = Db.GetView("NewMeetRoomStat") Set Vc = View.GetAllEntriesByKey(HttpDoc.WeekDate(0)) If (Vc.Count<1) Then Exit Sub Dim docArr() As NotesDocument Dim k,j,n Dim WeekDate As String Dim BeginDate As NotesDateTime Dim WeekSet(1 To 7) As String Dim DateSet(1 To 7) As String Dim RoomArr() As String Dim AmMeetArr() As String Dim PmMeetArr() As String Dim MeetHtml As String Dim MeetTime As String Dim strLeader As String Dim todayFlag As Variant Set Entry = Vc.GetNthEntry(1) Set BeginDate =New NotesDateTime (Entry.ColumnValues(6)) todayFlag = False For n=1To 7 DateSet(n)=BeginDate.DateOnly BeginDate.AdjustDay(1) Next WeekSet(1)="周一" WeekSet(2)="周二" WeekSet(3)="周三" WeekSet(4)="周四" WeekSet(5)="周五" WeekSet(6)="周六" WeekSet(7)="周日" MeetHtml = "<table border=1 cellspacing=0 cellpadding=5 borderColor=#B2D0C8><tr class=Title borderColor=#5F9FD4><td Width=15%><p style='text-align: right'>时间<p style='text-align: left'>地点</td>" For n=1 To 7 MeetHtml = MeetHtml + "<td colspan=2>"+WeekSet(n)+""+DateSet(n) +""+"上午"+"    "+"下午</td>" Next MeetHtml = MeetHtml + "</tr>" For n=0 To Ubound(HttpDoc.MeetRoom) Redim AmMeetArr(14) As String Redim PmMeetArr(14) As String Redim Preserve RoomArr(n) As String RoomArr(n) = HttpDoc.MeetRoom(n) MeetHtml = MeetHtml + "<tr><td Width=15%>" + RoomArr(n) + "</td>" For i=1 To vc.Count On Error Resume Next Set Entry = Vc.GetNthEntry(i) On Error Goto Errhandle If (Entry.IsValid) Then If (Entry.ColumnValues(3) = RoomArr(n)) Then For j=1 To 7 If(Entry.ColumnValues(7) = DateSet(j)) Then If (Format(Entry.ColumnValues(1),"AM/PM") = "AM") Then If(AmMeetArr(2*j-1)="") Then AmMeetArr(2*j-1)=Entry.ColumnValues(4) Else AmMeetArr(2*j-1)=AmMeetArr(2*j-1)+""+Entry.ColumnValues(4) End If Else If(AmMeetArr(2*j)="") Then AmMeetArr(2*j)=Entry.ColumnValues(4) Else AmMeetArr(2*j)=AmMeetArr(2*j)+""+Entry.ColumnValues(4) End If End If End If Next End If End If Next For j=1 To 14 strLeader=AmMeetArr(j) If(strLeader="") Then MeetHtml=MeetHtml+"<td></td>" Else MeetHtml=MeetHtml+"<td bgColor=#00FA9A>"+strLeader+"</td>" End If Next MeetHtml=MeetHtml+"</tr>" Next MeetHtml = MeetHtml + "</table>" HttpDoc.MeetRoomHtml = MeetHtml Exit Sub Errhandle: ErrLog("(本库)会议室使用统计|MeetRoomStat") Exit Sub End Sub
试试其它关键字
生成报表
同语言下
.
LotusDomino页面自动注册用户
.
多 Notes 文档中附件批量汇总到 Notes 文档中
.
多 Notes 文档中附件批量导出到本地系统
.
使用lotusscript获得群组中的用户列表_lotus notes
.
利用程序增加角色
.
关闭计算机
.
检验数字域
.
利用程序获取计算机名称及登陆用户名
.
清理收件夹的代理Code for CleanupInbox agent
.
邮箱中显示中文等价名
可能有用的
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
entry
贡献的其它代码
(
10
)
.
生成WEB页面报表
.
Lotus中导出到EXCEL
.
l?o?t?u?s?数?据?用?j?a?v?a?程?序?导?入?导?出
.
通过web界面注册domino新用户
.
在linux下用脚本自动备份domino
.
notes数据导出到excel
.
把数字转化成中文大写
.
使用lotusscript发送mime格式邮件
.
lotus notes 数据库中附件的批量导出
.
C/S模式下导出当前VIEW的数据到EXCEL
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3