private void ButtonAuditAddClick(object sender, RoutedEventArgs e)
{
this.lastAddedAccountId = new AccountId_CType()
{
AcctId = Guid.NewGuid().ToString(),
AcctType = "Test"
};
var auditAdd = new EASAddRq_MType()
{
AppId = Application.ApplicationId,
EASInfoArray = new[]
{
new EASInfoRec_CType()
{
AccountId = this.lastAddedAccountId,
AuditEventActn = "Start",
AuditEventRmk = "Whatever this is",
AuditEventStat = "Success",
AuditEventStatRmk = "Status Remark",
CustId = "1",
EventCode = "CustDetail",
EASDtTime = DateTime.Now,
EASIdxArray = new[]
{
new EASIdxInfoRec_CType()
{
AuditKeyName = "testkey",
AuditKeyVal = "testkeyvalue"
}
},
EASItemArray = new[]
{
new EASItemInfoRec_CType()
{
ItemName = "Bomber",
NewVal = "B1",
OldVal = "B52"
}
}
}
},
IMSSubj = this.CurrentUserIMSSubj,
InstEnv = "Development",
InstId = Application.ApplicationId,
JESMsgRqHdr = Helper.JesMsgRqHeader()
};
var callback = this.messageBus
.Send(auditAdd)
.RegisterResponseHandler(this.OnAuditAddResponse);
var errors = Helper.CallbackErrors(callback, "ButtonAuditAddClick");
if (!string.IsNullOrWhiteSpace(errors))
{
this.UpdateListbox(errors);
}
else
{
this.UpdateListbox("Sent EASAdd message.", true);
}
}