12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- var grid_list = null;
- var columns=[{ display:"管理单位名称", name: "ADMINISTRATIVE_DEPT_NAME", align: "center", width: "80px"},
- { display:"名称", name: "NAME", align: "center", width: "80px"},
- { display:"物料用途", name: "MATERIAL_USES", align:"center", width: "80px"},
- { display:"规格型号", name: "MODEL",align: "center", width: "80px"},
- { display:"计量单位", name: "MEASUREMENT_UNIT",align: "center", width: "70px"},
- { display:"数量", name: "AMOUNT",align: "center", width: "80px"},
- { display:"仓库仓位信息", name: "WAREHOUSE_SPACE",align: "center", width: "80px"},
- { display:"供应商", name: "SUPPLIERS",align: "center", width: "80px"}
- // { display:"管理单位", name: "ADMINISTRATIVE_DEPT",align: "center", width: "10%"},
- // { display:"所属仓库系统编码", name: "WAREHOUSE_CODE",align: "center", width: "10%"}
- ];
- $(function(){
- $("#close").on("click",function(){
- window.parent.window.removeIframeGrid("infoGrid");
- });
-
- options = { columns:columns, url:"/nwyj/ws/floods/FloodsGridService/getStockByHouseId",
- params:{fd_id:fd_id}, pageSize:7, usePager:false, height:"400px",
- method: "post", width:"99.8%", usePager : true, isScroll: true,
- percentWidthMode : true, alternatingRow : false };
- var url = $.pathname() + "/ws/cockpit/CockpitService/queryMareHouseById";
- var params = { fd_id : fd_id };
- $.request.query(url,params,function(data){
- for(var i in data){
- $('#'+i).html(data[i]);
- };
- });
-
- $(".zb").click(function(){
- if($(this).hasClass("oc_close")){
- $(this).removeClass("oc_close").addClass("oc_open");
- $(this).parent().next().removeClass("show_count");
- // alert($(this).parent().next().hasClass("show_count"))
-
- var other_leg = $(this).attr("toggleid");
- if($("#" + other_leg).hasClass("oc_open")){
- $("#" + other_leg).removeClass("oc_open").addClass("oc_close");
- $("#" + other_leg).parent().next().addClass("show_count");
-
- };
- }else{
- $(this).removeClass("oc_open").addClass("oc_close");
- $(this).parent().next().addClass("show_count");
- // alert($(this).parent().next().hasClass("show_count"))
- };
-
- });
-
- grid_list = $("#maingrid").quiGrid(options);
-
- });
-
|