毕业设计——代码_第1页
毕业设计——代码_第2页
毕业设计——代码_第3页
毕业设计——代码_第4页
毕业设计——代码_第5页
已阅读5页,还剩118页未读, 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、*&-*& Report  ZZPXYLBS_LOGIN*&*&-*&*&*&-*report zzpxylbs_login.data: ok_code type sy-ucomm,      save_ok type sy-ucomm.data init.data container type ref to cl_gui_cust

2、om_container.data picture type ref to cl_gui_picture.data:itab type zzyltest occurs 0 with header line .data:gt_qjitab type zzyltestqj occurs 0 with header line,      gt_

3、qjitabl type zzyltestqj.data:gt_ccitab type zzyltestcc occurs 0 with header line,     gt_ccitabl type zzyltestcc .data:gt_pxitab type zyltrain occurs 0 with header line,  

4、;   gt_pxitabl type zyltrain .data:tid(20) type c,      tpass(20) type c,      judge type i value 1 .data: mpost(10) type c ,   &#

5、160;  mapart(10) type c ,      nowdate type sy-datum,      enddate type sy-datum.data: gtline type zzyltestqjl occurs 0 with header line,   

6、   gtlinecc type zzyltestccl occurs 0 with header line,      gtlinepx type zyltrainl occurs 0 with header line.start-of-selection.  call screen 100.*-*  MO

7、DULE status_0100 OUTPUT*-*-*module status_0100 output.  nowdate = sy-datum .  select * into corresponding fields of table itab from zzyltest.  select * from zzyltestqj in

8、to corresponding fields of table gt_qjitab .  set pf-status 'GUI'.  loop at itab where qjing = 'X' or pxing = 'X' or ccing = 'X'. 

9、60;  if itab-qjing = 'X'.      select * from zzyltestqj into corresponding fields of table gt_qjitab where u_id = itab-u_id .      loop&#

10、160;at gt_qjitab.        enddate = gt_qjitab-bdate + gt_qjitab-dayn .        if nowdate > enddate.          clear: gt

11、line,gtline.          move-corresponding gt_qjitab to gtline.          append gtline.          insert zzyltestqjl from&#

12、160;table  gtline.          update zzyltest set qjing = '' where u_id = gt_qjitab-u_id .          delete from  zzylte

13、stqj where u_id = gt_qjitab-u_id .        endif.      endloop.    endif.    if itab-ccing = 'X'.      select

14、0;* from zzyltestcc into corresponding fields of table gt_ccitab where u_id =  itab-u_id  .      loop at gt_ccitab.        enddate = gt

15、_ccitab-edate .        if nowdate > enddate.          clear: gtlinecc,gtlinecc.          move-corresponding gt_ccitab to&#

16、160;gtlinecc.          append gtlinecc.          insert zzyltestccl from table  gtlinecc.          update zzyltest&

17、#160;set ccing = '' where u_id = gt_ccitab-u_id .          delete from  zzyltestcc where  u_id = gt_ccitab-u_id .       &#

18、160;endif.      endloop.    endif.    if itab-pxing = 'X'.      select * from zyltrain into corresponding fields of table gt_pxitab&

19、#160;where u_id = itab-u_id .      loop at gt_pxitab.        enddate = gt_pxitab-bdate.        if nowdate > enddate.  

20、0;       clear: gtlinepx,gtlinepx.          move-corresponding gt_pxitab to gtlinepx.          append gtlinepx.     

21、;     insert zyltrainl from table  gtlinepx.          update zzyltest set pxing = '' where u_id = gt_pxitab-u_id .    

22、0;     delete from  zyltrain where u_id = gt_pxitab-u_id .        endif.      endloop.    endif.  endloop.  if init 

23、;is initial.*图片地址字段定义    data url(255).    clear url.*创建对象    create object container      exporting        container_name = 'CC

24、9;.    create object picture      exporting        parent = container      exceptions        error  = 1.&

