public ActionResult TestA0201() { InvoiceA0201 model = new InvoiceA0201() { CancelInvoiceNumber = "QE00000000", InvoiceDate = "20210419", SellerId = "12345678", BuyerId = "0000000000", CancelDate = "20210519", CancelTime = "16:20:17", CancelReason = "測試", }; InvoiceXMLServices service = new InvoiceXMLServices(); return(Content(service.GeneratorA0201(model), "text/xml")); }
/// <summary> /// 作廢發票訊息規格 /// </summary> /// <param name="data"></param> /// <returns></returns> public string GeneratorA0201(InvoiceA0201 data) { return(this.GeneratorXML(data, @"~/einv/template/templateA0201.txt", "urn:GEINV:eInvoiceMessage:A0201:3.2", @"~/einv/xsd/v32/A0201.xsd")); }