• 假期汇总表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,

  • 相关阅读:
    SQL SERVER 运维日记-数据库备份
    SQL调优日记--并行等待的原理和问题排查
    数据库服务器构建和部署最佳实践
    实战案例--TEMPDB暴涨
    关于TRIM的优化技巧
    SQL SERVER 的前世今生--各版本功能对比
    Sleeping会话导致阻塞原理(下)
    SQL SERVER运维日记--收缩数据库
    SQLSERVER 运维日记-数据库状态
    EXPERT FOR SQL SERVER诊断系列--索引
  • 原文地址:https://www.cnblogs.com/todayforever/p/6640591.html
Copyright © 2020-2023  润新知