📄 invoiceitemdetail.cs
字号:
namespace PowerEasy.WebSite.Admin.Shop
{
using PowerEasy.Controls;
using PowerEasy.Model.Shop;
using PowerEasy.Shop;
using PowerEasy.Web.UI;
using System;
using System.Web.UI.WebControls;
public class InvoiceItemDetail : AdminPage
{
protected Label LbeMemo;
protected Label LblClientName;
protected Label LblDrawer;
protected Label LblInputer;
protected Label LblInputTime;
protected Label LblInvoiceContent;
protected Label LblInvoiceDate;
protected Label LblInvoiceNum;
protected Label LblInvoiceTitle;
protected Label LblInvoiceType;
protected Label LblMoneyReceipt;
protected Label LblMoneyTotal;
protected Label LblOrderNum;
protected Label LblTotalMoney;
protected ExtendedSiteMapPath SmpNavigator;
protected string GetInvoiceType(int invoiceType)
{
switch (invoiceType)
{
case 0:
return "地税普通发票";
case 1:
return "国税普通发票";
case 2:
return "增值税发票";
}
return "";
}
protected void Page_Load(object sender, EventArgs e)
{
if (!base.IsPostBack)
{
InvoiceInfo invoiceInfoById = Invoice.GetInvoiceInfoById(BasePage.RequestInt32("InvoiceID"), false);
if (!invoiceInfoById.IsNull)
{
this.LblClientName.Text = invoiceInfoById.ClientName;
this.LblOrderNum.Text = invoiceInfoById.OrderNum;
this.LblMoneyTotal.Text = invoiceInfoById.MoneyTotal.ToString("0.00");
this.LblMoneyReceipt.Text = invoiceInfoById.MoneyReceipt.ToString("0.00");
this.LblInvoiceDate.Text = invoiceInfoById.InvoiceDate.ToString("d");
this.LblInvoiceType.Text = this.GetInvoiceType(invoiceInfoById.InvoiceType);
this.LblInvoiceNum.Text = invoiceInfoById.InvoiceNum;
this.LblInvoiceTitle.Text = invoiceInfoById.InvoiceTitle;
this.LblInvoiceContent.Text = invoiceInfoById.InvoiceContent;
this.LblTotalMoney.Text = invoiceInfoById.TotalMoney.ToString("0.00");
this.LblDrawer.Text = invoiceInfoById.Drawer;
this.LblInputer.Text = invoiceInfoById.Inputer;
this.LblInputTime.Text = invoiceInfoById.InputTime.ToString();
this.LbeMemo.Text = invoiceInfoById.Memo;
}
else
{
AdminPage.WriteErrMsg("<li>找不到对应的发票信息!");
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -