- 注册时间
- 2012-8-3
- 最后登录
- 2012-10-31
- 阅读权限
- 10
- 积分
- 153
- 精华
- 0
- 帖子
- 38
|
<div id="datagrid1" class="mini-datagrid" style="width:100%;height:280px;"
url="${ctx }/JsonDispatchAction.do?efFormEname=BMWF013&serviceName=BMWF010&methodName=queryStationeryApply" idField="guid"
allowResize="true" pageSize="10"
allowCellEdit="true" allowCellSelect="true" multiSelect="true"
>
<div property="columns">
<div width="5%" type="indexcolumn" >序号</div>
<div type="comboboxcolumn" field="typeId" id="StationeryType" class="mini-combobox" width="25%" headerAlign="center" >办公用品分类
<input property="editor" class="mini-combobox" textField="typeName" valueField="guid"
url="${ctx}/BM/WF/bgtypeload.jsp" />
</div>
<div type="comboboxcolumn" field="materialId" class="mini-combobox" width="25%" headerAlign="center" >办公用品
<input property="editor" class="mini-combobox" id="materialId" name="materialId" textField="stationeryName" valueField="guid" />
</div>
<div field="amonut" width="10%" allowSort="true" >数量
<input property="editor" id="i-0-amonut" class="mini-spinner" minValue="0" />
</div>
<div field="StationeryUnit" width="10%" headerAlign="center" allowSort="true" >单位
</div>
<div field="applyDesc" width="25%" headerAlign="center">备注
<input property="editor" id="applyDesc" class="mini-textarea" minHeight="80"/>
</div>
</div>
</div>
<script type="text/javascript">
mini.parse();
var grid = mini.get("datagrid1");
var flag = $("#flag").val();
if(flag=="1"){
grid.load( ,
success: function (text) {
alert("成功!");
},
error: function () {
alert("失败");
}
);
}else{
addRow();
addRow();
addRow();
addRow();
addRow();
}
</script>
|
|