FarmTrace/Page/Order/OrderInvoice/OrderInvoiceAdd.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using DataBaseLibrary.Utility;
using Model;
using Repository.impl;
using Repository.interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FarmTrace.Page.Order.OrderInvoice
{
public partial class OrderInvoiceAdd : System.Web.UI.Page
{
#region 自定义变量
ICommonRepository CommBll = new CommonRepository();
OrderInvoiceModel model = new OrderInvoiceModel();
#endregion
#region 自定义方法
#region 获取信息并显示到页面
/// <summary>
/// 获取信息并显示到页面
/// </summary>
/// <param name="InvoiceID"></param>
private void GetOrderInvoice(int InvoiceID)
{
model = CommBll.GetModelByWhere<OrderInvoiceModel>(model, string.Format("InvoiceID={0}", InvoiceID));
if (model.InvoiceID > 0)
{
cbxExpressStatus.Value = model.ExpressStatus.ToString();
this.txtRemark.Value = model.Remark.ToString();
this.txtLinkMan.Value = model.LinkMan.ToString();
this.txtAddress.Value = model.Address.ToString();
this.txtLinkTel.Value = model.LinkTel.ToString();
this.txtInvoiceCode.Value = model.InvoiceCode.ToString();
cbxExpress.Value = model.ExpressID.ToString();
//this.txtExpressName.Value = model.ExpressName.ToString();
this.txtExpressNum.Value = model.ExpressNum.ToString();
this.txtExpressMan.Value = model.ExpressMan.ToString();
this.txtCreateBy.Value = model.CreateBy.ToString();
this.txtCreateTime.Value = model.CreateTime.ToString();
hfInvoiceID.Value = InvoiceID.ToString();
}
}
#endregion
#endregion
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
int InvoiceID = Common.GetQueryInt("InvoiceID");
txtInvoiceCode.Disabled = true;
cbxExpressStatus.Disabled = true;
txtCreateTime.Disabled = true;
后面还有 93 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
