## -*- coding: utf_8 -*- <% from fcp import connection from fcp import fcpdefs from fcutils import util from fcws.fcweb import webutil from fcp import mlitem import os.path import urllib %> <%namespace name="fcnames" file="fcnames.html" import="renderFCNames"/> <% myMLItem = fcp.MyMLItem thisWebID = myMLItem.WebID() jsonStr = fcp.MeAsJSON((client.serverTZ,client.clientTZ)) isEditable = True if fcp.rights & fcpdefs.acWrite else False canEdit = isEditable isSent = True if myMLItem.Status() & fcpdefs.Sent or myMLItem.Type() == fcpdefs.oConfItem else False if isSent and isEditable and pageargs and not 'Editable' in pageargs: isEditable = False editableClass = " editable" if isEditable else " readonly" fType,subject = fcp.GetEscapedFormField(fcpdefs.dSubject) if subject is None: subject = "" windowTitle ="新規メッセージ" if isEditable and subject is "" else subject fType,envInfo = fcp.GetEscapedFormField(fcpdefs.dEnvInfo) dateSent,NTo,NCc = envInfo fwdNames = fcp.GetMsgNameList(fcpdefs.dFwdNames) fromNames = fcp.GetMsgNameList(fcpdefs.dFromName) if fwdNames and len(fwdNames) and fromNames: fromNames = fromNames + fwdNames numFromNames = len(fromNames) if fromNames else 0 fromseparator ="" toNames = fcp.GetMsgNameList(fcpdefs.dToName) numToNames = len(toNames) if toNames else 0 ccNames = fcp.GetMsgNameList(fcpdefs.dCopyName) numCcNames = len(ccNames) if ccNames else 0 bccNames = fcp.GetMsgNameList(fcpdefs.dBCCNames) numBccNames = len(bccNames) if bccNames else 0 nvNames = [] numNvNames = [] for i in xrange(0,9): nvNames.append(fcp.GetMsgNameList(fcpdefs.dNameVal1+i)) numNvNames.append(len(nvNames[i]) if nvNames[i] else 0) msgStatus = fcp.MyMLItem.Status() body = fcp.body if fcp.body is not None else "" fromNameID = 'fcfid-'+str(fcpdefs.dFromName) subjectID = 'fcfid-'+str(fcpdefs.dSubject) toNameID = 'fcfid-'+str(fcpdefs.dToName) ccNameID = 'fcfid-'+str(fcpdefs.dCopyName) bccNameID = 'fcfid-'+str(fcpdefs.dBCCNames) attachClasses = 'fc-form-row multiline' if fcp.GetNthMLItem(0) is None and not isEditable: attachClasses += ' fc-mouse-only' %>
変更されたら通知する
${webutil.stripNone(fcp, 1006, None, '状態:')}
${webutil.stripNone(fcp, 1008, None, '進捗 (%):')}
状態と進捗の編集を制限する
${webutil.stripNone(fcp, 35, None, '優先度:')}
%if isEditable:
%endif
%if isEditable: %else: ${subject} %endif
%if not isEditable or myMLItem.Type() == fcpdefs.oDocument: ${fcnames.renderFCNames(fromNames,fcpdefs.dFromName,"作成者:",False,False,"","")} %endif
%if numNvNames[1] > 0 or isEditable: ${fcnames.renderFCNames(nvNames[1],58,"アサインする人:",isEditable,True,"","")} %endif
スケジュール
${webutil.stripNone(fcp, 1102, None, '開始スケジュール:')}
${webutil.stripNone(fcp, 1118, None, '期限:')}
${webutil.stripNone(fcp, 1019, None, '開始日:')}
${webutil.stripNone(fcp, 1007, None, '完了日:')}
${webutil.stripNone(fcp, 1110, None, 'タイムゾーン:')}
${webutil.stripNone(fcp, 32012, None, '添付ファイル:')}
%if fcp.GetNthMLItem(0) or isEditable:
%if isEditable:
%else:
%endif
%endif
%if isEditable: %else:
%endif