25、#160;   if sy-subrc ne 0.    endif.*定义通用函数取得图片地址    perform load_pic_from_db changing url.*显示图片    call method picture->load_picture_from_url      expor

26、ting        url = url.    clear url.    if sy-subrc ne 0.    endif.*置标志位已初始    init = 'X'.  endif.endmodule.  &#

27、160;                 "status_0100 OUTPUT*-*  MODULE user_command_0100 INPUT*-*-*module user_command_0100 input.  save_ok = ok_code.  clear o

28、k_code.  case save_ok.    when 'M01'.      call screen 100.    when 'M02'.      call screen 101.    when 'M03&

29、#39;.      leave program.    when '&BACK'.      leave program.    when '&EXIT'.      leave program.   

30、0;when 'BTSURE'.      loop at itab.        if  itab-u_id = tid and itab-passw = tpass.          judge = 3.&

31、#160;         mpost = itab-post.          mapart = itab-apart.          exit.        endif.

32、0;     endloop.      if judge = 3.        judge = 1.        if mapart = 'I'.       

33、;   message '登陆成功 !' type 'S'.          tpass = '' .          set parameter id 'apart' field 

34、mapart.          set parameter id 'id' field tid.          call transaction 'ZYL_MANAGER'.        elseif 

35、;'H' co mpost.          set parameter id 'apart' field mapart.          set parameter id 'id' field tid.  

36、        call transaction 'ZZPXYLBS_BOSS'.          tpass = '' .          message '登陆成功 !' type&#

37、160;'S'.        elseif 'MAX' eq tid.          call transaction 'ZYL_ZJL'.          tpass = ''

38、 .          message '登陆成功 !' type 'S'.        else.          set parameter id 'apart' field

39、 mapart.          set parameter id 'id' field tid.          call transaction 'ZYL_USER'.         &#

40、160;tpass = '' .          message '登陆成功 !' type 'S'.        endif.      else.       &#

41、160;tpass = '' .        message '用户名或密码错误!' type 'E'.      endif.    when 'BTCANCEL'.      leave program.

42、60;   when others.  endcase.endmodule.                    "user_command_0100 INPUT*&-*&      Form  load_pic_from

43、_db*&-*       text*-*      ->P_URL      text*-*form load_pic_from_db changing p_url.  data query_table like w3query occurs 1 with header&#

44、160;line.  data html_table like w3html occurs 1.  data return_code like w3param-ret_code.  data content_type like w3param-cont_type.  data content_length like w3param-cont_len.  da

45、ta pic_data like w3mime occurs 0.  data pic_size type i.  refresh query_table.*查询对象数据  query_table-name = '_OBJECT_ID'.*图片对象名称  query_table-value = 'YL'.  " &#

46、160; QUERY_TABLE-VALUE = 'C:Userstest.gif'.  append query_table.*读取WWWDATA表,取得图片对象信息  call function 'WWW_GET_MIME_OBJECT'    tables      query_string      

47、;  = query_table      html                = html_table      mime            

48、0;   = pic_data    changing      return_code         = return_code      content_type        = content_typ

49、e      content_length      = content_length    exceptions      object_not_found    = 1      parameter_not_found = 2 

50、;     others              = 3.  if sy-subrc = 0.* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO*      

51、0;  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.    pic_size = content_length.  endif.*创建图片URL地址  call function 'DP_CREATE_URL'    exporting      type 

52、;                = 'IMAGE'      subtype              = cndp_sap_tab_unknown    

53、60; size                 = pic_size*     DATE                 =*     T

54、IME                 =*     DESCRIPTION          =      lifetime        

55、;     = cndp_lifetime_transaction*     CACHEABLE            =    tables      data         

56、        = pic_data*     FIELDS               =*     PROPERTIES           =&

57、#160;   changing      url                  = url    exceptions      dp_invalid_parameter = 1 &#

58、160;    dp_error_put_table   = 2      dp_error_general     = 3      others               = 

59、;4.  if sy-subrc <> 0.* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.  endif.endform.   &

