Exemple #1
0
        // GET: Invoice/Home
        public ActionResult Detail(string ticketSn, string account, string password)
        {
            //调用查询接口
            IInvoice invoice = new InvoiceManager();

            //GeneralEInvoice(detail);
            //detail.DownLoadUrl = string.Format("{0}download/{1}.svg", "../../", detail.InvoiceNumber);

            var input = new QueryInoviceInput()
            {
                ticketSn = ticketSn,
                account  = account,
                password = password
            };
//            var input2 = new MadeOutInvoceInput()
//            {
//                ticketSn = "201703191723038690020",
//                account = "adasun4",
//                shopperInfo = new ShopperInfo()
//                {
//                    email= "*****@*****.**",
//                    mobilePhone="13600927865",
//                    invoiceTitle= "个人(叶工)",
//                    industryType= 3
//                },
//                password = "******"
//            };

            var result = invoice.QueryInovice(input);

//            var result2 = invoice.MadeOutInvoce(input2);

            return(View(result));
        }
Exemple #2
0
        public ActionResult Query(QueryInoviceInput input)
        {
            IInvoice   invoice    = new InvoiceManager();
            var        result     = invoice.QueryInovice(input);
            JsonResult jsonResult = new JsonResult();

            jsonResult.Data = result;
            return(jsonResult);
        }
Exemple #3
0
 /// <summary>
 /// 查询发票接口
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public QueryInoviceResult QueryInovice(QueryInoviceInput input)
 {
     try
     {
         var url = "http://company.pospal.cn:18080/pospal-api2/pos/v1/invoice/queryInovice";
         QueryInoviceResult result = HttpUtil.HttpPost <QueryInoviceInput, QueryInoviceResult>(url, input);
         return(result);
     }
     catch (Exception)
     {
         return(new QueryInoviceResult()
         {
             status = "failed"
         });
     }
 }
Exemple #4
0
 public QueryInoviceResult QueryInovice(QueryInoviceInput input)
 {
     throw new NotImplementedException();
 }