beantool.map2Bean(map,obj)

beantool.map2Bean(map,obj)

beantool.map2Bean(map,obj)

beantool.map2Bean(map,obj)

<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%
    String pltmComCdeDW= "configure.platform.editPltmComCde_DW";
    String CPkId = request.getParameter("CPkId");
%>
<html>
    <head>
        <title>行协平台通用代码编辑</title>
        <ialabour:base />
        <script>

    //初始化,获取当前要修改的信息
    function init() {
        var CPkId = "<%=CPkId%>";
        if (CPkId != null && CPkId != '') {
            tool.sendXmlByServiceNoCheck(["<%=pltmComCdeDW%>"],"pltmComCdeBizAction","getPltmComCdeById","<%=CPkId%>")
        }
    } 

    //保存(新增/更新)
    function saveCommCde() {
        if (tool.sendXmlByService(["<%=pltmComCdeDW%>"],"pltmComCdeBizAction","saveOrUpdatePltmComCde")) {
            tool.alert(tool.getResultMsg());
            window.returnValue = true;
            self.close();
        } else {
            var msg = tool.getResultMsg();
                    if(msg != "")
                       tool.alert(tool.getResultMsg());
        }
    }

    function addtest(){
        tool.insertRow(["<%=pltmComCdeDW%>"], [], true);
        var rowNum = tool.getRowNum(["<%=pltmComCdeDW%>"]);
        tool.setAttrValue(["<%=pltmComCdeDW%>"], 'CCde', "eeee", rowNum);
    }

</script>
    </head>
    <ialabour:body onload="init()">
        <ialabour:form action="" method="POST">
            <ialabour:dataWindow dataWindowName="<%=pltmComCdeDW%>"
                createWithNoData="true">
                <modification type="GRID_EDIT" title="协会平台通用代码编辑" showFilter="false"        width="630">
                    <buttons>
                    <!-- onclick="addCoinsurer()" -->
                        <button beanId="-" beanName="-" isHidden="false" methodId="-" onclick="addtest()" name="btn_add"  type="insert" value="" />
                        <button beanId="-" beanName="-" isHidden="false" methodId="-" name="btn_add"  type="delete" value="" />
                        <button type="custom" value="保 存" onclick="saveCommCde()" />
                        <button type="custom" value="关 闭" onclick="self.close()" />
                    </buttons>
                </modification>
            </ialabour:dataWindow>
        </ialabour:form>
    </ialabour:body>
</html>
上一篇:You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法


下一篇:Android 微信UI 、点击操作