cancelstanddo.jsp

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

JSP
42
字号
<%@page contentType="text/html;charset=GBK"%>
<%@include file="/IncludeBegin.jsp"%>

<%
   //先从URL取得参数
    String sCode = DataConvert.toRealString(iPostChange,CurPage.getParameter("Code"));
    String alert1 = (String) Configure.getConfigure(sIe_Language,"Shipping_IM").get("CONFIRM_DELETE_ANOTHER");
    String alert2 = (String) Configure.getConfigure(sIe_Language,"Shipping_IM").get("ERROR_WRONG_OPERATION");
    System.out.println("sCode = " + sCode);
    if (sCode==null || sCode.length()==0 ){
        %>
    <script language="javascript">
       alert('<%= alert2 %>');
       parent.OpenPage("/Blank.jsp?TextToShow=<%=alert2%>", "right", "");
   </script>
<%
        return;
    }

    String cancelSql = "delete from stands where rtrim(standno) = '"+sCode+"'";
    System.out.println("cancelSql = " + cancelSql);
    int count = Sqlca.executeSQL(cancelSql);
    if (count>0){
        %>
   <script language="javascript">
       if (confirm('<%= alert1 %>')){
          sReturn_isEmpty = PopPage("/ShippingManager/InventoryMaintenance/cancelStand/EnterCode.jsp?rand="+randomNumber(),"","dialogWidth=30;dialogHeight=8;center:yes;status:no;statusbar:no");
       } else {
          OpenPage('/Blank.jsp?TextToShow=Please click the list on left','right','');
       }


   </script>
<%
    }



%>


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

⌨️ 快捷键说明

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