master
fxc 2 weeks ago
parent 0f125dbeb3
commit 3ada277251

@ -74,7 +74,7 @@
col = new nblf.ui.DataGridColumn();
col.HeaderText = "毛利";
col.CellTemplate = "<span>{Bind GrossProfit}</span>";
col.CellTemplate = "<a class='linka' onClick='showShopGrossProfitDialog({Bind GoodsId})'>{Bind GrossProfit}</a>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
@ -199,6 +199,32 @@
});
}
//#endregion
//#region 显示各店铺毛利
function showShopGrossProfitDialog(GoodsId) {
var param = { GoodsId }
WindowLoadModel.Show();
$.ajax({
url: "../SysManageServiceNew.asmx/GetTemuShopGrossProfit",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
success: function (res) {
WindowLoadModel.Hide();
data = JSON.parse(res.Data)
datagrid1.Set_RowCount(res.rowCount);
datagrid1.DataBind(data);
$.fancybox({
'width': '40%',
'height': '40%',
'autoScale': false,
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'href': '#mlDialog',
'onComplete': function () { }
});
}
});
}
//#endregion
</script>
</head>
@ -224,6 +250,11 @@
</td>
</tr>
</table>
<!-- 各店铺毛利 -->
<div id="mlDialog" title="各店铺毛利" style="display:none;width: 700px; height: 500px;">
<div id="DataGrid2" class="DataGridStyle"></div>
</div>
</body>
</html>

Loading…
Cancel
Save