|
@@ -3,7 +3,7 @@
|
|
|
*/
|
|
|
var PROJECT = {
|
|
|
createNew: function (projectID, userID) {
|
|
|
- // 定义private方法
|
|
|
+ // 瀹氫箟private鏂规硶
|
|
|
var tools = {
|
|
|
_ID: projectID,
|
|
|
_userID: userID,
|
|
@@ -21,7 +21,7 @@ var PROJECT = {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
- // 所有通过this访问的属性,都不应在此单元外部进行写入操作
|
|
|
+ // 所有通过this访问的属性,都不应在此单元外部进行写入操作
|
|
|
var project = function () {
|
|
|
this.mainTree = cacheTree.createNew(this);
|
|
|
|
|
@@ -33,12 +33,12 @@ var PROJECT = {
|
|
|
this.masterField = {ration: 'BillsID'};
|
|
|
};
|
|
|
|
|
|
- // prototype用于定义public方法
|
|
|
+ // prototype鐢ㄤ簬瀹氫箟public鏂规硶
|
|
|
project.prototype.modify = function (modifyDatas, callback) {
|
|
|
// To Do
|
|
|
};
|
|
|
|
|
|
- // prototype用于定义public方法
|
|
|
+ // prototype鐢ㄤ簬瀹氫箟public鏂规硶
|
|
|
project.prototype.ID = function () {
|
|
|
return tools._ID;
|
|
|
};
|
|
@@ -75,7 +75,7 @@ var PROJECT = {
|
|
|
this.mainTree.sortTreeItems();
|
|
|
};
|
|
|
|
|
|
- // 提供给各模块调用的统一从后台获取数据的方法
|
|
|
+ // 鎻愪緵缁欏悇妯″潡璋冪敤鐨勭粺涓€浠庡悗鍙拌幏鍙栨暟鎹�殑鏂规硶
|
|
|
project.prototype.pullData = function (url, data, successCallback, errorCallback) {
|
|
|
$.ajax({
|
|
|
type:"POST",
|
|
@@ -94,7 +94,7 @@ var PROJECT = {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
- // 所有模块在此从后台获取数据
|
|
|
+ // 鎵€鏈夋ā鍧楀湪姝や粠鍚庡彴鑾峰彇鏁版嵁
|
|
|
project.prototype.loadDatas = function (){
|
|
|
this.Bills.pullData();
|
|
|
this.Ration.pullData();
|