ͼ 8. ¡°×´Ì¬¡±ÁÐÉèÖÃ
´´½¨ºǫ́ÔËÐеĴúÀí
Ç°Ãæ½²ÊöÁË×Ô¶¨Òå²Ù×÷µÄ´úÀí£¬Í¬Ê±ÎÒÃÇÒ²¿ÉÒÔʹÓúǫ́ÔËÐеĴúÀíÀ´Íê³ÉһЩ²»ÐèÒªÖÕ¶ËÓû§´¥·¢µÄ²Ù×÷£¬È綨ÆÚµÄ·¢ËÍͳ¼ÆÓʼþ¡£
±í 4. Èճ̴¦ÀíÖÜÆÚ Ñ¡Ïî ˵Ã÷ ÿÌì¶àÓÚÒ»ÕâÏîÉèÖÃÓÃÀ´°´Ê±ÔËÐдúÀí£¬Ò»ÌìÈô¸É´Î¡£µ¥»÷¡°Èճ̰²ÅÅ¡±°´Å¥¿ÉÒÔÖ¸¶¨Ê±¼ä±í¡£
´Î
ÿÌìÒ»´Î ÕâÏîÉèÖÃÓÃÀ´°´Ê±ÔËÐдúÀí£¬Ò»ÌìÒ»´Î¡£ ÿÖÜÒ»´Î ÕâÏîÉèÖÃÓÃÀ´°´Ê±ÔËÐдúÀí£¬Ò»ÖÜÒ»´Î¡£ ÿÔÂÒ»´Î ÕâÏîÉèÖÃÓÃÀ´°´Ê±ÔËÐдúÀí£¬Ò»ÔÂÒ»´Î¡£
Èç¹ûÏ£Íû±£´æ´úÀíµ«²»Ï£ÍûÔÚÌØÊâÇé¿ö£¨Èçͨ¹ýÁíÒ»¸ö´úÀíµ÷Óã©ÒÔÍâµÄÇé¿öÔË
´Ó²»ÔËÐÐ
ÐУ¬¿ÉÒÔʹÓÃÕâÏîÉèÖá£
ÕâÀïÎÒÃÇ´´½¨Ò»¸öÿÔºǫ́ÔËÐÐÒ»´ÎµÄ´úÀí£¬ÒÔ·¢ËͶԵ±ÔÂÀ´×Ô²»Í¬¿Í»§ÓʼþµÄͳ¼ÆÐÅÏ¢£¬ÓʼþÐÅÏ¢Èçͼ 9 Ëùʾ¡£
Sub Initialize Dim NewUIWorkspace As New NotesUIWorkspace Dim NewNoteSession As New NotesSession Dim CurrentDB As NotesDatabase Set CurrentDB = NewNoteSession.CurrentDatabase ¡®´´½¨ÐÂÓʼþ Dim MailDoc As NotesDocument Set MailDoc = New NotesDocument(Cu
rrentDB) MailDoc.form = \EffectiveUserName MailDoc.Subject = \Ô¶Èͳ¼Æ\¡®´´½¨ÓʼþÌå Dim TableNotesRichTextItem As NotesRichTextItem Set TableNotesRichTextItem = MailDoc.CreateRichTextItem(\derStyle As NotesRichTextStyle Set columnHeaderStyle = NewNoteSession.CreateRichTextStyle( ) columnHeaderStyle.Bold = True columnHeaderStyle.FontSize =8 columnHeaderStyle.NotesFont = TableNotesRichTextItem.GetNotesFont(\ Dim i As Integer Dim columnStyles(0 To 4) As NotesRichTextParagraphStyle For i = 0 To 4 Set columnStyles(i) = NewNoteSession.CreateRichTextParagraphStyle columnStyles(i).LeftMargin = 0 columnStyles(i).FirstLineLeftMargin = 0 Next columnStyles(0).RightMargin =3 * RULER_ONE_CENTIMETER columnStyles(1).RightMargin = 8 * RULER_ONE_CENTIMETER columnStyles(2).RightMargin = 8 * RULER_ONE_CENTIMETER columnStyles(3).RightMargin = 3 * RULER_ONE_CENTIMETER columnStyles(4).RightMargin = 3 * RULER_ONE_CENTIMETER Dim headerColor As NotesColorObject Dim dataColor As NotesColorObject Set headerColor = NewNoteSession.CreateColorObject Call headerColor.SetRGB(239,239,239) Set dataColor = NewNoteSession.CreateColorObject Call dataColor.SetRGB(255,255,255) Call TableNotesRichTextItem.AppendTable(1,5,,,columnStyles) ¡®´´½¨±í¸ñÍ· Dim TableNotesRichTextNavigator As NotesRichTextNavigator Set TableNotesRichTextNavigator = TableNotesRichTextItem.CreateNavigator() TableNotesRichTextNavigator.FindLastElement RTELEM_TYPE_TABLE Dim TableNotesRichTextTable As NotesRichTextTable Set TableNotesRichTextTable = TableNotesRichTextNavigator.GetElement TableNotesRichTextTable.Style = TABLESTYLE_TOP TableNotesRichTextTable.SetColor headerColor TableNotesRichTextTable.SetAlternateColor dataColor TableNotesRichTextItem.AppendStyle columnHeaderStyle TableNotesRichTextNavigator.FindNextElement RTELEM_TYPE_TABLECELL TableNotesRichTextItem.BeginInsert TableNotesRichTextNavigator TableNotesRichTextItem.AppendText \¿Í»§ÀàÐÍ\TextItem.EndInsert TableNotesRichTextNavigator.FindNextElement TableNotesRichTextItem.BeginInsert TableNotesRichTextNavigator TableNotesRichTextItem.AppendText \·¢¼þÈË\Insert TableNotesRichTextNavigator.FindNextElement TableNotesRichTextItem.BeginInsert TableNotesRichTextNavigator TableNotesRichTextItem.AppendText \Ö÷Ìâ\eNotesRichTextNavigator.FindNextElement TableNotesRichTextItem.BeginInsert TableNotesRichTextNavigator TableNotesRichTextItem.AppendText \ÈÕÆÚ\Navigator.FindNextElement TableNotesRichTextItem.BeginInsert TableNotesRichTextNavigator TableNotesRichTextItem.AppendText \ÓʼþÁ´½Ó\¡®²éÕÒ¡°ºÏͬÓʼþ¡±ÊÓͼ
Dim ContractNotesView As NotesView Set ContractNotesView = CurrentDB.GetView(\ºÏͬÓʼþ\esViewNavigator Set ContractNotesViewNavigator = ContractNotesView.CreateViewNav Dim ContractNotesViewEntry As NotesViewEntry Set ContractNotesViewEntry = ContractNotesViewNavigator.GetFirstDocument Dim dataStyle As NotesRichTextStyle Set dataStyle = NewNoteSession.CreateRichTextStyle() dataStyle.Bold = False dataStyle.FontSize = 10 TableNotesRichTextNavigator.FindNextElement TableNotesRichTextItem.BeginInsert TableNotesRichTextNavigator Call TableNotesRichTextItem.AppendStyle(dataStyle) TableNotesRichTextItem.EndInsert '¼ÆËãÉϸöÔ Dim lastMonth As New NotesDateTime( \tMonth( -1 ) While Not ContractNotesViewEntry Is Nothing Dim dateTime As NotesDateTime Dim item As NotesItem Set dateTime = ContractNotesViewEntry.Document .GetItemValueDateTimeArray(\me.GMTTime>lastMonth.GMTTime) Then ¡®Ôö¼ÓÒ»ÐÐ Call TableNotesRichTextTable.AddRow(1) TableNotesRichTextNavigator.FindNextElement TableNotesRichTextItem.BeginInsert TableNotesRichTextNavigator Dim MailType As String Dim MailTypeText As String MailType = ContractNotesViewEntry.Document.GetItemValue(\_ViewIcon\lTypeText = \ÆÕͨ¿Í»§\ MailTypeText = \ÖØÒª¿Í»§\6\¿Í»§\ End If TableNotesRichTextItem.AppendText MailTypeText TableNotesRichTextItem.EndInsert TableNotesRichTextNavigator.FindNextElement TableNotesRichTextItem.BeginInsert TableNotesRichTextNavigator TableNotesRichTextItem.AppendText ContractNotesViewEntry.Document_ em.BeginInsert TableNotesRichTextNavigator TableNotesRichTextItem.AppendText ContractNotesViewEntry.Document_ .GetItemValue(\Item.EndInsert TableNotesRichTextNavigator.FindNextElement TableNotesRichTextItem.BeginInsert TableNotesRichTextNavigator TableNotesRichTextItem.AppendText ContractNotesViewEntry.Document_ .GetItemValue(\ ¡®Ìí¼ÓÎĵµÁ´½Ó TableNotesRichTextNavigator.FindNextElement TableNotesRichTextItem.BeginInsert TableNotesRichTextNavigator Call TableNotesRichTextItem.AppendDocLink ( ContractNotesViewEntry.Document,_ ContractNotesViewEntry.Document.GetItemValue(\
sRichTextItem.EndInsert End If Set ContractNotesViewEntry = ContractNotesViewNavigator_ .GetNextDocument(ContractNotesViewEntry) Wend Call MailDoc.Send(False) End Sub
ͼ 9. Ô¶Èͳ¼ÆÓʼþ
Ìí¼ÓÓû§¶¨ÒåµÄͼ±ê
Ç°ÃæÎÒÃǽ²µ½ÁË¶Ô _ViewIcon ×ֶνøÐи³Öµ£¬ÏàӦͼ±êËù¶ÔÓ¦µÄÊý×Ö±àºÅ¿ÉÒÔÓÉϱí²éµ½¡£
ͼ 10. ϵͳͼ±ê¶ÔÕÕ±í
Èç¹û·¢ÏÖËùÌṩµÄϵͳͼ±ê²»ÄÜÂú×㵱ǰµÄÐèÇó£¬Äã¿ÉÒÔÔö¼ÓÓû§×Ô¶¨Òåͼ±êµ½ÓʼþÄ£°åÖС£ÕâÑù£¬µ±Ê¹ÓÃÈçÏ´úÂëʱ¾Í¿ÉÒÔʹÓÃ×Ô¶¨Òåͼ±êÀ´±êʶÓʼþ£º
? Set itemA = doc.ReplaceItemValue( \con\ ?
ÐèҪעÒâµÄÊǾ¡Á¿²»ÒªÔÚͼ±êÃû³ÆÖÐʹÓÃÏ»®Ïߣ¬ÔÚһЩϵͳÖлáÒýÆðÕâÑùµÄͼ±ê²»¿É¼û¡£ µ÷ÊÔ´úÀíÒÔÌá¸ßÎÊÌâÐÞ¸´µÄЧÂÊ
ÔÚʹÓôúÀíËùÌṩ·á¸»¹¦ÄܵÄͬʱ£¬ÐèҪʹÓÃ×îÓÐЧµÄ¹¤¾ßÀ´µ÷ÊÔ´úÀíÒÔÌá¸ßÎÊÌâÐÞ¸´µÄЧÂÊ¡£¿ÉÒÔʹÓõŤ¾ß°üÀ¨£º
? ? ? ? ´úÀíÈÕÖ¾¡£¿ÉÒԲ鿴´úÀíÈÕÖ¾ÒÔ»ñµÃ¹ØÓÚ´úÀíµÄ¹Ø¼üÐÅÏ¢£¬ÀýÈç´úÀíÆô¶¯µÄ×îºóʱ¼äºÍÈÕÆÚ¡¢ÓжàÉÙÎĵµ¾¹ýÁË´¦Àí¡¢´úÂëÔËÐеÄÀàÐÍ ( Èç LotusScript) ÒÔ¼°´úÀíÍê³ÉµÄ×îºóʱ¼äºÍÈÕÆÚµÈ¡£ÒªÏë²é¿´´úÀíµÄ´úÀíÈÕÖ¾£¬ÇëÔÚ Lotus Domino ¡°ÈÕÖ¾¡±¡£?Designer ÖÐÑ¡¶¨´úÀí²¢´Ó²Ëµ¥ÖÐÒÀ´ÎÑ¡Ôñ¡°´úÀí¡± LotusScript µ÷ÊÔ³ÌÐò¡£Ê¹Óà LotusScript µ÷ÊÔ³ÌÐòµ÷ÊÔÓà LotusScript ±àдµÄ´úÀí£¬ËüÔÊÐí¸ú×Ù´úÀí¹ý³Ì¼°´úÀí·¶Î§ÄڵıäÁ¿ÖµºÍ¶ÔÏó¡£ÒªÏëʹÓà Lotus µ÷ÊÔ?Script µ÷ÊÔ³ÌÐò£¬Çë´Ó²Ëµ¥ÖÐÒÀ´ÎÑ¡¶¨Îļþ¹¤¾ß LotusScript£¬²¢ÔËÐдúÀí¡£ ·þÎñÆ÷¿ØÖÆÌ¨µ÷ÊÔ¡£Domino Server ¿ØÖÆÌ¨ÌṩÁË 3 ÖÖÃüÁTell Amgr Schedule ¡¢Tell Amgr Status ºÍ Tell Amgr Debug£¬ËûÃÇ¿ÉÒÔÏÔʾԤ¶¨ÔÚµ±ÌìÔËÐÐËùÓдúÀíµÄʱ¼ä°²ÅÅ±í¡¢Agent Manager ´úÀí¶ÓÁÐ״̬ºÍ´úÀíµ÷ÊÔÉèÖÃ״̬µÄÐÅÏ¢¡£ NotesLog Àà¡£ NotesLog ÀàÊÇ·½±ãÇÒ¶¯ÄÜÇ¿´óµÄ¹¤¾ßÀà¡¢ÓÃÀ´¸ú×Ù¹ý³Ì£¬²¢±¨¸æ·¢ÉúÔÚʹÓà LotusScript ±àдµÄ´úÀíºÍºǫ́¹¤×÷µÄ Java ´úÀíÖеĻÐÅÏ¢¡£¿ÉÒÔÔÚ´úÀíÔËÐÐʱ´òÓ¡µ÷ÊÔÐÅÏ¢¡£Èç¹ûʹÓà LotusScript »ò Java ´úÀí£¬¾Í¿ÉÒÔÔÚ Notes Log Êý¾Ý¿â»òÎļþÖмǼÈÕÖ¾ÐÅÏ¢¡£
С½á
±¾ÎĽ²ÊöÁË¶Ô IBM Lotus Domino/Notes ÖеÄÓʼþÄ£°å½øÐжþ´Î¿ª·¢µÄÏà¹Ø¾Ñé¡£ÕâÀïµÄ°¸ÀýÖ»ÊÇ»ùÓÚһЩ¼òµ¥µÄÐèÇó£¬Í¨¹ýÕâЩ°¸Àý£¬ÎÒÃÇÏ£ÍûÄܹ»´ïµ½¾ÙÒ»·´Èý¡¢Å×שÒýÓñµÄÄ¿µÄ¡£ÔÚʵ¼Ê»·¾³ÖУ¬Óû§¿ÉÄÜÓÐÌØ¶¨µÄÐèÇ󣬿ÉÒÔÕë¶Ôʵ¼ÊÇé¿ö¶ÔÓʼþÄ£°å½øÐж¨ÖÆ£¬´Ó¶øÀ´Êµ¼ùºÍÓÅ»¯ÕâЩ¾Ñé¡£
²Î¿¼×ÊÁÏ