- 注册时间
- 2014-5-4
- 最后登录
- 2015-6-4
- 阅读权限
- 10
- 积分
- 54
- 精华
- 0
- 帖子
- 9
|
如图,行编辑模式下,用列表方式返回多个数据,只能返回编辑状态下单元格内定义的数值,其他无法返回,不知道该如何解决。
这是页面div代码:
<div id="order_row" class="mini-datagrid" style="width:790px;height:295px;" idField="ORDER_LINE_NUMBER" allowResize="true" pageSize="20" allowCellEdit="true" allowCellSelect="true" multiSelect="true" editNextOnEnterKey="true" editNextRowCell="true">
<div property="columns">
<div type="checkcolumn"></div>
<div name="ORDER_NUMBER" field="ORDER_NUMBER" headerAlign="center" width="120" >销售订单编号
<input property="editor" class="mini-textbox" style="width:100%;" minWidth="120" />
</div>
<div name="MATERIAL_ITEM_CODE" field="MATERIAL_ITEM_CODE" headerAlign="center" width="150" >物料编码
<input property="editor" class="mini-buttonedit" id="MATERIAL_ITEM_CODE" name="MATERIAL_ITEM_CODE" textName="MATERIAL_ITEM_CODE" style="width:100%;" minWidth="150" />
</div>
<div name="ITEM_DESCRIPTION" field="ITEM_DESCRIPTION" headerAlign="center" width="100" >物料描述
<input property="editor" class="mini-textbox" id="ITEM_DESCRIPTION" name="ITEM_DESCRIPTION" textName="ITEM_DESCRIPTION" minValue="0" maxValue="200" value="25" style="width:100%;" />
</div>
<div name="ITEM_MODEL" field="ITEM_MODEL" headerAlign="center" width="100" >型号
<input property="editor" class="mini-textbox" id="ITEM_MODEL" name="ITEM_MODEL" textName="ITEM_MODEL" style="width:100%;"/>
</div>
<div name="ITEM_SPECS" field="ITEM_SPECS" width="120" headerAlign="center" allowSort="true">规格
<input property="editor" class="mini-textbox" id="ITEM_SPECS" name="ITEM_SPECS" textName="ITEM_SPECS" style="width:200px;"/>
</div>
<div name="ITEM_STUFF" field="ITEM_STUFF" width="100" align="center" headerAlign="center">材质
<input property="editor" class="mini-textbox" id="ITEM_STUFF" name="ITEM_STUFF" textName="ITEM_STUFF" style="width:100%;" />
</div>
<div name="UOM" field="UOM" headerAlign="center" width="150" >计量单位
<input property="editor" class="mini-textbox" id="UOM" name="UOM" textName="UOM" style="width:100%;" />
</div>
<div name="UNIT_PRICE" field="UNIT_PRICE" headerAlign="center" width="150" >单价
<input property="editor" class="mini-textbox" style="width:100%;"/>
</div>
<div name="QUANTITY" field="QUANTITY" headerAlign="center" width="150" >订单数量
<input property="editor" class="mini-textbox" style="width:100%;" />
</div>
<div name="REMARK" field="REMARK" headerAlign="center" width="150" >备注(技术协议)
<input property="editor" class="mini-textbox" style="width:100%;" minWidth="200" />
</div>
</div>
</div>
这是js代码:
function onButtonMaterial(e) {
var MATERIAL_ITEM_CODE = mini.get("MATERIAL_ITEM_CODE");
var ITEM_DESCRIPTION = mini.get("ITEM_DESCRIPTION");
var ITEM_MODEL = mini.get("ITEM_MODEL");
var ITEM_SPECS = mini.get("ITEM_SPECS");
var ITEM_STUFF = mini.get("ITEM_STUFF");
var UOM = mini.get("UOM");
mini.open({
url:"material_select.html",
title: "选择列表",
width: 650,
height: 500,
ondestroy: function (action) {
if (action == "ok") {
var iframe = this.getIFrameEl();
var data = iframe.contentWindow.GetData();
data = mini.clone(data); //必须
if (data) {
MATERIAL_ITEM_CODE.setValue(data.MATERIAL_ITEM_CODE);
MATERIAL_ITEM_CODE.setText(data.MATERIAL_ITEM_CODE);
ITEM_DESCRIPTION.setValue(data.ITEM_DESCRIPTION);
ITEM_DESCRIPTION.setText(data.ITEM_DESCRIPTION);
ITEM_MODEL.setValue(data.ITEM_MODEL);
ITEM_MODEL.setText(data.ITEM_MODEL);
ITEM_SPECS.setValue(data.ITEM_SPECS);
ITEM_STUFF.setValue(data.ITEM_STUFF);
UOM.setValue(data.UOM);
}
}
}
});
}
|
|