Skip to content

Commit

Permalink
remarked model
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua committed Dec 10, 2013
1 parent 910c557 commit 8acc3ac
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 90 deletions.
58 changes: 29 additions & 29 deletions models/fixedAsset.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
/*
#!/usr/local/bin/node
-*- coding:utf-8 -*-

// #!/usr/local/bin/node
// -*- coding:utf-8 -*-

// Copyright 2013 yanghua Inc. All Rights Reserved.

Copyright 2013 yanghua Inc. All Rights Reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0

http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ---
// Created with Sublime Text 2.
// User: yanghua
// Date: 10/10/13
// Time: 17:30 PM
// Desc: fixedAsset - base model class of fixedAsset

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
---
Created with Sublime Text 2.
User: yanghua
Date: 10/10/13
Time: 17:30 PM
Desc: fixedAsset - base model class of fixedAsset
*/


/**
* model of fixed asset
*/
function FixedAsset () {
this.faId = "";
this.faTypeId = "";
this.faOwnerId = "";
}
// /**
// * model of fixed asset
// */
// function FixedAsset () {
// this.faId = "";
// this.faTypeId = "";
// this.faOwnerId = "";
// }


exports.FixedAsset=FixedAsset;
// exports.FixedAsset=FixedAsset;
122 changes: 61 additions & 61 deletions models/user.js
Original file line number Diff line number Diff line change
@@ -1,80 +1,80 @@
/*
#!/usr/local/bin/node
-*- coding:utf-8 -*-
// /*
// #!/usr/local/bin/node
// -*- coding:utf-8 -*-

Copyright 2013 yanghua Inc. All Rights Reserved.
// Copyright 2013 yanghua Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
---
Created with Sublime Text 2.
User: yanghua
Date: 10/10/13
Time: 17:30 PM
Desc: user - the model of user
*/
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ---
// Created with Sublime Text 2.
// User: yanghua
// Date: 10/10/13
// Time: 17:30 PM
// Desc: user - the model of user
// */


/**
* model of user
*/
var User = function () {
// /**
// * model of user
// */
// var User = function () {

var model={};
// var model={};

function getUserId(){
return typeof(model.userId)=="undefined" ? "" : model.userId;
}
// function getUserId(){
// return typeof(model.userId)=="undefined" ? "" : model.userId;
// }

function getUserName(){
return typeof(model.userName)=="undefined" ? "" : model.userName;
}
// function getUserName(){
// return typeof(model.userName)=="undefined" ? "" : model.userName;
// }

function getSex(){
return typeof(model.sex)=="undefined" ? "" :model.sex;
}
// function getSex(){
// return typeof(model.sex)=="undefined" ? "" :model.sex;
// }

function getDeptId(){
return typeof(model.deptId)=="undefined" ? "" : model.deptId;
}
// function getDeptId(){
// return typeof(model.deptId)=="undefined" ? "" : model.deptId;
// }

function setUserId(userId){
this.model["userId"]=userId;
}
// function setUserId(userId){
// this.model["userId"]=userId;
// }

function setUserName(userName){
this.model["userName"]=userName;
}
// function setUserName(userName){
// this.model["userName"]=userName;
// }

function setSex(sex){
this.model["sex"]=sex;
}
// function setSex(sex){
// this.model["sex"]=sex;
// }

function setDeptId(deptId){
this.model["deptId"]=deptId;
}
// function setDeptId(deptId){
// this.model["deptId"]=deptId;
// }

return {
getUserId : getUserId,
getUserName : getUserName,
getSex : getSex,
getDeptId : getDeptId,
setUserId : setUserId,
setUserName : setUserName,
setSex : setSex,
setDeptId : setDeptId
};
// return {
// getUserId : getUserId,
// getUserName : getUserName,
// getSex : getSex,
// getDeptId : getDeptId,
// setUserId : setUserId,
// setUserName : setUserName,
// setSex : setSex,
// setDeptId : setDeptId
// };

}
// }


exports.User=User;
// exports.User=User;

0 comments on commit 8acc3ac

Please sign in to comment.