如何学好java

如何学好java,其实很简单,只要用心体会,慢慢积累!
posts - 106, comments - 7, trackbacks - 0, articles - 3
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

PL/SQL Developer是一个集成开发环境,专门面向Oracle数据库存储程序单元的开发。如今,有越来越多的商业逻辑和应用逻辑转向了Oracle Server,因此,PL/SQL编程也成了整个开发过程的一个重要组成部分。PL/SQL Developer侧重于易用性、代码品质和生产力,充分发挥Oracle应用程序开发过程中的主要优势。PL/SQL(Procedural Language/SQL)是一种过程化语言,属于第三代语言,它与C、C++、Java等语言一样关注于处理细节,可以用来实现比较复杂的业务逻辑。它允许SQL的数据操纵语言和查询语句包含在块结构(block_structured)和代码过程语言中,使PL/SQL成为一个功能强大的事务处理语言。在甲骨文数据库管理方面,PL/SQL是对结构化查询语言(SQL)的过程语言扩展。PL/SQL的目的是联合数据库语言和过程语言。PL/SQL的基本单位叫做一个区段,由三个部份组成:一个申明部份,一个可运行部份,和排除-构建部分。 因为PL/SQL允许混合SQL申明和过程结构,因此可以在将申明发送到甲骨文系统去执行之前使用PL/SQL区段和副程序来组合SQL申明,没有PL/SQL,甲骨文需要就每次处理SQL申明,在网络环境中,这将影响交通流量,而且增加响应时间。PL/SQL区段只被编译一次并且以可运行的形式储存,以降低响应时间。
Enhancements in PL/SQL Developer 8.0.4
======================================
* SQL Window would always print SQL text, disregarding "Print SQL"
  preference
* Searching within special text (strings, comments) could be slow
* Key Configuration preference could reset to default instead of
  using the defined keys when using multiple preference sets
* Export to Excel would interpret data beginning with = as formula
* Column names starting with a digit were not implicitly quoted in
  SQL statements
* Fixed issue with search in selection where incorrect characters
  could be replaced
* Duplicate items removed from description window
* View/Edit Data for tables with an owner with special characters
  would not add quotes to the owner
* UTFE characters were displayed incorrectly when Unicode support
  was enabled
* Loading the Macro Library could fail on Windows 7/Vista,
  resulting in a "list index out of bounds" error message
* Debugger could hang after an exception on oracle11g
* Code Assistant can now complete database link names
* Copy all to Excel in the SQL Window would not have correct
  formatting on the second sheet
* To-Do Item List was not up-to-date when opening a package spec &
  body

下载地址如下
源程序:http://allroundautomations.swmirror.com/plsqldev804.exe
语言文件及手册:http://www.allroundautomations.com/plsqldevlang/80/chinese.exe
注册信息如下
product code:kfqtle46lqzbbvlzuvsrutst66yn6m7kl8s2trrtsapr
password:xs374ca
serial number:1775341736

posted @ 2012-01-18 18:00 哈希 阅读(319) | 评论 (0)编辑 收藏

<table>
           <tr>
            <td><div style="margin-top:7px;float:left;">项目进度:</div></td>
            <td>
             <div style="float:left;background-color:#dde5ea;cursor:hand;margin-top:6px;float:left;width:120px;; height:20; border:1px solid #C7DBF4;" >
            <div style="width:20%; height:20px; background-color: #33CC00; float:left"></div>
        </div>
            </td>
           </tr>
          </table>


<table>
           <tr>
            <td><div style="margin-top:7px;float:left;">项目进度:</div></td>
            <td>
             <div onclick="viewProcess('<%=baseRecord.getString("ID","")%>')" style="float:left;background-color:#dde5ea;cursor:hand;margin-top:6px;float:left;width:120px;; height:20; border:1px solid #C7DBF4;" >
            <div style="width:<%=baseRecord.getString("PROGRESS","0") %>%; height:20px; background-color: #33CC00; float:left"></div>
        </div>
            </td>
           </tr>
          </table>

