Ejemplo n.º 1
0
            /// <summary>
            /// Delete a note
            /// </summary>
            /// <param name="id">Account Id</param>
            /// <param name="type">Type of note</param>
            /// <param name="note">Stirng</param>
            public void DeleteNote(int noteId)
            {
                var port = Models.Util.Port();

                WipService.accountNote insNotes = new MPXMobile.WipService.accountNote();
                insNotes.noteId = noteId;
                WipService.deleteAccountNoteRequest insNotesInf = new MPXMobile.WipService.deleteAccountNoteRequest();
                insNotesInf.accountNote = insNotes;
                var account = port.deleteAccountNote(insNotesInf);
            }
Ejemplo n.º 2
0
            /// <summary>
            /// Inserts a note to a specific donor account
            /// </summary>
            /// <param name="id">Account Id</param>
            /// <param name="type">Type of note</param>
            /// <param name="note">Stirng</param>
            public void InsertNote(string id, string type, string note)
            {
                var port = Models.Util.Port();

                WipService.accountNote insNotes = new MPXMobile.WipService.accountNote();
                insNotes.accountId      = int.Parse(id);
                insNotes.note           = HttpContext.Current.User.Identity.Name + " wrote: " + note;
                insNotes.noteType       = type;
                insNotes.addDate        = DateTime.Now;
                insNotes.nextActionNote = "NULL";
                insNotes.addUserId      = 18;
                insNotes.modifiedDate   = DateTime.Now;
                insNotes.modifiedUserId = 18;
                insNotes.nextDate       = DateTime.Now;
                WipService.insertAccountNoteRequest insNotesInf = new MPXMobile.WipService.insertAccountNoteRequest();
                insNotesInf.accountNote = insNotes;
                var account = port.insertAccountNote(insNotesInf);
            }
Ejemplo n.º 3
0
 /// <summary>
 /// Modify a note to a specific donor account
 /// </summary>
 /// <param name="id">Account Id</param>
 /// <param name="type">Type of note</param>
 /// <param name="note">Stirng</param>
 public void UpdateNote(string id, string type, string note,int noteId)
 {
     var port = Models.Util.Port();
     WipService.accountNote insNotes = new MPXMobile.WipService.accountNote();
     insNotes.noteId = noteId;
     insNotes.accountId = int.Parse(id);
     insNotes.note = HttpContext.Current.User.Identity.Name + " wrote: " + note;
     insNotes.noteType = type;
     insNotes.addDate = DateTime.Now;
     insNotes.nextActionNote = "NULL";
     insNotes.addUserId = 18;
     insNotes.modifiedDate = DateTime.Now;
     insNotes.modifiedUserId = 18;
     insNotes.nextDate = DateTime.Now;
     WipService.updateAccountNoteRequest insNotesInf = new MPXMobile.WipService.updateAccountNoteRequest();
     insNotesInf.accountNote = insNotes;
     var account = port.updateAccountNote(insNotesInf);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Delete a note 
 /// </summary>
 /// <param name="id">Account Id</param>
 /// <param name="type">Type of note</param>
 /// <param name="note">Stirng</param>
 public void DeleteNote(int noteId)
 {
     var port = Models.Util.Port();
     WipService.accountNote insNotes = new MPXMobile.WipService.accountNote();
     insNotes.noteId = noteId;
     WipService.deleteAccountNoteRequest insNotesInf = new MPXMobile.WipService.deleteAccountNoteRequest();
     insNotesInf.accountNote = insNotes;
     var account = port.deleteAccountNote(insNotesInf);
 }