任务管理系统中建立回复机制(通用)

原理:

文档中有一个操作,点击之后开打回复表单,将主文档的ID带过去,可以从此ID得到主文档的各种相关信息。

=================

function newReport()
{
 var f = document.forms[0]
 window.open("../newreport?openform&id="+f.docid.value,"","")
}

=================

保存过文档后,在主浏览文档的时候到视图中读出主文档的回复,然后显示:

=================

Sub Initialize
 Dim s As New NotesSession
 Dim db As NotesDatabase
 Dim view As NotesView
 Dim curdoc,doc As NotesDocument
 Dim docid,htm As String
 
 Set db = s.CurrentDatabase
 Set view = db.GetView("Reports")
 Set curdoc = s.DocumentContext
 
 docid = curdoc.docid(0)
 Set doc = view.GetFirstDocument
 If Not doc Is Nothing Then
  htm = {[



















}  htm = htm & {
< TR bgColor=#9acd32> < TH width="20%">回复时间 < TH width="15%">回复人 < TH>回复内容 < TH>操作}  While Not doc Is Nothing   If doc.docid(0)=docid Then    htm = htm & { < TR> < TD>}    htm = htm & (doc.Created) & { < TD>}    htm = htm & doc.reporter(0) & { < TD>]}    htm = htm & doc.body & {[ < TD>}    If doc.reporter(0) = curdoc.thisuser(0) Then     htm = htm & {< A οnclick="javascript:window.open('../Tasks/} & doc.UniversalID & {?editdocument'}      htm = htm & {,'','')" href="javascript:void(0)">编辑}    Else     htm = htm & { }    End If    htm = htm & {}   End If   Set doc = view.GetNextDocument(doc)  Wend  htm = htm & { ]}
 End If
 curdoc.reportBody = htm
End Sub

=================

效果:

回复时间回复人回复内容操作
2004-8-18 15:19:20xynafasfasfasdf
asdfawfasdf
asfasdfasd
编辑
2004-8-18 15:24:53xyntttttttt
t
tttttttttt
编辑
2004-8-18 16:07:44xyn保存关闭 任务标题:
回复内
编辑
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值