Пример #1
0
        /// <summary>
        /// Description: This controller action is used to get timezone info about the customer and set time in the schedule FD page accordingly.
        /// Modified By: Sairam on 25th sep 2014
        /// </summary>
        /// <returns></returns>
        public ActionResult ScheduleFD()
        {
            List <DateTime> TimeZoneDateTime = (new FileUploadFactory(Session[Duncan.PEMS.Utilities.Constants.Security.ConnectionStringSessionVariableName].ToString())).GetTimeZoneNames(CurrentCity.Id);

            GISModel inst = new GISModel();

            if (TimeZoneDateTime.Count() > 0)
            {
                string finalTime = TimeZoneDateTime[0].ToString();

                ViewBag.customerDateIs = finalTime;
                inst.Text     = finalTime;
                inst.errorMsg = "";
            }
            else
            {
                //** If no records, that indicates time zone info is not found and hence take local time.
                ViewBag.customerDateIs = DateTime.Now.ToString();
                inst.Text     = DateTime.Now.ToString();
                inst.errorMsg = "";
            }



            return(View(inst));
        }
Пример #2
0
 private string GeneratePath(GISModel _path)
 {
     return(GILModel.FilePath + "\\" + _path.lootFoldername + "\\" + _path.subFoldername + "\\" + _path.fullName);
 }