Пример #1
0
        public string GetWorkOrderCreatedByClientSignalR(long LocationId, long UserId, string SignalRequestType, string Filter)
        {
            try
            {//GetAllWorkRequestCreatedByClient
                WorkOrderEMS.BusinessLogic.Managers.WorkRequestManager _WorkRequestManager = new WorkOrderEMS.BusinessLogic.Managers.WorkRequestManager();

                string          textSearch        = "";
                string          RequestType       = SignalRequestType;
                string          filter            = Filter;
                long            iUserID           = UserId;
                long            LocationID        = LocationId;
                var             rows              = 100000;
                var             page              = 1;
                var             sidx              = "WorkRequestAssignmentID";
                var             sord              = "desc";
                ObjectParameter paramTotalRecords = new ObjectParameter("TotalRecords", typeof(int));

                var WorkRequestList = _WorkRequestManager.GetAllWorkRequestCreatedByClient(0, iUserID, RequestType, page, rows, sidx, sord, textSearch, LocationID, iUserID, DateTime.Now, DateTime.Now, filter, paramTotalRecords);

                return(new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(WorkRequestList));
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                return(null);
            }
        }
        public string GetOnlineInterviewer(long getApplicantId)
        {
            var _GlobalAdminManager = new WorkOrderEMS.BusinessLogic.Managers.GlobalAdminManager();

            try
            {
                var _WorkRequestManager = new WorkOrderEMS.BusinessLogic.Managers.WorkRequestManager();
                var ObjLoginModel       = new eTracLoginModel();
                var interviewersList    = _GlobalAdminManager.GetInterviewersList(getApplicantId, ObjLoginModel.UserId);
                return(new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(interviewersList));
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                return(null);
            }
        }