/* * 현금영수증의 상태에 대한 변경이력을 확인합니다. * - https://docs.popbill.com/cashbill/dotnetcore/api#GetLogs */ public IActionResult GetLogs() { // 현금영수증 문서번호 string mgtKey = "20220527-001"; try { var response = _cashbillService.GetLogs(corpNum, mgtKey); return(View("GetLogs", response)); } catch (PopbillException pe) { return(View("Exception", pe)); } }
// 현금영수증 이력확인 private void btnGetLogs_Click(object sender, EventArgs e) { try { List <CashbillLog> logList = cashbillService.GetLogs(txtCorpNum.Text, txtMgtKey.Text); String tmp = ""; foreach (CashbillLog log in logList) { tmp += log.docLogType + " | " + log.log + " | " + log.procType + " | " + log.procMemo + " | " + log.regDT + " | " + log.ip + CRLF; } MessageBox.Show(tmp); } catch (PopbillException ex) { MessageBox.Show(ex.code.ToString() + " | " + ex.Message); } }