private string GetRecipientName(string emailAddr) { string[] email = emailAddr.Split('@'); DataSetManager dsm = DataSetManager.GetInstance(); dsm.GetUserName(email[0].Trim()); return(dsm.UserName.Trim()); }
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; }
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(); } }
private string GetCCManager() { DataSetManager dsm = DataSetManager.GetInstance(); return(dsm.GetManagerEmail(currentAcctNo)); }