52 lines
2.8 KiB
C#
52 lines
2.8 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Web;
|
|||
|
|
using System.Web.UI;
|
|||
|
|
using System.Web.UI.WebControls;
|
|||
|
|
using System.Data;
|
|||
|
|
namespace Mtxfw.WebSite._Admin
|
|||
|
|
{
|
|||
|
|
public partial class Admin_Member_company_info : Mtxfw.Utility.MemberBase
|
|||
|
|
{
|
|||
|
|
public Mtxfw.DAL.business_info daoBus = new Mtxfw.DAL.business_info();
|
|||
|
|
DAL.user_Goods_lb daolb = new DAL.user_Goods_lb();
|
|||
|
|
DAL.user_info daoUser = new DAL.user_info();
|
|||
|
|
public Mtxfw.Utility.Config config = new Mtxfw.Utility.Config("");
|
|||
|
|
public String TitName = String.Empty;
|
|||
|
|
public String CityID = String.Empty;
|
|||
|
|
public String CountyID = String.Empty;
|
|||
|
|
public string strimg = "", strBody = "";
|
|||
|
|
public int gtype = 0;
|
|||
|
|
protected override void OnLoad(EventArgs e)
|
|||
|
|
{
|
|||
|
|
base.OnLoad(e);
|
|||
|
|
string hostname = Request.Url.Host;
|
|||
|
|
gtype = new DAL.host().GetId(hostname);
|
|||
|
|
|
|||
|
|
Mtxfw.Model.business_info model = daoBus.GetModel(int.Parse(Request.QueryString["ID"]));
|
|||
|
|
if (model != null)
|
|||
|
|
{
|
|||
|
|
if (!IsPostBack)
|
|||
|
|
{
|
|||
|
|
Label_CompanyName.Text = model.CompanyName;
|
|||
|
|
Label_ContactPhone.Text = model.ContactPhone;
|
|||
|
|
Label_image1.Text = "<a target=\"_blank\" href=\"" + Mtxfw.Utility.Common.GetCoverPic(model.Businesslicense, "2000x2000", "cut") + "\"><img src=\"" + Mtxfw.Utility.Common.GetCoverPic(model.Businesslicense, "100x100", "cut") + "\" style=\"width:100px;\" /></a>";
|
|||
|
|
Label_image2.Text = "<a target=\"_blank\" href=\"" + Mtxfw.Utility.Common.GetCoverPic(model.TaxRegistration, "2000x2000", "cut") + "\"><img src=\"" + Mtxfw.Utility.Common.GetCoverPic(model.TaxRegistration, "100x100", "cut") + "\" style=\"width:100px;\" /></a>";
|
|||
|
|
Label_image3.Text = "<a target=\"_blank\" href=\"" + Mtxfw.Utility.Common.GetCoverPic(model.Introduction2, "2000x2000", "cut") + "\"><img src=\"" + Mtxfw.Utility.Common.GetCoverPic(model.Introduction2, "100x100", "cut") + "\" style=\"width:100px;\" /></a>";
|
|||
|
|
Label_image4.Text = "<a target=\"_blank\" href=\"" + Mtxfw.Utility.Common.GetCoverPic(model.Introduction3, "2000x2000", "cut") + "\"><img src=\"" + Mtxfw.Utility.Common.GetCoverPic(model.Introduction3, "100x100", "cut") + "\" style=\"width:100px;\" /></a>";
|
|||
|
|
Label_area.Text = new DAL.province().GetProvince(model.Province) + new DAL.city().GetCity(model.City) + new DAL.county().GetCounty(model.County);
|
|||
|
|
Label_CompanyAddress.Text = model.Companyaddress;
|
|||
|
|
xcoo.Value = model.xcoo;
|
|||
|
|
ycoo.Value = model.ycoo;
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
CityID = model.City;
|
|||
|
|
CountyID = model.County;
|
|||
|
|
strBody = model.Introduction;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|