public AssignCompletion(Collector c) { log.Info("completion assignmetn starting for " + c.firstName + " " + c.lastName); collector = c; collector.completion = 0; var jsonProc = new MSSQLData(); metaJson = jsonProc.execStoredProc("api.admin_collection_meta_json", Int32.Parse(collector.id), null); }
public AssignRanking(Collector c) { log.Info("begin ranking assigment"); collector = c; collector.ranking = 0; var jsonProc = new MSSQLData(); log.Info("getting meta info for ranking"); metaJson = jsonProc.execStoredProc("api.admin_collector_meta_json", Int32.Parse(collector.id), null); }
public string meta() { try { var jsonProc = new MSSQLData(); var jsonresult = jsonProc.execStoredProc("api.admin_collection_meta_json", JsonObjectId, null); if (!string.IsNullOrEmpty(jsonresult)) { result.json = JObject.Parse(jsonresult); } result.procName = "api.admin_collection_meta_json"; result.status = 0; } catch (Exception exp) { errorResult(exp); } return(formattedResult(result)); }
public string metaSet() { try { var jsonProc = new MSSQLData(); var jsonresult = jsonProc.execStoredProc("api.admin_collector_set_meta_json", JsonObjectId, jsonParam); if (!string.IsNullOrEmpty(jsonresult)) result.json = JObject.Parse(jsonresult); result.procName = "api.admin_collector_set_meta_json"; result.status = 0; } catch (Exception exp) { errorResult(exp); } return formattedResult(result); }