Ejemplo n.º 1
0
        public JsonResult GetAssociateOpenClockins(int AssociateID, DateTime StartDate, DateTime EndDate)
        {
            AssociateClockInHistories objAHWs = new AssociateClockInHistories();

            var res = objAHWs.GetClockinOpensByDateRange(StartDate.ToString(), EndDate.ToString(), AssociateID);

            return(Json(res));
        }
Ejemplo n.º 2
0
        public ActionResult SearchClockInsUnfiltered(string StartDate, string EndDate)
        {
            try
            {
                AssociateClockInHistories objACH = new AssociateClockInHistories(StartDate, EndDate, Associate.AssociateID);

                return(Json(objACH));
            }
            catch
            {
                return(Json("0"));
            }
        }
Ejemplo n.º 3
0
        public ActionResult SearchClockIns2(string StartDate, string EndDate)
        {
            try
            {
                //get raw associate clockin data
                AssociateClockInHistories objACH = new AssociateClockInHistories();

                var ret = objACH.GetAllClockinsUnfiltered(StartDate, StartDate, Associate.AssociateID);

                Models.Logging.LogEvent("My Hours: ");

                foreach (AssociateClockInHistory item in ret)
                {
                    Models.Logging.LogEvent(item.LoginDatetime.ToString());
                }


                return(Json(ret));
            }
            catch
            {
                return(Json("0"));
            }
        }