cancelpackingnotedo.jsp

来自「运输模块代码」· JSP 代码 · 共 50 行

JSP
50
字号
<%
    /**
     * @ author: RuiLei
     * @ date:   2006-5-20
     */
%>
<%@ page contentType="text/html;charset=GBK" %>
<%@ include file="/IncludeBegin.jsp" %>

<%
    //先从URL取得参数
    String sCode = DataConvert.toRealString(iPostChange, CurPage.getParameter("Code"));
    String alertConfirmDeleteAnother = (String) Configure.getConfigure(sIe_Language, "ShippingPackingNote").get("PROMPT_CONFIRM_DELETE_ANOTHER");
    String alertErrorWrongOperation = (String) Configure.getConfigure(sIe_Language, "ShippingPackingNote").get("ERROR_WRONG_OPERATION");
    String error_wrong_operation = (String) Configure.getConfigure(sIe_Language, "Common").get("ERROR_WRONG_OPERATION");
    String success_operation = (String) Configure.getConfigure(sIe_Language, "Common").get("SUCCESS_OPERATION_COM");
    String failed_operation = (String) Configure.getConfigure(sIe_Language, "Common").get("FAILED_OPERATION");

    if (sCode == null || sCode.length() == 0) {
%>
<script language="javascript">
    alert('<%= alertErrorWrongOperation %>');
    return;
</script>
<%

    }
    String cancelSql = "delete from packnote where rtrim(pnno) = '" + sCode + "'";

    int count = Sqlca.executeSQL(cancelSql);
    if (count > 0) {
%>
<script language="javascript">
    if (confirm('<%= alertConfirmDeleteAnother %>')) {
        sReturn_isEmpty = PopPage("/ShippingManager/PackingNote/cancelPackingNote/EnterCode.jsp?rand=" + randomNumber(), "", "dialogWidth=30;dialogHeight=8;center:yes;status:no;statusbar:no");
    }
</script>
<%
    } else {
%>
<script language="javascript">
    alert('<%= failed_operation %>');
    parent.OpenPage("/Blank.jsp?TextToShow=<%=failed_operation%>", "right", "");
</script>
<%

    }
%>

<%@ include file="/IncludeEnd.jsp" %>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?