Example #1
0
        /// <summary>
        /// 创建发票
        /// </summary>
        /// <param name="CostMasterID">结算ID</param>
        /// <param name="invoiceType">发票类型</param>
        /// <returns></returns>
        public static Object CreateInvoice(int CostMasterID, string invoiceType)
        {
            switch (invoiceType)
            {
            case "湖南":
                Invoice_HN invoice = new Invoice_HN();
                return(invoice.GetTicketInfo(CostMasterID));

            case "广东":
                Invoice_GD invoice1 = new Invoice_GD();
                return(invoice1.GetInvoiceInfo(CostMasterID));
            }
            return(null);
        }
Example #2
0
        public Invoice_HN GetTicketInfo(int CostMasterID)
        {
            Invoice_HN invoice = new Invoice_HN();

            try
            {
                base.GetInvoiceInfo(invoice, CostMasterID);
                invoice._预交金大写 = invoice.预交金;
                invoice._总费用大写 = invoice.总费用;
                return(invoice);
            }
            catch (System.Exception e)
            {
                throw new Exception(e.Message);
            }
        }