提交 d662afc2 编写于 作者: U unknown

附件上传增加校验脚本语言包

上级 e72e1606
......@@ -244,9 +244,9 @@
</td>
</tr>
</table>
<div style="height: 28px; font-weight: bold; line-height:28px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">上传时校验</div>
<div>可以通过this.target.uploadingFiles获取当前正在上传的附件。返回true表示通过,返回文本系统提示文本后中断上传。</div>
<div class="MWFScriptArea" name="uploadValidation" title="上传时校验脚本 (S)"></div>
<div style="height: 28px; font-weight: bold; line-height:28px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">{{$.lp.attachmentValidation}}</div>
<div>{{$.lp.attachmentValidationNote}}</div>
<div class="MWFScriptArea" name="uploadValidation" title="{{$.lp.attachmentValidationScript}} (S)"></div>
</div>
......
......@@ -679,6 +679,9 @@ MWF.xApplication.process.FormDesigner.LP = {
"hideSettingButton": "Hide Setting Buttons",
"hideModeButton": "Hide Mode Button",
"showInDatagrid": "Show In Datatable",
"attachmentValidation": "Validate when uploading",
"attachmentValidationNote": "The currently uploading attachments can be obtained through this.target.uploadingFiles. Returning true means passed, and the system prompts the text to interrupt the upload.",
"attachmentValidationScript": "Validation script when uploading",
"hideEraserButton": "Hide Eraser Button",
"hideEraserRadioButton": "Hide Eraser Radio Button",
......
......@@ -683,6 +683,9 @@ MWF.xApplication.process.FormDesigner.LP = {
"hideSettingButton": "隐藏设置操作组",
"hideModeButton": "隐藏模式操作",
"showInDatagrid": "数据表格中的展现",
"attachmentValidation": "上传时校验",
"attachmentValidationNote": "可以通过this.target.uploadingFiles获取当前正在上传的附件。返回true表示通过,返回文本系统提示文本后中断上传。",
"attachmentValidationScript": "上传时校验脚本",
"hideEraserButton": "隐藏橡皮按钮",
"hideEraserRadioButton": "隐藏橡皮大小按钮",
......
......@@ -1383,7 +1383,7 @@ MWF.xApplication.process.Xform.Attachment = MWF.APPAttachment = new Class(
this.uploadingFiles = files;
if (this.json.uploadValidation && this.json.uploadValidation.code) {
var flag = this.form.Macro.exec(this.json.uploadValidation.code, this);
if (!flag) flag = "附件校验未通过。";
if (!flag) flag = MWF.xApplication.process.Xform.LP.notAttachmentValidation;
if (flag.toString()!="true"){
this.form.notice(flag, "error");
return false;
......
......@@ -96,6 +96,7 @@ MWF.xApplication.process.Xform.LP = {
"notValidation": "Data validation failed",
"lineNotValidation": "Line data validation failed",
"notValidation_number": "Only allow numbers",
"notAttachmentValidation": "Attachment validation failed.",
"retractTitle": "Retract Confirmation",
"retractText": "Are you sure you want to retract this document?",
......
......@@ -96,6 +96,7 @@ MWF.xApplication.process.Xform.LP = {
"notValidation": "数据校验未通过",
"lineNotValidation": "行数据校验未通过",
"notValidation_number": "必须输入数字",
"notAttachmentValidation": "附件校验未通过。",
"retractTitle": "撤回确认",
"retractText": "您确认要撤回此文件吗?",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册