![]() |
1.任意输入,感受日期型、数值型简洁高效的输入,且能屏蔽非法日期、非法字符(注:双击日期控件能打开日历); 2.“生产日期”和“质检时间”的数据类型是date和datetime,其默认输入掩码分别是"YYYY.MM.DD"、 "YYYY.MM.DD hh:mm:ss" 3.“生产日期”被限定在 2010.01.01 至 2010.03.31 之间,请查看该XML描述文档; 4.“定价”的输入掩码是"+#,###.00",表示只能输入正数、允许带千位符、小数点保留2位; 5.“产品名称”限定了最多只能输入10个字; 6.仿Excel的焦点区域选择,以及和Excel的交互复制、粘帖功能; |
![]() |
1.分析创建该Treelist的XML描述文件:
<?xml version="1.0" encoding="utf-8"?>
<TreeList>
<Properties curselmode="excel" editAble="true" rowHeight="29" Title="库存表" textColor="#777777" bgcolor="#ffffff,#F4F4F4"
innerShadow="" headerBgColor="#F9F9F9,#F0F0F0"
isShowRuler="false" RulerLineColor="#F5F5F5" LeftBgColor="#F9F9F9,#F0F0F0"
isShowGridVert="false" GridColor="#E3E3E3"
CheckBoxColor="#D9D9D9,#0088DD,#818181,#aaaaaa,#aaaaaa,#818181,T">
<!--以黑白打印-->
<PrintPage>
<Paper PrintColor="BW"/>
</PrintPage>
</Properties>
<Fonts><Font faceName="Verdana" height="14"/></Fonts>
<Cols>
<Col headerTextColor="#777777" name="productID" width="80" align="center">产品ID</Col>
<Col headerTextColor="#777777" name="productname" width="180" maxchars="10" alignHeader="left">产品名称</Col>
<Col headerTextColor="#777777" name="ProductDate" width="130" datatype="date" min="2010.1.1" max="2010.03.31">生产日期</Col>
<Col headerTextColor="#777777" name="CheckDate" width="210" datatype="datetime">质检时间</Col>
<Col headerTextColor="#777777" name="passed" width="90" datatype="bool" edittype="checkbox">通过质检</Col>
<Col headerTextColor="#777777" name="price" width="110" datatype="double" decimal="2" editmask="+#,###.00" alignHeader="right">定价</Col>
<Col headerTextColor="#777777" name="stock" width="100" datatype="int" editmask="#,###" alignHeader="right">库存箱数</Col>
</Cols>
</TreeList> |
![]() | 使用够简单吧! |