Exemplo n.º 1
0
        //-----------------------------------------------------------------------
        public static string Static_GetName(string LogFilePath, string LogFileName, string constr, byte AllignId)
        {
            string RetVal   = "";
            Aligns m_Aligns = new Aligns(constr);

            try
            {
                m_Aligns = m_Aligns.Get(LogFilePath, LogFileName, AllignId);
                if (!string.IsNullOrEmpty(m_Aligns.AlignName))
                {
                    RetVal = m_Aligns.AlignName;
                }
            }
            catch (Exception ex)
            {
                LogFiles.WriteLog(ex.Message, LogFilePath + "\\Exception", LogFileName + "." + m_Aligns.GetType().Name + "." + MethodBase.GetCurrentMethod().Name);
            }
            return(RetVal);
        }
Exemplo n.º 2
0
        //-----------------------------------------------------------------------
        public static List <Aligns> Static_GetList(string LogFilePath, string LogFileName, string constr)
        {
            List <Aligns> RetVal   = new List <Aligns>();
            Aligns        m_Aligns = new Aligns(constr);

            try
            {
                RetVal = m_Aligns.GetList(LogFilePath, LogFileName);
            }
            catch (Exception ex)
            {
                LogFiles.WriteLog(ex.Message, LogFilePath + "\\Exception", LogFileName + "." + m_Aligns.GetType().Name + "." + MethodBase.GetCurrentMethod().Name);
            }
            return(RetVal);
        }