Example #1
0
	var Model = function(){
		this.callParent();
		this.fIP = justep.Bind.observable('input1');
    	this.duankou = justep.Bind.observable('input2');
    	this.fIP="iot.mengtiankeji.com";
    	this.duankou="4214";
	};
Example #2
0
	var Model = function() {
		this.callParent();
		this.info = justep.Bind.observable("");
		this.canClose = justep.Bind.observable(true);
		this.compileText = justep.Bind.observable("");
		this.state = justep.Bind.observable("");
	};
Example #3
0
	var Model = function() {
		this.callParent();
		this.lng = justep.Bind.observable();
		this.lat = justep.Bind.observable();
		this.signTime;
		this.signAddr;
	};
Example #4
0
	var Model = function() {
		this.callParent();
		this.deptName = justep.Bind.observable();
		this.userIds = [];
		this.count = 0;
		this.personNum = 0;
		this.createGroupState = justep.Bind.observable(true);
	};
	var Model = function() {
		this.callParent();
		this.isFromDlg = justep.Bind.observable(false);
		this.isCreateGroup = justep.Bind.observable(false);
		this.filterVal = justep.Bind.observable();
		this.transmit = {};
		this.transmitNum = 0;
		this.currentPersonID = justep.Bind.observable();
	};
Example #6
0
	var Model = function() {
		this.grouping = justep.Bind.observable(false);
		this.useGroupBar = justep.Bind.observable(false);
		this.groupCollapse = justep.Bind.observable(false);
		this.groupFields = justep.Bind.observableArray();
		this.currentField = justep.Bind.observable();
		this.nullText = justep.Bind.observable();
		
		this.callParent();
	};
Example #7
0
	Model.prototype.modelLoad = function(event) {
		justep.Shell.userType = justep.Bind.observable();
		justep.Shell.userName = justep.Bind.observable();
		var userLocal = (localStorage.getItem("userUUID") && JSON.parse(localStorage.getItem("userUUID"))) || null;
		if (userLocal) {
			justep.Shell.userName.set(userLocal.name || "UNKNOWN");
			justep.Shell.userType.set(userLocal.accountType || "UNKNOWN");
		} else {
		}
	};
Example #8
0
	var Model = function(){
		this.initOK = justep.Bind.observable(false);
		this.result = justep.Bind.observable();
		
		this.canOK = justep.Bind.computed(function(){
			if(!this.initOK.get()) return false;
			if(this.getSelected()) return true;
			else return false;
		},this);

		this.callParent();
	};
Example #9
0
	Model.prototype.modelLoad = function(event) {
		localStorage.setItem("ajaxServerIP","iot.mengtiankeji.com");
    	localStorage.setItem("wbServerIP","http://iot.mengtiankeji.com:4214");
		justep.Shell.userType = justep.Bind.observable();
		justep.Shell.userName = justep.Bind.observable();
		var userLocal = (localStorage.getItem("userUUID") && JSON.parse(localStorage.getItem("userUUID"))) || null;
		if (userLocal) {
			justep.Shell.userName.set(userLocal.name || "UNKNOWN");
			justep.Shell.userType.set(userLocal.accountType || "UNKNOWN");
		} else {
		
		}
		
	};
Example #10
0
	var Model = function(){
		this.callParent();
		this.title;
		this.date;
		this.deptID;
		this.status = justep.Bind.observable();
	};
Example #11
0
	Model.prototype.modelLoad = function(event) {
		
		justep.Shell.userName = justep.Bind.observable();
		justep.Shell.appType = justep.Bind.observable();

		justep.Shell.appType.set("web");
		document.addEventListener("deviceready", function() {
			justep.Shell.appType.set("app");
		}, false);

		var userLocal = (localStorage.getItem("userUUID") && JSON.parse(localStorage.getItem("userUUID"))) || null;
		if (userLocal) {
			justep.Shell.userName.set(userLocal.name);
		} else {
			justep.Shell.userName.set("");
		}
	};
	var Model = function(){
		this.callParent();
		this.setPeopleID=[] //负责人ID
		this.setPeopleName=[]  //负责人
		this.joinPeopleID=[] //参与人ID
		this.joinPeopleName=[] //参与人
		this.rowID = justep.Bind.observable();
		this.openID = "";
	};
Example #13
0
	var Model = function() {
		this.callParent();
		this.dialogs = {}; // 会话列表
		this.currentDialogID = justep.Bind.observable();
		justep.Shell.on('onSendMessagePage', function(event) {
			this.showMessagePage(event.id, event.type);
		}, this);
		justep.Shell.on('onGroupSendMessagePage', function(event) {
			// var rows = this.comp("dialogData").find([ "fID" ], [ event.id ],
			// true);
			// if (rows && rows.length > 0)
			// this.showMessagePage(rows[0].val("fID"), rows[0].val("fType"));
			this.showMessagePage(event.id, event.type);
		}, this);
		this.pageTitle = $(document).attr("title");
		this.filterVal = justep.Bind.observable();
		this.isGroup = justep.Bind.observable(false);
	};
