/*
         * 현금영수증 1건의 상세정보를 확인합니다.
         * - https://docs.popbill.com/cashbill/dotnetcore/api#GetDetailInfo
         */
        public IActionResult GetDetailInfo()
        {
            // 현금영수증 문서번호
            string mgtKey = "20220527-001";

            try
            {
                var response = _cashbillService.GetDetailInfo(corpNum, mgtKey);
                return(View("GetDetailInfo", response));
            }
            catch (PopbillException pe)
            {
                return(View("Exception", pe));
            }
        }
Beispiel #2
0
        // 현금영수증 상세항목 확인
        private void btnGetDetailInfo_Click(object sender, EventArgs e)
        {
            try
            {
                Cashbill cashbill = cashbillService.GetDetailInfo(txtCorpNum.Text, txtMgtKey.Text);

                //자세한 문세정보는 작성시 항목을 참조하거나, 연동메뉴얼 참조.

                string tmp = null;
                tmp += "mgtKey: " + cashbill.mgtKey + CRLF;
                tmp += "tradeDate : " + cashbill.tradeDate + CRLF;
                tmp += "tradeUsage : " + cashbill.tradeUsage + CRLF;
                tmp += "tradeType : " + cashbill.tradeType + CRLF;
                tmp += "taxationType : " + cashbill.taxationType + CRLF;
                tmp += "supplyCost : " + cashbill.supplyCost + CRLF;
                tmp += "tax : " + cashbill.tax + CRLF;
                tmp += "serviceFee : " + cashbill.serviceFee + CRLF;
                tmp += "totalAmount : " + cashbill.totalAmount + CRLF;

                tmp += "franchiseCorpNum : " + cashbill.franchiseCorpNum + CRLF;
                tmp += "franchiseCorpName : " + cashbill.franchiseCorpName + CRLF;
                tmp += "franchiseCEOName : " + cashbill.franchiseCEOName + CRLF;
                tmp += "franchiseAddr : " + cashbill.franchiseAddr + CRLF;
                tmp += "franchiseTEL : " + cashbill.franchiseTEL + CRLF;

                tmp += "identityNum : " + cashbill.identityNum + CRLF;
                tmp += "customerName : " + cashbill.customerName + CRLF;
                tmp += "itemName : " + cashbill.itemName + CRLF;
                tmp += "orderNumber : " + cashbill.orderNumber + CRLF;
                tmp += "email : " + cashbill.email + CRLF;
                tmp += "hp : " + cashbill.hp + CRLF;

                tmp += "smssendYN : " + cashbill.smssendYN + CRLF;
                tmp += "faxsendYN : " + cashbill.faxsendYN + CRLF;

                MessageBox.Show(tmp);
            }
            catch (PopbillException ex)
            {
                MessageBox.Show(ex.code.ToString() + " | " + ex.Message);
            }
        }