60、#160;                "load_pic_from_db*-*  MODULE status_0101 OUTPUT*-*-*module status_0101 output.  set pf-status 'GUI'.endmodule.    &#

61、160;               "status_0101 OUTPUT*-*  MODULE user_command_0101 INPUT*-*-*module user_command_0101 input.  save_ok = ok_code.  clear ok_code. 

62、; case save_ok.    when 'M01'.      call screen 100.    when 'M02'.      call screen 101.    when 'M03'. &

63、#160;    leave program.    when '&BACK'.      leave program.    when '&EXIT'.      leave program.  endcase.endmodule.

64、0;                   "user_command_0101 INPUT*&-*& Report  ZZPXYLBS_LOGIN*&*&-*&*&*&-*report zzpxylbs_login.data: ok_code type sy-uc

65、omm,      save_ok type sy-ucomm.data init.data container type ref to cl_gui_custom_container.data picture type ref to cl_gui_picture.data:itab type zzyltest occurs 0 with head

66、er line .data:gt_qjitab type zzyltestqj occurs 0 with header line,      gt_qjitabl type zzyltestqj.data:gt_ccitab type zzyltestcc occurs 0 with header line,    

67、 gt_ccitabl type zzyltestcc .data:gt_pxitab type zyltrain occurs 0 with header line,     gt_pxitabl type zyltrain .data:tid(20) type c,      tpass(20) type 

68、;c,      judge type i value 1 .data: mpost(10) type c ,      mapart(10) type c ,      nowdate type sy-datum,     &#

69、160;enddate type sy-datum.data: gtline type zzyltestqjl occurs 0 with header line,      gtlinecc type zzyltestccl occurs 0 with header line,      gtlinepx&

70、#160;type zyltrainl occurs 0 with header line.start-of-selection.  call screen 100.*-*  MODULE status_0100 OUTPUT*-*-*module status_0100 output.  nowdate = sy-datum .  select *

71、0;into corresponding fields of table itab from zzyltest.  select * from zzyltestqj into corresponding fields of table gt_qjitab .  set pf-status 'GUI'.  loop at&#

72、160;itab where qjing = 'X' or pxing = 'X' or ccing = 'X'.    if itab-qjing = 'X'.      select * from zzyltestqj into c

73、orresponding fields of table gt_qjitab where u_id = itab-u_id .      loop at gt_qjitab.        enddate = gt_qjitab-bdate + gt_qjitab-dayn .  

74、;      if nowdate > enddate.          clear: gtline,gtline.          move-corresponding gt_qjitab to gtline.    

75、      append gtline.          insert zzyltestqjl from table  gtline.          update zzyltest set qjing = ''

76、; where u_id = gt_qjitab-u_id .          delete from  zzyltestqj where u_id = gt_qjitab-u_id .        endif.      e

77、ndloop.    endif.    if itab-ccing = 'X'.      select * from zzyltestcc into corresponding fields of table gt_ccitab where u_id =  itab-u

78、_id  .      loop at gt_ccitab.        enddate = gt_ccitab-edate .        if nowdate > enddate.       &

79、#160;  clear: gtlinecc,gtlinecc.          move-corresponding gt_ccitab to gtlinecc.          append gtlinecc.         &#

80、160;insert zzyltestccl from table  gtlinecc.          update zzyltest set ccing = '' where u_id = gt_ccitab-u_id .         

81、; delete from  zzyltestcc where  u_id = gt_ccitab-u_id .        endif.      endloop.    endif.    if itab-pxing = 'X'

82、.      select * from zyltrain into corresponding fields of table gt_pxitab where u_id = itab-u_id .      loop at gt_pxitab.      &

83、#160; enddate = gt_pxitab-bdate.        if nowdate > enddate.          clear: gtlinepx,gtlinepx.          move-correspondi

84、ng gt_pxitab to gtlinepx.          append gtlinepx.          insert zyltrainl from table  gtlinepx.         &#

85、160;update zzyltest set pxing = '' where u_id = gt_pxitab-u_id .          delete from  zyltrain where u_id = gt_pxitab-u_id .    

