上传用户:zhpu1995
上传日期:2013-09-06
资源大小:61151k
文件大小:43k
源码类别:

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{65A39231-6133-11D1-BAA2-444553540000}#1.0#0"; "vslight6.OCX"
  3. Object = "{D76D7128-4A96-11D3-BD95-D296DC2DD072}#1.0#0"; "VSOCX7.OCX"
  4. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
  5. Begin VB.Form Dev_CheckScenarioListForm 
  6.    BackColor       =   &H8000000B&
  7.    Caption         =   "设备检修计划方案列表"
  8.    ClientHeight    =   8595
  9.    ClientLeft      =   315
  10.    ClientTop       =   390
  11.    ClientWidth     =   11820
  12.    HelpContextID   =   2506006
  13.    Icon            =   "设备检修_检修方案显示.frx":0000
  14.    KeyPreview      =   -1  'True
  15.    LinkTopic       =   "Form1"
  16.    MDIChild        =   -1  'True
  17.    ScaleHeight     =   8595
  18.    ScaleWidth      =   11820
  19.    WindowState     =   2  'Maximized
  20.    Begin MSComctlLib.Toolbar GsToolbar 
  21.       Height          =   540
  22.       Left            =   9330
  23.       TabIndex        =   3
  24.       Top             =   30
  25.       Width           =   2475
  26.       _ExtentX        =   4366
  27.       _ExtentY        =   953
  28.       ButtonWidth     =   1455
  29.       ButtonHeight    =   953
  30.       Appearance      =   1
  31.       Style           =   1
  32.       ImageList       =   "ImageList2"
  33.       _Version        =   393216
  34.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  35.          NumButtons      =   3
  36.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  37.             Caption         =   "保存格式"
  38.             Key             =   "bcgs"
  39.             ImageKey        =   "bcgs"
  40.          EndProperty
  41.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  42.             Caption         =   "默认列宽"
  43.             Key             =   "hfmrgs"
  44.             ImageKey        =   "mrlk"
  45.          EndProperty
  46.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  47.             Caption         =   "显示项目"
  48.             Key             =   "szxsxm"
  49.             ImageKey        =   "xsxm"
  50.          EndProperty
  51.       EndProperty
  52.    End
  53.    Begin VB.PictureBox Pic_Title 
  54.       BackColor       =   &H00FFFFFF&
  55.       Height          =   825
  56.       Left            =   0
  57.       Picture         =   "设备检修_检修方案显示.frx":1042
  58.       ScaleHeight     =   765
  59.       ScaleWidth      =   11715
  60.       TabIndex        =   1
  61.       Top             =   570
  62.       Width           =   11775
  63.       Begin VB.Label Lab_Title 
  64.          BackColor       =   &H80000018&
  65.          BackStyle       =   0  'Transparent
  66.          Caption         =   "设备检修计划方案列表"
  67.          BeginProperty Font 
  68.             Name            =   "宋体"
  69.             Size            =   12
  70.             Charset         =   134
  71.             Weight          =   700
  72.             Underline       =   0   'False
  73.             Italic          =   0   'False
  74.             Strikethrough   =   0   'False
  75.          EndProperty
  76.          ForeColor       =   &H00000000&
  77.          Height          =   300
  78.          Index           =   4
  79.          Left            =   510
  80.          TabIndex        =   2
  81.          Top             =   210
  82.          Width           =   2625
  83.       End
  84.    End
  85.    Begin VB.Timer Timer1 
  86.       Enabled         =   0   'False
  87.       Interval        =   1
  88.       Left            =   7620
  89.       Top             =   90
  90.    End
  91.    Begin VSFlex8Ctl.VSFlexGrid CxbbGrid 
  92.       Height          =   7545
  93.       Left            =   30
  94.       TabIndex        =   0
  95.       Top             =   1470
  96.       Width           =   11775
  97.       _ExtentX        =   20770
  98.       _ExtentY        =   13309
  99.       Appearance      =   1
  100.       BorderStyle     =   1
  101.       Enabled         =   -1  'True
  102.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  103.          Name            =   "宋体"
  104.          Size            =   9
  105.          Charset         =   134
  106.          Weight          =   400
  107.          Underline       =   0   'False
  108.          Italic          =   0   'False
  109.          Strikethrough   =   0   'False
  110.       EndProperty
  111.       MousePointer    =   0
  112.       BackColor       =   16777215
  113.       ForeColor       =   -2147483640
  114.       BackColorFixed  =   13826538
  115.       ForeColorFixed  =   -2147483630
  116.       BackColorSel    =   -2147483635
  117.       ForeColorSel    =   -2147483634
  118.       BackColorBkg    =   -2147483636
  119.       BackColorAlternate=   16777215
  120.       GridColor       =   -2147483633
  121.       GridColorFixed  =   -2147483632
  122.       TreeColor       =   -2147483632
  123.       FloodColor      =   192
  124.       SheetBorder     =   -2147483642
  125.       FocusRect       =   1
  126.       HighLight       =   1
  127.       AllowSelection  =   -1  'True
  128.       AllowBigSelection=   -1  'True
  129.       AllowUserResizing=   0
  130.       SelectionMode   =   0
  131.       GridLines       =   1
  132.       GridLinesFixed  =   2
  133.       GridLineWidth   =   1
  134.       Rows            =   50
  135.       Cols            =   10
  136.       FixedRows       =   1
  137.       FixedCols       =   1
  138.       RowHeightMin    =   0
  139.       RowHeightMax    =   0
  140.       ColWidthMin     =   0
  141.       ColWidthMax     =   0
  142.       ExtendLastCol   =   0   'False
  143.       FormatString    =   ""
  144.       ScrollTrack     =   0   'False
  145.       ScrollBars      =   3
  146.       ScrollTips      =   0   'False
  147.       MergeCells      =   0
  148.       MergeCompare    =   0
  149.       AutoResize      =   -1  'True
  150.       AutoSizeMode    =   0
  151.       AutoSearch      =   0
  152.       MultiTotals     =   -1  'True
  153.       SubtotalPosition=   1
  154.       OutlineBar      =   0
  155.       OutlineCol      =   0
  156.       Ellipsis        =   0
  157.       ExplorerBar     =   0
  158.       PicturesOver    =   0   'False
  159.       FillStyle       =   0
  160.       RightToLeft     =   0   'False
  161.       PictureType     =   0
  162.       TabBehavior     =   0
  163.       OwnerDraw       =   0
  164.       Editable        =   0   'False
  165.       ShowComboButton =   -1  'True
  166.       WordWrap        =   0   'False
  167.       TextStyle       =   0
  168.       TextStyleFixed  =   0
  169.       OleDragMode     =   0
  170.       OleDropMode     =   0
  171.       DataMode        =   0
  172.       VirtualData     =   -1  'True
  173.       Begin MSComctlLib.ImageList ImageList2 
  174.          Left            =   0
  175.          Top             =   0
  176.          _ExtentX        =   1005
  177.          _ExtentY        =   1005
  178.          BackColor       =   -2147483643
  179.          ImageWidth      =   16
  180.          ImageHeight     =   16
  181.          MaskColor       =   12632256
  182.          _Version        =   393216
  183.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  184.             NumListImages   =   40
  185.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  186.                Picture         =   "设备检修_检修方案显示.frx":1DF82
  187.                Key             =   "sz"
  188.             EndProperty
  189.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  190.                Picture         =   "设备检修_检修方案显示.frx":1E31C
  191.                Key             =   "dy"
  192.             EndProperty
  193.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  194.                Picture         =   "设备检修_检修方案显示.frx":1E6B6
  195.                Key             =   "yl"
  196.             EndProperty
  197.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  198.                Picture         =   "设备检修_检修方案显示.frx":1EA50
  199.                Key             =   "xg"
  200.             EndProperty
  201.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  202.                Picture         =   "设备检修_检修方案显示.frx":1EDEA
  203.                Key             =   "zh"
  204.             EndProperty
  205.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  206.                Picture         =   "设备检修_检修方案显示.frx":1F184
  207.                Key             =   "sh"
  208.             EndProperty
  209.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  210.                Picture         =   "设备检修_检修方案显示.frx":1F51E
  211.                Key             =   "bc"
  212.             EndProperty
  213.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  214.                Picture         =   "设备检修_检修方案显示.frx":1F8B8
  215.                Key             =   "fq"
  216.             EndProperty
  217.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  218.                Picture         =   "设备检修_检修方案显示.frx":1FC52
  219.                Key             =   "bz"
  220.             EndProperty
  221.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  222.                Picture         =   "设备检修_检修方案显示.frx":1FFEC
  223.                Key             =   "tc"
  224.             EndProperty
  225.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  226.                Picture         =   "设备检修_检修方案显示.frx":20386
  227.                Key             =   "bcgs"
  228.             EndProperty
  229.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  230.                Picture         =   "设备检修_检修方案显示.frx":20720
  231.                Key             =   "mrlk"
  232.             EndProperty
  233.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  234.                Picture         =   "设备检修_检修方案显示.frx":20ABA
  235.                Key             =   "xsxm"
  236.             EndProperty
  237.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  238.                Picture         =   "设备检修_检修方案显示.frx":20E54
  239.                Key             =   "first"
  240.             EndProperty
  241.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  242.                Picture         =   "设备检修_检修方案显示.frx":211EE
  243.                Key             =   "prev"
  244.             EndProperty
  245.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  246.                Picture         =   "设备检修_检修方案显示.frx":21588
  247.                Key             =   "next"
  248.             EndProperty
  249.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  250.                Picture         =   "设备检修_检修方案显示.frx":21922
  251.                Key             =   "last"
  252.             EndProperty
  253.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  254.                Picture         =   "设备检修_检修方案显示.frx":21CBC
  255.                Key             =   "xx"
  256.             EndProperty
  257.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  258.                Picture         =   "设备检修_检修方案显示.frx":22056
  259.                Key             =   "define"
  260.             EndProperty
  261.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  262.                Picture         =   "设备检修_检修方案显示.frx":223F0
  263.                Key             =   "exec"
  264.             EndProperty
  265.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  266.                Picture         =   "设备检修_检修方案显示.frx":2278A
  267.                Key             =   "xz"
  268.             EndProperty
  269.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  270.                Picture         =   "设备检修_检修方案显示.frx":22B24
  271.                Key             =   "sc"
  272.             EndProperty
  273.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  274.                Picture         =   "设备检修_检修方案显示.frx":22EBE
  275.                Key             =   "sx"
  276.             EndProperty
  277.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  278.                Picture         =   "设备检修_检修方案显示.frx":23258
  279.                Key             =   "cx"
  280.             EndProperty
  281.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  282.                Picture         =   "设备检修_检修方案显示.frx":235F2
  283.                Key             =   "zd"
  284.             EndProperty
  285.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  286.                Picture         =   "设备检修_检修方案显示.frx":2398C
  287.                Key             =   "dz"
  288.             EndProperty
  289.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  290.                Picture         =   "设备检修_检修方案显示.frx":23D26
  291.                Key             =   "ph"
  292.             EndProperty
  293.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  294.                Picture         =   "设备检修_检修方案显示.frx":240C0
  295.                Key             =   "fz"
  296.             EndProperty
  297.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  298.                Picture         =   "设备检修_检修方案显示.frx":2445A
  299.                Key             =   "dw"
  300.             EndProperty
  301.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  302.                Picture         =   "设备检修_检修方案显示.frx":247F4
  303.                Key             =   "hf"
  304.             EndProperty
  305.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  306.                Picture         =   "设备检修_检修方案显示.frx":24B8E
  307.                Key             =   "pz"
  308.             EndProperty
  309.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  310.                Picture         =   "设备检修_检修方案显示.frx":24F28
  311.                Key             =   "check"
  312.             EndProperty
  313.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  314.                Picture         =   "设备检修_检修方案显示.frx":252C2
  315.                Key             =   "qs"
  316.             EndProperty
  317.             BeginProperty ListImage34 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  318.                Picture         =   "设备检修_检修方案显示.frx":2565C
  319.                Key             =   "fullcheck"
  320.             EndProperty
  321.             BeginProperty ListImage35 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  322.                Picture         =   "设备检修_检修方案显示.frx":259F6
  323.                Key             =   "qq"
  324.             EndProperty
  325.             BeginProperty ListImage36 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  326.                Picture         =   "设备检修_检修方案显示.frx":25D90
  327.                Key             =   "bcw"
  328.             EndProperty
  329.             BeginProperty ListImage37 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  330.                Picture         =   "设备检修_检修方案显示.frx":2612A
  331.                Key             =   "ye"
  332.             EndProperty
  333.             BeginProperty ListImage38 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  334.                Picture         =   "设备检修_检修方案显示.frx":264C4
  335.                Key             =   ""
  336.             EndProperty
  337.             BeginProperty ListImage39 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  338.                Picture         =   "设备检修_检修方案显示.frx":2685E
  339.                Key             =   "frist"
  340.             EndProperty
  341.             BeginProperty ListImage40 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  342.                Picture         =   "设备检修_检修方案显示.frx":26BF8
  343.                Key             =   "dj"
  344.             EndProperty
  345.          EndProperty
  346.       End
  347.    End
  348.    Begin MSComctlLib.Toolbar SzToolbar 
  349.       Align           =   1  'Align Top
  350.       Height          =   570
  351.       Left            =   0
  352.       TabIndex        =   4
  353.       Top             =   0
  354.       Width           =   11820
  355.       _ExtentX        =   20849
  356.       _ExtentY        =   1005
  357.       ButtonWidth     =   820
  358.       ButtonHeight    =   953
  359.       AllowCustomize  =   0   'False
  360.       Appearance      =   1
  361.       Style           =   1
  362.       ImageList       =   "ImageList1"
  363.       _Version        =   393216
  364.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  365.          NumButtons      =   12
  366.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  367.             Caption         =   "设置"
  368.             Key             =   "ymsz"
  369.             ImageKey        =   "sz"
  370.          EndProperty
  371.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  372.             Caption         =   "打印"
  373.             Key             =   "dy"
  374.             ImageKey        =   "dy"
  375.          EndProperty
  376.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  377.             Caption         =   "预览"
  378.             Key             =   "yl"
  379.             ImageKey        =   "yl"
  380.          EndProperty
  381.          BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  382.             Style           =   3
  383.          EndProperty
  384.          BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  385.             Caption         =   "查询"
  386.             Key             =   "cx"
  387.             ImageKey        =   "cx"
  388.          EndProperty
  389.          BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  390.             Caption         =   "单据"
  391.             Key             =   "Bill"
  392.             ImageKey        =   "pz"
  393.          EndProperty
  394.          BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  395.             Caption         =   "记录"
  396.             Key             =   "JL"
  397.             ImageKey        =   "JL"
  398.          EndProperty
  399.          BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  400.             Style           =   3
  401.          EndProperty
  402.          BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  403.             Caption         =   "删除"
  404.             Key             =   "sc"
  405.             ImageKey        =   "sc"
  406.          EndProperty
  407.          BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  408.             Style           =   3
  409.          EndProperty
  410.          BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  411.             Caption         =   "帮助"
  412.             Key             =   "bz"
  413.             ImageKey        =   "bz"
  414.          EndProperty
  415.          BeginProperty Button12 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  416.             Caption         =   "退出"
  417.             Key             =   "fh"
  418.             ImageKey        =   "tc"
  419.          EndProperty
  420.       EndProperty
  421.       BorderStyle     =   1
  422.       Begin MSComctlLib.ImageList ImageList1 
  423.          Left            =   6990
  424.          Top             =   30
  425.          _ExtentX        =   1005
  426.          _ExtentY        =   1005
  427.          BackColor       =   -2147483643
  428.          ImageWidth      =   16
  429.          ImageHeight     =   16
  430.          MaskColor       =   12632256
  431.          _Version        =   393216
  432.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  433.             NumListImages   =   33
  434.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  435.                Picture         =   "设备检修_检修方案显示.frx":26F92
  436.                Key             =   "sz"
  437.             EndProperty
  438.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  439.                Picture         =   "设备检修_检修方案显示.frx":2732C
  440.                Key             =   "dy"
  441.             EndProperty
  442.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  443.                Picture         =   "设备检修_检修方案显示.frx":276C6
  444.                Key             =   "yl"
  445.             EndProperty
  446.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  447.                Picture         =   "设备检修_检修方案显示.frx":27A60
  448.                Key             =   "xg"
  449.             EndProperty
  450.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  451.                Picture         =   "设备检修_检修方案显示.frx":27DFA
  452.                Key             =   "zh"
  453.             EndProperty
  454.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  455.                Picture         =   "设备检修_检修方案显示.frx":28194
  456.                Key             =   "sh"
  457.             EndProperty
  458.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  459.                Picture         =   "设备检修_检修方案显示.frx":2852E
  460.                Key             =   "bc"
  461.             EndProperty
  462.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  463.                Picture         =   "设备检修_检修方案显示.frx":288C8
  464.                Key             =   "fq"
  465.             EndProperty
  466.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  467.                Picture         =   "设备检修_检修方案显示.frx":28C62
  468.                Key             =   "bz"
  469.             EndProperty
  470.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  471.                Picture         =   "设备检修_检修方案显示.frx":28FFC
  472.                Key             =   "tc"
  473.             EndProperty
  474.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  475.                Picture         =   "设备检修_检修方案显示.frx":29396
  476.                Key             =   "bcgs"
  477.             EndProperty
  478.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  479.                Picture         =   "设备检修_检修方案显示.frx":29730
  480.                Key             =   "mrlk"
  481.             EndProperty
  482.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  483.                Picture         =   "设备检修_检修方案显示.frx":29ACA
  484.                Key             =   "xsxm"
  485.             EndProperty
  486.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  487.                Picture         =   "设备检修_检修方案显示.frx":29E64
  488.                Key             =   "first"
  489.             EndProperty
  490.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  491.                Picture         =   "设备检修_检修方案显示.frx":2A1FE
  492.                Key             =   "prev"
  493.             EndProperty
  494.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  495.                Picture         =   "设备检修_检修方案显示.frx":2A598
  496.                Key             =   "next"
  497.             EndProperty
  498.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  499.                Picture         =   "设备检修_检修方案显示.frx":2A932
  500.                Key             =   "last"
  501.             EndProperty
  502.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  503.                Picture         =   "设备检修_检修方案显示.frx":2ACCC
  504.                Key             =   "xx"
  505.             EndProperty
  506.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  507.                Picture         =   "设备检修_检修方案显示.frx":2B066
  508.                Key             =   "define"
  509.             EndProperty
  510.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  511.                Picture         =   "设备检修_检修方案显示.frx":2B400
  512.                Key             =   "exec"
  513.             EndProperty
  514.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  515.                Picture         =   "设备检修_检修方案显示.frx":2B79A
  516.                Key             =   "xz"
  517.             EndProperty
  518.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  519.                Picture         =   "设备检修_检修方案显示.frx":2BB34
  520.                Key             =   "sc"
  521.             EndProperty
  522.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  523.                Picture         =   "设备检修_检修方案显示.frx":2BECE
  524.                Key             =   "sx"
  525.             EndProperty
  526.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  527.                Picture         =   "设备检修_检修方案显示.frx":2C268
  528.                Key             =   "cx"
  529.             EndProperty
  530.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  531.                Picture         =   "设备检修_检修方案显示.frx":2C602
  532.                Key             =   "zd"
  533.             EndProperty
  534.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  535.                Picture         =   "设备检修_检修方案显示.frx":2C99C
  536.                Key             =   "dz"
  537.             EndProperty
  538.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  539.                Picture         =   "设备检修_检修方案显示.frx":2CD36
  540.                Key             =   "ph"
  541.             EndProperty
  542.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  543.                Picture         =   "设备检修_检修方案显示.frx":2D0D0
  544.                Key             =   "fz"
  545.             EndProperty
  546.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  547.                Picture         =   "设备检修_检修方案显示.frx":2D46A
  548.                Key             =   "dw"
  549.             EndProperty
  550.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  551.                Picture         =   "设备检修_检修方案显示.frx":2D804
  552.                Key             =   "hf"
  553.             EndProperty
  554.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  555.                Picture         =   "设备检修_检修方案显示.frx":2DB9E
  556.                Key             =   "pz"
  557.             EndProperty
  558.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  559.                Picture         =   "设备检修_检修方案显示.frx":2DF38
  560.                Key             =   "check"
  561.             EndProperty
  562.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  563.                Picture         =   "设备检修_检修方案显示.frx":2E2D2
  564.                Key             =   "JL"
  565.             EndProperty
  566.          EndProperty
  567.       End
  568.    End
  569. End
  570. Attribute VB_Name = "Dev_CheckScenarioListForm"
  571. Attribute VB_GlobalNameSpace = False
  572. Attribute VB_Creatable = False
  573. Attribute VB_PredeclaredId = True
  574. Attribute VB_Exposed = False
  575. '**************************************************************************
  576. '*    模 块 名 称 :设备检修方案列表
  577. '*    功 能 描 述 :
  578. '*    程序员姓名  :王哲
  579. '*    最后修改人  :王哲
  580. '*    最后修改时间:2001/12/25
  581. '*    备        注:程序中所有依实际情况自定义部分均用[>>  <<]括起
  582. '**************************************************************************
  583. Dim ReportTitle As String                '报表主标题
  584. Dim Str_QueryCondi As String             '用户录入查询条件
  585. Dim Rec_BillID As New ADODB.Recordset    '用户查询单据ID动态集
  586. '以下为固定使用变量
  587. Dim Dyymctbl As New DY_Dyymsz            '打印页面窗体变量
  588. Dim GridCode As String                   '显示网格网格代码
  589. Dim GridInf() As Variant                 '整个网格设置信息
  590. Dim Tsxx As String                       '系统提示信息
  591. Dim Qslz As Long                         '网格隐藏(非操作显示)列数
  592. Dim Sjhgd As Double                      '网格数据行高度
  593. Dim Sfxshjwg As Boolean                  '是否显示合计网格
  594. Dim GridBoolean() As Boolean             '网格列信息(布尔型)
  595. Dim GridStr()  As String                 '网格列信息(字符型)
  596. Dim GridInt() As Integer                 '网格列信息(整型)
  597. Dim Szzls As Integer                     '数组总列数(网格列数-1)
  598. Private Sub Form_Resize()                '根据窗体大小来调整网格,标题栏大小(Fixed)
  599.     
  600.     On Error Resume Next
  601.     
  602.     With CxbbGrid
  603.         .Width = Me.Width - 160
  604.         .Height = Me.Height - .Top - 400
  605.     End With
  606.     
  607.     With Pic_Title
  608.         .Width = Me.Width - 160
  609.     End With
  610.     
  611.     GsToolbar.Left = Me.Width - GsToolbar.Width - 140
  612. End Sub
  613. Private Sub Form_Load()                                                   '窗体装入
  614.   
  615.     '调入打印页面设置窗体
  616.     ReportTitle = "设备检修计划方案列表"
  617.     XtReportCode = "Dev_CheckScenarioList"
  618.     Load Dyymctbl
  619.   
  620.     '调整标题栏及网格、格式工具条位置(Fixed)
  621.     Pic_Title.Left = 40
  622.     Pic_Title.Top = SzToolbar.Top + SzToolbar.Height - 10
  623.     CxbbGrid.Left = Pic_Title.Left
  624.     CxbbGrid.Top = Pic_Title.Top + Pic_Title.Height + 20
  625.  
  626.     '调 入 网 格(Fixed)
  627.     GridCode = "Dev_CheckScenarioList"
  628.     Call BzWgcsh(CxbbGrid, GridCode, GridInf(), GridBoolean(), GridInt(), GridStr())
  629.   
  630.     Qslz = GridInf(1)
  631.     Sjhgd = GridInf(2)
  632.     Sfxshjwg = GridInf(7)
  633.     Szzls = CxbbGrid.Cols - 1
  634. End Sub
  635. Private Sub Form_Unload(Cancel As Integer)                                  '窗体卸载
  636.     '卸载条件窗体
  637.     Dev_CheckScenarioFindForm.UnloadCheck.Value = 1
  638.     Unload Dev_CheckScenarioFindForm
  639.     
  640.     '卸载打印页面设置窗体
  641.     Unload Dyymctbl
  642. End Sub
  643. Private Sub CxbbGrid_BeforeMoveColumn(ByVal Col As Long, Position As Long)           '网格列发生移动时自动交换网格索引信息
  644.     Call FnBln_RefreshArray(Col, Position, GridStr(), GridInf())
  645. End Sub
  646. Private Sub GsToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)       '网格格式调整(Fixed)
  647.     
  648.     Select Case Button.Key
  649.         Case "bcgs"                                          '保存表格格式
  650.             Call Bcwggs(CxbbGrid, GridCode, GridStr())
  651.         Case "hfmrgs"                                        '恢复默认格式
  652.             Call Hfmrgs(CxbbGrid, GridCode, GridStr())
  653.         Case "szxsxm"                                        '设置显示项目
  654.             Call Szxsxm(CxbbGrid, GridCode)
  655.     End Select
  656. End Sub
  657. Private Sub SzToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
  658.     
  659.     Select Case Button.Key
  660.         Case "ymsz"                                          '页面设置
  661.             Dyymctbl.Show 1
  662.         Case "yl"                                            '预 览
  663.             Call bbyl(True)
  664.         Case "dy"                                            '打 印
  665.             Call bbyl(False)
  666.         Case "cx"                                            '查 询
  667.             Dev_CheckScenarioFindForm.Show 1
  668.         Case "Bill"                                          '单 据
  669.             Call CxbbGrid_DblClick
  670.         Case "xz"                                            '新 增
  671.             Call Sub_AddBill
  672.         Case "sc"                                            '删 除
  673.             If Not Security_Log("Dev_MonthRepairFA", Xtczybm, 1, True) Then
  674.                Exit Sub
  675.             End If
  676.             Call Sub_DeleteBill
  677.         Case "JL"                                            '记录
  678.             If Not Security_Log("Dev_MonthRepairFile", Xtczybm, 1, True) Then
  679.                Exit Sub
  680.             End If
  681.             If CxbbGrid.Rows = CxbbGrid.FixedRows Then Exit Sub
  682.             If CxbbGrid.Row < CxbbGrid.FixedRows Or Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0)) = 0 Then
  683.                 Exit Sub
  684.             End If
  685.             Sqlstr = "SELECT ScenarioCode,RepairMainCode,Authorizer,NoteFlag,RepairSubID,ScenarioType From Dev_CheckScenario Where CheckScenarioID=" & Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0))
  686.             Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  687.                 If RecTemp.EOF Then
  688.                 
  689.                 Else
  690.                    
  691.                         If RecTemp.Fields("Authorizer") = "" Or RecTemp.Fields("NoteFlag") = True Then
  692.                             Tsxx = "此检修方案没有批准或已作记录,不能作记录!"
  693.                             Call Xtxxts(Tsxx, 0, 4)
  694.                             Exit Sub
  695.                         Else
  696.                             With Dev_RepairFileEditForm
  697.                                 TempMainCode = RecTemp.Fields("RepairMainCode")
  698.                                 TempSubID = RecTemp.Fields("RepairSubID")
  699.                                 TempFile = RecTemp.Fields("ScenarioCode")
  700.                                 Xtcdcs = "1"
  701.                                 .Show 1
  702.                             End With
  703.                         End If
  704.                     
  705.                 End If
  706.         
  707.         Case "bz"                                            '帮 助
  708.             Call F1bz
  709.         Case "fh"                                            '退 出
  710.             Unload Me
  711.     End Select
  712. End Sub
  713. Private Sub Timer1_Timer()                                 '在窗体激活后调入查询程序
  714.     
  715.     Timer1.Enabled = False
  716.     Xt_Wait.Show
  717.     Xt_Wait.Refresh
  718.    
  719.     '加快显示速度
  720.     CxbbGrid.Redraw = False
  721.  
  722.     '生成查询结果
  723.     Call Sub_Query(0)
  724.    
  725.     CxbbGrid.Redraw = True
  726.     
  727.     Xt_Wait.Hide
  728. End Sub
  729. Private Sub Sub_Query(Int_QueryType As Integer)                                     '生成查询结果(Define)
  730.     
  731.     '过程参数:Int_QueryType 0-"点确定按钮"查询  1-"刷新"查询
  732.     Dim Rec_Query As New ADODB.Recordset        '查询结果动态集
  733.     Dim Coljsq As Long                          '网格列计数器
  734.     Dim jsqte As Integer                        '临时动态计数器
  735.     '以下为自定义部分[
  736.  
  737.     If Int_QueryType = 0 Then   '0-"点确定按钮"查询
  738.         With Dev_CheckScenarioFindForm
  739.          
  740.             '生成查询条件
  741.             Str_QueryCondi = " where 1=1 "
  742.          
  743.             For jsqte = 1 To 6
  744.                 Select Case jsqte
  745.                     Case 1
  746.                         If Trim(.LrText(0).Text) <> "" Then
  747.                             Str_QueryCondi = Str_QueryCondi & " And Dev_V_CheckScenarioList.PlanRepairDate>='" & Format(.LrText(0).Text, "yyyy-mm-dd") & "'"
  748.                         End If
  749.                     Case 2
  750.                         If Trim(.LrText(1).Text) <> "" Then
  751.                             Str_QueryCondi = Str_QueryCondi & " And Dev_V_CheckScenarioList.PlanRepairDate<= '" & Format(.LrText(1).Text, "yyyy-mm-dd") & "'"
  752.                         End If
  753.                     Case 3
  754.                         If Trim(.LrText(2).Text) <> "" Then
  755.                             Str_QueryCondi = Str_QueryCondi & " And Dev_V_CheckScenarioList.ScenarioCode >= '" & Trim(.LrText(2).Text) & "'"
  756.                         End If
  757.                     Case 4
  758.                         If Trim(.LrText(4).Text) <> "" Then
  759.                             Str_QueryCondi = Str_QueryCondi & " and Dev_V_CheckScenarioList.DEVID = '" & (.LrText(4).Text) & "'"
  760.                         End If
  761.                     Case 5
  762.                         Str_QueryCondi = Str_QueryCondi & " and Dev_V_CheckScenarioList.ScenarioType = '" & (.Combo1.Text) & "'"
  763.                     Case 6
  764.                         If Not .Opt_Check(0).Value Then
  765.                             If .Opt_Check(1).Value Then
  766.                                 Str_QueryCondi = Str_QueryCondi & " and  Dev_V_CheckScenarioList.Checker='' "
  767.                             Else
  768.                                 Str_QueryCondi = Str_QueryCondi & " and  Dev_V_CheckScenarioList.Checker<>'' "
  769.                             End If
  770.                         End If
  771.                 End Select
  772.             Next jsqte
  773.         End With
  774.     Else
  775.         '1-"刷新"查询
  776.         If Str_QueryCondi = "" Then
  777.             Str_QueryCondi = " where 1=2 "
  778.         End If
  779.     End If
  780.      
  781.     Sqlstr = "select Dev_V_CheckScenarioList.* from Dev_V_CheckScenarioList" & _
  782.             Str_QueryCondi
  783.     Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  784.     With Rec_Query
  785.         CxbbGrid.Rows = CxbbGrid.FixedRows
  786.         jsqte = CxbbGrid.FixedRows
  787.         Do While Not .EOF
  788.             CxbbGrid.AddItem ""
  789.             
  790.             '[>>自定义填充内容
  791.             CxbbGrid.TextMatrix(jsqte, 0) = .Fields("CheckScenarioID")                                                      '检修方案ID
  792.             CxbbGrid.TextMatrix(jsqte, Sydz("001", GridStr(), Szzls)) = Trim(.Fields("RepairMainCode"))                     '计划单号
  793.             CxbbGrid.TextMatrix(jsqte, Sydz("002", GridStr(), Szzls)) = Trim(.Fields("RepairSubId") & "")                   '计划子表ID
  794.             CxbbGrid.TextMatrix(jsqte, Sydz("003", GridStr(), Szzls)) = Trim(.Fields("ScenarioCode") & "")                  '方案单号
  795.             CxbbGrid.TextMatrix(jsqte, Sydz("004", GridStr(), Szzls)) = Trim(.Fields("DevID") & "")                         '设备编号
  796.             CxbbGrid.TextMatrix(jsqte, Sydz("005", GridStr(), Szzls)) = Trim(.Fields("DName") & "")                         '设备名称
  797.             CxbbGrid.TextMatrix(jsqte, Sydz("006", GridStr(), Szzls)) = Trim(.Fields("Model") & "")                         '规格型号
  798.             CxbbGrid.TextMatrix(jsqte, Sydz("007", GridStr(), Szzls)) = Trim(.Fields("ScenarioType") & "")                  '计划类型
  799.             CxbbGrid.TextMatrix(jsqte, Sydz("008", GridStr(), Szzls)) = Format(.Fields("PlanRepairDate"), "yyyy-mm-dd")     '计划检修日期
  800.             CxbbGrid.TextMatrix(jsqte, Sydz("009", GridStr(), Szzls)) = Trim(.Fields("RepairPrepare") & "")                 '维修准备
  801.             CxbbGrid.TextMatrix(jsqte, Sydz("010", GridStr(), Szzls)) = Trim(.Fields("RepairProgram") & "")                 '检修内容及程序
  802.             CxbbGrid.TextMatrix(jsqte, Sydz("011", GridStr(), Szzls)) = Trim(.Fields("Safety") & "")                        '安全事项
  803.             CxbbGrid.TextMatrix(jsqte, Sydz("012", GridStr(), Szzls)) = Trim(.Fields("Means") & "")                         '检验方法
  804.             CxbbGrid.TextMatrix(jsqte, Sydz("013", GridStr(), Szzls)) = Trim(.Fields("Standard") & "")
  805.             If .Fields("NoteFlag") = True Then
  806.             CxbbGrid.TextMatrix(jsqte, Sydz("014", GridStr(), Szzls)) = True                                                '记录标志
  807.             Else
  808.             CxbbGrid.TextMatrix(jsqte, Sydz("014", GridStr(), Szzls)) = False
  809.             End If
  810.             CxbbGrid.TextMatrix(jsqte, Sydz("015", GridStr(), Szzls)) = Trim(.Fields("Maker") & "")                         '制表人
  811.             CxbbGrid.TextMatrix(jsqte, Sydz("016", GridStr(), Szzls)) = Trim(.Fields("Checker") & "")                       '审核人
  812.             CxbbGrid.TextMatrix(jsqte, Sydz("017", GridStr(), Szzls)) = Trim(.Fields("Authorizer") & "")                    '批准人
  813.             '<<]
  814.      
  815.             '设置数据行高度(Fixed)
  816.             CxbbGrid.RowHeight(jsqte) = Sjhgd
  817.             
  818.             '动态集指针加1,同时将计数器加1(Fixed)
  819.             .MoveNext
  820.             jsqte = jsqte + 1
  821.         Loop
  822.     End With
  823.     ']以上为用户自定义部分
  824. End Sub
  825. Private Sub CxbbGrid_DblClick()                                              '用户双击网格调入相应单据
  826.     Dim RecTemp As New ADODB.Recordset               '临时使用动态集
  827.     '非数据行退出
  828.     If CxbbGrid.Rows = CxbbGrid.FixedRows Then Exit Sub
  829.     If CxbbGrid.Row < CxbbGrid.FixedRows Or Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0)) = 0 Then
  830.         Exit Sub
  831.     End If
  832.     Sqlstr = "SELECT CheckScenarioID From Dev_V_CheckScenarioList Where CheckScenarioID=" & Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0))
  833.     Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  834.     With RecTemp
  835.         If .EOF Then
  836.             Tsxx = "此检修方案已被其他用户删除!"
  837.             Call Xtxxts(Tsxx, 0, 4)
  838.             Exit Sub
  839.         Else
  840.             '调入单据处理窗体
  841.             With Dev_CheckScenarioEditForm
  842.                 
  843.                 '填充查询单据标识
  844.                 XT_BillID = CxbbGrid.TextMatrix(CxbbGrid.Row, 0)
  845.                 Xtcdcsfz = Str_QueryCondi
  846.                 
  847.                 '设置单据处理为列表查询(修改)状态
  848.                 Xtcdcs = "2"
  849.                 .Show 1
  850.             End With
  851.             
  852.             If Xtfhcs = "1" Then
  853.                 Tsxx = "检修方案单发生变化,是否刷新检修方案列表?"
  854.                 Yhanswer = Xtxxts(Tsxx, 2, 2)
  855.                 If Yhanswer = 1 Then
  856.                     Xt_Wait.Show
  857.                     Xt_Wait.Refresh
  858.                     
  859.                     '加快显示速度
  860.                     CxbbGrid.Redraw = False
  861.                     '生成查询结果
  862.                     Call Sub_Query(1)
  863.    
  864.                     CxbbGrid.Redraw = True
  865.     
  866.                     Xt_Wait.Hide
  867.                 End If
  868.             End If
  869.         End If
  870.     End With
  871. End Sub
  872. Private Sub Sub_AddBill()                                              '新增单据
  873.     
  874.     With Dev_CheckScenarioEditForm
  875.        
  876.         '设置单据处理为填制单据状态
  877.         Xtcdcs = "1"
  878.          
  879.         .Show 1
  880.     End With
  881.        
  882.     If Xtfhcs = "1" Then
  883.         Tsxx = "检修方案发生变化,是否刷新检修方案列表?"
  884.         Yhanswer = Xtxxts(Tsxx, 2, 2)
  885.         
  886.         If Yhanswer = 1 Then
  887.             Xt_Wait.Show
  888.             Xt_Wait.Refresh
  889.             
  890.             '加快显示速度
  891.             CxbbGrid.Redraw = False
  892.             
  893.             '生成查询结果
  894.             Call Sub_Query(1)
  895.             
  896.             CxbbGrid.Redraw = True
  897.             Xt_Wait.Hide
  898.         End If
  899.     End If
  900.    
  901. End Sub
  902. Private Sub Sub_DeleteBill()                                            '删除选中当前单据
  903.     
  904.     Dim YAnswer As Integer
  905.     Dim Lng_BillID As Long           '单据标识
  906.     Dim TempRec As New ADODB.Recordset
  907.     
  908.     '非数据行退出
  909.     If CxbbGrid.Row < CxbbGrid.FixedRows Or Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0)) = 0 Then
  910.         Exit Sub
  911.     End If
  912.   
  913.     Tsxx = "请确认是否删除当前单据?"
  914.     Yhanswer = Xtxxts(Tsxx, 2, 2)
  915.   
  916.     If Yhanswer = 1 Then
  917.   
  918.         '1.判断当前单据是否允许删除
  919.         If Not Fun_AllowDelete Then
  920.             Exit Sub
  921.         End If
  922.   
  923.         '2.删除单据所有内容
  924.         Lng_BillID = Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0))
  925.       
  926.         On Error GoTo Swcwcl
  927.     
  928.         Cw_DataEnvi.DataConnect.BeginTrans
  929.         Cw_DataEnvi.DataConnect.Execute ("Delete Dev_CheckScenario Where CheckScenarioID=" & Lng_BillID)        '删除单据内容
  930.         Set TempRec = Cw_DataEnvi.DataConnect.Execute("Select RepairMainID from Dev_RepairMain where RepairMainCode='" & Trim(CxbbGrid.TextMatrix(CxbbGrid.Row, 1)) & "'")
  931.         Cw_DataEnvi.DataConnect.Execute ("update Dev_RepairSub set ScenarioFlag=0  Where RepairMainID=" & Val(TempRec.Fields("RepairMainID")) & " And RepairSubID = " & Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 2)))   '删除单据内容
  932.         Cw_DataEnvi.DataConnect.CommitTrans
  933.       
  934.         '删除网格中单据数据
  935.         CxbbGrid.RemoveItem (CxbbGrid.Row)
  936.     Else
  937.         Exit Sub
  938.     End If
  939.   
  940.     Exit Sub
  941. Swcwcl:
  942.     Cw_DataEnvi.DataConnect.RollbackTrans
  943.     Tsxx = "删除单据过程中出现未知错误,程序自动恢复删除前状态!"
  944.     Call Xtxxts(Tsxx, 0, 1)
  945.     Exit Sub
  946.   
  947. End Sub
  948. Private Function Fun_AllowDelete() As Boolean                                        '判断当前单据是否允许删除
  949.   
  950.     Dim RecTemp As New ADODB.Recordset     '临时使用动态集
  951.     Dim Sqlstr As String                   '查询字符串
  952.     Dim Lng_BillID As Long                 '单据ID
  953.   
  954.     Lng_BillID = Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0))
  955.     Sqlstr = "Select Checker From Dev_CheckScenario Where CheckScenarioID=" & Lng_BillID
  956.     Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  957.     With RecTemp
  958.         If Not .EOF Then
  959.             If Trim(.Fields("Checker") & "") <> "" Then
  960.                 Tsxx = "该检修方案已审核确认,不能删除!"
  961.                 Call Xtxxts(Tsxx, 0, 4)
  962.                 Exit Function
  963.             End If
  964.             End If
  965.     End With
  966.     Fun_AllowDelete = True
  967.   
  968. End Function
  969. Private Sub bbyl(bbylte As Boolean)                    '报表打印预览
  970.     
  971.     Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  972.     Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  973.     Bbxbtgs = 1                                          '报 表 小 标 题 行 数
  974.     Bbbwhgs = 0                                          '报 表 表 尾 行 数
  975.     
  976.     ReDim Bbxbt(1 To Bbxbtgs)
  977.     ReDim bbxbtzzxs(1 To Bbxbtgs)
  978.     If Bbbwhgs <> 0 Then
  979.         ReDim Bbbwh(1 To Bbbwhgs)
  980.         ReDim Bbbwhzzxs(1 To Bbbwhgs)
  981.     End If
  982.     
  983.     Bbzbt = ReportTitle
  984.     Bbxbt(1) = ""
  985.     bbxbtzzxs(1) = 0                                     '报表行组织形式(0-居左 1-居中 2-居右)
  986.     Call Scyxsjb(CxbbGrid)                               '生成报表数据
  987.     Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  988.     If Not bbylte Then
  989.         Unload DY_Tybbyldy
  990.     End If
  991. End Sub