Skip to content

Instantly share code, notes, and snippets.

View tcosentino's full-sized avatar

Troy Cosentino tcosentino

View GitHub Profile
this.chart = AmCharts.makeChart(this.el, _.extend({
type: "pie",
theme: "none",
dataProvider: this.collection.getAmChartData(),
valueField: "value",
titleField: "label",
theme: AmCharts.themes.dark,
outlineAlpha: 0,
//"radius": "28%",
// From agentListServer
var statusIcon = "";
switch(Number(oObj.aData["OnlineStatus"])) {
case 0: if (oObj.aData["rCriticality"] === '0' || oObj.aData["rCriticality"] === '') { statusIcon = "GrayDot.png"; } else { statusIcon = "agentAlarm1.png"; } break;
case 1: if (oObj.aData["currentUser"] === "") { statusIcon = "GreenDot1.png"; } else { statusIcon = "BlueAgent1.png" } break;
case 2: if (oObj.aData["currentUser"] === "") { statusIcon = "GreenDot1.png"; } else { statusIcon = "YellowAgent1.png" } break;
case 198: statusIcon = "suspended.png"; break;
case 199: statusIcon = "FrongGlobe58.png"; break;
string opLicTotalCount = string.Format(@"http://{0}/mandell-mvc/agent/gisrvGetOperatorLicenseCount?license={1}&sessionid={2}",
server.GIServerString, version.LicenseKey, "12344321");
string travLicTotalCount = string.Format(@"http://{0}/mandell-mvc/agent/gisrvGetTravelerLicenseCount?license={1}&sessionid={2}",
server.GIServerString, version.LicenseKey, "12344321");
HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(opLicTotalCount);
httpWebRequest.Method = WebRequestMethods.Http.Get;
httpWebRequest.Accept = "application/json";
WebResponse response = httpWebRequest.GetResponse();

New use cases to test

Map

  • The user should be able to see admin and org's represented by pins on the map at their current location. (Anoop needs a way to update admin's locations)
  • The user should be able to use the red target button in the admin list to move the map to the location of an admin.
  • The user should be able to open an admin or org's vCard by clicking their map pin and then the arrow button.
  • When a new admin or org is selected the map should zoom and move to show all selected admins/orgs.
  • When a group (in the org list, anything inside of an expand section) is selected its vCard should be displayed.

Controller

@tcosentino
tcosentino / orgList.md
Created January 13, 2014 22:18
Org list documentation

Org List

This document will serve as documentation on how to display the list of org/groups.

Change Log

  • 1/13/14 - Troy Cosentino - created

Open questions

@tcosentino
tcosentino / schedule.md
Last active January 2, 2016 10:49
Functionality of the schedule page

Schdule

This document contains details on how to use the schedule page of giOpsCenter.

The schedule view

Create an appointment

  1. Select an admin or admins from the left that you wish to create an appointment for.
  2. Select an org or orgs from the top to display their tickets, alarms, and tasks.
@tcosentino
tcosentino / notification.md
Created January 5, 2014 02:47
User notification system

Features required

  • Notifications for one, many, or all users
  • Marked as read/unread
  • Link or action associated with it.. e.g. clicking 'you are now friends with -----' goes to their page
  • Notifications are split into 'types'
    • types will have a template to determine how to display
  • Users can choose settings on where to receive them (by type)
  • where being in the app, email, ??
@tcosentino
tcosentino / page.md
Last active December 26, 2015 03:49

Page function overview

The goal of this document is to describe the common functionality in each page, including how to add/create a new one.

Each page has three files that make it up: a template, view, and model (more of a helper to manage all the models that the page needs).

Note: the model manager should be abstracted but I haven't gotten to it

last night's meeting

  • introduce Ahmad
    • clean up svn
    • hudson? - automated build process / distribution
    • email him about 10.10.1.28

Kaseya changes