Ejemplo n.º 1
0
        public static Int32 DeleteIncidentNote(Int32 noteId)
        {
            IncidentNoteDSTableAdapter ta = new IncidentNoteDSTableAdapter();

            ta.Connection.ConnectionString = UcConnection.ConnectionString;
            return(ta.Delete(noteId));
        }
Ejemplo n.º 2
0
        public static IncidentDS.IncidentNoteDSDataTable GetAllIncidentNotes(Int32 incidentId)
        {
            IncidentNoteDSTableAdapter ta = new IncidentNoteDSTableAdapter();

            ta.Connection.ConnectionString = UcConnection.ConnectionString;
            return(ta.GetAllIncidentNotes(incidentId));
        }
Ejemplo n.º 3
0
        //-----------------------------------------------------------------------------

        public static IncidentDS.IncidentNoteDSDataTable SelectIncidentNote(Int32 noteId)
        {
            IncidentNoteDSTableAdapter ta = new IncidentNoteDSTableAdapter();

            ta.Connection.ConnectionString = UcConnection.ConnectionString;
            return(ta.GetData(noteId));
        }
Ejemplo n.º 4
0
        public static void InsertIncidentNote(Int32 incidentId, Int32 userId, string note)
        {
            IncidentNoteDSTableAdapter ta = new IncidentNoteDSTableAdapter();

            ta.Connection.ConnectionString = UcConnection.ConnectionString;

            ta.Insert(incidentId, userId, note);
        }