BOS笔记
- 格式:doc
- 大小:151.00 KB
- 文档页数:30
初一上册英语重点笔记一、单词部分。
1. 名词。
- 可数名词复数变化规则。
- 一般情况加 -s,如book - books,pen - pens。
- 以s,x,sh,ch结尾的加 -es,如bus - buses,box - boxes,brush - brushes,watch - watches。
- 以辅音字母+y结尾的,变y为i加 -es,如baby - babies。
- 以f或fe结尾的,变f或fe为v加 -es,如knife - knives,leaf - leaves(但也有特殊情况,如roof - roofs)。
- 重点名词。
- family(家庭;家人):作“家庭”时是单数,作“家人”时是复数概念。
例如:My family is a big one.(我的家庭是个大家庭。
)My family are all at home.(我的家人都在家。
)- friend(朋友):复数形式是friends,make friends with sb.(和某人交朋友)。
- school(学校):at school(在学校,指在上学),go to school(去上学)。
- class(班级;课):in class(在课堂上),have classes(上课)。
2. 代词。
- 人称代词主格和宾格。
- 主格:I(我),you(你;你们),he(他),she(她),it(它),we(我们),they(他们;她们;它们)。
- 宾格:me,you,him,her,it,us,them。
例如:I like him.(我喜欢他。
主格I作主语,宾格him作宾语)- 物主代词。
- 形容词性物主代词:my(我的),your(你的;你们的),his(他的),her (她的),its(它的),our(我们的),their(他们的;她们的;它们的)。
例如:This is my book.(这是我的书。
形容词性物主代词my修饰名词book)- 名词性物主代词:mine,yours,his,hers,its,ours,theirs。
box的用法总结大全(学习版)编制人:__________________审核人:__________________审批人:__________________编制学校:__________________编制时间:____年____月____日序言下载提示:该文档是本店铺精心编制而成的,希望大家下载后,能够帮助大家解决实际问题。
文档下载后可定制修改,请根据实际需要进行调整和使用,谢谢!并且,本店铺为大家提供各种类型的经典范文,如英语单词、英语语法、英语听力、英语知识点、语文知识点、文言文、数学公式、数学知识点、作文大全、其他资料等等,想了解不同范文格式和写法,敬请关注!Download tips: This document is carefully compiled by this editor.I hope that after you download it, it can help you solve practical problems. The document can be customized and modified after downloading, please adjust and use it according to actual needs, thank you!In addition, this shop provides various types of classic sample essays, such as English words, English grammar, English listening, English knowledge points, Chinese knowledge points, classical Chinese, mathematical formulas, mathematics knowledge points, composition books, other materials, etc. Learn about the different formats and writing styles of sample essays, so stay tuned!box的用法总结大全box的意思n. 盒,箱状物,包厢,哨房vt. 把…装入盒[箱,匣]中vt.& vi. 拳击变形:过去式: boxed;现在分词:boxing;过去分词:boxed;box用法box可以用作名词box的基本意思是“盒,匣,箱”,多指由木板、皮子、纸、铁皮等制成供装东西用的方形器具,有盖儿,是可数名词。
八年级下册英语笔记unit6
一、重要词汇和短语
1.单词:schoolbag,pen,pencil,pencilbox,book,eraser,ruler,crayon
2.短语:by bus,on foot,near the school,play soccer,draw pictures,go to school
二、重点语法结构
1.一般现在时第三人称单数用法。
2.there be句型的肯定句、疑问句和否定句。
3.some和any的用法。
三、重要对话和练习
1.练习题:包括填空、选择、判断等,要重点关注动词、名词、形容词的使用方法。
2.对话练习:学生之间、师生之间的日常对话,重点练习有关学校、交通、文具等方面的对话。
四、文化背景知识
介绍西方学校和学生出行的习惯和方式,了解西方文化中的学校和文具的概念和用法。
五、注意事项
1.正确使用语法结构,注意时态、人称、数等问题。
2.正确使用单词和短语,注意拼写和发音。
3.在日常对话和练习中,注意表达的准确性和得体性。
4.对于困难问题,要积极寻求帮助,及时解决。
总的来说,八年级下册英语笔记Unit 6的重点在于语法、词汇和对话练习,我们要认真学习,掌握好这些基础知识,为以后的英语学习打下坚实的基础。
三年级上册英语重点笔记一、单词部分。
1. 文具类。
- pen(钢笔):This is a pen. I write with a pen.- pencil(铅笔):My pencil is long.- pencil - box(铅笔盒):I put my pencils in the pencil - box. - ruler(尺子):Use the ruler to draw a straight line.- eraser(橡皮):If you make a mistake, you can use an eraser.2. 颜色类。
- red(红色):I like the red flower.- green(绿色):The tree is green.- blue(蓝色):The sky is blue.- yellow(黄色):The banana is yellow.- black(黑色):The blackboard is black.- white(白色):The cloud is white.3. 身体部位类。
- head(头):Touch your head.- face(脸):Wash your face.- nose(鼻子):Your nose can smell.- mouth(嘴):Open your mouth.- eye(眼睛):Close your eyes.- ear(耳朵):My ear can hear.4. 动物类。
- cat(猫):The cat is cute.- dog(狗):A dog is our friend.- duck(鸭子):The duck can swim.- pig(猪):The pig is fat.- bear(熊):The bear is big.5. 其他常见单词。
- book(书):I read a book.- bag(书包):I carry my bag to school.- school(学校):We go to school every day.二、句型部分。
1、网络准备开两个网卡,第一个host only,用来跟windows主机通信,第二个NAT,用来通过windows连接到internet。
2、挂载Gentoo镜像,启动Virtualbox,以gentoo登录到LiveCD。
3、liveCD模式下passwd重新设置root密码4、net-setup ethX(X代表第几个网卡,X=0,1..)设置网络,假如我的网络是192.168.1.16,则设置如下:Host-only选择2静态IP,NAT选择1DHCP。
以下保持为,可以不填引时网卡1配置成功,用ifconfig查看配置信息:同样,配置好网卡2,只是网卡2要使用DHCP配置,以便能连上Internet。
网卡2配置信息如下:为了保证能虚拟机能跟windows主机之间通信,需要做如下设置:1)配置windows上的host-only网卡,如下:2)此时用虚拟机跟windows机互相ping,不能ping 能,原因是我电脑上装了金山卫士,需要关闭金山卫士的ARP防火墙。
3)关闭后,能相互ping 通同样,ping 也可以ping通,这样,虚拟机也可以连上internet了。
4)由于我喜欢在windows下用CRT连接虚拟机,所以要先启动sshd服务,在liveCD下面执行/etc/init.d/sshd start此时用CRT连接虚拟机,会一直报连接超时错误,连接不上,是因为我装得杀毒软件AVAST阻止了其通信,需要设计排除,在AVAST实时消息保护页面设置如下:此时就可以连接上了。
5、磁盘分区fdisk /dev/sda,然后选择p首先,我们创建一个小一点的启动分区。
键入n创建一个新分区,然后键入p来选择一个主分区,接下来键入1选择第一个主分区。
当提示输入第一个柱面的时候,敲回车键。
当提示输入最后一个柱面的时候,输入+32M,来创建一个32M大小的分区,并设置它的启动标记:我们需要把这个分区设置成可启动的。
2024年英语七年级上册课堂笔记Unit 1 My name's Gina.一、重点单词。
1. name.- 名词,意为“名字;名称”。
例如:My name is Tom.(我的名字是汤姆。
)- 还可作动词,意为“命名;给……取名”。
如:They named their baby girl Lily.(他们给他们的女婴取名为莉莉。
)2. nice.- 形容词,“令人愉快的;宜人的”。
例如:Nice to meet you.(很高兴见到你。
)3. to.- 这里是不定式符号,常用在一些固定搭配中,如“Nice to meet you.”中的“to meet”是不定式结构。
同时,“to”还可以作介词,表示“到;向”等,如“go to school”(去上学)。
4. meet.- 动词,“遇见;相逢”。
例如:I meet my friend on my way home.(我在回家的路上遇见我的朋友。
)5. too.- 副词,“也;又;太”。
例如:I like English, too.(我也喜欢英语。
)当表示“太”时,如:The box is too heavy.(这个盒子太重了。
)6. your.- 形容词性物主代词,“你的;你们的”。
例如:Your book is on the desk.(你的书在桌子上。
)7. his.- 形容词性物主代词,“他的”。
例如:His name is Jack.(他的名字是杰克。
)8. her.- 形容词性物主代词,“她的”。
例如:Her pen is red.(她的钢笔是红色的。
)二、重点短语。
1. name's = name is.- 例如:My name's Gina. = My name is Gina.(我的名字是吉娜。
)2. nice to meet you.- 用于初次见面时的问候语,回答是“Nice to meet you, too.”(很高兴见到你。
七年级上册英语第三单元单词笔记Unit 3 Is this your pencil?一、重点单词。
1. pencil.- 音标:[ˈpensl]- 词性:n.(名词)2. book.- 音标:[bʊk]- 词性:n.3. eraser.- 音标:[ɪˈreɪzə(r)]- 词性:n.4. box.- 音标:[bɒks]- 词性:n.5. pencil box.- 音标:[ˈpensl bɒks]- 词性:n.(这是一个名词短语)6. schoolbag.- 音标:[ˈskuːlbæɡ]- 词性:n.7. dictionary.- 音标:[ˈdɪkʃənri]- 词性:n.8. his.- 音标:[hɪz]- 词性:pron.(代词)9. mine.- 音标:[maɪn]- 词性:pron.10. hers.- 音标:[hɜːrs]- 词性:pron.11. excuse.- 音标:[ɪkˈskjuːs]- 词性:v.(动词);也可作名词,音标为[ɪkˈskjuːs],n.12. me.- 音标:[miː]- 词性:pron.13. excuse me.- 音标:[ɪkˈskjuːz miː]- 词性:interj.(感叹词,用于引起别人注意等)14. thank.- 音标:[θæŋk]- 词性:v.15. teacher.- 音标:[ˈtiːtʃə(r)]- 词性:n.16. about.- 音标:[əˈbaʊt]- 词性:prep.(介词);也可作副词,adv.17. What about...?- 音标:[wɒt əˈbaʊt]- 词性:phr.(短语,用于提出建议或引出话题等)18. yours.- 音标:[jɔːrs]- 词性:pron.19. for.- 音标:[fɔː(r)]- 词性:prep.20. thank you for...- 音标:[θæŋk juː fɔː(r)]- 词性:phr.21. help.- 音标:[help]- 词性:v. & n.22. welcome.- 音标:[ˈwelkəm]- 词性:adj.(形容词);也可作感叹词,interj.23. You're welcome.- 音标:[jʊə(r) ˈwelkəm]- 词性:phr.(用于回答感谢)。
五年级下册英语必背笔记U11.tidy it up把它整理好2.look at 看3.What a mess!多么乱啊!4.Let's=Let us 让我们5.what什么why为什么where在哪儿who谁whose谁的when什么时候which哪一个how 怎么样6.those那些 that那个these这些 this这个7.I'm=I amhe/she/it/单数/不可数名词+isyou/we/they/复数名词+are8.Paul's保罗的9.put…on 把…放到…put on穿上10. There is 有就近原则There are 有就近原则eg. There is a dog and three cats. 有一只狗和三只猫。
There are three cats and a dog. 有三只猫和一只狗。
11.too 也(放后面)also也(放中间)12.now 现在13.clean and tidy 干净整洁14.You're welcome. 不客气,不用谢15.a magic stone 一个神奇的石头16.on the table在桌子上17.be full of充满、装满18.ask问answer回答19.drop the box 使盒子掉落20.all都,所有的(三个或三个以上)both都(两个)21.on the floor在地板上22.he他(主格)him他(宾格)his他的23.mine我的 his 他的 hers她的 yours你的、你们的 ours我们的 theirs他们的24.try it试试它25.near附近26.stick to粘住27.in a few seconds几秒钟后second第二、秒28.again再一、又一U21.our我们的 their他们的 her她(的)2.at home在家3.Do you like…?你喜欢…吗?Yes,l do.No,l don't.4.living room客厅dining room餐厅study书房、学习 bedroom卧室 kitchen厨房 bathroom浴室5.Why do you like it?你为什么喜欢它?Because it's…因为它…6.so big好大7.What about you?你呢?8.quiet安静的 quite相当、确实9.read and write读和写10.there那里11.Do you know why?你知道为什么吗?12.in the garden在花园里13.all day一天到晚14.wild goose 大雁复数为:wild geese15.life生活复数为:livesbusy lives忙碌的生活16.from…to …从…到…17.one place一个地方18.another另一个19.change改变、变化20.twice两次21.spring春天 summer夏天 autumn秋天 winter冬天22.east东方 south南方 west西方 north北方23.move around四处移动24.so much如此多so所以25.cannot=can't不能26.enough food足够的食物27.then然后28.warm温暖的29.fly back飞回来U31.in the future在未来2.know about知道关于3.I'll=I will我将won't=will notI will be a teacher. 我将成为一名老师。
package com.kingdee.eas.custom;import java.io.File;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStream;import java.io.PrintWriter;import java.io.StringWriter;import java.math.BigDecimal;import java.sql.SQLException;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.ArrayList;import java.util.Date;import java.util.HashMap;import java.util.Iterator;import java.util.Map;import javax.swing.JFileChooser;import javax.swing.JOptionPane;import org.mozilla.javascript.Context;import jxl.Cell;import jxl.Sheet;import jxl.Workbook;import jxl.format.Alignment;import jxl.format.Border;import jxl.format.BorderLineStyle;import jxl.format.Colour;import jxl.read.biff.BiffException;import bel;import jxl.write.WritableCellFormat;import jxl.write.WritableSheet;import jxl.write.WritableWorkbook;import jxl.write.WriteException;import bsh.This;import com.kingdee.bos.BOSException;import com.kingdee.bos.ctrl.extendcontrols.KDBizPromptBox; import com.kingdee.bos.ctrl.kdf.table.ICell;import com.kingdee.bos.ctrl.kdf.table.IColumn;import com.kingdee.bos.ctrl.kdf.table.KDTDefaultCellEditor; import com.kingdee.bos.ctrl.kdf.table.KDTMergeManager; import com.kingdee.bos.ctrl.kdf.table.KDTSelectBlock; import com.kingdee.bos.ctrl.kdf.table.KDTable;import com.kingdee.bos.ctrl.kdf.table.util.KDTableUtil; import com.kingdee.bos.ctrl.swing.KDDatePicker;import com.kingdee.bos.dao.IObjectCollection;import com.kingdee.bos.dao.IObjectPK;import com.kingdee.bos.dao.IObjectValue;import com.kingdee.bos.metadata.bot.BOTMappingCollection;import com.kingdee.bos.metadata.bot.BOTMappingFactory;import com.kingdee.bos.metadata.bot.BOTMappingInfo;import com.kingdee.bos.metadata.bot.BOTRelationCollection;import com.kingdee.bos.metadata.entity.EntityViewInfo;import com.kingdee.bos.metadata.entity.FilterInfo;import com.kingdee.bos.metadata.entity.FilterItemInfo;import pareType;import com.kingdee.bos.sql.ParserException;import com.kingdee.bos.ui.face.CoreUIObject;import com.kingdee.bos.ui.face.IUIWindow;import com.kingdee.bos.ui.face.UIException;import com.kingdee.bos.ui.face.UIFactory;import com.kingdee.bos.util.BOSUuid;import com.kingdee.eas.base.btp.BTPManagerFactory;import com.kingdee.eas.base.btp.BTPTransformResult;import com.kingdee.eas.base.btp.IBTPManager;import com.kingdee.eas.base.codingrule.CodingRuleManagerFactory;import com.kingdee.eas.base.codingrule.ICodingRuleManager;import com.kingdee.eas.base.message.BMCMessageFactory;import com.kingdee.eas.base.message.BMCMessageInfo;import com.kingdee.eas.base.message.IBMCMessage;import com.kingdee.eas.base.message.MsgBizType;import com.kingdee.eas.base.message.MsgPriority;import com.kingdee.eas.base.message.MsgStatus;import com.kingdee.eas.base.message.MsgType;import ctrl.IMutexServiceControl;import ctrl.MutexParameter;import ctrl.MutexServiceControlFactory;import erInfo;import com.kingdee.eas.basedata.master.auxacct.GeneralAsstActTypeGroupCollection; import com.kingdee.eas.basedata.master.auxacct.GeneralAsstActTypeGroupFactory; import .AdminOrgUnitCollection;import .AdminOrgUnitFactory;import .AdminOrgUnitInfo;import .CtrlUnitCollection;import .CtrlUnitFactory;import .CtrlUnitInfo;import .PositionInfo;import com.kingdee.eas.basedata.person.PersonCollection;import com.kingdee.eas.basedata.person.PersonFactory;import com.kingdee.eas.basedata.person.PersonInfo; import mon.client.OprtState; import mon.client.SysContext; import mon.client.UIContext; import mon.client.UIFactoryName; import mon.FMIsqlFacadeFactory; import mon.IFMIsqlFacade; import com.kingdee.eas.framework.CoreBillBaseInfo; import com.kingdee.eas.framework.client.CoreBillEditUI; import com.kingdee.eas.framework.client.EditUI;import com.kingdee.eas.hr.emp.PersonPositionFactory; import com.kingdee.eas.hr.emp.PersonPositionInfo; import com.kingdee.eas.util.SysUtil;import com.kingdee.eas.util.client.EASResource;import com.kingdee.eas.util.client.MsgBox;import com.kingdee.jdbc.rowset.IRowSet;import com.kingdee.util.Uuid;/**** EAS开发工具类* @author 赵戬**/public class UtilClass {/**** 信息提示框* @param value 提示内容*/public static void alert(String value){MsgBox.showInfo(value);SysUtil.abort();}/**** 信息提示框(带详细信息)* @param value 提示内容*/public static void alert2(String Title,String info){MsgBox.showDetailAndOK(null, Title, info, 0);SysUtil.abort();}/**** 信息提示框(带提示)* @return value 提示内容public static boolean alertReturn(String value){return MsgBox.isYes(MsgBox.showConfirm2(value));}/**** 程序停止运行*/public static void Stop(){SysUtil.abort();}/*** 单据数据加锁* @param billId 单据ID*/public static void addBillDataLock(String BillFID){IMutexServiceControl mutex = MutexServiceControlFactory.getRemoteInstance(); mutex.requestBizObjIDForUpdate(BillFID);}/*** 单据数据解锁* @param billId 单据ID*/public static void removeBillDataLock(String BillFID){IMutexServiceControl mutex = MutexServiceControlFactory.getRemoteInstance(); mutex.releaseObjIDForUpdate(BillFID);}/*** 根据ID获取数据是否加锁* @param id 单据编号* @return true 已加锁or false 未加锁*/public static boolean getBillDataLockStatus(String BillFID){IMutexServiceControl mutex = MutexServiceControlFactory.getRemoteInstance(); boolean returnvalue = false;HashMap map = mutex.getObjIDForUpdateList();for (Iterator iter = map.keySet().iterator(); iter.hasNext();) {String key = iter.next().toString();if(BillFID.equals(key.substring(0, 28))){returnvalue = true;}return returnvalue;}/*** 表格获取选中行某列值* 返回ArrayList集合* @param tblMain 列表对象* @param CellName 列名* @return ArrayList集合** 返回遍历try {ArrayList list = UtilClass.getTableCellsValue(kDTable1, "cell1");if(list.size()>0){for (Iterator iter = list.iterator(); iter.hasNext();) {System.out.println((String)iter.next());}}else{UtilClass.alert("请选择要操作的记录");}} catch (Exception e1) {}*/public static ArrayList getTableCellsValue(KDTable tblMain, String CellName){ ICell cellstr;Object strObj = null;KDTSelectBlock block = null;ArrayList returnValue = new ArrayList();int size = tblMain.getSelectManager().size();for (int i = 0; i < size; i++) {block = tblMain.getSelectManager().get(i);for (int j = block.getTop(); j <= block.getBottom(); j++) {cellstr = tblMain.getRow(j).getCell(CellName);strObj = cellstr.getValue();returnValue.add(strObj);}}return returnValue;}/*** 设置List默认查询条件* @param mainQuery List MainQuery* @param Filter 条件* 例:UtilClass.setListQueryFilter(mainQuery, "orderid.batchnum is not null"); */public static void setListQueryFilter(EntityViewInfo mainQuery,String Filter){try {mainQuery.setFilter(Filter);} catch (ParserException e) {alert2("设置List默认查询条件出错!",e.getMessage());}}/*** 获取KDTable选择行的行号(选择行的第一行)* @param tblMain* @return 行号*/public static int getRowNumFirst(KDTable tblMain){return tblMain.getSelectManager().get(0).getTop();}/*** 获取KDTable选择行的行号* @param tblMain* @return 行号*/public static int[] getRowNum(KDTable tblMain){return KDTableUtil.getSelectedRows(tblMain);}/*** 导出KDTable表格数据到Excel文件* @param table KDTable* @param RowNums 行号集合如果RowNums行数为0,导出全部数据* return 生成文件目录* 例:UtilClass.TableExpot(kDTable1, new int[0], null);*/public static String TableExpot(KDTable table,int[] RowNums,String FileName){ String returnvaleu = "";String Filepath = "";//打开目录选择器try {Filepath = UtilClass.OpenPathSelect();String File = "";if("".equals(Filepath)){return returnvaleu;}else{if(FileName==null||"".equals(FileName)){FileName = "temp";}File = Filepath+"\\"+FileName+".xls";}File file = new File(File);//如果找到相同的文件,执行删除if(file.exists() && file.isFile()){file.delete();}WritableWorkbook wwb = Workbook.createWorkbook(new File(File)); //创建工作表wwb.createSheet("sheet1", 0);//获取工作表WritableSheet ws = wwb.getSheet(0);//表头行样式WritableCellFormat TableHead = new WritableCellFormat();TableHead.setBorder(Border.ALL, BorderLineStyle.THIN);TableHead.setAlignment(Alignment.CENTRE);TableHead.setBackground(Colour.GRAY_25);//表体数据行样式WritableCellFormat TableRow = new WritableCellFormat();TableRow.setAlignment(Alignment.CENTRE);if(RowNums==null){//生成表头for(int i=0;i<table.getColumnCount();i++){if(table.getHeadRow(0).getCell(i).getValue()!=null){ws.addCell(newLabel(i,0,table.getHeadRow(0).getCell(i).getValue().toString(),TableHead));}}//生成表体数据for(int i=0;i<table.getRowCount();i++){for(int j=0;j<table.getColumnCount();j++){if(table.getRow(i).getCell(j).getValue()!=null){ws.addCell(newLabel(j,i+1,table.getRow(i).getCell(j).getValue().toString(),TableRow));}}}}else{//生成表头for(int i=0;i<table.getColumnCount();i++){if(table.getHeadRow(0).getCell(i).getValue()!=null){ws.addCell(newLabel(i,0,table.getHeadRow(0).getCell(i).getValue().toString(),TableHead));}}//生成表体数据for(int z=0;z<RowNums.length;z++){int i = RowNums[z];for(int j=0;j<table.getColumnCount();j++){if(table.getRow(i).getCell(j).getValue()!=null){ws.addCell(newLabel(j,z+1,table.getRow(i).getCell(j).getValue().toString(),TableRow));}}}}wwb.write();wwb.close();returnvaleu = File;} catch (Exception e) {alert2("生成Excel文件出错",Filepath);}return returnvaleu;}/**** 设置表格列名* @param Table Table名称* @param Colunm 列名* @param name 值**/public static void setTableColumnName(KDTable Table,String ColunmID,String ColunmName){ KDTable kt = new KDTable();kt = Table;kt.getHeadRow(0).getCell(ColunmID).setValue(ColunmName);Table = kt;}/*** 设置表格融合方式* @param tblMain 表格* @param type 融合方式0 :行融合1:列融合2:自由融合*/public static void setTableMergeMode(KDTable tblMain,int type){if(type==0){tblMain.getMergeManager().setMergeMode(KDTMergeManager.FREE_ROW_MERGE);}if(type==1){tblMain.getMergeManager().setMergeMode(KDTMergeManager.FREE_COLUMN_MERGE); }if(type==2){tblMain.getMergeManager().setMergeMode(KDTMergeManager.FREE_MERGE);}}/**** 表格行选择器,从第R1行选到R2行* @param tblMain 表格* @param R1 开始行号* @param R2 结束行号*/public static void setTableSelectRows(KDTable tblMain,int R1,int R2){tblMain.getSelectManager().select(R1-1, 0, R2-1, 0);}/*** 设置按钮图片名称* @param btnName 按钮名称* @param imgName 图片名称* EAS图片名称保存位置:BOS环境下工程\lib\client\eas\eas_resource_common_ico.jar */public static void setButtonImg(com.kingdee.bos.ctrl.swing.KDWorkButton ButtonName,String imgName){ButtonName.setIcon(EASResource.getIcon(imgName));ButtonName.setEnabled(true);}/*** 设置F7* @param F7Name F7名称* @param ConditionSQL 过滤条件SQL(如果输入值不等于"",则添加条件)* 例" fbilltypestatr = '1' and (entrys.id is null or entrys.seq = 1)"* @param Query 属性例:"com.kingdee.eas.cmt.basedata.app.OperatorOrgQuery"* @param EditFrmat 属性例:"$number$"* @param DisplayFormat 属性例:"$name$"* @param CommitFormat 属性例:"$number$"* @throws BOSException*/public static void setF7(KDBizPromptBox F7Name,String ConditionSQL ,String Query,String EditFrmat,String DisplayFormat,String CommitFormat){//添加分录过滤条件try {EntityViewInfo view = new EntityViewInfo();if(ConditionSQL != ""){view.setFilter(ConditionSQL);}//设置F7属性F7Name.setQueryInfo(Query);//关联QueryF7Name.setEditFormat(EditFrmat);//编辑样式F7Name.setDisplayFormat(DisplayFormat);//展现样式F7Name.setCommitFormat(CommitFormat);//提交样式F7Name.setEntityViewInfo(view);F7Name.setEnabledMultiSelection(false);} catch (Exception e) {alert2("F7["+F7Name+"]初始化出错,请联系管理员!",e.getMessage());}}/*** 设置分录F7* @param col 列名kdtEntrys.getColumn("boxType")* @param ConditionSQL 过滤条件SQL(如果输入值不等于"",则添加条件)* 例" fbilltypestatr = '1' and (entrys.id is null or entrys.seq = 1)"* @param Query 属性例:"com.kingdee.eas.cmt.basedata.app.OperatorOrgQuery"* @param EditFrmat 属性例:"$number$"* @param DisplayFormat 属性例:"$name$"* @param CommitFormat 属性例:"$number$"*/public static void setEntryF7(IColumn col,String ConditionSQL ,String Query,String EditFrmat,String DisplayFormat,String CommitFormat){try {KDBizPromptBox prmt = new KDBizPromptBox();EntityViewInfo view = new EntityViewInfo();if(ConditionSQL != ""){view.setFilter(ConditionSQL);}prmt.setQueryInfo(Query);prmt.setEditFormat(EditFrmat);prmt.setCommitFormat(CommitFormat);prmt.setDisplayFormat(DisplayFormat);prmt.setEntityViewInfo(view);prmt.setEnabledMultiSelection(false);KDTDefaultCellEditor editor = new KDTDefaultCellEditor(prmt);col.setEditor(editor);} catch (ParserException e) {alert2("分录F7初始化出错,请联系管理员!",e.getMessage());}}/*** 日期转换字符串* @param date 日期* @param type 显示格式yyyy-MM-dd yyyy-MM-dd HH:mm:ss* String returnvalue = UtilClass.DateToString(this.Startdatetest.getValue(), "yyyy-MM-dd"); */public static String DateToString (Object date,String type){String returnvalue = "";if(date != null){try{SimpleDateFormat sdf = new SimpleDateFormat(type);returnvalue = sdf.format(date);}catch(Exception ex){alert("日期格式转换出错");}}return returnvalue;}/*** 字符串转为日期* @param DateStr 字符串* @param type 类型"yyyy-MM-dd HH:mm:ss"* @return Date java.util.Date*/public static Date StringToDate(String DateStr,String type){Date returnvalue = null;try {SimpleDateFormat sdf = new SimpleDateFormat(type);returnvalue = sdf.parse(DateStr);} catch (ParseException e) {alert2("日期转换出错",DateStr+"-->"+type);}return returnvalue;}/*** 设置DKDatePicker控件显示格式* @param date 日期控制* @param dateType 格式样式例:"yyyy-MM-dd HH:mm:ss" "yyyy-MM-dd"*/public static void setKDDatePicker(KDDatePicker date,String dateType){date.setDatePattern(dateType);}/*** 获取当前时间(KDDatePicker控件)默认值例如:创建时间修改时间审核时间* @return java.sql.Timestamp 当前时间*/public static java.sql.Timestamp getTime(){java.sql.Timestamp time = new java.sql.Timestamp(new java.util.Date().getTime());return time;}/*** 打开文件* @param FilePath 文件路径*/public static void OpenFile(String FilePath){try {Runtime.getRuntime().exec("cmd /c start \"\" \""+FilePath.replaceAll("\\\\", "\\\\\\\\")+"\"");} catch (IOException e) {alert2("打开文件出错",FilePath);}}/*** 打开文件选择器* @return 文件路径*/public static String OpenFilesSelect(){String returnvalue = "";JFileChooser chooser = new JFileChooser();chooser.setDialogTitle("请选择文件");chooser.showDialog(null, "确定");if(chooser.getSelectedFile()!=null){File file = chooser.getSelectedFile();returnvalue = file.getPath();}return returnvalue;}/*** 打开目录选择器* @return*/public static String OpenPathSelect(){String returnvalue = "";JFileChooser chooser = new JFileChooser();chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);chooser.setDialogTitle("请选择目录");chooser.showDialog(null,"保存");if(chooser.getSelectedFile()!=null){File file = chooser.getSelectedFile();returnvalue = file.getPath();}return returnvalue;}/*** 向Excel文件插入数据* @param File* @param sheetNum 工作表序号* @param y 行* @param x 列* @param value 内容*/public static void setExcelValue(String File,int sheetNum,int x,int y,String value){ try {File file = new File(File);//如果找到相同的文件,执行删除if(!file.exists() && !file.isFile()){return;}//Excel获得文件Workbook wb = Workbook.getWorkbook(new File(File));//打开一个文件的副本,并且指定数据写回到原文件WritableWorkbook book = Workbook.createWorkbook(new File(File),wb); //获取工作表WritableSheet sheet=book.getSheet(sheetNum);sheet.addCell(new Label(y,x,value));book.write();book.close();} catch (Exception e) {}}/*** 读取Excel文件* @param File 文件名* @param sheetNum 工作表序号* @param y 行* @param x 列*/public static String getExcelValue(String File,int sheetNum,int y,int x){ String result = "";try {File file = new File(File);//如果找到相同的文件,执行删除if(!file.exists() && !file.isFile()){alert(File+"文件没找到!");}Workbook book= Workbook.getWorkbook(new File(File));//获得第一个工作表对象Sheet sheet=book.getSheet(sheetNum);//得到第一列第一行的单元格Cell cell1=sheet.getCell(x,y);result=cell1.getContents().toString();book.close();} catch (FileNotFoundException e) {alert2("读取Excel文件出错","请关闭当前打开的Excel文件"); } catch (BiffException e) {alert2("读取Excel文件出错",e.toString());} catch (IOException e) {alert2("读取Excel文件出错",e.toString());}return result;}/*** 读取Excel文件(第一sheet页中的内容)* @param File 文件路径* @param sheetNum sheet页号* @return 二维数组**/public static Object[][] getExcelValue(String File,int sheetNum){Object [][] returnvalue = null;try {Workbook book= Workbook.getWorkbook(new File(File));Sheet sheet=book.getSheet(sheetNum);returnvalue = new Object[sheet.getRows()][sheet.getColumns()]; for(int i=1;i<sheet.getRows();i++){for(int j=0;j<sheet.getColumns();j++){returnvalue[i][j]=sheet.getCell(j,i).getContents();}}} catch (FileNotFoundException e) {alert2("读取Excel文件出错","请关闭当前打开的Excel文件");} catch (BiffException e) {alert2("读取Excel文件出错",e.toString());} catch (IOException e) {alert2("读取Excel文件出错",e.toString());}return returnvalue;}/**** 发送即时消息* @param FSuser 发送人ID* @param JSuser 接收人ID* @param MessageTitle 标题* @param Messages 内容*/public static void addMessage(String FSuser,String JSuser,String MessageTitle,String Messages){ try {IBMCMessage i = BMCMessageFactory.getRemoteInstance();BMCMessageInfo info = new BMCMessageInfo();info.setType(MsgType.ONLINE);// 消息类型,例如通知消息,任务消息,状态更新消息 info.setBizType(MsgBizType.ONLINE);// 业务类型,例如工作流,预警平台info.setPriority(MsgPriority.HIGH); // 优先级info.setStatus(MsgStatus.UNREADED); // 消息状态info.setReceiver(JSuser); // 接收人ID (User的ID,不是Person的ID)info.setSender(FSuser);// 消息发送人info.setTitle(MessageTitle); // 消息标题info.setBody(Messages);// 消息内容i.submit(info);} catch (Exception e) {alert2("发送即时消息出错","标题:"+MessageTitle+" 内容:"+Messages);}}/*** 列转行* @param list 数据集合* @param delimiter 分隔符例:","* @param bracketsLeft 左括号符号* @param bracketsRight 右括号符号* @return String*/public static String CellToRow(ArrayList list,String delimiter,String bracketsLeft,String bracketsRight){String returnvalue = "";for (Iterator iter = list.iterator(); iter.hasNext();){if(!"".equals(bracketsLeft) && bracketsLeft != null && !"".equals(bracketsRight) && bracketsRight != null){returnvalue += bracketsLeft + (String)iter.next() + bracketsRight;}returnvalue+=delimiter;}return returnvalue.substring(0, returnvalue.length()-1);}/*** 打开窗口* @param URL UI地址* @param ctx 参数集合* @param openType 打开窗口类型例:UIFactoryName.MODEL* @param billStatus 单据状态例:OprtState.ADDNEW**打开普通UI页面HashMap cix = new HashMap();String orderid = "asiofjlqkjwfklaslkasdf="cix.put("orderid", orderid);UtilClass.openUI("mission.client.GoodsUI", cix, UIFactoryName.MODEL, OprtState.ADDNEW);打开单据EditUI页面HashMap cix = new HashMap();cix.put("ID", fid);UtilClass.openUI("mission.client.CmtTranConsignEditUI", cix, UIFactoryName.NEWWIN, OprtState.VIEW);在打开的单据获取前面页面传来的参数this.getUIContext().get("orderid").toString()***/public static void openUI(String URL,HashMap ctx,String openType,String billStatus){try {IUIWindow ui = UIFactory.createUIFactory(openType).create(URL, ctx, null, billStatus);ui.show();} catch (UIException e) {alert2("弹出UI程序出错:",URL);}}/*** 发送参数* @param ContextID 参数编号* @param values 参数值*/public static void setSysContext(String ContextID,Object values){SysContext.getSysContext().setProperty(ContextID, values);}/*** 获取参数* @param ContextID 参数编号* @return 参数值(Object)*/public static Object getSysContext(String ContextID){return SysContext.getSysContext().getProperty(ContextID);}/*** 获取UI参数* @param UI* @return*/public static String getUIContext(CoreUIObject UI){String returnvalue = "";if(UI.getUIContext().get("UIClassParam")!=null){returnvalue = UI.getUIContext().get("UIClassParam").toString(); }return returnvalue;}/*** 创建单据编号* @param Parameter 规则参数* 参数说明:* logo 编号头标示* date 日期时间* Delimiter 分隔符* digit 序号位数* isTissueIsolation 是否组织隔离(0:不隔离1:隔离)* table 表名* @return String 单据编号** HashMap Parameter = new HashMap();//编号头标示符号Parameter.put("logo", "CMT");//日期Parameter.put("date", UtilClass.DateToString(UtilClass.getTime(), "yyyyMMdd"));//分隔符Parameter.put("Delimiter", "-");//序号位数Parameter.put("digit", "5");//是否隔离组织0为不隔离1为隔离Parameter.put("isTissueIsolation", "0");//单据表名Parameter.put("table", "T_BAS_VehicleType");String billNum = UtilClass.createrBillNumber(Parameter);**/public static String createrBillNumber(HashMap Parameter){StringBuffer returnvalue = new StringBuffer();//编号头Logoif(Parameter.get("logo")!=null){returnvalue.append(Parameter.get("logo"));}//添加时间if(Parameter.get("date")!=null){if(Parameter.get("Delimiter")!=null){returnvalue.append(Parameter.get("Delimiter"));}returnvalue.append(Parameter.get("date"));}//创建序号位(digit:序号位数)if(Parameter.get("digit")!=null){StringBuffer getDigitSQL = new StringBuffer();Integer digit = new Integer(Parameter.get("digit").toString());StringBuffer digitValue = new StringBuffer();for(int i=0;i<digit.intValue();i++){digitValue.append("0");}getDigitSQL.append("select trim(to_char(count(*)+1,'"+digitValue+"')) from "+Parameter.get("table")+" ");//是否组织隔离if("1".equals(Parameter.get("isTissueIsolation"))){getDigitSQL.append(" where FControlUnitID = '"+getCU().getId()+"'");}if(Parameter.get("Delimiter")!=null){returnvalue.append(Parameter.get("Delimiter"));}//获取数据库记录数returnvalue.append(executeQueryString(getDigitSQL.toString()));}return returnvalue.toString();}/*** 当前登录组织* @return*/public static CtrlUnitInfo getCU(){return SysContext.getSysContext().getCurrentCtrlUnit();}/*** 判断当前组织是否为集团要目录* @return boolean*/public static boolean isRootCU(){if("1".equals(executeQueryString("select tc.flevel from t_org_baseunit tc where tc.fid = '"+getCU().getId()+"'"))){return true;}else{return false;}}/*** 获取集团组织ID* @return*/public static CtrlUnitInfo getRootCU(){CtrlUnitInfo cinfo = new CtrlUnitInfo();try {CtrlUnitCollection cinfos = CtrlUnitFactory.getRemoteInstance().getCtrlUnitCollection("select * where level = 1 ");cinfo = cinfos.get(0);} catch (BOSException e) {alert2("获取集团组织ID出错",e.getMessage());}return cinfo;}/*** 当前登录用户* @return*/public static UserInfo getUser(){return SysContext.getSysContext().getCurrentUserInfo();}/*** 当前登陆人员* @return*/public static PersonInfo getPerson(){PersonInfo personinfo = null;try {PersonCollection Personcollection = PersonFactory.getRemoteInstance().getPersonCollection(" select * where name = '" + SysContext.getSysContext().getCurrentUserInfo().getName() +"'");personinfo=Personcollection.get(0);} catch (Exception e1) {}return personinfo;}/*** 当前登录人员部门* @return*/public static AdminOrgUnitInfo getDepartment(){AdminOrgUnitInfo returnvalue = null;try {PersonPositionInfo PersonPosition = PersonPositionFactory.getRemoteInstance().getPersonPositionInfo("select primaryPosition.* where person = '" + getPerson().getId() + "'");PositionInfo Position = PersonPosition.getPrimaryPosition();AdminOrgUnitCollection collection = AdminOrgUnitFactory.getRemoteInstance().getAdminOrgUnitCollection(" select * where id= '" + Position.getAdminOrgUnit().getId() +"'");returnvalue = collection.get(0);} catch (Exception e2) {}return returnvalue;}/*** 通过fid获取表名* @param fid* @return 表名*/public static String getDBTableName(String fid){String Tablename = "";com.kingdee.bos.util.BOSObjectType bosType = BOSUuid.read(fid).getType();try {Tablename = FMIsqlFacadeFactory.getRemoteInstance().getTableNameByBosType(bosType);} catch (BOSException e) {alert2("获取表名出错",fid);}return Tablename;}/*** 执行SQL(查询,返回集合)* @param sql* @returnIRowSet rs = UtilClass.executeQuery(sql.toString());while(rs.next()){rs.getObject(1).toString();}*/public static IRowSet executeQuery(String sql){IRowSet returnvalue = null;try {IFMIsqlFacade db = mon.FMIsqlFacadeFactory.getRemoteInstance();returnvalue = db.executeQuery(" /*dialect*/ "+sql, null);} catch (Exception e) {alert2("执行SQL出错",sql);}return returnvalue;}/*** 执行SQL(查询,返回单看值)* @param sql* @return String*/public static String executeQueryString(String sql){String returnvalue = null;try {IFMIsqlFacade db = mon.FMIsqlFacadeFactory.getRemoteInstance();IRowSet rs = db.executeQuery(" /*dialect*/ "+sql, null);while(rs.next()){if(rs.getObject(1)!=null){returnvalue = rs.getObject(1).toString();}}} catch (Exception e) {alert2("执行SQL出错",sql);}return returnvalue;}/*** 执行SQL(新增,修改)* @param sql*/public static void executeSql(String sql){try {IFMIsqlFacade db = mon.FMIsqlFacadeFactory.getRemoteInstance();db.executeSql(" /*dialect*/ "+sql);} catch (Exception e) {alert2("执行SQL出错",sql);}}/*** SQL数据导出到Excel文件* @param sql* @param FileName 文件名*/public static String SQLExpot(String sql,String FileName){String returnvalue ="";try {if("".equals(sql)||sql==null){return returnvalue;}if(FileName==null||"".equals(FileName)){FileName = "temp";}String Filepath = UtilClass.OpenPathSelect();。