TeachingMaterialSelector.js 663 B

123456789101112131415161718192021
  1. 
  2. function reload() {
  3. $("#dgTMPoolList").cmsXDataTable("load", $.getDataGridParams("dgTMPoolList"));
  4. }
  5. function DiscountChange(rowindex, rowdata) {
  6. var DiscountPrice = (Number(rowdata.Price * rowdata.Discount)).toFixed(2)
  7. $("#dgTMPoolList").cmsXDataTable("setDataValueByIndex", { rowIndex: rowindex, columnName: "DiscountPrice", newValue: DiscountPrice });
  8. var tableRow = $('#dgTMPoolList').find("tr.row[xRowIndex=" + rowindex + "]");
  9. $(tableRow.find("td")[5]).children().val(DiscountPrice); //设置折合价
  10. }
  11. function QueryTeachingMaterialDropdownList(data) {
  12. reload();
  13. }
  14. function QueryCourseDropdownList(data) {
  15. reload();
  16. }