Example #14
0
	var Model = function() {
		this.callParent();
		this.dialogs = {}; // 会话列表
		this.messagePages = [];
		this.time = 0;
		this.timer = null;
		this.i = 0;
		this.offline = justep.Bind.observable(false);
		this.loginActorDfd;
	};
Example #15
0
	var Model = function() {
		this.callParent();
		this.initOK = justep.Bind.observable(false);

		this.canOK = justep.Bind.computed(function() {
			if (!this.initOK.get())
				return false;

			var row = this.comp("dataMain").getCurrentRow();
			return row
					&& row.val('db') && row.val('table') && (!row.val('needQueryAction') || (row.val('needQueryAction') && row.val('queryAction')))
					&& (!row.val('needSaveAction') || (row.val('needSaveAction') && row.val('saveAction')));
		}, this);
	};
Example #16
0
	var Model = function() {
		this.callParent();
		this.$sendByEnter = justep.Bind.observable(IM.isSendByEnterEnabled());
		this.on("onShowImg", function(event) {
			if (event.items instanceof Array)
				$.each(event.items, function(i, item) {
					if (item.w && item.h) {
						item.w *= 2;
						item.h *= 2;
					}
				});
		});
		
		
		
	};
Example #17
0
		constructor: function(){
			this.callParent();
			this.type = 'datetime';//date/time/datetime
			
			this.min = null;
			this.max = null;
			this._yearValue = justep.Bind.observable(2016);
			this._monthValue = justep.Bind.observable(1);
			this._dayValue = justep.Bind.observable(1);
			this._hourValue = justep.Bind.observable(0);
			this._minuteValue = justep.Bind.observable(0);
			this._secondValue = justep.Bind.observable(0);
		},
Example #18
0
	var Model = function() {
		this.callParent();
		this.deptName = justep.Bind.observable();
		this.createGroupState = justep.Bind.observable(true);
	};
Example #19
0
	var Model = function() {
		this.callParent();
		this.title = justep.Bind.observable("");
		this.columnId = ""
	};
Example #20
0
	var Model = function() {
		this.callParent();
		this.adminId;
		this.isAdmin = justep.Bind.observable(false);
		this.groupMembersUid = [];
	};
Example #21
0
	var Model = function() {
		this.callParent();
		this.browserEngine = justep.Bind.observable(labers.auto);
	};
Example #22
0
	var Model = function() {
		this.callParent();
		this.actorReadyOK = justep.Bind.observable(false);
	};
Example #23
0
	var Model = function(){
		this.showFilterGird = justep.Bind.observable(false);
		
		this.callParent();
	};
Example #24
0
	var Model = function() {
		this.callParent();
		this.xpaas = xpaas;
		this.enableBaas = true;
		this.enableUI = true;
		this.enableAPP = true;
		this.enableSQL = justep.Bind.observable(true);

		this.baasPublish = justep.Bind.observable(true);
		this.uiPublish = justep.Bind.observable(true);
		this.sqlPublish = justep.Bind.observable(true);
		this.appPublish = justep.Bind.observable(true);
		this.userDataPublish = justep.Bind.observable(true);

		this.baasPublished = justep.Bind.observable(0);
		this.uiPublished = justep.Bind.observable(0);
		this.sqlPublished = justep.Bind.observable(0);
		this.appPublished = justep.Bind.observable(0);
		this.userDataPublished = justep.Bind.observable(0);

		this.compileBaaS = justep.Bind.observable(true);
		this.compileUI = justep.Bind.observable(true);
		this.packApp = justep.Bind.observable(true);

		this.sqlLabel = justep.Bind.observable('用于数据库初始化,在 Baas/sql目录');
		this.baasLabel = justep.Bind.observable('BaaS(在Baas目录)提供后台服务,供UI通过ajax调用');
		this.userDataLabel = justep.Bind.observable('包含文档数据,例如默认图片;文档数据在model目录同级的data目录下');

	};
	var Model = function() {
		this.callParent();
		this.deptName = justep.Bind.observable();
	};
	var Model = function(){
		this.callParent();
		this.Creator = justep.Bind.observable(false);
	};
Example #27
0
	var Model = function(){
		this.callParent();
		this.update = justep.Bind.observable(false);
		this.inited = justep.Bind.observable(false);
		this.extendIcon = justep.Bind.observable("");
	};