Пример #1
0
        public bool CreateFaultEvent(int installationNo, int faultSource, int faultType, string faulDescription, bool polled, DateTime eventDate, string employeeCardNo)
        {
            bool bRet = false;

            try
            {
                using (ExCommsSQLDataAccess DataContext = this.GetDataContext())
                {
                    DataContext.InsertFaultEvent(installationNo, faultSource, faulDescription, polled, null, eventDate, employeeCardNo);
                    bRet = true;
                }
            }
            catch (Exception ex)
            {
                bRet = false;
                Log.Exception(ex);
            }

            return(bRet);
        }