产品面板

产品面板本帖最后由 yaojunsong 于 2012-12-25 10:58 编辑
下下面插件代码,即可获得产品面板的视图:
from System import StringComparison
from System import Boolean
from Kingdee.BOS.Core.DynamicForm.PlugIn.ControlModel import *
from System.Collections.Generic import *
from Kingdee.BOS.JSON import *
items = List[ProductEntityBase]()
def AfterBindData(e):
para = JSONObject()
#items = List[ProductEntityBase]()
pageSize = 20
rowcount = 200
pageindex = 3
for i in range(0,pageSize):
item = ProductEntityBase()
item.Index = i
item.Width = 280
item.Height = 230
item.Caption = str(i)+":尼康(NIKON) Coolpix L310 \r\n便携数码相机(1408万像素 3寸屏 21倍光变 25m"
item.Price = 2100+i*100
item.PriceDisplayFormat = "¥###,###,###,##0.00"
item.Quantity = 1000-i*10
item.StockQty = 100000-i*100
item.QuantityMask = "###,###,###,##0.00"
#item.ImageSourceType=1
#item.ImageData="{base64字符串}"
item.ImageSourceType=0
#item.ImageUrl = "http://localhost:1200/images/biz/default/demo/NIKON210.webp"
item.ImageUrl = "images/biz/default/AdImages/adimage1.webp"
item.ButtonCaption = "订购"
if (item.Index % 2 == 0):
item.ButtonCaption = "下架"
item.ButtonDisabled = Tru
产品面板
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。



