Subversion Repositories SmartDukaan

Rev

Rev 22097 | Rev 22125 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22097 Rev 22105
Line 117... Line 117...
117
	public static String getFofoFormJsonStringByFofoId(int fofoId){
117
	public static String getFofoFormJsonStringByFofoId(int fofoId){
118
		DB db = mongo_dtr.getDB(FOFO_DB);
118
		DB db = mongo_dtr.getDB(FOFO_DB);
119
		BasicDBObject filter = new BasicDBObject();
119
		BasicDBObject filter = new BasicDBObject();
120
		filter.append("_id", fofoId);
120
		filter.append("_id", fofoId);
121
		DBCollection collection = db.getCollection(FOFO_FORM_COLLECTION);
121
		DBCollection collection = db.getCollection(FOFO_FORM_COLLECTION);
122
		DBObject fofoDbOject = collection.find(filter).one();
122
		DBObject fofoDbOject = collection.findOne(filter);
123
		return fofoDbOject.toString();
123
		return fofoDbOject.toString();
124
	}
124
	}
125
	
125
	
126
	public static FofoForm getFofoForm(int fofoId) {
126
	public static FofoForm getFofoForm(int fofoId) {
127
		String fofoFormJsonString = getFofoFormJsonStringByFofoId(fofoId);
127
		String fofoFormJsonString = getFofoFormJsonStringByFofoId(fofoId);