zoukankan      html  css  js  c++  java
  • 假期汇总表handler中涉及的基础知识

    1,stringBuffer 的常用方法,append () 方法, public StringBuffer append(boolean b)

    追加内容到当前StringBuffer对象的末尾 ,我们系统中常用来连接数据查询语句

    这是链接 http://www.cnblogs.com/liu-chao-feng/p/5636063.html

    加上代码源码:

    2,left join 会返回左表的所有行,即使右表,没有匹配的行.也就是左表的主键字段记录,会全部返回到新的表中,即使没有查询匹配成功

    知识点详情: http://www.w3school.com.cn/sql/sql_join_right.asp

    3,Context ctx = WafContext.getInstance().getContext();  //这是在引用金蝶自己的bos编程环境

    4,在bos开发工具中,查看源码一个词的源码是按  F3

    5,HolidayPolicyCollection 这个是集合,Collection ,

    6,  import com.kingdee.jdbc.rowset.IRowSet;和

     IRowSet rowSet = DbUtil.executeQuery(ctx, oqlb.toString());就是定义了对数据操作的对象.

    JDBC快速入门教程: http://www.yiibai.com/jdbc/jdbc_quick_guide.html

    7,info 其实就是information 消息的简称 ,具体的类,有不同的方法,有不同的含义.

    import com.kingdee.eas.hr.ats.HolidayPolicySetInfo;  //设置信息

    import com.kingdee.eas.hr.ats.HolidayTypeInfo;  //类型信息

    import com.kingdee.eas.hr.ats.HolidayPolicyInfo;

    8.

    得到记录集合的方式  通过实体工厂(xxxEntryFactory) 

    FilterInfo filterInfo = new FilterInfo();
       
        filterInfo.getFilterItems().add(new FilterItemInfo("person.id", perSet, CompareType.INCLUDE));
        entityViewInfo.setFilter(filterInfo);
        PersonPositionCollection c = null;
        try
        {
          c = PersonPositionFactory.getRemoteInstance().getPersonPositionCollection(entityViewInfo);
        }
        catch (BOSException e1)
        {
          e1.printStackTrace();
        }
        return c;
      }

    9. LinkedHashmap 的特点是put进去的对象位置未发生变化,而HashMap会发生变化.

    具体描述:http://www.cnblogs.com/hubingxu/archive/2012/02/21/2361281.html

    10.数据库工具类 :com.kingdee.eas.util.app.DbUtil  ,()

    11.DbUtil用法。com.kingdee.eas.util.app.DbUtil  (1)查询操作 
     StringBuffer sql = new StringBuffer();
         sql.append("select fid from t_cas_ztdemo"); 
     
    //返回结果集,结果集的取值和JAVA  ResultSet 相同
        
    IRowSet rowSet = DbUtil.executeQuery(ctx, sql.toString()); (2) 增加、删除、修改操作调用  DbUtil. Execute().

    12,


     

    13,     消息提示框

        MsgBox.showInfo("YES"); //就一个yes和确定

    MsgBox.showConform2("yes"); //除开yes和确定 ,多了,取消

    MsgBox.showConform3("yes"); //除开yes和确定 ,取消 多了否

      MsgBox.showCollectionError("YES");

    MsgBox.showConfirm3a("YES", "error"); 

    14.

    15,

  • 相关阅读:
    CombineTextInputFormat 案例
    FileInputFormat 和 CombineTextInputFormat 切片机制
    MapTask 并行度决定机制
    微信小程序tab切换时echarts不显示问题 及使用 小程序中使用echarts图表显示模糊
    微信小程序添加卡券到微信卡包,使用wx.addCard()方法传参及整体流程
    React 项目结构和组件命名规范
    微信小程序实现分享至朋友圈的功能来啦
    MongoDB简介
    NoSQL 简介
    Redis 主从复制、哨兵和集群原理与区别
  • 原文地址:https://www.cnblogs.com/todayforever/p/6640591.html
Copyright © 2011-2022 走看看