unknown 5 лет назад
Родитель
Сommit
46f151fc6b

+ 6 - 0
o2web/source/x_component_process_FormDesigner/lp/zh-cn.js

@@ -140,6 +140,12 @@ MWF.xApplication.process.FormDesigner.LP = {
             "delete_title": "删除校验内容确认",
             "delete_text": "您确定要删除此项校验码?"
         },
+
+    "datagrid" : {
+		"import" : "导入",
+       "export" : "导出"
+    },
+
     "selectIcon": "选择图标",
     "selectImage": "选择图片",
     "selectApplication" : "选择应用",

+ 1 - 1
o2web/source/x_component_process_Xform/$Form/default/css.wcss

@@ -427,7 +427,7 @@
         "text-align": "center"
     },
     "gridImpExpAreaNode" : {
-
+      "display" : "block"
     },
     "mobileGridHelpNode": {
         "width": "30px",

+ 20 - 2
o2web/source/x_component_process_Xform/DatagridPC.js

@@ -1046,12 +1046,30 @@ MWF.xApplication.process.Xform.DatagridPC = new Class(
 	},
 
 	_loadImportExportAction: function(){
-		if( this.exportenable ){
+		if( !this.exportenable && !this.importenable )return;
+
+		var position = ["leftTop","centerTop","rightTop"].contains( this.json.impexpPosition || "" ) ? "top" : "bottom";
+		var container = new Element("div").inject(this.node, position);
 
+		this.importExportAreaNode = new Element("div").inject( container );
+		if( ["leftTop","leftBottom"].contains( this.json.impexpPosition || "" ) ){
+			this.importExportAreaNode.setStyles({ "float" : "left" })
+		}else if( ["rightTop","rightBottom"].contains( this.json.impexpPosition || "" ) ){
+			this.importExportAreaNode.setStyles({ "float" : "right" })
+		}else{
+			this.importExportAreaNode.setStyles({ "margin" : "0px auto" })
 		}
 
-		if( this.importenable ){
+		if( this.exportenable ){
+			this.exportActionNode = new Element("div", {
+				text : MWF.xApplication.process.Xform.LP.datagridexport
+			}).inject(this.importExportAreaNode);
+		}
 
+		if( this.importenable ){
+			this.importActionNode = new Element("div", {
+				text : MWF.xApplication.process.Xform.LP.datagridImport
+			}).inject(this.importExportAreaNode);
 		}
 	},
 

+ 3 - 0
o2web/source/x_component_process_Xform/lp/zh-cn.js

@@ -8,6 +8,9 @@ MWF.xApplication.process.Xform.LP = {
     "cancelDatagridLineEditTitle" : "取消编辑数据网格确认",
     "cancelDatagridLineEdit" : "是否确定取消编辑数据网格?",
 
+    "datagridImport" : "导入",
+    "datagridExport" : "导出",
+
     "browserNotActiveX": "您的浏览器不支持ActiveX控件,不能加载Office控件,请使用IE浏览器",
 
     "activity": "活动",