posted @ 2012-01-17 15:15 哈希 阅读(186) | 评论 (0)编辑 收藏

<Context path="/roeee" reloadable="true" docBase="C:\Program Files\apache-tomcat-5.5.33\webapps\roeee">
 <Resource
      name="jdbc/ROEEE"
      type="javax.sql.DataSource"
      password="icss"
      driverClassName="oracle.jdbc.driver.OracleDriver"
      maxIdle="2"
      maxWait="5000"
      username="recjl"
      url="jdbc:oracle:thin:@10.17.10.245:1521:AEG"
      maxActive="4"/>
   <Resource
      name="ResourceOne/DataSource"
      type="javax.sql.DataSource"
      password="icss"
      driverClassName="oracle.jdbc.driver.OracleDriver"
      maxIdle="2"
      maxWait="5000"
      username="recjl"
      url="jdbc:oracle:thin:@10.17.10.245:1521:AEG"
      maxActive="4"/>
</Context>


放在apache-tomcat-5.5.33\conf\Catalina\localhost  路径下

posted @ 2012-01-09 16:22 哈希 阅读(152) | 评论 (0)编辑 收藏


从加入中金黄金项目组以来将近一个月了,在这期间,我对自己所做模块业务非常熟

悉了,通过这段时间的开发,对项目中所用到的基本技术也熟悉了。在开发中个人技

术不是很全面遇到问题解决时间较长,经验还是需要积累。在与北京交流过程中有时

还是不能及时得到反馈,需要消耗时间。项目前期设计不够合理的地方在开发中可能才会遇到。

posted @ 2012-01-03 15:58 哈希 阅读(126) | 评论 (0)编辑 收藏

数字标签实例

Double num = new Double("123456789012.3456");

整数带千分符显示:

<fmt :formatNumber value="${num}" type="number"/>

整数显示:

<fmt :formatNumber value="${num}" pattern="#" type="number"/>

两位小数舍入显示:

<fmt :formatNumber value="${num}" pattern="#.##" type="number"/>

两位小数舍入,不足两位小数补 0 显示:

<fmt :formatNumber value="${num}" pattern="#.00" type="number"/>

