View Full Version : 为研发部做的系统不能回归结束的问题(附原系统)
为公司研发部门,用于处理研发的程序在工作中遇到问题的提交和结局的流程记录
现在有些问题不能解决:
1. 在审核分发和测试分配时不能抄送.
2. 在最后部分做回归测试时,本来是希望如果通过就可以关闭,如果不同过就发到研发项目经理重新修改即到第二部分,但是在这一步,无法完成,请帮忙看看,我是个新手
我是在别人做的系统上修改来的,做我们的系统,有很多问题还是不懂,请帮忙看看
附件有工作流程和原NSF文件,请大家一定要帮忙看看
也希望认识LOTUS方面的人,我的MSN:KBFH@163.COM
麻烦帮我看看
china_fankai
23-02-06, 11:29 AM
符件中的NSF文件打不開呀
先解决二楼的问题: 你可以新建拷贝,不要选上 存取控制列表,就可以了
回到主问题:
第一个问题:在审核分发和测试分配时不能抄送.
先解释一下,邮件发抄送 是用 CopyTo 这个域控制的,这是一个系统域,不能抄送是因为你的CopyTo 始终是空的
看相应代码
FIELD SaveOptions := "1";
FIELD Status := "审核分发";
FIELD Editors := editor;
FIELD SendTo := editor;
FIELD CopyTo := ""; -------------------- CopyTo 一直都是空的哦
FIELD NextApprover := editor;
rec := ">> "+@Text(@Now)+" 分发 by "+xxUser;
FIELD Records := @If( @IsNewDoc;rec;Records:rec );
result := @Prompt([YesNoCancel];"审核分发?";"这表格通知 "+xxEditor+" 处理");
@If( result=1;@If( @Command([FileSave]);
@MailSend(SendTo;CopyTo;"";Subject;"";Body;[IncludeDoclink]);
@Return("") );result=0;"";@Return("") );
第二个问题:在最后部分做回归测试时,本来是希望如果通过就可以关闭,如果不同过就发到研发项目经理重新修改即到第二部分,但是在这一步,无法完成
解释:是不是提示说没有 SendTo 啊,那是因为你不知道 用公式 @MailSend() 发邮件的参数,SendTo 是不可少的,如果是空也要写上去
看代码:
rec := ">> "+@Text(@Now)+" 回归测试 by "+xxUser;
FIELD Records:= Records:rec;
@Command([FileSave]);
@MailSend(CopyTo;"";Subject;"";Body;[IncludeDoclink]); --------------- 少了第一个参数 SendTo
下面的是@MailSend 的参数列表:
@MailSend( sendTo ; copyTo ; blindCopyTo ; subject ; remark ; bodyFields ; [ flags ] )
sendTo
Text or text list. The primary recipient(s) of the mail memo.
copyTo
Text or text list. Optional. The copy recipient(s) of the mail memo.
blindCopyTo
Text or text list. Optional. The blind copy recipient(s) of the mail memo.
subject
Text. Optional. The text you want displayed in the Subject field. This is equivalent to the Subject field on a mail memo; the message is displayed in the Subject column in the views in the recipients' mail databases.
remark
Text. Optional. Any text you want at the beginning of the body field of the memo.
bodyFields
Text. The names of one or more fields from the current document that you want included in the mail memo. The fields must be of type text or text list, and are appended to the memo in the order in which you list them. (You can store @Text of a numeric field in a variable and use the variable name as a field name.) Enclose each field name in quotation marks. If you want to list multiple fields, use the list format: "description":"issues":"resolution." If you store the name of the field in a variable, omit the quotation marks here.
When you use the [IncludeDocLink] flag (described below) to include a link to the current document, you should set the bodyFields parameter to null (""). If Notes/Domino cannot locate a field by name, it uses the string literal instead.
[ flags ]
Keyword. One or more flags indicating the priority and security of the memo. If you specify multiple flags, format them as a list, as in [SIGN]:[PRIORITYHIGH]:[RETURNRECEIPT]. Enclose each flag in square brackets, as shown.
The available flags are:
[SIGN]
Electronically sign the memo when mailing it, using information from the user's ID. Signing does not occur unless you include this flag. This flag cannot be used in Web applications.
[ENCRYPT]
Encrypt the document using the recipient's public key, so that only the recipient whose private key matches can read the document. Encryption does not occur unless you include this flag. This flag cannot be used in Web applications.
[PRIORITYHIGH]
Immediately routes the message to the nexthop server, as defined by the combination of Mail Connection records and server records. If a phone call has to be made in order to route the message, then the call is placed immediately, regardless of the schedule set in the Remote Connection record. If you omit this flag, the priority defaults to Normal.
[PRIORITYNORMAL]
Routes the message to the nexthop server based on the schedule defined in the Mail Connect records. If the recipient's mail file resides on a server on the same Domino network, then delivery occurs immediately. If you omit this flag, the priority defaults to Normal.
[PRIORITYLOW]
Routes the message overnight if the recipient's mail file does not reside on a server on the same Notes/Domino network. If the recipient's mail file does reside on a server on the same Notes/Domino network, then delivery occurs immediately. Low Priority mail can also be controlled by a Notes/Domino environment variable called MailLowPriorityTime=x, where x is equal to a number from 0 to 23. When placed in the server notes.ini file, this variable tells the server when to route Low Priority mail. If you omit this flag, the priority defaults to Normal.
[RETURNRECEIPT]
Notify the sender when each recipient reads the message. No receipt is returned unless you include this flag.
[DELIVERYREPORTCONFIRMED]
Notify the sender whether delivery of the memo was successful or not. By default, the Basic delivery report is used, which notifies the sender only when a delivery failure occurs.
[INCLUDEDOCLINK]
Include a link pointing to the document that was open or selected when @MailSend was used. You must include this flag if you want that document linked to the mail memo. A new document must be saved.
我想你应该仔细看看,英文帮助要学会看,虽然书本上或网络上有中文的,你可以去找一下!问题解决到这里!
解决了问题之后,对你们这个系统做个评价吧:
第一:也许你们这个系统做的比较早,过于简单,几乎完全用公式完成,我不知道你们的开发人员不会用LotusScript么?
第二:对于应用来说,你们的应用应该需要引进工作流,可是从你们的代码中根本就没有工作流这个概念,通知消息使用的普通的邮件提醒
第三:对你的要求,我觉得虽然你是初学者,再过一段熟练和了解这个系统,你完全可以对其进行修订升级,代码重新组合,实现起来并不会很难,因为我觉得这个系统很简单,比起我们真正的流程简单多了,而且你们也没有工作流引擎,完全靠单库解决问题!
祝你早日成为开发人员哦!!!
谢谢,“空空空“,我刚接触LOTUS ,公司赶的急,只好拿原文件来改,且我确实没一点这方面的思路,不胜感激你的帮助,也希望能认识你,希望能到你的指点,我的MSN:KBFH@163.COM
如果大家感兴趣,请把这个文件下载下来,修改好了后放上去,也象“空空空“样,说说您的思路和方法,其实我还是希望有一些实际的例子来看,大家也可以通过看别人做好的系统,学习人家的思路和设计方法,然后带着问题去学习。可能会快一些
没人顶吗。希望都些想“空空空”这样的好人
“空空空” 你有MSN吗?加我吧
pqhkrg4jfw
08-03-06, 02:04 PM
看过了上面的数据库,有个问题提一下
bug表单里querymodechange里的代码,是不是表示 设计者和创建人可以修改,其他不在 editors列表里的都不能改?
怎么保证你的每个区段,后面修改的人,不能修改前面一个人填写的内容呢???
就是如何限制每个人只能填写属于他的区段内容????
includeyu
10-03-06, 09:53 AM
学习的好贴.刚想学习如何开发,还没入门.
希望看到有更多的例子和高手的指导.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.