Example #1
0
        private string GetRecipientName(string emailAddr)
        {
            string[]       email = emailAddr.Split('@');
            DataSetManager dsm   = DataSetManager.GetInstance();

            dsm.GetUserName(email[0].Trim());
            return(dsm.UserName.Trim());
        }
Example #2
0
        private void GetItemList()
        {
            //retrieves the hashtables reqItem and itemDescr from the DataSet Manager
            if (trace)
            {
                lm.Write("TRACE:  OutputManager/GetItemList");
            }
            DataSetManager dsm = DataSetManager.GetInstance();

            reqItem  = dsm.ReqItem;
            itemDesc = dsm.ItemDescr;
            itemQty  = dsm.ItemQty;
            itemUM   = dsm.ItemUM;
        }
Example #3
0
        private static void LoadData()
        {
            DataSetManager dsm = DataSetManager.GetInstance();

            //DataSetManager is a singleton so getting the instance here sets it up for the other classes in the app.
            dsm.Debug = debug;
            dsm.Trace = trace;
            if (cleanUp)
            {   //cleanUp needs to be run once each day after midnight.
                //The initial select query (DataSetManager.BuildTodayQuery) only looks for records from the previous run through to the current run time.
                //To run TruncateReqItemReceipt, launch ReqItemStatus wih the number "1" as a parameter (or anything, really - as you can see above
                //it only looks at the number of arguments over 0). You'll probably want this on its own Scheduled Task (currently set at 12:30AM).
                (LogManager.GetInstance()).Write("Program/Main.LoadData:  " + "CleanUp - hmcmm_ReqItemReceipt");
                dsm.TruncateReqItemReceipt();
            }
            else
            {
                dsm.LoadTodaysDataSet();
                dsm.LoadYesterdayList();
            }
        }
Example #4
0
        private string GetCCManager()
        {
            DataSetManager dsm = DataSetManager.GetInstance();

            return(dsm.GetManagerEmail(currentAcctNo));
        }