货币显示:(与 number 类似扩展 pattern 

<fmt :formatNumber value="${num}" type="currency"/>

百分数显示:(与 number 类似扩展 pattern 

<fmt :formatNumber value="${num}" type="percent"/>

实例结果

整数带千分符显示: 123,456,789,012.346

整数显示: 123456789012

两位小数舍入显示: 123456789012.35

两位小数舍入,不足两位小数补 0 显示: 123456789012.35

货币显示:¥ 123,456,789,012.35

百分数显示 12,345,678,901,235%

posted @ 2011-12-28 01:08 哈希 阅读(190) | 评论 (0)编辑 收藏

{sName: "productId","bSortable":false, "sColumnDataType":'link',
        "sColumnDataTypePro":{'url':"javascript:findmodel('<c:out value="${context_path }"/>/k4_oldGoldStorsge/oldGoldDetail/{id}');",'name':'productId'},aTargets: [2]},


function findmodel(url){
      var rs = window.showModalDialog(url,"dialogWidth=" + 500 + "px;dialogHeight=" + 90 + "px");
 }

posted @ 2011-12-24 15:58 哈希 阅读(190) | 评论 (0)编辑 收藏

//采购申请单——保存状态
 public void updateSpStatus() {
  //要更新的状态 1、待业务审核 2、待财务审核 3、审核退回  4、入款
  String statusId=request().getParameter("status");
  //要更新的id
  String[] idStrings=request().getParameterValues("id");
  //吧要更新的确认单放入集合一起更新
  List<PurchaseAddMoney> list=new ArrayList<PurchaseAddMoney>();
  for(int i=0;i<idStrings.length;i++){
   PurchaseAddMoney pur=new PurchaseAddMoney();
   pur.setId(idStrings[i]);
   pur.setStatusId(statusId);
   //如果是财务确认,要更新财务确认日期
   if(statusId.equals("j208")){    
    //更新完成审批时间  
    pur.setFinishApproveDate(CommonHelper.getCreateTimeToString());
   }
      
   list.add(pur);
  }
  //批量更新到数据库  
  purchaseAddService.batchUpdate(list);
  this.render(SUCCESS);
 }


public int[] batchUpdate(List list) {  
  return super.batchUpdate(list);
 }

<form id="purchaseAddApply" name="purchaseAddApply" method="post" action="purchaseAddUpdateStatus">

posted @ 2011-12-21 23:01 哈希 阅读(698) | 评论 (0)编辑 收藏

public void changeStates(String states,String id){
  Map<String,String> parameter = new HashMap<String,String>();
  parameter.put("id", id);
  parameter.put("type", states);
  Map<String,Object> result = bankSettelService.updateStates(parameter);  
  this.printHtml(result.get("count"));
 }


/**
  * <p>修改结算表状态
  * @param parameter
  * @return
  */
 public Map<String,Object> updateStates(Map<String,String> parameter){
  Query query = this.getRepository().createQuery();
  Map<String,Object> result = new HashMap<String,Object>();
  List<Object> sqlParam = new ArrayList<Object>();
  StringBuilder sql = new StringBuilder();
  String[] arrParam = parameter.get("id").split(",");
  String paramIn = "'";//回购单编号
  String type = "";//回购单修改后状态
  int count = 0; //修改行数
  for(String param:arrParam){
   paramIn += param + "','";
  }
  paramIn = paramIn.substring(0,paramIn.length() - 2);
  
  //回购单状态
  if("1".equals(parameter.get("type"))){
   type = REPUR_SETTEL_STATUS03; //待付款
  } else if("2".equals(parameter.get("type"))){
   type = REPUR_SETTEL_STATUS06; //审批退回
  } else if("3".equals(parameter.get("type"))){
   type = REPUR_SETTEL_STATUS04; //作废
  } else if("4".equals(parameter.get("type"))){
   type = REPUR_SETTEL_STATUS05; //已付款
  }
  //修改状态
  if(!StringUtils.isEmpty(type)){
   Update update = new Update();
   //更新回购结算单状态  如果为已付款 同时要更新回购单状态为已付款
   if("4".equals(parameter.get("type"))){
    //更新回购结算单状态
    update.set("BUYBACKSTATEMENT_STATUS = '" + type + "'")
     .set("PAYMENTSTATUS = '1'")
     .set("PAYMENTDATE = '" + CommonHelper.getCreateTimeToString()+"'")
     .update("TB_E_BUYBACKSTATEMENT")
     .where("ID in("+paramIn+")");    
    
    //查看对应的客户回购单客户结算回购状态是否为已付款,如果是,要更改回购单状态已付款
    sql.append(updateBankReStatusSql);
    sql.append("and ID in(" + CL_LF);
    sql.append(getSettleStatusSql);
    sql.append("AND BUYBACKSTATEMENT.ID in(" + paramIn + ")" + CL_LF);
    sql.append(")" + CL_LF);
    sql.append("AND FINANCEAFFIRMSTATSUS = ?" + CL_LF);
    sqlParam.add(REPUR_STATUS09);//回购单状态为已付款
    sqlParam.add(CREPUR_STATUS04);//客户回购单结状态为已付款
    query.execute(sql.toString(),sqlParam);
   }else{
    update.set("BUYBACKSTATEMENT_STATUS = '" + type + "'")
    .update("TB_E_BUYBACKSTATEMENT")
    .where("ID in("+paramIn+")");
   }
   count = query.execute(update);
  }
  result.put("count", count);
  return result;
 }


function changeStates(flag) {
  var checkValues = getCoulmnValue(oTable,'key');
  if(isEmpty(checkValues)){
   showInfo("请选择数据");
   return false;
  } else {
   if(flag == 1){
    if(confirm('确认审批是否通过?')){
     saveStates(flag,checkValues);
    }
   }else if(flag == 4){
    if(confirm('确认付款?')){
     saveStates(flag,checkValues);
    }
   }else{
    saveStates(flag,checkValues);
   }     
  }
 } 
 //审批数据提交
 function saveStates(flag,checkValues){
  $.ajax({
     type: 'get',
     url: "<c:url value='/j8_bankSettle/changeStates/'/>"+flag+"/"+checkValues,
     dataType: 'html',
     success: function(data){        
      if(data > 0){
        showInfo("操作成功");       
     query();      
      }else{
        showError("操作失败"); 
     return false;
      }
     }
  });
 }



<c:choose>
       <c:when test="${optype eq 'approval'}">
        <button class="icon-edit" onclick="changeStates(1);">
            审批通过
        </button>
        <button class="icon-edit" onclick="changeStates(2);">
           审批退回
        </button>
        <button class="icon-edit" onclick="changeStates(3);">
           作废
        </button>
       </c:when>
       <c:when test="${optype eq 'payment'}">
        <button class="icon-edit" onclick="changeStates(4);">
            付款
        </button>        
       </c:when>
       </c:choose> 



{ "sName": "id","sColumnDataType":"checkbox","sClass": "keyclass",
            "sColumnDataTypePro":{'name':'key'},"bSortable": false, "aTargets": [ 1 ]},

posted @ 2011-12-21 22:17 哈希 阅读(169) | 评论 (0)编辑 收藏

<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>


 $(function(){$("#sendAddress").change(function(){
 
    var sendAddress=$("#sendAddress").val();
    getCustomerInfo(sendAddress);
    });
  });
  //出货方信息填充
  function getCustomerInfo(id){
       //alert(id);
        $.ajax({
             type: 'get',
             url: "
<c:url value='/k4_oldGoldStorsge/getCustomerInfoByAddressId/'/>"+id,
             dataType: 'json',
             success: function(data) {
                alert(data.name);
                $("#supplyer").val(data.linkman);   
                $("#supplyIdentityCard").val(data.identification);        
                $("#supplyerMobile").val(data.mobile);     
                $("#supplyerPhone").val(data.tel); 
                //$("#").val(data.);                        
            }
        });
    }
    
    
    
    $(function(){$("#outStorageList").change(function(){
 
    var outStorageList=$("#outStorageList").val();
    //alert(outStorageList);
    //getCustomerInfo(sendAddress);
     getAddressList(outStorageList)
    });
  });
    
    
    
    
    function getAddressList(id){
       //alert(id);
        $.ajax({
             type: 'get',
             url: "
<c:url value='/k4_oldGoldStorsge/getAddressByCustomerId/'/>"+id,
             dataType: 'html',
             success: function(data) {
              var address=eval(data);
             //遍历取值             
              $.each(address,function(i,n){
                 $("#getAddress").append($("
<option value='"+address[i].id+"'></option>").text(address[i].address));  
              });
            }
        });
    }
    
    
    
     $(function(){$("#getAddress").change(function(){
         var sendAddress=$("#getAddress").val();
         getMenInfo(sendAddress);
       });
     });
    
    
    
    function getMenInfo(id){
        $.ajax({
             type: 'get',
             url: "
<c:url value='/k4_oldGoldStorsge/getCustomerInfoByAddressId/'/>"+id,
             dataType: 'json',
             success: function(data) {
                $("#receiver").val(data.linkman);   
                $("#receiverIdentityCard").val(data.identification);        
                $("#receiverMobile").val(data.mobile);     
                $("#receiverPhone").val(data.tel); 
                //$("#").val(d
/**
     * 收货方ID获取地址信息
     * 
@return
     
*/

    
public void getAddressByCustomerId(String id) {
        List
<Address> list=new ArrayList<Address>();
        list
=oldGoldStorageService.findAddressList(id);
        StringBuilder json 
= new StringBuilder();
        json.append(
"[");
        
for (int i = 0; i < list.size()-1; i++{
            json.append(
"{'id':'").append(list.get(i).getId()).append("',");
            json.append(
"'address':'").append(list.get(i).getAddressDeatil()).append("'},");
        }

        json.append(
"{'id':'").append(list.get(list.size()-1).getId()).append("',");
        json.append(
"'address':'").append(list.get(list.size()-1).getAddressDeatil()).append("'}");
        json.append(
"]");    
        System.out.println(json);
        
this.renderJSON(json.toString());
    }
ata.);                        
            }
        });
    }
    
    
    
    
    


  1. <script type="text/javascript">   
  2. $(document).ready(function(){   
  3.  var url='TypeGet?d='+Math.random();/*使用随机数解决jquery的缓存问题*/  
  4.  $.get(url,   
  5.    function dedit(data){   
  6.     var m=eval(data);   
  7.         $.each(m, function(i) {   
  8.            //alert(s[i]);   
  9.            $('#pselect').append('<option value="'+m[i].no+'">' + m[i].name+ '</option>');   
  10.   
  11.      });   
  12.   
  13. });    
  14. </script>  

  1. protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {   
  2.   // TODO Auto-generated method stub   
  3.   request.setCharacterEncoding("UTF-8");/*解决中文乱码的问题*/  
  4.    response.setCharacterEncoding("UTF-8");   
  5.       
  6.   ArrayList result=new ArrayList();   
  7.   Connection conn=null;   
  8.   Statement st=null;   
  9.   ResultSet rs=null;   
  10.      
  11.   try{   
  12.       
  13.    conn=DBConnection.getConnection();    
  14.    st=conn.createStatement();   
  15.    rs=st.executeQuery("select * from ddpms_devicetype order by name");   
  16.    while(rs.next()){   
  17.     DevicetypeBean dt=new DevicetypeBean();   
  18.     dt.setNo(rs.getInt("no"));   
  19.     dt.setName(rs.getString("name"));   
  20.     result.add(dt);   
  21.    }   
  22.   }catch(Exception e){   
  23.    e.printStackTrace();   
  24.   }   
  25.   finally{   
  26.    try{   
  27.     rs.close();   
  28.     st.close();   
  29.     conn.close();   
  30.    }catch(Exception e){   
  31.     e.printStackTrace();   
  32.    }   
  33.   }   
  34.    response.setContentType("text/html");   
  35.    PrintWriter out= response.getWriter();     
  36.   
  37.    out.write(toString(result));   
  38.  }   
  39.  public String toString(ArrayList s)      
  40.     {      
  41.         String str="[";   
  42.         for(int i=0;i<s.size();i++){   
  43.          DevicetypeBean dt=(DevicetypeBean)s.get(i);   
  44.          str+="{'no':'"+dt.getNo()+"','name':'"+dt.getName()+"'},";   
  45.         }   
  46.         str=str.substring(0,str.length()-1)+"]";    
  47.   return str;     
  48.     }  
$(function(){$("#logisticsDistributionBook").click(function()
        {
      var checkValues=getCoulmnValue(oTable, 'id');
     // alert(checkValues);
      var aoData = new Array();
      aoData.push( { "name": "ids", "value":checkValues } );
      if(isEmpty(checkValues)){
           showInfo("请选择需要处理的数据行!");
   return false;
        }else if(!isEmpty(checkValues)){
         $.ajax({
          type: 'post',
          url: "<c:url value='/k4_oldGoldStorsge/checkDispatchStatusId/make/1'/>",
          dataType: 'json',
          data: aoData,
          success: function(data) {
          //alert(data);
          if(parseInt(data)>=1){
             //alert(data);
             showInfo("必须全部选择没有生成过物流配送书的数据!");
             return;      
             }else if (checkProductId()) {
            getHidVal(checkValues);   
            }                 
            }
             });
        }
       });
    });

public void checkDispatchStatusId(String type, String id) {
  String myid = request().getParameter("ids");
  String[] ids = myid.split(",");
  int count = 0;
  if ("make".equals(type)) {
   count = oldGoldStorageService.findNumofDispatch(myid);
  }
  this.printHtml(count);
 }

这两篇也不错!
http://tochal.iteye.com/blog/722265

http://blog.csdn.net/huhai463127310/archive/2009/11/29/4901654.aspx

posted @ 2011-12-21 15:49 哈希 阅读(288) | 评论 (0)编辑 收藏

--修改TB_C_ACCOUNT_INFO中金账户信息,增加字段:收款人名称、收款人电话。
--返厂单表 TB_E_BACKFACTORY_BILLS 删除字段:基础金价、产成品ID  CHAR(14 BYTE)
--alter table TB_E_BACKFACTORY_BILLS drop column CREATETIME;  
--alter table TB_E_BACKFACTORY_BILLS add CREATETIME CHAR(14 BYTE) not null;
--2 alter table TB_E_BACKFACTORY_BILLS drop column FINISH_PRODUCT_ID;
alter table TB_E_BACKFACTORY_BILLS add FACTORY VARCHAR2(64) not null;
--3alter table TB_E_BACKFACTORY_BILLS add PAYEENAME VARCHAR2(64) not null;
 --alter table TB_E_BACKFACTORY_BILLS add FACTORY VARCHAR2(64);
 --alter table TB_E_BACKFACTORY_BILLS add description VARCHAR2(64);
--comment on column tb_e_backfactory_bills.description is '备注';     "CREATETIME"            CHAR(14 BYTE) NOT NULL ENABLE,
--4 alter table TB_E_BACKFACTORY_BILLS add PAYEETEL VARCHAR2(30) not null;
--5 alter table TB_E_BACKFACTORY_BILLS add ACCOUNT VARCHAR2(64) not null;
--6 alter table TB_E_BACKFACTORY_BILLS add RETURNDATE CHAR(14) not null;
--7 comment on column TB_E_BACKFACTORY_BILLS.PAYEENAME is '收款人名称';
--8 comment on column TB_E_BACKFACTORY_BILLS.PAYEETEL is '收款人电话';
--9 comment on column TB_E_BACKFACTORY_BILLS.ACCOUNT is '银行帐号';
--10 comment on column TB_E_BACKFACTORY_BILLS.RETURNDATE is '返厂日期';
--11alter table TB_L_FINPRODU_FINISH_PRODUCT drop column REMARK
--12 alter table TB_L_FINPRODU_FINISH_PRODUCT modify AGENCYBUYPRICE default 0 not null;
--13 alter table TB_L_FINPRODU_FINISH_PRODUCT add AGENCYBUYTOTAL NUMBER(15,4) default 0 not null;
--14 alter table TB_L_FINPRODU_FINISH_PRODUCT add BASEPRICE NUMBER(15,4) default 0 not null;
--15 alter table TB_L_FINPRODU_FINISH_PRODUCT add BASEPRICETOTAL NUMBER(15,4) default 0 not null;
--16 comment on column TB_L_FINPRODU_FINISH_PRODUCT.AGENCYBUYTOTAL is '代回购价格合计';
--17 comment on column TB_L_FINPRODU_FINISH_PRODUCT.BASEPRICE is '基础价格';
--18comment on column TB_L_FINPRODU_FINISH_PRODUCT.BASEPRICETOTAL is '基础价格合计';
--0alter table TB_C_ACCOUNT_INFO add RECEIVERNAME VARCHAR2(64) not null;
--alter table TB_C_ACCOUNT_INFO add RECEIVERTELEPHONE VARCHAR2(64) ;
---comment on column TB_C_ACCOUNT_INFO.RECEIVERNAME is '收款人名称';

posted @ 2011-12-17 16:00 哈希 阅读(143) | 评论 (0)编辑 收藏

仅列出标题
共11页: 上一页 1 2 3 4 5 6 7 8 9 下一页 Last