dpw70180 2010-11-25 07:56
浏览 70
已采纳

使用jqGrid生成发票

i want to use jqGrid to generate invoice system in php

what i need, i fill the text boxes for invoice items and press add, item should be added in jqGrid.

and if i need i can be able to remove any item from grid.

and at the end i save that data to mysql.

Thanks

  • 写回答

1条回答 默认 最新

  • doulun1939 2010-11-25 10:26
    关注

    You formulate your question to general. First of all jqGrid support local data editing or it can do ajax requests for your to post the modified data (also the new row or the id of the roe which should be deleted) to the server. jqGrid can also fill the forms to add the data for you.

    I recommend you before all to look at the official jqGrid demo and choose on the tree the items "Row Editing" / "Input types" to see the possibilities of the inline editing and choose on the same demo the items "Live Data Manipulation" / "Navigator" to see how to use form editing. After the user finish the row editing and press "Enter" (in case of the inline editing) or "Submit" button (in case of the form editing) the information about the row added/changed/deleted will be posted to the URL defined by the editurl parameter of the jqGrid. Together with the row data, as the additional parameter, will be posted oper which will be "add", "edit" or "del" string and the id which can be "_empty" in case of adding a new row. In case of adding of the new row your server code have to return the id of the new added row. It is very helpful to use Fiddler or Firebug to see what will be send to and returned from the server during the row editing.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度