You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
define(function (require, exports, module) {
|
|
|
|
|
//引入Server模块,Web与Server的通讯
|
|
|
|
|
var Service = require('apps/rht/base/rhtService');
|
|
|
|
|
var prefix = 'cn.qdhezheng.rht.app.bas.bas0405.';
|
|
|
|
|
return {
|
|
|
|
|
//获取地区树信息
|
|
|
|
|
GetAreaTree: function (sOrgCode) {
|
|
|
|
|
return Service.doPlugin(prefix + 'GetAreaTree', {
|
|
|
|
|
orgcode: sOrgCode
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
GetChildArea: function (areaCode) {
|
|
|
|
|
return Service.doPlugin(prefix + 'GetChildArea', {
|
|
|
|
|
areacode:areaCode
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
AddArea: function (areaCode, areaName, isLast, remark) {
|
|
|
|
|
return Service.doPlugin(prefix + 'AddArea', {
|
|
|
|
|
areacode:areaCode,
|
|
|
|
|
areaname:areaName,
|
|
|
|
|
islast:isLast,
|
|
|
|
|
remark:remark
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
UpdateArea: function (areaCode, areaName, remark) {
|
|
|
|
|
return Service.doPlugin(prefix + 'UpdateArea', {
|
|
|
|
|
areacode:areaCode,
|
|
|
|
|
areaname:areaName,
|
|
|
|
|
remark:remark
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
DeleteArea: function (areaCode) {
|
|
|
|
|
return Service.doPlugin(prefix + 'DeleteArea', {
|
|
|
|
|
areacode:areaCode
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|