Ejemplo n.º 1
0
 /// <remarks/>
 public void insertAccountNoteAsync(insertAccountNoteRequest insertAccountNoteRequest) {
     this.insertAccountNoteAsync(insertAccountNoteRequest, null);
 }
Ejemplo n.º 2
0
 /// <remarks/>
 public void insertAccountNoteAsync(insertAccountNoteRequest insertAccountNoteRequest, object userState) {
     if ((this.insertAccountNoteOperationCompleted == null)) {
         this.insertAccountNoteOperationCompleted = new System.Threading.SendOrPostCallback(this.OninsertAccountNoteOperationCompleted);
     }
     this.InvokeAsync("insertAccountNote", new object[] {
                 insertAccountNoteRequest}, this.insertAccountNoteOperationCompleted, userState);
 }
Ejemplo n.º 3
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();
     accountNote insNotes = new 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;
     insertAccountNoteRequest insNotesInf = new insertAccountNoteRequest();
     insNotesInf.accountNote = insNotes;
     var account = port.insertAccountNote(insNotesInf);
 }