58 lines
1.8 KiB
C#
58 lines
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Configuration;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
namespace GODATA.Controllers
|
|
{
|
|
/// <summary>
|
|
/// contains all map related methods
|
|
/// </summary>
|
|
[GODATA.MvcApplication.SessionExpire]
|
|
public class GeoController : Controller
|
|
{
|
|
#region Global Variables
|
|
|
|
/// <summary>
|
|
/// getting user's utc minutes from session
|
|
/// </summary>
|
|
private static string _timeOffSetMinutes = null;
|
|
//= System.Web.HttpContext.Current.Session["UtcMinute"].ToString();
|
|
|
|
/// <summary>
|
|
/// getting login user's id
|
|
/// </summary>
|
|
private static string _LoginUserId = null;
|
|
//= System.Web.HttpContext.Current.Session["UserId"].ToString();
|
|
|
|
/// <summary>
|
|
/// getting time zone id
|
|
/// </summary>
|
|
private static string _TimeZoneId = ConfigurationManager.AppSettings["TimeZoneId"].ToString();
|
|
|
|
#endregion
|
|
|
|
/// <summary>
|
|
/// to load main page of of positioning tool
|
|
/// </summary>
|
|
/// <returns>main page of of positioning tool</returns>
|
|
public ActionResult PositioningTool()
|
|
{
|
|
// globally storing userid from session
|
|
_LoginUserId = Session["UserId"].ToString();
|
|
// globally storing UtcMinute from session
|
|
_timeOffSetMinutes = Session["UtcMinute"].ToString();
|
|
// storing security token to viewbag
|
|
ViewBag.SecurityToken = ConfigurationManager.AppSettings["RESTfulSecurityToken"].ToString();
|
|
// storing UtcMinutes to viewbag
|
|
ViewBag.UtcMinutes = _timeOffSetMinutes;
|
|
// storing Userid to viewbag
|
|
ViewBag.Userid = _LoginUserId;
|
|
return View();
|
|
}
|
|
|
|
}
|
|
}
|