已阅读5页,还剩2页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Datastore: 在当前需要存储数据dw u_datastore lds_datalds_data = Create u_datastorelds_data.dataobject=dw_1.dataobjectlong ll_num if dw_1.rowcount()0 then for i=1 to dw_1.rowcount() if dw_1.getitemnumber(i,check)=1 then ll_num = lds_data.insertrow(0) lds_data.object.code_valuell_num = dw_1.object.code_valuei lds_data.object.code_chinesell_num = dw_1.object.code_chinesei end if end forend ifclosewithreturn(parent,lds_data)在调用该方法的控件里u_datastore lds_datalds_data = message.powerobjectparmlong ll_num,ill_num = lds_data.rowcount()if ll_num 0 then for i = 1 to ll_num ll_row = dw_1.insertrow(0) dw_1.object.banz_idll_row = lds_data.object.code_valuei dw_1.object.banzll_row = lds_data.object.code_chinesei nextend if当使用的时候必须先判断是否为有效的,不然方法不能使用,会跳出错误的,isvalid()2、Str:在需要存储数据的窗口/l1 = 1;/if dw_1.rowcount()0 then/for i=1 to dw_1.rowcount()/if dw_1.getitemnumber(i,check)=1 then /str_sys.code_valuel1=dw_1.object.code_valuei/str_sys.code_chinesel1=dw_1.object.code_chinesei/l1+/end if/end for/end if/closewithreturn(parent,str_sys)在调用其方法的控件里/str_dpdw_sys_codedetall str_sys/str_sys = message.powerobjectparm/long ll_num/int i/ll_num = UpperBound(str_sys.code_value)/if ll_num 0 then/for i = 1 to ll_num/ll_row = dw_1.insertrow(0)/dw_1.object.banz_idll_row = str_sys.code_valuei/dw_1.object.banzll_row = str_sys.code_chinesei/next/end ifDw_dpdw_sys_codedetallstr_ea_yhyymxsj str_yhyyLong l_row,i,l_1=1String ls_selectFOR i = 1 TO dw_1.RowCount()ls_select = dw_1.GetItemString(i,bs_select)IF Long(ls_select) = 1 THENstr_yhyy.i_statusl_1= dw_1.GetItemNumber(i,i_status)str_yhyy.yydhl_1 = dw_1.GetItemString(i,yydh)str_yhyy.larql_1 = dw_1.GetItemDateTime(i,larq)str_yhyy.zlyysll_1= dw_1.GetItemDecimal( i, zlyysl)str_yhyy.yyzll_1 = dw_1.GetItemDecimal( i, yyzl)str_yhyy.zyxzl_1 =dw_1.GetItemString(i,zyxz)str_yhyy.kbhl_1= dw_1.GetItemString(i,kbh)str_yhyy.pml_1= dw_1.GetItemString(i,pm)str_yhyy.bs_khmcl_1= dw_1.GetItemString(i,bs_khmc)str_yhyy.qxlbl_1= dw_1.GetItemString(i,qxlb)str_yhyy.yyyyl_1= dw_1.GetItemString(i,yyyy)str_yhyy.bzl_1= dw_1.GetItemString(i,bz)str_yhyy.clrql_1= dw_1.GetItemDateTime(i,clrq)str_yhyy.gzl_1= dw_1.GetItemString(i,gz)str_yhyy.ggl_1= dw_1.GetItemString(i,gg)str_yhyy.jsyql_1= dw_1.GetItemString(i,jsyq)str_yhyy.zlxql_1= dw_1.GetItemString(i,zlxq)str_yhyy.qtbyl_1= dw_1.GetItemString(i,qtby)str_yhyy.scrql_1= dw_1.GetItemDateTime(i,scrq)str_yhyy.yyqkl_1= dw_1.GetItemString(i,yyqk)str_yhyy.cljgl_1= dw_1.GetItemString(i,cljg)l_1+END IFNEXTCloseWithReturn(w_bs_gc_client_yhyymx_tx,str_yhyy)/PARENT,u_datastorelds_2Long l_row,i/u_u_String ls_selectlds_2 = CREATE u_datastorelds_2.DataObject = dw_ea_yhyymxsjFOR i = 1 TO dw_1.RowCount()ls_select = dw_1.GetItemString(i,bs_select)IF Long(ls_select) = 1 THENl_row = lds_2.InsertRow( 0)lds_2.SetItem(l_row , i_status , dw_1.GetItemNumber(i,i_status)lds_2.SetItem( l_row, yydh, dw_1.GetItemString(i,yydh)lds_2.SetItem( l_row, larq, dw_1.GetItemDateTime(i,larq)lds_2.SetItem( l_row, zlyysl, dw_1.GetItemDecimal( i, zlyysl)lds_2.SetItem( l_row, yyzl, dw_1.GetItemDecimal( i, yyzl)lds_2.SetItem( l_row, zyxz, dw_1.GetItemString(i,zyxz)lds_2.SetItem( l_row, kbh, dw_1.GetItemString(i,kbh)lds_2.SetItem( l_row, pm, dw_1.GetItemString(i,pm)lds_2.SetItem( l_row, bs_khmc, dw_1.GetItemString(i,bs_khmc)lds_2.SetItem( l_row, qxlb, dw_1.GetItemString(i,qxlb)lds_2.SetItem( l_row, yyyy, dw_1.GetItemString(i,yyyy)lds_2.SetItem( l_row, bz, dw_1.GetItemString(i,bz)lds_2.SetItem( l_row, clrq, dw_1.GetItemDateTime(i,clrq)lds_2.SetItem( l_row, gz, dw_1.GetItemString(i,gz)lds_2.SetItem( l_row, gg, dw_1.GetItemString(i,gg)lds_2.SetItem( l_row, jsyq, dw_1.GetItemString(i,jsyq)lds_2.SetItem( l_row, zlxq, dw_1.GetItemString(i,zlxq)lds_2.SetItem( l_row, qtby, dw_1.GetItemString(i,qtby)lds_2.SetItem( l_row, scrq, dw_1.GetItemDateTime(i,scrq)lds_2.SetItem( l_row, yyqk, dw_1.GetItemString(i,yyqk)lds_2.SetItem( l_row, cljg, dw_1.GetItemString(i,cljg)END IFNEXTCloseWithReturn(w_bs_gc_client_yhyymx_tx,lds_2)/PARENT,String ymym = dw_1.GetItemString(1,ym)OpenWithParm(w_bs_gc_client_yhyymx_tx,ym)u_datastorelds_2lds_2 = CREATE u_datastorelds_2 = Message.PowerObjectParmIF IsValid(lds_2) THENLong lll_row,l_find_row,iString yyh,kbh,sIF dw_1.RowCount() 0 THENIF lds_2.RowCount( ) 0 THENFOR i = 1 TO lds_2.RowCount( )yyh = lds_2.GetItemString(i,yydh)kbh = lds_2.GetItemString(i,kbh)s = yyh = +yyh+ and bundle_no = +kbh+l_find_row = dw_2.Find( s, 1, dw_2.RowCount()IF l_find_row = 0 THENlll_row = dw_2.InsertRow(0)dw_2.SetItem(lll_row , Pt_user_id , gu_app.uf_get_gappuserID()dw_2.SetItem(lll_row , pt_user_name , gu_app.uf_get_gappusername()dw_2.SetItem(lll_row , make_e_id ,gu_app.uf_get_gappempid()dw_2.SetItem(lll_row , make_name ,gu_app.uf_get_gappempname()dw_2.SetItem(lll_row , make_date , gu_app.uf_get_server_datetime()dw_2.SetItem(lll_row , ym , dw_1.GetItemString(1,ym)dw_2.SetItem(lll_row , year , dw_1.GetItemString(1,year)dw_2.SetItem(lll_row , months , dw_1.GetItemString(1,months)dw_2.SetItem(lll_row , id , dw_1.GetItemNumber(1,id)dw_2.SetItem(lll_row , item_id , uf_get_next_id() /item_iddw_2.SetItem(lll_row , i_status , lds_2.GetItemNumber(i,i_status)dw_2.SetItem( lll_row, yyh, lds_2.GetItemString(i,yydh)dw_2.SetItem( lll_row, lasj, lds_2.GetItemDateTime(i,larq)dw_2.SetItem( lll_row, yytsl, lds_2.GetItemDecimal( i, zlyysl)dw_2.SetItem( lll_row, sl, lds_2.GetItemDecimal( i, yyzl)dw_2.SetItem( lll_row, zyxz, lds_2.GetItemString(i,zyxz)dw_2.SetItem( lll_row, bundle_no, lds_2.GetItemString(i,kbh)dw_2.SetItem( lll_row, pzlb, lds_2.GetItemString(i,pm)dw_2.SetItem( lll_row, zzyh, lds_2.GetItemString(i,bs_khmc)dw_2.SetItem( lll_row, yygjz, lds_2.GetItemString(i,qxlb)dw_2.SetItem( lll_row, yyyy, lds_2.GetItemString(i,yyyy)dw_2.SetItem( lll_row, bz, lds_2.GetItemString(i,bz)dw_2.SetItem( lll_row, clrq, lds_2.GetItemDateTime(i,clrq)dw_2.SetItem( lll_row, gz, lds_2.GetItemString(i,gz)dw_2.SetItem( lll_row, gg, lds_2.GetItemString(i,gg)dw_2.SetItem( lll_row, jsXq, lds_2.GetItemString(i,jsyq)dw_2.SetItem( lll_row, zlxq, lds_2.GetItemString(i,zlxq)dw_2.SetItem( lll_row, qtby, lds_2.GetItemString(i,qtby)dw_2.SetItem( lll_row, scrq, lds_2.GetItemDateTime(i,scrq)dw_2.SetItem( lll_row, yyqk, lds_2.GetItemString(i,yyqk)dw_2.SetItem( lll_row, cljg, lds_2.GetItemString(i,cljg)END IFNEXTEND IFEND IFDESTROY lds_2END IF/RETURN 1/str_yhyy.i_statusl_1= dw_1.GetItemNumber(i,i_status)str_yhyy.yydhl_1 = dw_1.GetItemString(i,yydh)str_yhyy.larql_1 = dw_1.GetItemDateTime(i,larq)str_yhyy.zlyysll_1= dw_1.GetItemDecimal( i, zlyysl)str_yhyy.yyzll_1 = dw_1.GetItemDecimal( i, yyzl)str_yhyy.zyxzl_1 =dw_1.GetItemString(i,zyxz)str_yhyy.kbhl_1= dw_1.GetItemString(i,kbh)str_yhyy.pml_1= dw_1.GetItemString(i,pm)str_yhyy.bs_khmcl_1= dw_1.GetItemString(i,bs_khmc)str_yhyy.qxlbl_1= dw_1.GetItemString(i,qxlb)str_yhyy.yyyyl_1= dw_1.GetItemString(i,yyyy)str_yhyy.bzl_1= dw_1.GetItemString(i,bz)str_yhyy.clrql_1= dw_1.GetItemDateTime(i,clrq)str_yhyy
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 多发伤院内急救临床路径
- 2024年机场信息网络系统项目投资建议书
- 人社加强属单位管理亮点经验做法
- 幼儿园小班教师个人工作总结2篇
- 劳动者解除劳动合同的情形
- 译林版五年级下册英语期中测试卷(含听力材料)
- 留守老人社会疏离的社会工作干预案例-家庭层面的干预
- 高压电工实际操作题解读
- 对徐州市五所高职院校学生体育锻炼现状的调查研究-2019年教育文档
- 教学查房病历汇报
- 消防安全教育培训记录
- 茶艺棋牌室消防安全管理制度与灭火疏散应急预案
- 小班谁的脚印绘本教案
- 机械设备安装检查验收表(共14页)
- 旅游推介会策划方案
- 《油轮安全知识》PPT课件.ppt
- 各类矿图的绘制要求及标准
- 雷尼绍探头编程步骤V
- 沟槽回填技术交底
- 幼儿园课件:《大海里的鱼宝宝》
- 金风变桨系统1
评论
0/150
提交评论