section-positions-function.js
709 Bytes
/**
* @description : TODO (路段信息定位positions.html页面方法函数的封装.)
*
* @author bsth@lq
*
* @version 1.0
*/
var PositionsPublicFunctions = function () {
var PubFun = {
// 初始化路段信息与线路走向.
initSectionInfo : function(sectionId) {
GetAjaxData.getSectionById(sectionId,function(section) {
if(section) {
EditSectionObj.setEitdSection(section);
SectionPWorldsBMap.drawingUpline(section);
}
});
},
// 设值表单字段值.
setSectionFormValue : function(section) {
$('#edit_section_form input,select,textarea').each(function(){
if (this.name) {
$(this).val(section[this.name]);
}
})
}
}
return PubFun ;
}();