frmAnalySingle.frm
上传用户:xianglong
上传日期:2022-06-19
资源大小:1105k
文件大小:6k
源码类别:

控制台编程

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
  3. Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
  4. Begin VB.Form frmAnalySingle 
  5.    BorderStyle     =   1  'Fixed Single
  6.    Caption         =   "单一物料信息显示"
  7.    ClientHeight    =   3885
  8.    ClientLeft      =   45
  9.    ClientTop       =   405
  10.    ClientWidth     =   8940
  11.    LinkTopic       =   "Form1"
  12.    MaxButton       =   0   'False
  13.    MinButton       =   0   'False
  14.    ScaleHeight     =   3885
  15.    ScaleWidth      =   8940
  16.    StartUpPosition =   2  '屏幕中心
  17.    Begin MSAdodcLib.Adodc Adodc1 
  18.       Height          =   330
  19.       Left            =   7200
  20.       Top             =   240
  21.       Visible         =   0   'False
  22.       Width           =   1560
  23.       _ExtentX        =   2752
  24.       _ExtentY        =   582
  25.       ConnectMode     =   0
  26.       CursorLocation  =   3
  27.       IsolationLevel  =   -1
  28.       ConnectionTimeout=   15
  29.       CommandTimeout  =   30
  30.       CursorType      =   3
  31.       LockType        =   3
  32.       CommandType     =   8
  33.       CursorOptions   =   0
  34.       CacheSize       =   50
  35.       MaxRecords      =   0
  36.       BOFAction       =   0
  37.       EOFAction       =   0
  38.       ConnectStringType=   1
  39.       Appearance      =   1
  40.       BackColor       =   -2147483643
  41.       ForeColor       =   -2147483640
  42.       Orientation     =   0
  43.       Enabled         =   -1
  44.       Connect         =   ""
  45.       OLEDBString     =   ""
  46.       OLEDBFile       =   ""
  47.       DataSourceName  =   ""
  48.       OtherAttributes =   ""
  49.       UserName        =   ""
  50.       Password        =   ""
  51.       RecordSource    =   ""
  52.       Caption         =   "Adodc1"
  53.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  54.          Name            =   "宋体"
  55.          Size            =   9
  56.          Charset         =   134
  57.          Weight          =   400
  58.          Underline       =   0   'False
  59.          Italic          =   0   'False
  60.          Strikethrough   =   0   'False
  61.       EndProperty
  62.       _Version        =   393216
  63.    End
  64.    Begin MSDataGridLib.DataGrid DataGrid1 
  65.       Height          =   3015
  66.       Left            =   120
  67.       TabIndex        =   2
  68.       Top             =   720
  69.       Width           =   8655
  70.       _ExtentX        =   15266
  71.       _ExtentY        =   5318
  72.       _Version        =   393216
  73.       AllowUpdate     =   0   'False
  74.       HeadLines       =   1
  75.       RowHeight       =   15
  76.       BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  77.          Name            =   "宋体"
  78.          Size            =   9
  79.          Charset         =   134
  80.          Weight          =   400
  81.          Underline       =   0   'False
  82.          Italic          =   0   'False
  83.          Strikethrough   =   0   'False
  84.       EndProperty
  85.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  86.          Name            =   "宋体"
  87.          Size            =   9
  88.          Charset         =   134
  89.          Weight          =   400
  90.          Underline       =   0   'False
  91.          Italic          =   0   'False
  92.          Strikethrough   =   0   'False
  93.       EndProperty
  94.       ColumnCount     =   2
  95.       BeginProperty Column00 
  96.          DataField       =   ""
  97.          Caption         =   ""
  98.          BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
  99.             Type            =   0
  100.             Format          =   ""
  101.             HaveTrueFalseNull=   0
  102.             FirstDayOfWeek  =   0
  103.             FirstWeekOfYear =   0
  104.             LCID            =   2052
  105.             SubFormatType   =   0
  106.          EndProperty
  107.       EndProperty
  108.       BeginProperty Column01 
  109.          DataField       =   ""
  110.          Caption         =   ""
  111.          BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
  112.             Type            =   0
  113.             Format          =   ""
  114.             HaveTrueFalseNull=   0
  115.             FirstDayOfWeek  =   0
  116.             FirstWeekOfYear =   0
  117.             LCID            =   2052
  118.             SubFormatType   =   0
  119.          EndProperty
  120.       EndProperty
  121.       SplitCount      =   1
  122.       BeginProperty Split0 
  123.          BeginProperty Column00 
  124.          EndProperty
  125.          BeginProperty Column01 
  126.          EndProperty
  127.       EndProperty
  128.    End
  129.    Begin VB.TextBox Text1 
  130.       ForeColor       =   &H00FF0000&
  131.       Height          =   270
  132.       Left            =   4320
  133.       TabIndex        =   1
  134.       Top             =   225
  135.       Width           =   2775
  136.    End
  137.    Begin VB.Label Label1 
  138.       Caption         =   "所查询的物料代码:"
  139.       BeginProperty Font 
  140.          Name            =   "宋体"
  141.          Size            =   12
  142.          Charset         =   134
  143.          Weight          =   700
  144.          Underline       =   0   'False
  145.          Italic          =   0   'False
  146.          Strikethrough   =   0   'False
  147.       EndProperty
  148.       ForeColor       =   &H00000000&
  149.       Height          =   255
  150.       Left            =   1920
  151.       TabIndex        =   0
  152.       Top             =   240
  153.       Width           =   2295
  154.    End
  155. End
  156. Attribute VB_Name = "frmAnalySingle"
  157. Attribute VB_GlobalNameSpace = False
  158. Attribute VB_Creatable = False
  159. Attribute VB_PredeclaredId = True
  160. Attribute VB_Exposed = False
  161. Private Sub Form_Load()
  162.   frmAnalySingle.Text1.Text = frmAnalysis.Text2.Text
  163.   Text1.Enabled = False
  164.   Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "dbmaterialinfo2007.mdb;Persist Security Info=False"
  165.   Adodc1.RecordSource = "SELECT 物料信息表.Code as 物料代号, 物料信息表.Name as 物料名, 物料类型信息表.TypeName as 物料类型, 物料信息变化表.Last as 昨日金额, 物料信息变化表.Today as 今日金额, 物料信息变化表.Volume as 日耗量,物料信息变化表.[Volume Price] as 日均额,物料信息变化表.Change as 涨跌,物料信息变化表.Inventory as 库存,物料信息变化表.Day as 日期 From 物料类型信息表,物料信息表,物料信息变化表 WHERE 物料信息表.TypeId = 物料类型信息表.ID and 物料信息表.Code = 物料信息变化表.Code and 物料信息表.Code IN('" + frmAnalySingle.Text1.Text + "');"
  166.   Adodc1.Refresh
  167.   Set DataGrid1.DataSource = Adodc1
  168. End Sub