Hidistro.UI.Web/Admin/Settings/Shippers.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.UI.Web.Admin.Settings
{
using ASPNET.WebControls;
using Hidistro.ControlPanel.Sales;
using Hidistro.Core;
using Hidistro.Entities.Sales;
using Hidistro.UI.Common.Controls;
using Hidistro.UI.ControlPanel.Utility;
using Hishop.Components.Validation;
using System;
using System.Collections.Generic;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
public class Shippers : AdminPage
{
protected Button btnSave;
protected RegionSelector ddlReggion;
protected Literal editType;
protected Pager pager;
protected Script Script4;
protected HiddenField ShipperId;
protected Repeater ShipperList;
protected HiddenField Task;
protected HtmlForm thisForm;
protected TextBox txtAddress;
protected TextBox txtShipperName;
protected CheckBoxList txtShipperType;
protected TextBox txtTelPhone;
protected Shippers() : base("m09", "szp09")
{
}
private void BindShippers()
{
this.ShipperList.DataSource = SalesHelper.GetShippers(false);
this.ShipperList.DataBind();
}
private void btnAddShipper_Click(object sender, EventArgs e)
{
ShippersInfo shipper = new ShippersInfo();
string str = "0";
if (this.txtShipperType.Items[0].Selected && !this.txtShipperType.Items[1].Selected)
{
str = "1";
}
else if (!this.txtShipperType.Items[0].Selected && this.txtShipperType.Items[1].Selected)
{
str = "2";
}
else if (this.txtShipperType.Items[0].Selected && this.txtShipperType.Items[1].Selected)
{
str = "3";
}
shipper.ShipperTag = str;
shipper.ShipperName = this.txtShipperName.Text.Trim();
if (!this.ddlReggion.GetSelectedRegionId().HasValue)
{
后面还有 160 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
