Exemple #1
0
 public RecallController(IRecallRepository irecallRepo, ISystemMessageEventsRepository_OTP imessageEventsRepo, IUtilityServiceRepository utilRepo, IEmployeeOTPRepository empRepo)
 {
     recallRepo        = irecallRepo;
     messageEventsRepo = imessageEventsRepo;
     utilServiceRepo   = utilRepo;
     employeeRepo      = empRepo;
 }
Exemple #2
0
        protected void Page_Init(object sender, EventArgs e)
        {
            this.Master.PageHeadlineTitle = Title;
            Master.DisableNavBar          = true;

            if (Request.QueryString[Enums.QueryStringName.recordId.ToString()] != null)
            {
                userAction      = CommonMethods.ParseInt(Request.QueryString[Enums.QueryStringName.action.ToString()].ToString());
                issueDocumentID = CommonMethods.ParseInt(Request.QueryString[Enums.QueryStringName.recordId.ToString()].ToString());
            }

            session = XpoHelper.GetNewSession();

            XpoDSBuyer.Session    = session;
            XpoDSLocation.Session = session;
            XpoDSIssueDocumentPosition.Session = session;

            issueDocumentRepo = new IssueDocumentRepository(session);
            clientRepo        = new ClientRepository(session);
            utilityRepo       = new UtilityServiceRepository(session);

            ASPxGridViewIssueDocumentPosition.Settings.GridLines = GridLines.Both;

            GridLookupBuyer.GridView.Settings.GridLines = GridLines.Both;
        }
        private void TimerScheduleCallback(object e)
        {
            try
            {
                CommonMethods.LogThis("Start");

                if (session == null)
                {
                    session = XpoHelper.GetNewSession();
                }

                utilityRepo = new UtilityServiceRepository(session);

                utilityRepo.MatchMobileTransWithInventoryDeliveries();

                CommonMethods.LogThis("END");
            }
            catch (Exception ex)
            {
                string error = "", errorToThrow = "";
                CommonMethods.getError(ex, ref error);
                errorToThrow = CommonMethods.ConcatenateErrorIN_DB("", error, CommonMethods.GetCurrentMethodName());
                CommonMethods.LogThis(errorToThrow);
            }

            this.ScheduleService();
        }
Exemple #4
0
        protected void Page_Init(object sender, EventArgs e)
        {
            this.Master.PageHeadlineTitle = this.Title;

            AllowUserWithRole(Enums.UserRole.SuperAdmin);

            session = XpoHelper.GetNewSession();

            utilityServiceRepo = new UtilityServiceRepository(session);
        }