摘要: Open----------------------------captioninitrunQuery:initQuery:initQuery:packQuery:saveUserSetupQuery:saveUserSetuptitleOk---------------------------Query:promptCancel----------------------------Query:promptfetchOK----------------------------printerSettings promptQuery:nextQuery:getNoQuery:changedNoh 阅读全文
posted @ 2012-05-23 11:05 K小子 阅读(215) 评论(0) 推荐(0)
摘要: public static str MD5Encoding(str input){ //字符串编码,将string进行MD5加密,Encoding采用Unicode ClrObject md5; System.Text.Encodingencoding; ClrObject inputArray; ClrObject hashArray; int i; ClrObject strBuilder; str result; InterOpPermission iop = new InterOpPermission(INteropKind::ClrInterop); ; io... 阅读全文
posted @ 2012-05-23 10:25 K小子 阅读(272) 评论(0) 推荐(0)
摘要: real类型转换成stringstr num2Str( real number, int character, int decimals, int separator1, int separator2)num2str(real,1,5,1,1);such as num2str(12.65645952,1,5,1,1); //result 12.65646 阅读全文
posted @ 2012-04-27 10:07 K小子 阅读(146) 评论(0) 推荐(0)
摘要: 直接修改Info类的StartupPost方法,因为我们修改比较复杂,以下我就直接引用junevoful的代码来做范例。void startupPost(){ int counter; int num = 0; int maxSessions = Info::licensedUsersTotal(); xSession session; UserInfo userInfo; UserId currentUserId; ; currentUserId = curuserid(); for(counter = 1; counter < maxSessions;counter++ ) { se 阅读全文
posted @ 2012-04-26 13:15 K小子 阅读(189) 评论(0) 推荐(0)
摘要: static void modifiedByAndTime(Args _args){ UtilIdElements lUtilIdElements; ; select lUtilIdElements where lUtilIdElements.recordType == UtilElementType::Table && lUtilIdElements.utilLevel == UtilEntryLevel::usr && lUtilIdElements.name == "KY_PackageTable"; info(lUtilIdEleme 阅读全文
posted @ 2012-04-23 11:36 K小子 阅读(164) 评论(0) 推荐(0)
摘要: FormA:void clicked(){ Container con; FormRun fr; Args args = new Args(); ; super(); args.caller(this); con = [Paramters1,Paramters2,.....]; args.parm(con2str(con)); fr = new MenuFunction(MenuItemDisplayStr(MenuItemDisplayName),MenuItemType::Display).create(args); fr.init(); fr.run();}Fo... 阅读全文
posted @ 2012-04-23 11:20 K小子 阅读(164) 评论(0) 推荐(0)
摘要: 新建一个窗体,添加如下方法public void init() { FormBuildStringControl formStringControl; FormBuildButtonControl formButtonControl; FormBuildGroupControl formGroupControl; ; // Adding a group formGroupControl = this.form().addControl(FormControlType::Group, "MyGroup"); formGroup... 阅读全文
posted @ 2012-04-19 16:32 K小子 阅读(183) 评论(0) 推荐(0)
摘要: Args args; FormRun formCreate;; args = new Args(); args.name(FormStr(PurchTable_ViewPDF)); args.caller(element); formCreate = classFactory.formRunClass(args); formCreate.init(); formCreate.run(); formCreate.wait(); 阅读全文
posted @ 2012-04-19 13:32 K小子 阅读(223) 评论(0) 推荐(0)
摘要: -----------------------------------打开-----------------------------------initloadUserSettingDataSources: initinitrunDataSources: executeQueryDataSources: leaveRecordTable: postLoadTable: aosValidateReadDataSources: cursorNotifyDataSources: leaveDataSources: leaveRecordDataSources: cursorNotifyresized 阅读全文
posted @ 2012-04-19 11:24 K小子 阅读(518) 评论(0) 推荐(0)
摘要: 1、设置MenuItemButton的DataSource属性。2、在Class的main方法里获取传过来的参数:static void main(Args args){ //譬如传递的DataSource是VendTable VendTable m_vendTable; ; m_vendTable = args.record(); inf0(m_vendTable.AccountNum);} 阅读全文
posted @ 2012-04-18 15:53 K小子 阅读(265) 评论(0) 推荐(0)