formtableModule.js 1.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
//此乃本模块与后台交互的方法接口部分
var formtableModule = function(format) {
	this.module = "";
	this.action = "";
	this.format = format;
};

//定义数据交互
formtableModule.prototype = BusinessObject;

//插入附件数据
陈玉兰 committed
12
formtableModule.prototype.insertFormTable = function(){};
13
//修改附件数据
陈玉兰 committed
14
formtableModule.prototype.updateFormTable = function(){};
15
//删除附件数据
陈玉兰 committed
16
formtableModule.prototype.deleteFormTable = function(){};
罗绍泽 committed
17 18
//获取所有的表数据
formtableModule.prototype.listFormTable = function(){};
19 20 21 22

//创建一个数据操作对象,然后再后续使用
formtableModule.act = new formtableModule("json").delegate("formtableAct");
//创建一个数据获取对象,然后再后续使用
罗绍泽 committed
23
formtableModule.data = new formtableModule("json").delegate("formtableData");
24 25 26 27

//说明: 1、所有方法里统一传递josn格式的参数,用于后台交互,如data.listTables(param) ,如没有参数则传'{}',如data.listTables({})
//      2、前后台数据获取传输协议  如:json[{'0':{pageCount':'2','pageNo':'1','pageSize':'20','rowSet':'[{0},{1}....]'}}] 
//      3、前后台增删改的返回状态  如:json[{'0':{'rowSet':{'NAME':'-1','VALUE':'保存失败'}}}]