public ActionResult TestE0402() { InvoiceE0402 model = new InvoiceE0402() { // Main HeadBan = "12345678", BranchBan = "0000000000", InvoiceType = "07", YearMonth = "11004", InvoiceTrack = "QB", }; // Details model.BranchTrackBlankItems = new List <InvoiceE0402BranchTrackBlankItem>(); model.BranchTrackBlankItems.Add(new InvoiceE0402BranchTrackBlankItem() { InvoiceBeginNo = "00001000", InvoiceEndNo = "00001499", }); InvoiceXMLServices service = new InvoiceXMLServices(); return(Content(service.GeneratorE0402(model), "text/xml")); }
/// <summary> /// 空白未使用字軌檔 /// </summary> /// <param name="data"></param> /// <returns></returns> public string GeneratorE0402(InvoiceE0402 data) { return(this.GeneratorXML(data, @"~/einv/template/templateE0402.txt", "urn:GEINV:eInvoiceMessage:E0402:3.2", @"~/einv/xsd/v32/E0402.xsd")); }