| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <!DOCTYPE html >
- <html>
- <head>
- <title>所有项目列表</title>
- <t:base type="jquery,easyui,tools"></t:base>
- </head>
- <body style="overflow-y: hidden" scroll="no">
- <t:datagrid name="selectList" pagination="false" fitColumns="false" title="领料点管理表" actionUrl="publicpageController.do?warehousedatagrid&isauth=${isauth}" idField="id" fit="true" queryMode="group">
- <t:dgCol title="主键" field="id" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="领料点编码" field="warehouseCode" hidden="true" queryMode="single" width="140"></t:dgCol>
- <t:dgCol title="领料点名称" field="warehouseName" query="true" queryMode="single" width="220"></t:dgCol>
- <t:dgCol title="领料点地址" field="warehouseAddress" queryMode="single" width="220"></t:dgCol>
- <t:dgCol title="所属项目" field="projectId" dictionary="t_s_depart,id,departname, and org_type != '1' " queryMode="single" width="250"></t:dgCol>
- <t:dgCol title="领料点管理员" field="responsiblePerson" dictionary="t_s_base_user,id,realname" queryMode="single" width="100"></t:dgCol>
- </t:datagrid>
- </body>
- </html>
- <script type="text/javascript">
- //默认选中
- /* function initCheck(data){
- var ids = "${ids}";
- var idArr = ids.split(",");
- for(var i=0;i<idArr.length;i++){
- if(idArr[i]!=""){
- $("#selectList").datagrid("selectRecord",idArr[i]);
- }
- }
- } */
-
- //编写自定义JS代码获得输入框中的值等父级页面调用取值
- function getReason(){
- var strId="";
- var strName="";
- var selectRows = $("#selectList").datagrid('getSelections');
- for(var i=0;i<selectRows.length;i++){
- for(var key in selectRows[i]){
- //console.log(key+"======="+selectRows[i][key]);
- if(key=="id"){
- if(strId.length>0){
- strId+=","+selectRows[i][key];
- }else{
- strId=selectRows[i][key];
- }
- }
-
- if(key=="warehouseName"){
- if(strName.length>0){
- strName+=","+selectRows[i][key];
- }else{
- strName=selectRows[i][key];
- }
- }
-
- }
- }
- //var strData='[{"strShiftid":"'+strShiftid+'","strShiftName":"'+strShiftName+'","strShiftType":"'+strShiftType+'"}]';
- var strData='[{"strId":"'+strId+'","strName":"'+strName+'"}]';
- return strData;
- }
-
-
- </script>
|