Example #1
0
        //
        /// <summary>
        /// Create a 'to string'.
        /// </summary>
        public override string ToString()
        {
            //
            StringBuilder _return = new StringBuilder("record:[");

            _return.AppendFormat("IncidentTypeId: {0}, ", IncidentTypeId.ToString());
            _return.AppendFormat("IncidentTypeShortDesc: {0}, ", IncidentTypeShortDesc);
            _return.AppendFormat("IncidentTypeDesc: {0}, ", IncidentTypeDesc);
            _return.AppendFormat("IncidentTypeFromServer: {0}, ", IncidentTypeFromServer);
            _return.AppendFormat("IncidentTypeSubjectLine: {0}, ", IncidentTypeSubjectLine);
            _return.AppendFormat("IncidentTypeEmailTemplate: {0}, ", IncidentTypeEmailTemplate);
            _return.AppendFormat("IncidentTypeTimeTemplate: {0}, ", IncidentTypeTimeTemplate);
            _return.AppendFormat("IncidentTypeThanksTemplate: {0}, ", IncidentTypeThanksTemplate);
            _return.AppendFormat("IncidentTypeLogTemplate: {0}, ", IncidentTypeLogTemplate);
            _return.AppendFormat("IncidentTypeTemplate: {0}]", IncidentTypeTemplate);
            return(_return.ToString());
        }
Example #2
0
        //
        /// <summary>
        /// Create a 'to string'.
        /// </summary>
        public override string ToString()
        {
            //
            StringBuilder _return = new StringBuilder("record:[");

            _return.AppendFormat("CompanyId: {0}, ", CompanyId.ToString());
            _return.AppendFormat("CompanyShortName: {0}, ", CompanyShortName);
            _return.AppendFormat("IncidentTypeId: {0}, ", IncidentTypeId.ToString());
            _return.AppendFormat("IncidentTypeShortDesc: {0}, ", IncidentTypeShortDesc);
            _return.AppendFormat("SubjectLine: {0}, ", SubjectLine);
            _return.AppendFormat("EmailTemplate: {0}, ", EmailBody);
            _return.AppendFormat("TimeTemplate: {0}, ", TimeTemplate);
            _return.AppendFormat("ThanksTemplate: {0}, ", ThanksTemplate);
            _return.AppendFormat("LogTemplate: {0}, ", LogTemplate);
            _return.AppendFormat("Template: {0}, ", Template);
            _return.AppendFormat("FromServer: {0}, ", FromServer.ToString());
            _return.AppendFormat("]");
            return(_return.ToString());
        }
Example #3
0
        //
        /// <summary>
        /// Create a 'to string'.
        /// </summary>
        public override string ToString()
        {
            //
            StringBuilder _return = new StringBuilder("record:[");

            _return.AppendFormat("NetworkLogId: {0}, ", NetworkLogId.ToString());
            _return.AppendFormat("ServerId: {0}, ", ServerId);
            if (IncidentId.HasValue)
            {
                _return.AppendFormat("IncidentId: {0}, ", IncidentId.Value);
            }
            else
            {
                _return.AppendFormat("IncidentId: //, ");
            }
            _return.AppendFormat("IncidentId: {0}, ", IncidentId);
            _return.AppendFormat("IPAddress: {0}, ", IPAddress);
            _return.AppendFormat("NetworkLogDate: {0}, ", NetworkLogDate.ToString());
            _return.AppendFormat("IncidentTypeId: {0}, ", IncidentTypeId.ToString());
            _return.AppendFormat("Selected: {0}, ", Selected.ToString( ));
            _return.AppendFormat("IsChanged: {0}, ", IsChanged.ToString());
            _return.AppendFormat("Log: {0}]", Log);
            return(_return.ToString());
        }