1、 任何Form须在属性中选定当前Form的MenuItem(display)和数据源(DataSource)2、 当前Form中的init()方法中重写该事件,就可以从Form的数据源中定位的字段值对当前数据源过滤符合数据区域!public void init(){ YAM_VirtualWareHouseTrans trans; Common _com; DictTable dict; DictField dictField; int ... Read More
posted @ 2009-11-11 15:06 Fandy Xie Views(159) Comments(0) Diggs(0)
qty getUnitConvert(Qty qty, ItemId ItemId, UnitId _InventUnit, UnitId _CsmUnitId){ Real factor_ok; Qty CSMQty; ; factor_ok = unitconvert::find(ItemId,_InventUnit,_CsmUnitId).Factor; //库存单位到海关单位 if(factor_ok == 0.00) { factor_ok = unitconvert::find(ItemId,_CsmUnitId,_InventUnit).Factor;//海关单位到库存单位 if Read More
posted @ 2009-11-11 09:33 Fandy Xie Views(214) Comments(0) Diggs(0)
/***用X++实现有规律分割的长字符串,分别提取(如逗号隔开)*/Job Teststatic void xyf_ProcessLongStr_set(Args _args){ YAM_ProcessLongStr st = new YAM_ProcessLongStr(); setIterator setIt; //set会自动排序和去除冗余字符串 ListIterator ListIt;//list同理,只是list不会去除字符串冗余和不会自动排序 str s = 'd,te,ut,o,w,q';; /** 要拆分的分隔符为逗号,即可容许各种有规律的分隔符 默认为&quo Read More
posted @ 2009-11-11 09:28 Fandy Xie Views(365) Comments(0) Diggs(0)
/*自定义Dialog中对数组的取值以下为Job*/static void xyf_DialogDimension(Args _args){ Dialog _Dialog = new Dialog("Test Array->Dimension"); DialogField dlgDimension; Dimension _Dimension; FormDataSource LedgerTable_ds;; dlgDimension = _Dialog.addField(typeId(Dimension),"成本利润中心"); dlgDimensio Read More
posted @ 2009-11-11 08:47 Fandy Xie Views(295) Comments(0) Diggs(0)