/*
         * 다수건의 현금영수증을 인쇄하기 위한 페이지의 팝업 URL을 반환합니다. (최대 100건)
         * - 반환되는 URL은 보안 정책상 30초 동안 유효하며, 시간을 초과한 후에는 해당 URL을 통한 페이지 접근이 불가합니다.
         * - https://docs.popbill.com/cashbill/dotnetcore/api#GetMassPrintURL
         */
        public IActionResult GetMassPrintURL()
        {
            // 조회할 현금영수증 문서번호 배열, (최대 100건)
            List <string> MgtKeyList = new List <string>();

            MgtKeyList.Add("20220527-001");
            MgtKeyList.Add("20220527-002");

            try
            {
                var result = _cashbillService.GetMassPrintURL(corpNum, MgtKeyList, userID);
                return(View("Result", result));
            }
            catch (PopbillException pe)
            {
                return(View("Exception", pe));
            }
        }
Esempio n. 2
0
        // 다량 현금영수증 인쇄 URL
        private void btnGetMassPrintURL_Click(object sender, EventArgs e)
        {
            List <string> MgtKeyList = new List <string>();

            //'최대 1000건.
            MgtKeyList.Add("20150209-14");
            MgtKeyList.Add("20150209-03");

            try
            {
                string url = cashbillService.GetMassPrintURL(txtCorpNum.Text, MgtKeyList, txtUserId.Text);

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