public void BindData() { SupplierInfo supplierById = SupplierHelper.GetSupplierById(this.supplierId); ManagerInfo managerInfo = ManagerHelper.FindManagerByStoreIdAndRoleId(this.supplierId, -2); if (supplierById == null || managerInfo == null) { base.Response.Redirect("SupplierList.aspx"); } else { this.lblManageId.Text = managerInfo.ManagerId.ToString(); Literal literal = this.lblUserName; Literal literal2 = this.lblUserName2; string text2 = literal.Text = (literal2.Text = managerInfo.UserName); TrimTextBox trimTextBox = this.txtSupplierName; Literal literal3 = this.lblSupplierName; text2 = (trimTextBox.Text = (literal3.Text = supplierById.SupplierName)); string text4 = "正常 <a href=\"javascript:void(0);\" onclick=\"updatesupperstate(2)\">冻结</a>"; if (supplierById.Status != 1) { text4 = "冻结 <a href=\"javascript:void(0);\" onclick=\"updatesupperstate(1)\">恢复</a>"; } this.lblStatus.Text = text4; this.hidOldImages.Value = supplierById.Picture; this.txtContactMan.Text = supplierById.ContactMan; this.txtTel.Text = supplierById.Tel; this.dropRegion.SetSelectedRegionId(supplierById.RegionId); this.txtAddress.Text = supplierById.Address; this.editDescription.Text = supplierById.Introduce; } }
public void BindData() { SupplierInfo supplierById = SupplierHelper.GetSupplierById(this.supplierId); ManagerInfo managerInfo = ManagerHelper.FindManagerByStoreIdAndRoleId(this.supplierId, -2); if (supplierById == null || managerInfo == null) { base.Response.Redirect("SuppliersList.aspx"); } else { this.lblUserName.Text = managerInfo.UserName; this.lblSupplierName.Text = supplierById.SupplierName; this.lblStatus.Text = (supplierById.Status.Equals(1) ? "正常" : "<font color='red'>冻结</font>"); this.lblContactMan.Text = supplierById.ContactMan; this.lblTel.Text = supplierById.Tel; this.lblAddress.Text = RegionHelper.GetFullRegion(supplierById.RegionId, string.Empty, true, 0); Literal literal = this.lblAddress; literal.Text += supplierById.Address; } }