86、60;   endif.      endloop.    endif.  endloop.  if init is initial.*图片地址字段定义    data url(255).    clear url.*创建对象    create o

87、bject container      exporting        container_name = 'CC'.    create object picture      exporting        

88、;parent = container      exceptions        error  = 1.    if sy-subrc ne 0.    endif.*定义通用函数取得图片地址    perform load_pic_from_d

89、b changing url.*显示图片    call method picture->load_picture_from_url      exporting        url = url.    clear url.    if sy-subr

90、c ne 0.    endif.*置标志位已初始    init = 'X'.  endif.endmodule.                    "status_0100 OUTPUT*-*  

91、MODULE user_command_0100 INPUT*-*-*module user_command_0100 input.  save_ok = ok_code.  clear ok_code.  case save_ok.    when 'M01'.      call screen 100.

92、60;   when 'M02'.      call screen 101.    when 'M03'.      leave program.    when '&BACK'.      

93、leave program.    when '&EXIT'.      leave program.    when 'BTSURE'.      loop at itab.        if  

94、itab-u_id = tid and itab-passw = tpass.          judge = 3.          mpost = itab-post.          map

95、art = itab-apart.          exit.        endif.      endloop.      if judge = 3.       

96、0;judge = 1.        if mapart = 'I'.          message '登陆成功 !' type 'S'.          tpass

97、0;= '' .          set parameter id 'apart' field mapart.          set parameter id 'id' field tid.   

98、       call transaction 'ZYL_MANAGER'.        elseif 'H' co mpost.          set parameter id 'apart' field

99、 mapart.          set parameter id 'id' field tid.          call transaction 'ZZPXYLBS_BOSS'.        

100、60; tpass = '' .          message '登陆成功 !' type 'S'.        elseif 'MAX' eq tid.       &

101、#160;  call transaction 'ZYL_ZJL'.          tpass = '' .          message '登陆成功 !' type 'S'.   

102、60;    else.          set parameter id 'apart' field mapart.          set parameter id 'id' field tid.  

103、        call transaction 'ZYL_USER'.          tpass = '' .          message '登陆成功 !' type &

104、#39;S'.        endif.      else.        tpass = '' .        message '用户名或密码错误!' type 'E'.

105、60;     endif.    when 'BTCANCEL'.      leave program.    when others.  endcase.endmodule.             

106、0;      "user_command_0100 INPUT*&-*&      Form  load_pic_from_db*&-*       text*-*      ->P_URL      text*-*f

107、orm load_pic_from_db changing p_url.  data query_table like w3query occurs 1 with header line.  data html_table like w3html occurs 1.  data return_code like w3param-ret_code.&

108、#160; data content_type like w3param-cont_type.  data content_length like w3param-cont_len.  data pic_data like w3mime occurs 0.  data pic_size type i.  refresh query_table.*查询对象数据

109、  query_table-name = '_OBJECT_ID'.*图片对象名称  query_table-value = 'YL'.  "   QUERY_TABLE-VALUE = 'C:Userstest.gif'.  append query_table.*读取WWWDATA表,取得图片对象信息  call functi

110、on 'WWW_GET_MIME_OBJECT'    tables      query_string        = query_table      html             &

111、#160;  = html_table      mime                = pic_data    changing      return_code      

112、   = return_code      content_type        = content_type      content_length      = content_length    exceptions &#

113、160;    object_not_found    = 1      parameter_not_found = 2      others              = 3.  if 

114、sy-subrc = 0.* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.    pic_size = content_length.  end

115、if.*创建图片URL地址  call function 'DP_CREATE_URL'    exporting      type                 = 'IMAGE'     &

116、#160;subtype              = cndp_sap_tab_unknown      size                 = pic_size*   &

117、#160; DATE                 =*     TIME                 =*     DESCRIPTION&#

118、160;         =      lifetime             = cndp_lifetime_transaction*     CACHEABLE        

119、;    =    tables      data                 = pic_data*     FIELDS               =*     PROPERTIES           =   

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论