<script type="text/javascript">
mini.parse();
var grid = mini.get("datagrid1");
grid.load();
grid.sortBy("id", "desc");
var ordermain_grid = mini.get("ordermain_grid");
var orderdetail_grid = mini.get("orderdetail_grid");
var orderdetailGrid_Form = document.getElementById("orderdetailGrid_Form");
function search() {
var key = document.getElementById("key").value;
grid.load({ key: key });
}
$("#key").bind("keydown", function (e) {
if (e.keyCode == 13) {
search();
}
});
function onFlagRenderer(e) {
if (e.value == 1) return "是";
else return "否";
}
function onSelectionChanged(e) {
ordermain_grid.load({ cust_id: record.id });
}
function onShowRowDetail(e) {
var grid = e.sender;
var row = e.record;