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

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{BEEECC20-4D5F-4F8B-BFDC-5D9B6FBDE09D}#1.0#0"; "vsflex8.ocx"
  3. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  4. Begin VB.Form Zbfx_InOut 
  5.    Caption         =   "出入库流水帐"
  6.    ClientHeight    =   6990
  7.    ClientLeft      =   60
  8.    ClientTop       =   345
  9.    ClientWidth     =   11625
  10.    HelpContextID   =   130503
  11.    Icon            =   "帐簿分析_出入库流水帐.frx":0000
  12.    KeyPreview      =   -1  'True
  13.    LinkTopic       =   "Form2"
  14.    MDIChild        =   -1  'True
  15.    ScaleHeight     =   6990
  16.    ScaleWidth      =   11625
  17.    WindowState     =   2  'Maximized
  18.    Begin VB.PictureBox Pic_Title 
  19.       BackColor       =   &H00FFFFFF&
  20.       Height          =   825
  21.       Left            =   0
  22.       Picture         =   "帐簿分析_出入库流水帐.frx":1042
  23.       ScaleHeight     =   765
  24.       ScaleWidth      =   11715
  25.       TabIndex        =   0
  26.       Top             =   570
  27.       Width           =   11775
  28.       Begin VB.Label Lab_Title 
  29.          AutoSize        =   -1  'True
  30.          BackColor       =   &H80000018&
  31.          BackStyle       =   0  'Transparent
  32.          Caption         =   "出入库流水帐"
  33.          BeginProperty Font 
  34.             Name            =   "宋体"
  35.             Size            =   12
  36.             Charset         =   134
  37.             Weight          =   700
  38.             Underline       =   0   'False
  39.             Italic          =   0   'False
  40.             Strikethrough   =   0   'False
  41.          EndProperty
  42.          ForeColor       =   &H00000000&
  43.          Height          =   240
  44.          Index           =   4
  45.          Left            =   480
  46.          TabIndex        =   1
  47.          Top             =   210
  48.          Width           =   1530
  49.       End
  50.    End
  51.    Begin VB.Timer Timer1 
  52.       Enabled         =   0   'False
  53.       Interval        =   1
  54.       Left            =   7620
  55.       Top             =   90
  56.    End
  57.    Begin MSComctlLib.Toolbar GsToolbar 
  58.       Height          =   525
  59.       Left            =   9330
  60.       TabIndex        =   2
  61.       Top             =   30
  62.       Width           =   2475
  63.       _ExtentX        =   4366
  64.       _ExtentY        =   926
  65.       ButtonWidth     =   1455
  66.       ButtonHeight    =   926
  67.       Appearance      =   1
  68.       Style           =   1
  69.       ImageList       =   "ImageList2"
  70.       _Version        =   393216
  71.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  72.          NumButtons      =   3
  73.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  74.             Caption         =   "保存格式"
  75.             Key             =   "bcgs"
  76.             ImageKey        =   "bcgs"
  77.          EndProperty
  78.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  79.             Caption         =   "默认列宽"
  80.             Key             =   "hfmrgs"
  81.             ImageKey        =   "mrlk"
  82.          EndProperty
  83.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  84.             Caption         =   "显示项目"
  85.             Key             =   "szxsxm"
  86.             ImageKey        =   "xsxm"
  87.          EndProperty
  88.       EndProperty
  89.    End
  90.    Begin VSFlex8Ctl.VSFlexGrid CxbbGrid 
  91.       Height          =   7545
  92.       Left            =   0
  93.       TabIndex        =   3
  94.       Top             =   1470
  95.       Width           =   11775
  96.       _cx             =   5080
  97.       _cy             =   5080
  98.       Appearance      =   1
  99.       BorderStyle     =   1
  100.       Enabled         =   -1  'True
  101.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  102.          Name            =   "宋体"
  103.          Size            =   9
  104.          Charset         =   134
  105.          Weight          =   400
  106.          Underline       =   0   'False
  107.          Italic          =   0   'False
  108.          Strikethrough   =   0   'False
  109.       EndProperty
  110.       MousePointer    =   0
  111.       BackColor       =   16777215
  112.       ForeColor       =   -2147483640
  113.       BackColorFixed  =   13826538
  114.       ForeColorFixed  =   -2147483630
  115.       BackColorSel    =   -2147483635
  116.       ForeColorSel    =   -2147483634
  117.       BackColorBkg    =   -2147483636
  118.       BackColorAlternate=   16777215
  119.       GridColor       =   -2147483633
  120.       GridColorFixed  =   -2147483632
  121.       TreeColor       =   -2147483632
  122.       FloodColor      =   192
  123.       SheetBorder     =   -2147483642
  124.       FocusRect       =   1
  125.       HighLight       =   1
  126.       AllowSelection  =   -1  'True
  127.       AllowBigSelection=   -1  'True
  128.       AllowUserResizing=   0
  129.       SelectionMode   =   0
  130.       GridLines       =   1
  131.       GridLinesFixed  =   2
  132.       GridLineWidth   =   1
  133.       Rows            =   50
  134.       Cols            =   10
  135.       FixedRows       =   1
  136.       FixedCols       =   1
  137.       RowHeightMin    =   0
  138.       RowHeightMax    =   0
  139.       ColWidthMin     =   0
  140.       ColWidthMax     =   0
  141.       ExtendLastCol   =   0   'False
  142.       FormatString    =   ""
  143.       ScrollTrack     =   0   'False
  144.       ScrollBars      =   3
  145.       ScrollTips      =   0   'False
  146.       MergeCells      =   0
  147.       MergeCompare    =   0
  148.       AutoResize      =   -1  'True
  149.       AutoSizeMode    =   0
  150.       AutoSearch      =   0
  151.       AutoSearchDelay =   2
  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
  165.       ShowComboButton =   1
  166.       WordWrap        =   0   'False
  167.       TextStyle       =   0
  168.       TextStyleFixed  =   0
  169.       OleDragMode     =   0
  170.       OleDropMode     =   0
  171.       DataMode        =   0
  172.       VirtualData     =   -1  'True
  173.       DataMember      =   ""
  174.       ComboSearch     =   3
  175.       AutoSizeMouse   =   -1  'True
  176.       FrozenRows      =   0
  177.       FrozenCols      =   0
  178.       AllowUserFreezing=   0
  179.       BackColorFrozen =   0
  180.       ForeColorFrozen =   0
  181.       WallPaperAlignment=   9
  182.       AccessibleName  =   ""
  183.       AccessibleDescription=   ""
  184.       AccessibleValue =   ""
  185.       AccessibleRole  =   24
  186.       Begin MSComctlLib.ImageList ImageList2 
  187.          Left            =   0
  188.          Top             =   0
  189.          _ExtentX        =   1005
  190.          _ExtentY        =   1005
  191.          BackColor       =   -2147483643
  192.          ImageWidth      =   16
  193.          ImageHeight     =   16
  194.          MaskColor       =   12632256
  195.          _Version        =   393216
  196.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  197.             NumListImages   =   40
  198.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  199.                Picture         =   "帐簿分析_出入库流水帐.frx":35106
  200.                Key             =   "sz"
  201.             EndProperty
  202.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  203.                Picture         =   "帐簿分析_出入库流水帐.frx":354A0
  204.                Key             =   "dy"
  205.             EndProperty
  206.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  207.                Picture         =   "帐簿分析_出入库流水帐.frx":3583A
  208.                Key             =   "yl"
  209.             EndProperty
  210.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  211.                Picture         =   "帐簿分析_出入库流水帐.frx":35BD4
  212.                Key             =   "xg"
  213.             EndProperty
  214.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  215.                Picture         =   "帐簿分析_出入库流水帐.frx":35F6E
  216.                Key             =   "zh"
  217.             EndProperty
  218.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  219.                Picture         =   "帐簿分析_出入库流水帐.frx":36308
  220.                Key             =   "sh"
  221.             EndProperty
  222.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  223.                Picture         =   "帐簿分析_出入库流水帐.frx":366A2
  224.                Key             =   "bc"
  225.             EndProperty
  226.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  227.                Picture         =   "帐簿分析_出入库流水帐.frx":36A3C
  228.                Key             =   "fq"
  229.             EndProperty
  230.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  231.                Picture         =   "帐簿分析_出入库流水帐.frx":36DD6
  232.                Key             =   "bz"
  233.             EndProperty
  234.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  235.                Picture         =   "帐簿分析_出入库流水帐.frx":37170
  236.                Key             =   "tc"
  237.             EndProperty
  238.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  239.                Picture         =   "帐簿分析_出入库流水帐.frx":3750A
  240.                Key             =   "bcgs"
  241.             EndProperty
  242.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  243.                Picture         =   "帐簿分析_出入库流水帐.frx":378A4
  244.                Key             =   "mrlk"
  245.             EndProperty
  246.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  247.                Picture         =   "帐簿分析_出入库流水帐.frx":37C3E
  248.                Key             =   "xsxm"
  249.             EndProperty
  250.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  251.                Picture         =   "帐簿分析_出入库流水帐.frx":37FD8
  252.                Key             =   "first"
  253.             EndProperty
  254.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  255.                Picture         =   "帐簿分析_出入库流水帐.frx":38372
  256.                Key             =   "prev"
  257.             EndProperty
  258.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  259.                Picture         =   "帐簿分析_出入库流水帐.frx":3870C
  260.                Key             =   "next"
  261.             EndProperty
  262.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  263.                Picture         =   "帐簿分析_出入库流水帐.frx":38AA6
  264.                Key             =   "last"
  265.             EndProperty
  266.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  267.                Picture         =   "帐簿分析_出入库流水帐.frx":38E40
  268.                Key             =   "xx"
  269.             EndProperty
  270.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  271.                Picture         =   "帐簿分析_出入库流水帐.frx":391DA
  272.                Key             =   "define"
  273.             EndProperty
  274.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  275.                Picture         =   "帐簿分析_出入库流水帐.frx":39574
  276.                Key             =   "exec"
  277.             EndProperty
  278.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  279.                Picture         =   "帐簿分析_出入库流水帐.frx":3990E
  280.                Key             =   "xz"
  281.             EndProperty
  282.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  283.                Picture         =   "帐簿分析_出入库流水帐.frx":39CA8
  284.                Key             =   "sc"
  285.             EndProperty
  286.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  287.                Picture         =   "帐簿分析_出入库流水帐.frx":3A042
  288.                Key             =   "sx"
  289.             EndProperty
  290.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  291.                Picture         =   "帐簿分析_出入库流水帐.frx":3A3DC
  292.                Key             =   "cx"
  293.             EndProperty
  294.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  295.                Picture         =   "帐簿分析_出入库流水帐.frx":3A776
  296.                Key             =   "zd"
  297.             EndProperty
  298.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  299.                Picture         =   "帐簿分析_出入库流水帐.frx":3AB10
  300.                Key             =   "dz"
  301.             EndProperty
  302.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  303.                Picture         =   "帐簿分析_出入库流水帐.frx":3AEAA
  304.                Key             =   "ph"
  305.             EndProperty
  306.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  307.                Picture         =   "帐簿分析_出入库流水帐.frx":3B244
  308.                Key             =   "fz"
  309.             EndProperty
  310.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  311.                Picture         =   "帐簿分析_出入库流水帐.frx":3B5DE
  312.                Key             =   "dw"
  313.             EndProperty
  314.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  315.                Picture         =   "帐簿分析_出入库流水帐.frx":3B978
  316.                Key             =   "hf"
  317.             EndProperty
  318.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  319.                Picture         =   "帐簿分析_出入库流水帐.frx":3BD12
  320.                Key             =   "pz"
  321.             EndProperty
  322.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  323.                Picture         =   "帐簿分析_出入库流水帐.frx":3C0AC
  324.                Key             =   "check"
  325.             EndProperty
  326.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  327.                Picture         =   "帐簿分析_出入库流水帐.frx":3C446
  328.                Key             =   "qs"
  329.             EndProperty
  330.             BeginProperty ListImage34 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  331.                Picture         =   "帐簿分析_出入库流水帐.frx":3C7E0
  332.                Key             =   "fullcheck"
  333.             EndProperty
  334.             BeginProperty ListImage35 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  335.                Picture         =   "帐簿分析_出入库流水帐.frx":3CB7A
  336.                Key             =   "qq"
  337.             EndProperty
  338.             BeginProperty ListImage36 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  339.                Picture         =   "帐簿分析_出入库流水帐.frx":3CF14
  340.                Key             =   "bcw"
  341.             EndProperty
  342.             BeginProperty ListImage37 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  343.                Picture         =   "帐簿分析_出入库流水帐.frx":3D2AE
  344.                Key             =   "ye"
  345.             EndProperty
  346.             BeginProperty ListImage38 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  347.                Picture         =   "帐簿分析_出入库流水帐.frx":3D648
  348.                Key             =   ""
  349.             EndProperty
  350.             BeginProperty ListImage39 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  351.                Picture         =   "帐簿分析_出入库流水帐.frx":3D9E2
  352.                Key             =   "frist"
  353.             EndProperty
  354.             BeginProperty ListImage40 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  355.                Picture         =   "帐簿分析_出入库流水帐.frx":3DD7C
  356.                Key             =   "dj"
  357.             EndProperty
  358.          EndProperty
  359.       End
  360.    End
  361.    Begin MSComctlLib.Toolbar SzToolbar 
  362.       Align           =   1  'Align Top
  363.       Height          =   555
  364.       Left            =   0
  365.       TabIndex        =   4
  366.       Top             =   0
  367.       Width           =   11625
  368.       _ExtentX        =   20505
  369.       _ExtentY        =   979
  370.       ButtonWidth     =   820
  371.       ButtonHeight    =   926
  372.       AllowCustomize  =   0   'False
  373.       Appearance      =   1
  374.       Style           =   1
  375.       ImageList       =   "ImageList1"
  376.       _Version        =   393216
  377.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  378.          NumButtons      =   10
  379.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  380.             Caption         =   "设置"
  381.             Key             =   "ymsz"
  382.             ImageKey        =   "sz"
  383.          EndProperty
  384.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  385.             Caption         =   "打印"
  386.             Key             =   "dy"
  387.             ImageKey        =   "dy"
  388.          EndProperty
  389.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  390.             Caption         =   "预览"
  391.             Key             =   "yl"
  392.             ImageKey        =   "yl"
  393.          EndProperty
  394.          BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  395.             Style           =   3
  396.          EndProperty
  397.          BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  398.             Caption         =   "查询"
  399.             Key             =   "cx"
  400.             ImageKey        =   "cx"
  401.          EndProperty
  402.          BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  403.             Style           =   4
  404.          EndProperty
  405.          BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  406.             Caption         =   "单据"
  407.             Key             =   "Bill"
  408.             ImageKey        =   "pz"
  409.          EndProperty
  410.          BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  411.             Style           =   4
  412.          EndProperty
  413.          BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  414.             Caption         =   "帮助"
  415.             Key             =   "bz"
  416.             ImageKey        =   "bz"
  417.          EndProperty
  418.          BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  419.             Caption         =   "退出"
  420.             Key             =   "fh"
  421.             ImageKey        =   "tc"
  422.          EndProperty
  423.       EndProperty
  424.       BorderStyle     =   1
  425.       Begin MSComctlLib.ImageList ImageList1 
  426.          Left            =   6990
  427.          Top             =   30
  428.          _ExtentX        =   1005
  429.          _ExtentY        =   1005
  430.          BackColor       =   -2147483643
  431.          ImageWidth      =   16
  432.          ImageHeight     =   16
  433.          MaskColor       =   12632256
  434.          _Version        =   393216
  435.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  436.             NumListImages   =   35
  437.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  438.                Picture         =   "帐簿分析_出入库流水帐.frx":3E116
  439.                Key             =   "sz"
  440.             EndProperty
  441.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  442.                Picture         =   "帐簿分析_出入库流水帐.frx":3E4B0
  443.                Key             =   "dy"
  444.             EndProperty
  445.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  446.                Picture         =   "帐簿分析_出入库流水帐.frx":3E84A
  447.                Key             =   "yl"
  448.             EndProperty
  449.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  450.                Picture         =   "帐簿分析_出入库流水帐.frx":3EBE4
  451.                Key             =   "xg"
  452.             EndProperty
  453.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  454.                Picture         =   "帐簿分析_出入库流水帐.frx":3EF7E
  455.                Key             =   "zh"
  456.             EndProperty
  457.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  458.                Picture         =   "帐簿分析_出入库流水帐.frx":3F318
  459.                Key             =   "sh"
  460.             EndProperty
  461.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  462.                Picture         =   "帐簿分析_出入库流水帐.frx":3F6B2
  463.                Key             =   "bc"
  464.             EndProperty
  465.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  466.                Picture         =   "帐簿分析_出入库流水帐.frx":3FA4C
  467.                Key             =   "fq"
  468.             EndProperty
  469.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  470.                Picture         =   "帐簿分析_出入库流水帐.frx":3FDE6
  471.                Key             =   "bz"
  472.             EndProperty
  473.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  474.                Picture         =   "帐簿分析_出入库流水帐.frx":40180
  475.                Key             =   "tc"
  476.             EndProperty
  477.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  478.                Picture         =   "帐簿分析_出入库流水帐.frx":4051A
  479.                Key             =   "bcgs"
  480.             EndProperty
  481.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  482.                Picture         =   "帐簿分析_出入库流水帐.frx":408B4
  483.                Key             =   "mrlk"
  484.             EndProperty
  485.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  486.                Picture         =   "帐簿分析_出入库流水帐.frx":40C4E
  487.                Key             =   "xsxm"
  488.             EndProperty
  489.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  490.                Picture         =   "帐簿分析_出入库流水帐.frx":40FE8
  491.                Key             =   "first"
  492.             EndProperty
  493.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  494.                Picture         =   "帐簿分析_出入库流水帐.frx":41382
  495.                Key             =   "prev"
  496.             EndProperty
  497.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  498.                Picture         =   "帐簿分析_出入库流水帐.frx":4171C
  499.                Key             =   "next"
  500.             EndProperty
  501.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  502.                Picture         =   "帐簿分析_出入库流水帐.frx":41AB6
  503.                Key             =   "last"
  504.             EndProperty
  505.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  506.                Picture         =   "帐簿分析_出入库流水帐.frx":41E50
  507.                Key             =   "xx"
  508.             EndProperty
  509.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  510.                Picture         =   "帐簿分析_出入库流水帐.frx":421EA
  511.                Key             =   "define"
  512.             EndProperty
  513.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  514.                Picture         =   "帐簿分析_出入库流水帐.frx":42584
  515.                Key             =   "exec"
  516.             EndProperty
  517.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  518.                Picture         =   "帐簿分析_出入库流水帐.frx":4291E
  519.                Key             =   "xz"
  520.             EndProperty
  521.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  522.                Picture         =   "帐簿分析_出入库流水帐.frx":42CB8
  523.                Key             =   "sc"
  524.             EndProperty
  525.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  526.                Picture         =   "帐簿分析_出入库流水帐.frx":43052
  527.                Key             =   "sx"
  528.             EndProperty
  529.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  530.                Picture         =   "帐簿分析_出入库流水帐.frx":433EC
  531.                Key             =   "cx"
  532.             EndProperty
  533.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  534.                Picture         =   "帐簿分析_出入库流水帐.frx":43786
  535.                Key             =   "zd"
  536.             EndProperty
  537.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  538.                Picture         =   "帐簿分析_出入库流水帐.frx":43B20
  539.                Key             =   "dz"
  540.             EndProperty
  541.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  542.                Picture         =   "帐簿分析_出入库流水帐.frx":43EBA
  543.                Key             =   "ph"
  544.             EndProperty
  545.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  546.                Picture         =   "帐簿分析_出入库流水帐.frx":44254
  547.                Key             =   "fz"
  548.             EndProperty
  549.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  550.                Picture         =   "帐簿分析_出入库流水帐.frx":445EE
  551.                Key             =   "dw"
  552.             EndProperty
  553.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  554.                Picture         =   "帐簿分析_出入库流水帐.frx":44988
  555.                Key             =   "hf"
  556.             EndProperty
  557.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  558.                Picture         =   "帐簿分析_出入库流水帐.frx":44D22
  559.                Key             =   "pz"
  560.             EndProperty
  561.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  562.                Picture         =   "帐簿分析_出入库流水帐.frx":450BC
  563.                Key             =   "check"
  564.             EndProperty
  565.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  566.                Picture         =   "帐簿分析_出入库流水帐.frx":45456
  567.                Key             =   "mx"
  568.             EndProperty
  569.             BeginProperty ListImage34 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  570.                Picture         =   "帐簿分析_出入库流水帐.frx":457F0
  571.                Key             =   "jz"
  572.             EndProperty
  573.             BeginProperty ListImage35 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  574.                Picture         =   "帐簿分析_出入库流水帐.frx":45B8A
  575.                Key             =   "hz"
  576.             EndProperty
  577.          EndProperty
  578.       End
  579.    End
  580. End
  581. Attribute VB_Name = "Zbfx_InOut"
  582. Attribute VB_GlobalNameSpace = False
  583. Attribute VB_Creatable = False
  584. Attribute VB_PredeclaredId = True
  585. Attribute VB_Exposed = False
  586. '**************************************************************************
  587. '*    模 块 名 称 :出入库流水帐
  588. '*    功 能 描 述 :
  589. '*    程序员姓名  :白凤英
  590. '*    最后修改人  :白凤英
  591. '*    最后修改时间:2001/12/13
  592. '*    备        注:程序中所有依实际情况自定义部分均用[>>  <<]括起
  593. '**************************************************************************
  594. Dim ReportTitle As String                '报表主标题
  595. Dim Str_QueryCondi As String             '用户录入查询条件
  596. Dim Rec_BillID As New ADODB.Recordset    '用户查询单据ID动态集
  597. '以下为固定使用变量
  598. Dim Dyymctbl As New DY_Dyymsz            '打印页面窗体变量
  599. Dim GridCode As String                   '显示网格网格代码
  600. Dim GridInf() As Variant                 '整个网格设置信息
  601. Dim Tsxx As String                       '系统提示信息
  602. Dim Qslz As Long                         '网格隐藏(非操作显示)列数
  603. Dim Sjhgd As Double                      '网格数据行高度
  604. Dim Sfxshjwg As Boolean                  '是否显示合计网格
  605. Dim GridBoolean() As Boolean             '网格列信息(布尔型)
  606. Dim GridStr()  As String                 '网格列信息(字符型)
  607. Dim GridInt() As Integer                 '网格列信息(整型)
  608. Dim Szzls As Integer                     '数组总列数(网格列数-1)
  609. Private Sub Form_Resize()                '根据窗体大小来调整网格,标题栏大小(Fixed)
  610.     On Error Resume Next
  611.     With CxbbGrid
  612.         .Width = Me.Width - 160
  613.         .Height = Me.Height - .Top - 400
  614.     End With
  615.     With Pic_Title
  616.         .Width = Me.Width - 160
  617.     End With
  618.     
  619.     GsToolbar.Left = Me.Width - GsToolbar.Width - 140
  620. End Sub
  621. Private Sub Form_Load()                                                   '窗体装入
  622.   
  623.     '调入打印页面设置窗体
  624.     ReportTitle = "出入库流水帐"
  625.     XtReportCode = "Chhs_InOut"
  626.     Load Dyymctbl
  627.       
  628.     '调整标题栏及网格、格式工具条位置(Fixed)
  629.     Pic_Title.Left = 40
  630.     Pic_Title.Top = SzToolbar.Top + SzToolbar.Height - 10
  631.     CxbbGrid.Left = Pic_Title.Left
  632.     CxbbGrid.Top = Pic_Title.Top + Pic_Title.Height + 20
  633.      
  634.     '调 入 网 格(Fixed)
  635.     GridCode = "Chhs_InOut"
  636.     Call BzWgcsh(CxbbGrid, GridCode, GridInf(), GridBoolean(), GridInt(), GridStr())
  637.       
  638.     Qslz = GridInf(1)
  639.     Sjhgd = GridInf(2)
  640.     Sfxshjwg = GridInf(7)
  641.     Szzls = CxbbGrid.Cols - 1
  642. End Sub
  643. Private Sub Form_Unload(Cancel As Integer)                                  '窗体卸载
  644.     '卸载条件窗体
  645.     Zbfx_InOutCond.UnloadCheck.Value = 1
  646.     Unload Zbfx_InOutCond
  647.     
  648.     '卸载打印页面设置窗体
  649.     Unload Dyymctbl
  650. End Sub
  651. Private Sub CxbbGrid_BeforeMoveColumn(ByVal Col As Long, Position As Long)           '网格列发生移动时自动交换网格索引信息
  652.     Call FnBln_RefreshArray(Col, Position, GridStr(), GridInf())
  653. End Sub
  654. Private Sub GsToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)                '网格格式调整(Fixed)
  655.   
  656.     Select Case Button.Key
  657.         Case "bcgs"                                          '保存表格格式
  658.             Call Bcwggs(CxbbGrid, GridCode, GridStr())
  659.         Case "hfmrgs"                                        '恢复默认格式
  660.             Call Hfmrgs(CxbbGrid, GridCode, GridStr())
  661.         Case "szxsxm"                                        '设置显示项目
  662.             Call Szxsxm(CxbbGrid, GridCode)
  663.     End Select
  664. End Sub
  665. Private Sub SzToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
  666.     
  667.     Select Case Button.Key
  668.         Case "ymsz"                                          '页面设置
  669.             Dyymctbl.Show 1
  670.         Case "yl"                                            '预 览
  671.             Call bbyl(True)
  672.         Case "dy"                                            '打 印
  673.             Call bbyl(False)
  674.         Case "cx"                                            '查 询
  675.             Zbfx_InOutCond.Show 1
  676.         Case "Bill"                                          '单 据
  677.             Call CxbbGrid_DblClick
  678.         Case "bz"                                            '帮 助
  679.             Call F1bz
  680.         Case "fh"                                            '退 出
  681.            Unload Me
  682.     End Select
  683. End Sub
  684. Private Sub Timer1_Timer()                                 '在窗体激活后调入查询程序
  685.     
  686.     Timer1.Enabled = False
  687.     Xt_Wait.Show
  688.     Xt_Wait.Refresh
  689.    
  690.     '加快显示速度
  691.     CxbbGrid.Redraw = False
  692.     '生成查询结果
  693.     Call Sub_Query
  694.    
  695.     CxbbGrid.Redraw = True
  696.     
  697.     Xt_Wait.Hide
  698. End Sub
  699. Private Sub Sub_Query()                              '生成查询结果(Define)  未记帐单据
  700.     
  701.     Dim Rec_Query As Recordset                  '查询结果动态集
  702.     Dim Coljsq As Long                          '网格列计数器
  703.     Dim Jsqte As Long                        '临时动态计数器
  704.     Dim Str1 As String
  705.     
  706.     '以下为自定义部分[
  707.  
  708.     With Zbfx_InOutCond
  709.      
  710.         '生成查询条件
  711.         Str_QueryCondi = " where kjyear= " & Xtyear
  712.         For Jsqte = 0 To 16
  713.             Select Case Jsqte
  714.                 Case 0  '仓库
  715.                     If Trim(.LrText(0).Text) <> "" Then
  716.                         Str_QueryCondi = Str_QueryCondi & " And a.whcode='" & Trim(.LrText(0).Tag) & "'"
  717.                     End If
  718.                 Case 1  '存货分类(Like)
  719.                     If Trim(.LrText(1).Text) <> "" Then
  720.                         Str_QueryCondi = Str_QueryCondi & " And a.invsortcode like '" & Trim(.LrText(1).Tag) & "%'"
  721.                     End If
  722.                 Case 2  '查询存货范围(起始)
  723.                     If Trim(.LrText(2).Text) <> "" Then
  724.                         Str_QueryCondi = Str_QueryCondi & " And a.mnumber>='" & Trim(.LrText(2).Text) & "'"
  725.                     End If
  726.                 Case 3  '查询存货范围(终止)
  727.                     If Trim(.LrText(3).Text) <> "" Then
  728.                         Str_QueryCondi = Str_QueryCondi & " And a.mnumber<= '" & Trim(.LrText(3).Text) & "'"
  729.                     End If
  730.                 Case 4  '收发类别(起始)
  731.                     If Trim(.LrText(4).Text) <> "" Then
  732.                         Str_QueryCondi = Str_QueryCondi & " and a.inoutclasscode >= '" & Trim(.LrText(4).Tag) & "'"
  733.                     End If
  734.                 Case 5  '收发类别(终止)
  735.                     If Trim(.LrText(5).Text) <> "" Then
  736.                         Str_QueryCondi = Str_QueryCondi & " and a.inoutclasscode <= '" & Trim(.LrText(5).Tag) & "'"
  737.                     End If
  738.                 Case 6  '供应商
  739.                     If Trim(.LrText(6).Text) <> "" Then
  740.                         Str_QueryCondi = Str_QueryCondi & " and a.suppliercode = '" & Trim(.LrText(6).Tag) & "'"
  741.                     End If
  742.                 Case 7  '客户
  743.                     If Trim(.LrText(7).Text) <> "" Then
  744.                         Str_QueryCondi = Str_QueryCondi & " and a.cuscode = '" & Trim(.LrText(7).Tag) & "'"
  745.                     End If
  746.                 Case 8  '部门
  747.                     If Trim(.LrText(8).Text) <> "" Then
  748.                         Str_QueryCondi = Str_QueryCondi & " and a.deptcode = '" & Trim(.LrText(8).Tag) & "'"
  749.                     End If
  750.                 Case 9  '查询单据日期范围(起始)
  751.                     If Trim(.LrText(9).Text) <> "" Then
  752.                         Str_QueryCondi = Str_QueryCondi & " And a.BillDate>='" & Trim(.LrText(9).Text) & "'"
  753.                     End If
  754.                 Case 10  '查询单据日期范围(终止)
  755.                     If Trim(.LrText(10).Text) <> "" Then
  756.                         Str_QueryCondi = Str_QueryCondi & " And a.BillDate<= '" & Trim(.LrText(10).Text) & "'"
  757.                     End If
  758.                 Case 11  '查询记帐日期范围(起始)
  759.                     If Trim(.LrText(11).Text) <> "" Then
  760.                         Str_QueryCondi = Str_QueryCondi & " And a.ChalkDate>='" & Trim(.LrText(11).Text) & "'"
  761.                     End If
  762.                 Case 12  '查询记帐日期范围(终止)
  763.                     If Trim(.LrText(12).Text) <> "" Then
  764.                         Str_QueryCondi = Str_QueryCondi & " And a.ChalkDate<= '" & Trim(.LrText(12).Text) & "'"
  765.                     End If
  766.                 Case 14  '月份(起始)
  767.                     Str_QueryCondi = Str_QueryCondi & " And a.period>= '" & .Com_QsMon.ItemData(.Com_QsMon.ListIndex) & "'"
  768.                 Case 15  '月份(终止)
  769.                     Str_QueryCondi = Str_QueryCondi & " And a.period<= '" & .Com_JzMon.ItemData(.Com_JzMon.ListIndex) & "'"
  770.                 Case 16  '记帐状态
  771.                     Str_QueryCondi = Str_QueryCondi & " and  (a.billcode in(1202,1203,1204,1205,1206,1212)) "
  772.                     If Not .Opt_Check(0).Value Then
  773.                         If .Opt_Check(1).Value Then
  774.                             Str_QueryCondi = Str_QueryCondi & " and  a.chalkitupman <>'' "
  775.                         Else
  776.                             Str_QueryCondi = Str_QueryCondi & " and  a.chalkitupman ='' "
  777.                         End If
  778.                     End If
  779.             End Select
  780.         Next Jsqte
  781.     End With
  782.      
  783.     If Not Zbfx_InOutCond.Opt_Check(1).Value Then          '收发记录表查询
  784.         SqlStr = "SELECT * FROM Chhs_V_InOut a LEFT OUTER JOIN Gy_Whlimit ON a.Whcode=Gy_Whlimit.Whcode " & _
  785.              Trim(Str_QueryCondi) & "AND Gy_Whlimit.Czybm='" & Xtczybm & "' Order By a.whcode,a.BillDate,a.InoutMainId,a.InOutSubId"
  786.     Else        '明细帐查询
  787.         SqlStr = "SELECT * FROM Chhs_V_List a LEFT OUTER JOIN Gy_Whlimit ON a.Whcode=Gy_Whlimit.Whcode " & _
  788.              Trim(Str_QueryCondi) & "AND Gy_Whlimit.Czybm='" & Xtczybm & "' Order By a.whcode,a.BillDate,a.InoutMainId,a.InOutSubId"
  789.     End If
  790.     Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(SqlStr)
  791.     With Rec_Query
  792.         CxbbGrid.Rows = CxbbGrid.FixedRows
  793.         Jsqte = CxbbGrid.FixedRows
  794.         Do While Not .EOF
  795.     
  796.             CxbbGrid.AddItem ""
  797.             '[>>自定义填充内容
  798.             CxbbGrid.TextMatrix(Jsqte, 0) = .Fields("InoutMainId")                                            'ID(主要用来查询定位用)
  799.             CxbbGrid.TextMatrix(Jsqte, 1) = .Fields("BillCode")                                                    '单据编码
  800.             CxbbGrid.TextMatrix(Jsqte, Sydz("001", GridStr(), Szzls)) = Trim(.Fields("BillNum") & "")              '单据号
  801.             CxbbGrid.TextMatrix(Jsqte, Sydz("002", GridStr(), Szzls)) = Trim(.Fields("WhName") & "")               '仓库名称
  802.             CxbbGrid.TextMatrix(Jsqte, Sydz("003", GridStr(), Szzls)) = Format(.Fields("BillDate"), "yyyy-mm-dd")  '入库日期
  803.             If .Fields("inoutFlag") Then
  804.                 CxbbGrid.TextMatrix(Jsqte, Sydz("004", GridStr(), Szzls)) = Trim(.Fields("SupplierName") & "")         '供应商
  805.             Else
  806.                 CxbbGrid.TextMatrix(Jsqte, Sydz("004", GridStr(), Szzls)) = Trim(.Fields("CusName") & "")              '客户
  807.             End If
  808.             CxbbGrid.TextMatrix(Jsqte, Sydz("005", GridStr(), Szzls)) = Trim(.Fields("Deptname") & "")             '部门
  809.             CxbbGrid.TextMatrix(Jsqte, Sydz("006", GridStr(), Szzls)) = Trim(.Fields("InoutClassName") & "")       '收发类别
  810.             CxbbGrid.TextMatrix(Jsqte, Sydz("007", GridStr(), Szzls)) = Trim(.Fields("PersonName") & "")           '业务员
  811.             CxbbGrid.TextMatrix(Jsqte, Sydz("008", GridStr(), Szzls)) = Trim(.Fields("Maker") & "")                '制单人
  812.             CxbbGrid.TextMatrix(Jsqte, Sydz("010", GridStr(), Szzls)) = Trim(.Fields("ChalkitupMan") & "")         '记帐人
  813.             CxbbGrid.TextMatrix(Jsqte, Sydz("019", GridStr(), Szzls)) = Trim(.Fields("Mnumber") & "")              '存货编码
  814.             CxbbGrid.TextMatrix(Jsqte, Sydz("011", GridStr(), Szzls)) = Trim(.Fields("MName") & "")                '存货名称
  815.             CxbbGrid.TextMatrix(Jsqte, Sydz("012", GridStr(), Szzls)) = Trim(.Fields("Model") & "")                '规格型号
  816.             CxbbGrid.TextMatrix(Jsqte, Sydz("013", GridStr(), Szzls)) = Trim(.Fields("PrimaryUnitName") & "")      '主计量单位
  817.             CxbbGrid.TextMatrix(Jsqte, Sydz("020", GridStr(), Szzls)) = Trim(.Fields("kjyear") & "")               '年度
  818.             CxbbGrid.TextMatrix(Jsqte, Sydz("021", GridStr(), Szzls)) = Trim(.Fields("period") & "")               '月份
  819.             CxbbGrid.TextMatrix(Jsqte, Sydz("025", GridStr(), Szzls)) = Trim(.Fields("billname") & "")               '备注
  820.             CxbbGrid.TextMatrix(Jsqte, Sydz("026", GridStr(), Szzls)) = Trim(.Fields("remark") & "")               '备注
  821.             
  822.             If Not Zbfx_InOutCond.Opt_Check(1).Value Then          '收发记录表查询
  823.                 CxbbGrid.TextMatrix(Jsqte, Sydz("009", GridStr(), Szzls)) = Trim(.Fields("ChhsChecker") & "")              '审核人
  824.                 If .Fields("inoutFlag") Then
  825.                     If .Fields("FactReceiptQuan") <> 0 Then                                                                           '数量
  826.                         CxbbGrid.TextMatrix(Jsqte, Sydz("014", GridStr(), Szzls)) = .Fields("FactReceiptQuan")
  827.                     End If
  828.                     If .Fields("PlanPrice") <> 0 Then                                                                      '计划单价
  829.                         CxbbGrid.TextMatrix(Jsqte, Sydz("015", GridStr(), Szzls)) = .Fields("PlanPrice")
  830.                     End If
  831.                     If .Fields("PlanMoney") <> 0 Then                                                                      '计划金额
  832.                         CxbbGrid.TextMatrix(Jsqte, Sydz("016", GridStr(), Szzls)) = .Fields("PlanMoney")
  833.                     End If
  834.                     If .Fields("Price") <> 0 Then                                                                          '实际单价
  835.                         CxbbGrid.TextMatrix(Jsqte, Sydz("017", GridStr(), Szzls)) = .Fields("Price")
  836.                     End If
  837.                     If .Fields("Emoney") <> 0 Then                                                                         '实际金额
  838.                         CxbbGrid.TextMatrix(Jsqte, Sydz("018", GridStr(), Szzls)) = .Fields("EMoney")
  839.                     End If
  840.                 Else
  841.                     If .Fields("FactIssueQuan") <> 0 Then                                                                           '数量
  842.                         CxbbGrid.TextMatrix(Jsqte, Sydz("022", GridStr(), Szzls)) = .Fields("FactIssueQuan")
  843.                     End If
  844.                     If .Fields("Price") <> 0 Then                                                                          '实际单价
  845.                         CxbbGrid.TextMatrix(Jsqte, Sydz("023", GridStr(), Szzls)) = .Fields("Price")
  846.                     End If
  847.                     If .Fields("IssueMoney") <> 0 Then                                                                         '实际金额
  848.                         CxbbGrid.TextMatrix(Jsqte, Sydz("024", GridStr(), Szzls)) = .Fields("IssueMoney")
  849.                     End If
  850.                 End If
  851.             Else              '明细帐查询
  852.                 CxbbGrid.TextMatrix(Jsqte, Sydz("009", GridStr(), Szzls)) = Trim(.Fields("Checker") & "")              '审核人
  853.                 If .Fields("inoutFlag") Then
  854.                     If .Fields("InQuan") <> 0 Then                                                                           '数量
  855.                         CxbbGrid.TextMatrix(Jsqte, Sydz("014", GridStr(), Szzls)) = .Fields("InQuan")
  856.                     End If
  857.                     If Trim(.Fields("pricemode")) = "计划价法" Then
  858.                         If .Fields("InPrice") <> 0 Then                                                                      '计划单价
  859.                             CxbbGrid.TextMatrix(Jsqte, Sydz("015", GridStr(), Szzls)) = .Fields("InPrice")
  860.                         End If
  861.                         If .Fields("InMoney") <> 0 Then                                                                      '计划金额
  862.                             CxbbGrid.TextMatrix(Jsqte, Sydz("016", GridStr(), Szzls)) = .Fields("InMoney")
  863.                         End If
  864.                     End If
  865.                     CxbbGrid.TextMatrix(Jsqte, Sydz("018", GridStr(), Szzls)) = .Fields("InMoney") + .Fields("JfDiff") - .Fields("DfDiff")
  866.                     If Val(CxbbGrid.TextMatrix(Jsqte, Sydz("018", GridStr(), Szzls))) <> 0 Then                                                                          '实际单价
  867.                         CxbbGrid.TextMatrix(Jsqte, Sydz("017", GridStr(), Szzls)) = Val(CxbbGrid.TextMatrix(Jsqte, Sydz("018", GridStr(), Szzls))) / .Fields("InQuan")
  868.                     End If
  869.                 Else
  870.                     If .Fields("OutQuan") <> 0 Then                                                                           '数量
  871.                         CxbbGrid.TextMatrix(Jsqte, Sydz("022", GridStr(), Szzls)) = .Fields("OutQuan")
  872.                     End If
  873.                     If .Fields("OutPrice") <> 0 Then                                                                          '实际单价
  874.                         CxbbGrid.TextMatrix(Jsqte, Sydz("023", GridStr(), Szzls)) = .Fields("OutPrice")
  875.                     End If
  876.                     If .Fields("OutMoney") <> 0 Then                                                                         '实际金额
  877.                         CxbbGrid.TextMatrix(Jsqte, Sydz("024", GridStr(), Szzls)) = .Fields("OutMoney")
  878.                     End If
  879.                 End If
  880.             End If
  881.             '<<]
  882.             '设置数据行高度(Fixed)
  883.             CxbbGrid.RowHeight(Jsqte) = Sjhgd
  884.      
  885.             '动态集指针加1,同时将计数器加1(Fixed)
  886.             .MoveNext
  887.             Jsqte = Jsqte + 1
  888.         Loop
  889.     End With
  890.     
  891.     
  892.     '输入合计
  893.     With CxbbGrid
  894.         If .Rows = .FixedRows Then Exit Sub
  895.         
  896.         .SubtotalPosition = flexSTBelow
  897.         For Jsqte = Qslz To .Cols - 1
  898.              If GridBoolean(Jsqte, 4) Then
  899.                   .Subtotal flexSTSum, -1, Jsqte, , &HF7F3EC, , , , , True
  900.              End If
  901.         Next
  902.            
  903.         For Coljsq = Qslz To .Cols - 1
  904.             If Val(.TextMatrix(.Rows - 1, Coljsq)) = 0 And GridBoolean(Coljsq, 4) Then
  905.                 .TextMatrix(.Rows - 1, Coljsq) = ""
  906.             End If
  907.         Next
  908.         .TextMatrix(.Rows - 1, Sydz("002", GridStr(), Szzls)) = "   合计 "
  909.         .RowHeight(.Rows - 1) = Sjhgd
  910.     End With
  911.     
  912.     ']以上为用户自定义部分
  913.     
  914.     Set Rec_Query = Nothing
  915. End Sub
  916. Private Sub CxbbGrid_DblClick()                                              '用户双击网格调入相应单据
  917.     
  918.     Dim Rectemp As New ADODB.Recordset               '临时使用动态集
  919.     If CxbbGrid.Rows = CxbbGrid.FixedRows Then Exit Sub
  920.     
  921.     '非数据行退出
  922.     If CxbbGrid.Row < CxbbGrid.FixedRows Or Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0)) = 0 Then
  923.         Exit Sub
  924.     End If
  925.     
  926.     SqlStr = "SELECT InOutMainId From Gy_InOutMain Where InOutMainId=" & Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0)) + 0
  927.     Set Rectemp = Cw_DataEnvi.DataConnect.Execute(SqlStr)
  928.     With Rectemp
  929.         If .EOF Then
  930.             Tsxx = "此单据已被其他用户删除!"
  931.             Call Xtxxts(Tsxx, 0, 4)
  932.             Exit Sub
  933.         Else
  934.             
  935.              '填充查询单据标识
  936.             XT_BillID = CxbbGrid.TextMatrix(CxbbGrid.Row, 0)
  937.             Xtcdcsfz = Str_QueryCondi
  938.             
  939.             '设置单据处理为列表查询(修改)状态
  940.             Xtcdcs = "3"
  941.             
  942.            '调入单据处理窗体
  943.             Select Case Trim(CxbbGrid.TextMatrix(CxbbGrid.Row, 1))
  944.                 Case "1202"
  945.                     DJ_ProdInBill.Show 1
  946.                 Case "1203"
  947.                     DJ_OtherInBill.Show 1
  948.                 Case "1204"
  949.                     DJ_MateOutBill.Show 1
  950.                 Case "1205"
  951.                     DJ_SellOutBill.Show 1
  952.                 Case "1206"
  953.                     DJ_OtherOutBill.Show 1
  954.                 Case "1212"
  955.                     DJ_MateInBill.Show 1
  956.             End Select
  957.         End If
  958.     End With
  959. End Sub
  960. Private Sub bbyl(bbylte As Boolean)                    '报表打印预览
  961.     
  962.     Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  963.     Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  964.     Bbxbtgs = 1                                          '报 表 小 标 题 行 数
  965.     Bbbwhgs = 0                                          '报 表 表 尾 行 数
  966.     ReDim Bbxbt(1 To Bbxbtgs)
  967.     ReDim bbxbtzzxs(1 To Bbxbtgs)
  968.     If Bbbwhgs <> 0 Then
  969.         ReDim Bbbwh(1 To Bbbwhgs)
  970.         ReDim Bbbwhzzxs(1 To Bbbwhgs)
  971.     End If
  972.     Bbzbt = ReportTitle
  973.     Bbxbt(1) = ""
  974.     bbxbtzzxs(1) = 0                                     '报表行组织形式(0-居左 1-居中 2-居右)
  975.     Call Scyxsjb(CxbbGrid)                               '生成报表数据
  976.     Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  977.     If Not bbylte Then
  978.         Unload DY_Tybbyldy
  979.     End If
  980. End Sub