warehouseSelect.jsp 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html >
  4. <html>
  5. <head>
  6. <title>所有项目列表</title>
  7. <t:base type="jquery,easyui,tools"></t:base>
  8. </head>
  9. <body style="overflow-y: hidden" scroll="no">
  10. <t:datagrid name="selectList" pagination="false" fitColumns="false" title="领料点管理表" actionUrl="publicpageController.do?warehousedatagrid&isauth=${isauth}" idField="id" fit="true" queryMode="group">
  11. <t:dgCol title="主键" field="id" hidden="true" queryMode="single" width="120"></t:dgCol>
  12. <t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="single" width="120"></t:dgCol>
  13. <t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="single" width="120"></t:dgCol>
  14. <t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
  15. <t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="single" width="120"></t:dgCol>
  16. <t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="single" width="120"></t:dgCol>
  17. <t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
  18. <t:dgCol title="领料点编码" field="warehouseCode" hidden="true" queryMode="single" width="140"></t:dgCol>
  19. <t:dgCol title="领料点名称" field="warehouseName" query="true" queryMode="single" width="220"></t:dgCol>
  20. <t:dgCol title="领料点地址" field="warehouseAddress" queryMode="single" width="220"></t:dgCol>
  21. <t:dgCol title="所属项目" field="projectId" dictionary="t_s_depart,id,departname, and org_type != '1' " queryMode="single" width="250"></t:dgCol>
  22. <t:dgCol title="领料点管理员" field="responsiblePerson" dictionary="t_s_base_user,id,realname" queryMode="single" width="100"></t:dgCol>
  23. </t:datagrid>
  24. </body>
  25. </html>
  26. <script type="text/javascript">
  27. //默认选中
  28. /* function initCheck(data){
  29. var ids = "${ids}";
  30. var idArr = ids.split(",");
  31. for(var i=0;i<idArr.length;i++){
  32. if(idArr[i]!=""){
  33. $("#selectList").datagrid("selectRecord",idArr[i]);
  34. }
  35. }
  36. } */
  37. //编写自定义JS代码获得输入框中的值等父级页面调用取值
  38. function getReason(){
  39. var strId="";
  40. var strName="";
  41. var selectRows = $("#selectList").datagrid('getSelections');
  42. for(var i=0;i<selectRows.length;i++){
  43. for(var key in selectRows[i]){
  44. //console.log(key+"======="+selectRows[i][key]);
  45. if(key=="id"){
  46. if(strId.length>0){
  47. strId+=","+selectRows[i][key];
  48. }else{
  49. strId=selectRows[i][key];
  50. }
  51. }
  52. if(key=="warehouseName"){
  53. if(strName.length>0){
  54. strName+=","+selectRows[i][key];
  55. }else{
  56. strName=selectRows[i][key];
  57. }
  58. }
  59. }
  60. }
  61. //var strData='[{"strShiftid":"'+strShiftid+'","strShiftName":"'+strShiftName+'","strShiftType":"'+strShiftType+'"}]';
  62. var strData='[{"strId":"'+strId+'","strName":"'+strName+'"}]';
  63. return strData;
  64. }
  65. </script>