frmoutput.frm
上传用户:laihaixin
上传日期:2013-01-26
资源大小:1169k
文件大小:37k
源码类别:

医药行业

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
  3. Begin VB.Form frmoutput 
  4.    BackColor       =   &H00404040&
  5.    BorderStyle     =   3  'Fixed Dialog
  6.    Caption         =   "西药中成药调拨登记"
  7.    ClientHeight    =   3450
  8.    ClientLeft      =   45
  9.    ClientTop       =   330
  10.    ClientWidth     =   7590
  11.    Icon            =   "frmoutput.frx":0000
  12.    LinkTopic       =   "Form1"
  13.    LockControls    =   -1  'True
  14.    MaxButton       =   0   'False
  15.    MDIChild        =   -1  'True
  16.    MinButton       =   0   'False
  17.    Picture         =   "frmoutput.frx":030A
  18.    ScaleHeight     =   3450
  19.    ScaleWidth      =   7590
  20.    ShowInTaskbar   =   0   'False
  21.    Begin VB.TextBox Text9 
  22.       BackColor       =   &H00FFFFFF&
  23.       ForeColor       =   &H000000FF&
  24.       Height          =   300
  25.       Left            =   3840
  26.       TabIndex        =   1
  27.       Top             =   90
  28.       Width           =   3615
  29.    End
  30.    Begin VB.ComboBox Combo1 
  31.       BackColor       =   &H00FFFFFF&
  32.       ForeColor       =   &H000000FF&
  33.       Height          =   300
  34.       ItemData        =   "frmoutput.frx":59F9
  35.       Left            =   960
  36.       List            =   "frmoutput.frx":5A03
  37.       TabIndex        =   0
  38.       Top             =   90
  39.       Width           =   1455
  40.    End
  41.    Begin VB.PictureBox Picture2 
  42.       Height          =   1695
  43.       Left            =   120
  44.       Picture         =   "frmoutput.frx":5A1D
  45.       ScaleHeight     =   1635
  46.       ScaleWidth      =   7275
  47.       TabIndex        =   17
  48.       Top             =   480
  49.       Width           =   7335
  50.       Begin VB.TextBox Text8 
  51.          Alignment       =   1  'Right Justify
  52.          BackColor       =   &H00FFFFFF&
  53.          ForeColor       =   &H000000FF&
  54.          Height          =   270
  55.          Left            =   2640
  56.          Locked          =   -1  'True
  57.          TabIndex        =   41
  58.          Top             =   480
  59.          Width           =   1000
  60.       End
  61.       Begin VB.TextBox Text7 
  62.          Alignment       =   1  'Right Justify
  63.          BackColor       =   &H00FFFFFF&
  64.          ForeColor       =   &H000000FF&
  65.          Height          =   270
  66.          Left            =   840
  67.          TabIndex        =   2
  68.          Top             =   480
  69.          Width           =   1000
  70.       End
  71.       Begin VB.TextBox Text6 
  72.          Alignment       =   1  'Right Justify
  73.          BackColor       =   &H00FFFFFF&
  74.          ForeColor       =   &H000000FF&
  75.          Height          =   270
  76.          Index           =   6
  77.          Left            =   4320
  78.          Locked          =   -1  'True
  79.          TabIndex        =   39
  80.          Top             =   840
  81.          Width           =   2685
  82.       End
  83.       Begin VB.TextBox Text6 
  84.          Alignment       =   1  'Right Justify
  85.          BackColor       =   &H00FFFFFF&
  86.          ForeColor       =   &H000000FF&
  87.          Height          =   270
  88.          Index           =   10
  89.          Left            =   6000
  90.          Locked          =   -1  'True
  91.          TabIndex        =   35
  92.          Top             =   1200
  93.          Width           =   400
  94.       End
  95.       Begin VB.TextBox Text6 
  96.          Alignment       =   1  'Right Justify
  97.          BackColor       =   &H00FFFFFF&
  98.          ForeColor       =   &H000000FF&
  99.          Height          =   270
  100.          Index           =   9
  101.          Left            =   5280
  102.          Locked          =   -1  'True
  103.          TabIndex        =   34
  104.          Top             =   1200
  105.          Width           =   400
  106.       End
  107.       Begin VB.TextBox Text6 
  108.          Alignment       =   1  'Right Justify
  109.          BackColor       =   &H00FFFFFF&
  110.          ForeColor       =   &H000000FF&
  111.          Height          =   270
  112.          Index           =   8
  113.          Left            =   4320
  114.          Locked          =   -1  'True
  115.          TabIndex        =   33
  116.          Top             =   1200
  117.          Width           =   600
  118.       End
  119.       Begin VB.TextBox Text6 
  120.          Alignment       =   1  'Right Justify
  121.          BackColor       =   &H00FFFFFF&
  122.          ForeColor       =   &H000000FF&
  123.          Height          =   270
  124.          Index           =   7
  125.          Left            =   840
  126.          Locked          =   -1  'True
  127.          TabIndex        =   32
  128.          Top             =   1200
  129.          Width           =   1000
  130.       End
  131.       Begin VB.TextBox Text6 
  132.          Alignment       =   1  'Right Justify
  133.          BackColor       =   &H00FFFFFF&
  134.          ForeColor       =   &H000000FF&
  135.          Height          =   270
  136.          Index           =   5
  137.          Left            =   2640
  138.          Locked          =   -1  'True
  139.          TabIndex        =   31
  140.          Top             =   840
  141.          Width           =   1000
  142.       End
  143.       Begin VB.TextBox Text6 
  144.          Alignment       =   1  'Right Justify
  145.          BackColor       =   &H00FFFFFF&
  146.          ForeColor       =   &H000000FF&
  147.          Height          =   270
  148.          Index           =   4
  149.          Left            =   840
  150.          Locked          =   -1  'True
  151.          TabIndex        =   30
  152.          Top             =   840
  153.          Width           =   1000
  154.       End
  155.       Begin VB.TextBox Text6 
  156.          Alignment       =   1  'Right Justify
  157.          BackColor       =   &H00FFFFFF&
  158.          ForeColor       =   &H000000FF&
  159.          Height          =   270
  160.          Index           =   3
  161.          Left            =   6000
  162.          Locked          =   -1  'True
  163.          TabIndex        =   29
  164.          Top             =   480
  165.          Width           =   1000
  166.       End
  167.       Begin VB.TextBox Text6 
  168.          Alignment       =   1  'Right Justify
  169.          BackColor       =   &H00FFFFFF&
  170.          ForeColor       =   &H000000FF&
  171.          Height          =   270
  172.          Index           =   2
  173.          Left            =   4320
  174.          Locked          =   -1  'True
  175.          TabIndex        =   28
  176.          Top             =   480
  177.          Width           =   1000
  178.       End
  179.       Begin MSAdodcLib.Adodc Adodc5 
  180.          Height          =   330
  181.          Left            =   6000
  182.          Top             =   50
  183.          Visible         =   0   'False
  184.          Width           =   1200
  185.          _ExtentX        =   2117
  186.          _ExtentY        =   582
  187.          ConnectMode     =   0
  188.          CursorLocation  =   3
  189.          IsolationLevel  =   -1
  190.          ConnectionTimeout=   15
  191.          CommandTimeout  =   30
  192.          CursorType      =   3
  193.          LockType        =   3
  194.          CommandType     =   8
  195.          CursorOptions   =   0
  196.          CacheSize       =   50
  197.          MaxRecords      =   0
  198.          BOFAction       =   0
  199.          EOFAction       =   0
  200.          ConnectStringType=   1
  201.          Appearance      =   1
  202.          BackColor       =   -2147483643
  203.          ForeColor       =   -2147483640
  204.          Orientation     =   0
  205.          Enabled         =   -1
  206.          Connect         =   ""
  207.          OLEDBString     =   ""
  208.          OLEDBFile       =   ""
  209.          DataSourceName  =   ""
  210.          OtherAttributes =   ""
  211.          UserName        =   ""
  212.          Password        =   ""
  213.          RecordSource    =   ""
  214.          Caption         =   "Adodc5"
  215.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  216.             Name            =   "宋体"
  217.             Size            =   9
  218.             Charset         =   134
  219.             Weight          =   400
  220.             Underline       =   0   'False
  221.             Italic          =   0   'False
  222.             Strikethrough   =   0   'False
  223.          EndProperty
  224.          _Version        =   393216
  225.       End
  226.       Begin MSAdodcLib.Adodc Adodc4 
  227.          Height          =   330
  228.          Left            =   4680
  229.          Top             =   50
  230.          Visible         =   0   'False
  231.          Width           =   1200
  232.          _ExtentX        =   2117
  233.          _ExtentY        =   582
  234.          ConnectMode     =   0
  235.          CursorLocation  =   3
  236.          IsolationLevel  =   -1
  237.          ConnectionTimeout=   15
  238.          CommandTimeout  =   30
  239.          CursorType      =   3
  240.          LockType        =   3
  241.          CommandType     =   8
  242.          CursorOptions   =   0
  243.          CacheSize       =   50
  244.          MaxRecords      =   0
  245.          BOFAction       =   0
  246.          EOFAction       =   0
  247.          ConnectStringType=   1
  248.          Appearance      =   1
  249.          BackColor       =   -2147483643
  250.          ForeColor       =   -2147483640
  251.          Orientation     =   0
  252.          Enabled         =   -1
  253.          Connect         =   ""
  254.          OLEDBString     =   ""
  255.          OLEDBFile       =   ""
  256.          DataSourceName  =   ""
  257.          OtherAttributes =   ""
  258.          UserName        =   ""
  259.          Password        =   ""
  260.          RecordSource    =   ""
  261.          Caption         =   "Adodc4"
  262.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  263.             Name            =   "宋体"
  264.             Size            =   9
  265.             Charset         =   134
  266.             Weight          =   400
  267.             Underline       =   0   'False
  268.             Italic          =   0   'False
  269.             Strikethrough   =   0   'False
  270.          EndProperty
  271.          _Version        =   393216
  272.       End
  273.       Begin MSAdodcLib.Adodc Adodc3 
  274.          Height          =   330
  275.          Left            =   3120
  276.          Top             =   50
  277.          Visible         =   0   'False
  278.          Width           =   1215
  279.          _ExtentX        =   2143
  280.          _ExtentY        =   582
  281.          ConnectMode     =   0
  282.          CursorLocation  =   3
  283.          IsolationLevel  =   -1
  284.          ConnectionTimeout=   15
  285.          CommandTimeout  =   30
  286.          CursorType      =   3
  287.          LockType        =   3
  288.          CommandType     =   8
  289.          CursorOptions   =   0
  290.          CacheSize       =   50
  291.          MaxRecords      =   0
  292.          BOFAction       =   0
  293.          EOFAction       =   0
  294.          ConnectStringType=   1
  295.          Appearance      =   1
  296.          BackColor       =   -2147483643
  297.          ForeColor       =   -2147483640
  298.          Orientation     =   0
  299.          Enabled         =   -1
  300.          Connect         =   ""
  301.          OLEDBString     =   ""
  302.          OLEDBFile       =   ""
  303.          DataSourceName  =   ""
  304.          OtherAttributes =   ""
  305.          UserName        =   ""
  306.          Password        =   ""
  307.          RecordSource    =   ""
  308.          Caption         =   "Adodc3"
  309.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  310.             Name            =   "宋体"
  311.             Size            =   9
  312.             Charset         =   134
  313.             Weight          =   400
  314.             Underline       =   0   'False
  315.             Italic          =   0   'False
  316.             Strikethrough   =   0   'False
  317.          EndProperty
  318.          _Version        =   393216
  319.       End
  320.       Begin VB.Label Label10 
  321.          AutoSize        =   -1  'True
  322.          BackStyle       =   0  'Transparent
  323.          Caption         =   "日"
  324.          Height          =   180
  325.          Left            =   6435
  326.          TabIndex        =   38
  327.          Top             =   1245
  328.          Width           =   180
  329.       End
  330.       Begin VB.Label Label9 
  331.          AutoSize        =   -1  'True
  332.          BackStyle       =   0  'Transparent
  333.          Caption         =   "月"
  334.          Height          =   180
  335.          Left            =   5745
  336.          TabIndex        =   37
  337.          Top             =   1245
  338.          Width           =   180
  339.       End
  340.       Begin VB.Label Label8 
  341.          AutoSize        =   -1  'True
  342.          BackStyle       =   0  'Transparent
  343.          Caption         =   "年"
  344.          Height          =   180
  345.          Left            =   5025
  346.          TabIndex        =   36
  347.          Top             =   1245
  348.          Width           =   180
  349.       End
  350.       Begin VB.Label Label7 
  351.          AutoSize        =   -1  'True
  352.          BackStyle       =   0  'Transparent
  353.          Caption         =   "请输入调拨药品编号"
  354.          ForeColor       =   &H00000000&
  355.          Height          =   180
  356.          Index           =   0
  357.          Left            =   240
  358.          TabIndex        =   27
  359.          Top             =   120
  360.          Width           =   1620
  361.       End
  362.       Begin VB.Label Label7 
  363.          AutoSize        =   -1  'True
  364.          BackStyle       =   0  'Transparent
  365.          Caption         =   "失效期"
  366.          Height          =   180
  367.          Index           =   9
  368.          Left            =   3720
  369.          TabIndex        =   26
  370.          Top             =   1245
  371.          Width           =   540
  372.       End
  373.       Begin VB.Label Label7 
  374.          AutoSize        =   -1  'True
  375.          BackStyle       =   0  'Transparent
  376.          Caption         =   "批  号"
  377.          Height          =   180
  378.          Index           =   8
  379.          Left            =   240
  380.          TabIndex        =   25
  381.          Top             =   1245
  382.          Width           =   540
  383.       End
  384.       Begin VB.Label Label7 
  385.          AutoSize        =   -1  'True
  386.          BackStyle       =   0  'Transparent
  387.          Caption         =   "产地"
  388.          Height          =   180
  389.          Index           =   7
  390.          Left            =   3880
  391.          TabIndex        =   24
  392.          Top             =   890
  393.          Width           =   360
  394.       End
  395.       Begin VB.Label Label7 
  396.          AutoSize        =   -1  'True
  397.          BackStyle       =   0  'Transparent
  398.          Caption         =   "零售价"
  399.          Height          =   180
  400.          Index           =   6
  401.          Left            =   2040
  402.          TabIndex        =   23
  403.          Top             =   890
  404.          Width           =   540
  405.       End
  406.       Begin VB.Label Label7 
  407.          AutoSize        =   -1  'True
  408.          BackStyle       =   0  'Transparent
  409.          Caption         =   "数  量"
  410.          Height          =   180
  411.          Index           =   5
  412.          Left            =   240
  413.          TabIndex        =   22
  414.          Top             =   885
  415.          Width           =   540
  416.       End
  417.       Begin VB.Label Label7 
  418.          AutoSize        =   -1  'True
  419.          BackStyle       =   0  'Transparent
  420.          Caption         =   "单位"
  421.          Height          =   180
  422.          Index           =   4
  423.          Left            =   5570
  424.          TabIndex        =   21
  425.          Top             =   525
  426.          Width           =   360
  427.       End
  428.       Begin VB.Label Label7 
  429.          AutoSize        =   -1  'True
  430.          BackStyle       =   0  'Transparent
  431.          Caption         =   "规格"
  432.          Height          =   180
  433.          Index           =   3
  434.          Left            =   3880
  435.          TabIndex        =   20
  436.          Top             =   530
  437.          Width           =   360
  438.       End
  439.       Begin VB.Label Label7 
  440.          AutoSize        =   -1  'True
  441.          BackStyle       =   0  'Transparent
  442.          Caption         =   "名  称"
  443.          Height          =   180
  444.          Index           =   2
  445.          Left            =   2040
  446.          TabIndex        =   19
  447.          Top             =   530
  448.          Width           =   540
  449.       End
  450.       Begin VB.Label Label7 
  451.          AutoSize        =   -1  'True
  452.          BackStyle       =   0  'Transparent
  453.          Caption         =   "编  号"
  454.          Height          =   180
  455.          Index           =   1
  456.          Left            =   240
  457.          TabIndex        =   18
  458.          Top             =   525
  459.          Width           =   540
  460.       End
  461.    End
  462.    Begin VB.PictureBox Picture1 
  463.       Height          =   600
  464.       Left            =   120
  465.       Picture         =   "frmoutput.frx":B10C
  466.       ScaleHeight     =   540
  467.       ScaleWidth      =   7275
  468.       TabIndex        =   9
  469.       Top             =   2280
  470.       Width           =   7335
  471.       Begin VB.TextBox Text1 
  472.          Alignment       =   1  'Right Justify
  473.          BackColor       =   &H00FFFFFF&
  474.          ForeColor       =   &H000000FF&
  475.          Height          =   270
  476.          Left            =   1000
  477.          TabIndex        =   3
  478.          Top             =   120
  479.          Width           =   800
  480.       End
  481.       Begin VB.TextBox Text2 
  482.          Alignment       =   1  'Right Justify
  483.          BackColor       =   &H00FFFFFF&
  484.          ForeColor       =   &H000000FF&
  485.          Height          =   270
  486.          Left            =   3000
  487.          MaxLength       =   4
  488.          TabIndex        =   4
  489.          Top             =   120
  490.          Width           =   500
  491.       End
  492.       Begin VB.TextBox Text3 
  493.          Alignment       =   1  'Right Justify
  494.          BackColor       =   &H00FFFFFF&
  495.          ForeColor       =   &H000000FF&
  496.          Height          =   270
  497.          Left            =   3840
  498.          MaxLength       =   2
  499.          TabIndex        =   5
  500.          Top             =   120
  501.          Width           =   400
  502.       End
  503.       Begin VB.TextBox Text4 
  504.          Alignment       =   1  'Right Justify
  505.          BackColor       =   &H00FFFFFF&
  506.          ForeColor       =   &H000000FF&
  507.          Height          =   270
  508.          Left            =   4560
  509.          MaxLength       =   2
  510.          TabIndex        =   6
  511.          Top             =   120
  512.          Width           =   400
  513.       End
  514.       Begin VB.TextBox Text5 
  515.          Alignment       =   1  'Right Justify
  516.          BackColor       =   &H00FFFFFF&
  517.          ForeColor       =   &H000000FF&
  518.          Height          =   270
  519.          Left            =   6240
  520.          MaxLength       =   10
  521.          TabIndex        =   7
  522.          Top             =   120
  523.          Width           =   800
  524.       End
  525.       Begin VB.Label Label1 
  526.          AutoSize        =   -1  'True
  527.          BackColor       =   &H00404040&
  528.          BackStyle       =   0  'Transparent
  529.          Caption         =   "调出数量"
  530.          ForeColor       =   &H00000000&
  531.          Height          =   180
  532.          Left            =   240
  533.          TabIndex        =   16
  534.          Top             =   165
  535.          Width           =   720
  536.       End
  537.       Begin VB.Label Label2 
  538.          AutoSize        =   -1  'True
  539.          BackColor       =   &H00404040&
  540.          BackStyle       =   0  'Transparent
  541.          Caption         =   "调拨日期"
  542.          ForeColor       =   &H00000000&
  543.          Height          =   180
  544.          Left            =   2160
  545.          TabIndex        =   15
  546.          Top             =   165
  547.          Width           =   720
  548.       End
  549.       Begin VB.Label Label3 
  550.          AutoSize        =   -1  'True
  551.          BackColor       =   &H00404040&
  552.          BackStyle       =   0  'Transparent
  553.          Caption         =   "调拨人"
  554.          ForeColor       =   &H00000000&
  555.          Height          =   180
  556.          Left            =   5640
  557.          TabIndex        =   14
  558.          Top             =   165
  559.          Width           =   540
  560.       End
  561.       Begin VB.Label Label4 
  562.          AutoSize        =   -1  'True
  563.          BackColor       =   &H00404040&
  564.          BackStyle       =   0  'Transparent
  565.          Caption         =   "年"
  566.          ForeColor       =   &H00000000&
  567.          Height          =   180
  568.          Left            =   3570
  569.          TabIndex        =   13
  570.          Top             =   165
  571.          Width           =   180
  572.       End
  573.       Begin VB.Label Label5 
  574.          AutoSize        =   -1  'True
  575.          BackColor       =   &H00404040&
  576.          BackStyle       =   0  'Transparent
  577.          Caption         =   "月"
  578.          ForeColor       =   &H00000000&
  579.          Height          =   180
  580.          Left            =   4320
  581.          TabIndex        =   12
  582.          Top             =   165
  583.          Width           =   180
  584.       End
  585.       Begin VB.Label Label6 
  586.          AutoSize        =   -1  'True
  587.          BackColor       =   &H00404040&
  588.          BackStyle       =   0  'Transparent
  589.          Caption         =   "日"
  590.          ForeColor       =   &H00000000&
  591.          Height          =   180
  592.          Left            =   5025
  593.          TabIndex        =   11
  594.          Top             =   165
  595.          Width           =   180
  596.       End
  597.    End
  598.    Begin MSAdodcLib.Adodc Adodc2 
  599.       Height          =   330
  600.       Left            =   3480
  601.       Top             =   3000
  602.       Visible         =   0   'False
  603.       Width           =   1200
  604.       _ExtentX        =   2117
  605.       _ExtentY        =   582
  606.       ConnectMode     =   0
  607.       CursorLocation  =   3
  608.       IsolationLevel  =   -1
  609.       ConnectionTimeout=   15
  610.       CommandTimeout  =   30
  611.       CursorType      =   3
  612.       LockType        =   3
  613.       CommandType     =   8
  614.       CursorOptions   =   0
  615.       CacheSize       =   50
  616.       MaxRecords      =   0
  617.       BOFAction       =   0
  618.       EOFAction       =   0
  619.       ConnectStringType=   1
  620.       Appearance      =   1
  621.       BackColor       =   -2147483643
  622.       ForeColor       =   -2147483640
  623.       Orientation     =   0
  624.       Enabled         =   -1
  625.       Connect         =   ""
  626.       OLEDBString     =   ""
  627.       OLEDBFile       =   ""
  628.       DataSourceName  =   ""
  629.       OtherAttributes =   ""
  630.       UserName        =   ""
  631.       Password        =   ""
  632.       RecordSource    =   ""
  633.       Caption         =   "Adodc2"
  634.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  635.          Name            =   "宋体"
  636.          Size            =   9
  637.          Charset         =   134
  638.          Weight          =   400
  639.          Underline       =   0   'False
  640.          Italic          =   0   'False
  641.          Strikethrough   =   0   'False
  642.       EndProperty
  643.       _Version        =   393216
  644.    End
  645.    Begin VB.CommandButton Command3 
  646.       Caption         =   "关闭&(Q)"
  647.       Height          =   350
  648.       Left            =   6360
  649.       TabIndex        =   10
  650.       Top             =   3030
  651.       Width           =   1100
  652.    End
  653.    Begin VB.CommandButton Command1 
  654.       Caption         =   "登记&(N)"
  655.       Height          =   350
  656.       Left            =   4920
  657.       TabIndex        =   8
  658.       Top             =   3030
  659.       Width           =   1100
  660.    End
  661.    Begin MSAdodcLib.Adodc Adodc1 
  662.       Height          =   330
  663.       Left            =   2280
  664.       Top             =   3000
  665.       Visible         =   0   'False
  666.       Width           =   1215
  667.       _ExtentX        =   2143
  668.       _ExtentY        =   582
  669.       ConnectMode     =   0
  670.       CursorLocation  =   3
  671.       IsolationLevel  =   -1
  672.       ConnectionTimeout=   15
  673.       CommandTimeout  =   30
  674.       CursorType      =   3
  675.       LockType        =   3
  676.       CommandType     =   8
  677.       CursorOptions   =   0
  678.       CacheSize       =   50
  679.       MaxRecords      =   0
  680.       BOFAction       =   0
  681.       EOFAction       =   0
  682.       ConnectStringType=   1
  683.       Appearance      =   1
  684.       BackColor       =   -2147483643
  685.       ForeColor       =   -2147483640
  686.       Orientation     =   0
  687.       Enabled         =   -1
  688.       Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:himshis.mdb;Persist Security Info=False"
  689.       OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:himshis.mdb;Persist Security Info=False"
  690.       OLEDBFile       =   ""
  691.       DataSourceName  =   ""
  692.       OtherAttributes =   ""
  693.       UserName        =   ""
  694.       Password        =   ""
  695.       RecordSource    =   "select * from ypdb order by ID"
  696.       Caption         =   "Adodc1"
  697.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  698.          Name            =   "宋体"
  699.          Size            =   9
  700.          Charset         =   134
  701.          Weight          =   400
  702.          Underline       =   0   'False
  703.          Italic          =   0   'False
  704.          Strikethrough   =   0   'False
  705.       EndProperty
  706.       _Version        =   393216
  707.    End
  708.    Begin VB.Label result 
  709.       AutoSize        =   -1  'True
  710.       BackStyle       =   0  'Transparent
  711.       ForeColor       =   &H00000000&
  712.       Height          =   180
  713.       Left            =   200
  714.       TabIndex        =   43
  715.       Top             =   3045
  716.       Width           =   90
  717.    End
  718.    Begin VB.Label Label12 
  719.       AutoSize        =   -1  'True
  720.       BackStyle       =   0  'Transparent
  721.       Caption         =   "调拨备注"
  722.       ForeColor       =   &H00000000&
  723.       Height          =   180
  724.       Left            =   3000
  725.       TabIndex        =   42
  726.       Top             =   150
  727.       Width           =   720
  728.    End
  729.    Begin VB.Label Label11 
  730.       AutoSize        =   -1  'True
  731.       BackStyle       =   0  'Transparent
  732.       Caption         =   "调拨部门"
  733.       Height          =   180
  734.       Left            =   120
  735.       TabIndex        =   40
  736.       Top             =   150
  737.       Width           =   720
  738.    End
  739. End
  740. Attribute VB_Name = "frmoutput"
  741. Attribute VB_GlobalNameSpace = False
  742. Attribute VB_Creatable = False
  743. Attribute VB_PredeclaredId = True
  744. Attribute VB_Exposed = False
  745. Public jg As Currency
  746. Public shu1 As Integer
  747. Public shuliang As Integer
  748. Public Sub zybdb()
  749. On Error GoTo err1
  750. With Adodc3
  751.     .RecordSource = "select * from zybyf where 编号='" & Text7.Text & "'"
  752.     .Refresh
  753.     .Recordset.Fields("编号") = Text7.Text
  754.     .Recordset.Fields("名称") = Text8.Text
  755.     .Recordset.Fields("规格") = Text6(2).Text
  756.     .Recordset.Fields("单位") = Text6(3).Text
  757.     .Recordset.Fields("数量") = .Recordset.Fields("数量") + Text1.Text
  758.     .Recordset.Fields("零售价") = Text6(5).Text
  759.     .Recordset.Fields("零售合计") = .Recordset.Fields("数量") * Text6(5)
  760.     .Recordset.Fields("产地") = Text6(6).Text
  761.     .Recordset.Fields("批号") = Text6(7).Text
  762.     rq1 = Text6(8).Text & "-" & Text6(9).Text & "-" & Text6(10).Text
  763.     .Recordset.Fields("失效期") = CDate(rq1)
  764.     .Recordset.Fields("调拨人") = Text5.Text
  765.     rq2 = Text2.Text & "-" & Text3.Text & "-" & Text4.Text
  766.     .Recordset.Fields("调入日期") = CDate(rq2)
  767.     .Recordset.Update
  768. End With
  769. Exit Sub
  770. err1:
  771. MsgBox "当前数据库不能更新或数据库连接失败!"
  772. End Sub
  773. Public Sub mzdb()
  774. On Error GoTo err2
  775. With Adodc2
  776.     .RecordSource = "select * from yaofang where 编号='" & Text7.Text & "'"
  777.     .Refresh
  778.     .Recordset.Fields("编号") = Text7.Text
  779.     .Recordset.Fields("名称") = Text8.Text
  780.     .Recordset.Fields("规格") = Text6(2).Text
  781.     .Recordset.Fields("单位") = Text6(3).Text
  782.     .Recordset.Fields("数量") = .Recordset.Fields("数量") + Text1.Text
  783.     .Recordset.Fields("零售价") = Text6(5).Text
  784.     .Recordset.Fields("零售合计") = .Recordset.Fields("数量") * Text6(5)
  785.     .Recordset.Fields("产地") = Text6(6).Text
  786.     .Recordset.Fields("批号") = Text6(7).Text
  787.     rq1 = Text6(8).Text & "-" & Text6(9).Text & "-" & Text6(10).Text
  788.     .Recordset.Fields("失效期") = CDate(rq1)
  789.     .Recordset.Fields("调拨人") = Text5.Text
  790.     rq2 = Text2.Text & "-" & Text3.Text & "-" & Text4.Text
  791.     .Recordset.Fields("调入日期") = CDate(rq2)
  792.     .Recordset.Update
  793. End With
  794. Exit Sub
  795. err2:
  796. MsgBox "当前数据库不能更新或数据库连接失败!"
  797. End Sub
  798. Public Sub dyyp()
  799. On Error GoTo err3
  800. With Adodc4
  801. .RecordSource = "select * from ypdb order by ID"
  802. .Refresh
  803. .Recordset.AddNew
  804. .Recordset.Fields("编号") = Text7.Text
  805. .Recordset.Fields("名称") = Text8.Text
  806. .Recordset.Fields("规格") = Text6(2).Text
  807. .Recordset.Fields("单位") = Text6(3).Text
  808. .Recordset.Fields("数量") = Text1.Text
  809. .Recordset.Fields("零售价") = Text6(5).Text
  810. .Recordset.Fields("进价") = jg
  811. .Recordset.Fields("产地") = Text6(6).Text
  812. .Recordset.Fields("批号") = Text6(7).Text
  813. .Recordset.Fields("调拨部门") = Combo1.Text
  814. rq3 = Text6(8).Text & "-" & Text6(9).Text & "-" & Text6(10).Text
  815. .Recordset.Fields("失效期") = CDate(rq3)
  816. .Recordset.Fields("调拨人") = Text5.Text
  817. rq4 = Text2.Text & "-" & Text3.Text & "-" & Text4.Text
  818. .Recordset.Fields("调拨日期") = CDate(rq4)
  819. .Recordset.Fields("备注") = Text9.Text
  820. .Recordset.Update
  821. End With
  822. With Adodc1
  823. .RecordSource = "select * from kcyp where 编号='" & Text7.Text & "'"
  824. .Refresh
  825. shu1 = Text6(4) - Text1.Text
  826. .Recordset.Fields("数量") = shu1
  827. .Recordset.Fields("零售合计") = .Recordset.Fields("零售价") * shu1
  828. .Recordset.Fields("进价合计") = .Recordset.Fields("进价") * shu1
  829. .Recordset.Fields("差额") = .Recordset.Fields("零售合计") - .Recordset.Fields("进价合计")
  830. .Recordset.Update
  831. End With
  832. Command1.Enabled = False
  833. Exit Sub
  834. err3:
  835. MsgBox "当前数据库不能更新或数据库连接失败!"
  836. End Sub
  837. Private Sub Combo1_Click()
  838. Text7.Enabled = True
  839. Text5.Text = ""
  840. End Sub
  841. Private Sub Command1_Click()
  842. Dim rq1 As String
  843. Dim rq2 As String
  844. Dim rq3 As String
  845. Dim rq4 As String
  846. On Error GoTo err4
  847. If Text1.Text <= shuliang Then
  848.     If Text1.Text = 0 Or Text2.Text = "" Or Text5.Text = "" Or Combo1.Text = "" Then
  849.         MsgBox "调拨数量不能为零,调拨日期和调拨人必须填写!"
  850.     Else
  851.         If Combo1.Text = "门诊药房" Then
  852.           With Adodc2
  853.          .RecordSource = "select * from yaofang where 编号='" & Text7.Text & "'"
  854.          .Refresh
  855.             If .Recordset.AbsolutePosition <> adPosUnknown Then
  856.                  If .Recordset.Fields("数量") = 0 Then
  857.                      Call mzdb
  858.                      Call dyyp
  859.                  Else
  860.                      If .Recordset.Fields("失效标记") = True Then
  861.                          MsgBox "门诊药房中该药品已经失效,清除后才能调拨!"
  862.                      Else
  863.                          If Trim(.Recordset.Fields("规格")) <> Trim(CStr(Text6(2).Text)) Or CCur(.Recordset.Fields("零售价")) <> CCur(Text6(5).Text) Then
  864.                              MsgBox "调出药品的规格或零售价与药房中的不一致!"
  865.                          Else
  866.                              Call mzdb
  867.                              Call dyyp
  868.                          End If
  869.                      End If
  870.                   End If
  871.             Else
  872.                  .Recordset.AddNew
  873.                  .Recordset.Fields("编号") = Text7.Text
  874.                  .Recordset.Fields("名称") = Text8.Text
  875.                  .Recordset.Fields("规格") = Text6(2).Text
  876.                  .Recordset.Fields("单位") = Text6(3).Text
  877.                  .Recordset.Fields("数量") = Text1.Text
  878.                  .Recordset.Fields("零售价") = Text6(5).Text
  879.                  .Recordset.Fields("零售合计") = Text1.Text * Text6(5)
  880.                  .Recordset.Fields("产地") = Text6(6).Text
  881.                  .Recordset.Fields("批号") = Text6(7).Text
  882.                  rq1 = Text6(8).Text & "-" & Text6(9).Text & "-" & Text6(10).Text
  883.                  .Recordset.Fields("失效期") = CDate(rq1)
  884.                  .Recordset.Fields("调拨人") = Text5.Text
  885.                  rq2 = Text2.Text & "-" & Text3.Text & "-" & Text4.Text
  886.                  .Recordset.Fields("调入日期") = CDate(rq2)
  887.                  .Recordset.UpdateBatch
  888.                  Call dyyp
  889.             End If
  890.           End With
  891.         End If
  892.         '住院部药房
  893.         If Combo1.Text = "住院部药房" Then
  894.           With Adodc3
  895.          .RecordSource = "select * from zybyf where 编号='" & Text7.Text & "'"
  896.          .Refresh
  897.              If .Recordset.AbsolutePosition <> adPosUnknown Then
  898.                  If .Recordset.Fields("数量") = 0 Then
  899.                      Call zybdb
  900.                      Call dyyp
  901.                  Else
  902.                      If .Recordset.Fields("失效标记") = True Then
  903.                          MsgBox "门诊药房中该药品已经失效,清除后才能调拨!"
  904.                      Else
  905.                          If Trim(.Recordset.Fields("规格")) <> Trim(CStr(Text6(2).Text)) Or CCur(.Recordset.Fields("零售价")) <> CCur(Text6(5).Text) Then
  906.                              MsgBox "调出药品的规格或零售价与药房中的不一致!"
  907.                          Else
  908.                              Call zybdb
  909.                              Call dyyp
  910.                          End If
  911.                      End If
  912.                   End If
  913.               Else
  914.                  .Recordset.AddNew
  915.                  .Recordset.Fields("编号") = Text7.Text
  916.                  .Recordset.Fields("名称") = Text8.Text
  917.                  .Recordset.Fields("规格") = Text6(2).Text
  918.                  .Recordset.Fields("单位") = Text6(3).Text
  919.                  .Recordset.Fields("数量") = Text1.Text
  920.                  .Recordset.Fields("零售价") = Text6(5).Text
  921.                  .Recordset.Fields("零售合计") = Text1.Text * Text6(5)
  922.                  .Recordset.Fields("产地") = Text6(6).Text
  923.                  .Recordset.Fields("批号") = Text6(7).Text
  924.                  rq1 = Text6(8).Text & "-" & Text6(9).Text & "-" & Text6(10).Text
  925.                  .Recordset.Fields("失效期") = CDate(rq1)
  926.                  .Recordset.Fields("调拨人") = Text5.Text
  927.                  rq2 = Text2.Text & "-" & Text3.Text & "-" & Text4.Text
  928.                  .Recordset.Fields("调入日期") = CDate(rq2)
  929.                  .Recordset.UpdateBatch
  930.                  Call dyyp
  931.              End If
  932.            End With
  933.         End If
  934.         If Combo1.Text <> "" And Combo1.Text <> "门诊药房" And Combo1.Text <> "住院部药房" Then
  935.           Call dyyp
  936.         End If
  937.     End If
  938.     Text1.Text = 0
  939.     Text7.Text = ""
  940.     result.Caption = "提示:调拨登记成功!"
  941. Else
  942.     MsgBox "调出药品大于库存量!当前药品库存量为:" & Text6(4).Text & Text6(3).Text
  943.     result.Caption = "提示:调拨登记失败!"
  944.     'Command1.Enabled = False
  945. End If
  946. Exit Sub
  947. err4:
  948. MsgBox "数据类型不匹配或库存数据出错!"
  949. End Sub
  950. Private Sub Command3_Click()
  951. Unload Me
  952. End Sub
  953. Private Sub Form_Load()
  954. On Error GoTo err5
  955. frmoutput.Top = (frmmain.Height - frmoutput.Height) / 2 - 500
  956. frmoutput.Left = (frmmain.Width - frmoutput.Width) / 2
  957. Adodc1.ConnectionString = frmlogin.conn
  958. Adodc2.ConnectionString = frmlogin.conn
  959. Adodc3.ConnectionString = frmlogin.conn
  960. Adodc4.ConnectionString = frmlogin.conn
  961. Adodc5.ConnectionString = frmlogin.conn
  962. Command1.Enabled = False
  963. Text7.Enabled = False
  964. Text2.Text = Year(Date)
  965. Text3.Text = Month(Date)
  966. Text4.Text = Day(Date)
  967. With Adodc1
  968. .RecordSource = "select * from kcyp where 失效标记=false"
  969. .Refresh
  970. For i = 0 To .Recordset.RecordCount
  971. If Not .Recordset.EOF Then
  972.     If .Recordset.Fields("失效期") <= Date Then
  973.         .Recordset.Fields("失效标记") = True
  974.         .Recordset.Update
  975.     Else
  976.         .Recordset.Fields("失效标记") = False
  977.         .Recordset.Update
  978.     End If
  979. .Recordset.MoveNext
  980. End If
  981. Next
  982. End With
  983. With Adodc2
  984. .RecordSource = "select * from yaofang where 失效标记=false"
  985. .Refresh
  986. For i = 0 To .Recordset.RecordCount
  987. If Not .Recordset.EOF Then
  988.     If .Recordset.Fields("失效期") <= Date Then
  989.         .Recordset.Fields("失效标记") = True
  990.         .Recordset.Update
  991.     Else
  992.         .Recordset.Fields("失效标记") = False
  993.         .Recordset.Update
  994.     End If
  995. .Recordset.MoveNext
  996. End If
  997. Next
  998. End With
  999. With Adodc3
  1000. .RecordSource = "select * from zybyf where 失效标记=false"
  1001. .Refresh
  1002. For i = 0 To .Recordset.RecordCount
  1003. If Not .Recordset.EOF Then
  1004.     If .Recordset.Fields("失效期") <= Date Then
  1005.         .Recordset.Fields("失效标记") = True
  1006.         .Recordset.Update
  1007.     Else
  1008.         .Recordset.Fields("失效标记") = False
  1009.         .Recordset.Update
  1010.     End If
  1011. .Recordset.MoveNext
  1012. End If
  1013. Next
  1014. End With
  1015. Text9.Text = "无"
  1016. Text1.Text = 0
  1017. Exit Sub
  1018. err5:
  1019. MsgBox "数据库连接失败!"
  1020. End Sub
  1021. Private Sub Text7_Change()
  1022. '库存为零时不能调拨药品
  1023. On Error GoTo err6
  1024. With Adodc1
  1025. .RecordSource = "select * from kcyp where 编号='" & Text7.Text & "' and 失效标记=false"
  1026. .Refresh
  1027. If .Recordset.AbsolutePosition <> adPosUnknown Then
  1028. Text8.Text = .Recordset.Fields("名称")
  1029. Text6(2).Text = .Recordset.Fields("规格")
  1030. Text6(3).Text = .Recordset.Fields("单位")
  1031. Text6(4).Text = .Recordset.Fields("数量")
  1032. jg = .Recordset.Fields("进价")
  1033. Text6(5).Text = .Recordset.Fields("零售价")
  1034. Text6(6).Text = .Recordset.Fields("产地")
  1035. Text6(7).Text = .Recordset.Fields("批号")
  1036. Text6(8).Text = Year(.Recordset.Fields("失效期"))
  1037. Text6(9).Text = Month(.Recordset.Fields("失效期"))
  1038. Text6(10).Text = Day(.Recordset.Fields("失效期"))
  1039. Command1.Enabled = True
  1040. result.Caption = ""
  1041. If Text6(4).Text = 0 Then
  1042. MsgBox "该药品库存已空,不能调拨!"
  1043. Text1.Text = ""
  1044. Command1.Enabled = False
  1045. Else
  1046. shuliang = Text6(4).Text
  1047. Command1.Enabled = True
  1048. End If
  1049. Else
  1050. result.Caption = "提示:没有编号为“" & Text7.Text & "”的药品或该药已失效!"
  1051. Command1.Enabled = False
  1052. Text8.Text = ""
  1053. For i = 2 To 10
  1054. Text6(i) = ""
  1055. Next
  1056. End If
  1057. End With
  1058. Exit Sub
  1059. err6:
  1060. MsgBox "数据库连接失败!"
  1061. End Sub
  1062. Private Sub Form_Unload(Cancel As Integer)
  1063. frmmain.StatusBar1.Panels(2) = "目前没有窗口被激活"
  1064. End Sub
  1065. Private Sub Form_Activate()
  1066. frmmain.StatusBar1.Panels(2) = "活动窗口:" & frmoutput.Caption
  1067. End Sub
  1068. Private Sub Text1_GotFocus()
  1069. Text1.SelStart = 0
  1070. Text1.SelLength = Len(Text1.Text)
  1071. End Sub
  1072. Private Sub Text7_GotFocus()
  1073. Text7.SelStart = 0
  1074. Text7.SelLength = Len(Text7.Text)
  1075. End Sub
  1076. Private Sub Text5_Change()
  1077. On Error GoTo err0
  1078. With Adodc5
  1079. .RecordSource = "select 姓名,代码 from dotcode where 代码='" & Text5.Text & "'"
  1080. .Refresh
  1081. If .Recordset.AbsolutePosition <> adPosUnknown Then
  1082. Text5.Text = .Recordset.Fields("姓名")
  1083. End If
  1084. End With
  1085. Exit Sub
  1086. err0:
  1087. MsgBox "数据库连接失败!"
  1088. End Sub