public void get_productType(int typeId) { ProductTypeDal type = new ProductTypeDal(); ProductTypeInfo info = type.read(typeId); p_typename = info.typeName; p_parenttypename = type.read(info.parentId).typeName; }
private void editBind() { ProductTypeDal da = new ProductTypeDal(); ProductTypeInfo tpinfo = da.read(getId("id")); ProductTypeName.Value = tpinfo.typeName; imgUrl.Value = tpinfo.imgUrl; orderId.Value = tpinfo.orderId.ToString(); content.Value = tpinfo.content; if (tpinfo.imgUrl != "") view_img.InnerHtml = "<a href=\"" + tpinfo.imgUrl + "\" target=\"_blank\">查看</a>"; }