  8                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 VERSION =   3.00      dataenvironment      dataenvironment      Dataenvironment      LLeft = -41
Top = 158
Width = 520
Height = 200
Name = "Dataenvironment"
      1      1      form      form      Form1      Height = 348
Width = 528
DoCreate = .T.
ShowTips = .T.
AutoCenter = .T.
Caption = "ԤԼ"
MaxButton = .F.
MinButton = .F.
Icon = ..\..\sxzysh\qd\car.ico
WindowType = 1
Name = "Form1"
      textbox      textbox      txtName      Form1      Comment = ""
ControlSource = "m.addr"
Height = 20
Left = 67
MaxLength = 30
TabIndex = 5
TabStop = .F.
Top = 61
Width = 188
ForeColor = 0,0,255
BackColor = 192,192,192
Name = "txtName"
      textbox      textbox      txtAddr      Form1      Comment = ""
ControlSource = "m.model"
Format = "!"
Height = 20
Left = 67
MaxLength = 30
TabIndex = 7
TabStop = .F.
Top = 115
Width = 188
ForeColor = 0,0,255
BackColor = 192,192,192
Name = "txtAddr"
      &PROCEDURE When
dausers()

ENDPROC
                                         %   F       Z      T             U   
 C   U  DAUSERS When,     1  2                              )                            textbox      textbox      txtTele      Form1      Comment = ""
ControlSource = "m.licno"
Format = "!"
Height = 20
Left = 67
MaxLength = 14
TabIndex = 8
TabStop = .F.
Top = 144
Width = 70
ForeColor = 0,0,255
BackColor = 192,192,192
Name = "txtTele"
      textbox      textbox      txtDate      Form1      Comment = ""
ControlSource = "m.fxdate"
Height = 20
Left = 182
MaxLength = 0
TabIndex = 2
TabStop = .F.
Top = 8
Width = 73
ForeColor = 0,0,255
BackColor = 255,255,255
Name = "txtDate"
     PROCEDURE Valid
gath memvar field fxdate

sele fxtable
repl mans with 0 all

sele fuser
rc=recno()
set filt to fxdate=m.fxdate and fxclass=m.fxclass
go top
scan while not eof()
m.fxtime=fxtime
sele fxtable
loca for time=m.fxtime
if eof()
go bott
endif
repl mans with mans+1 next 1
sele fuser
endscan
sele fxtable 
go top
thisform.grid1.refresh

sele fuser
set filt to
go rc

return .t.
ENDPROC
     +                                 %                          U   	 _   F  >   F  T CO G(  
   	 #) ~+C+
  T     F  -    %C+  #6  >   F   F  #) 
    F  G(	 #  Ba U  FXTIME FXTABLE MANS ALL FUSER RC FXDATE FXCLASS TIME NEXT THISFORM GRID1 REFRESH Valid,     1  r  r  Q   q  Q A qq A q Q  r a  r 1                             )                           label      label      Label2      Form1      pAutoSize = .F.
Caption = "ַ"
Height = 14
Left = 33
Top = 65
Width = 26
TabIndex = 20
Name = "Label2"
      label      label      Label3      Form1      aCaption = ""
Height = 13
Left = 34
Top = 119
Width = 25
TabIndex = 22
Name = "Label3"
      label      label      Label4      Form1      aCaption = ""
Height = 13
Left = 33
Top = 148
Width = 26
TabIndex = 24
Name = "Label4"
      label      label      Label15      Form1      fCaption = "ԤԼ"
Height = 13
Left = 124
Top = 12
Width = 50
TabIndex = 27
Name = "Label15"
      line      line      Line1      Form1      >Height = 0
Left = 2
Top = 287
Width = 513
Name = "Line1"
      commandbutton      commandbutton      command1      Form1      }Top = 303
Left = 96
Height = 28
Width = 105
Caption = "\<1.ȷ"
TabIndex = 15
ForeColor = 0,0,255
Name = "command1"
      6PROCEDURE Click
pswd=.t.
release thisform
ENDPROC
                                      ;   %   D       Y      S             U  
  <   U  THISFORM Click,     1 q 1                       !       )                            Form1      commandbutton      commandbutton      Command2      Form1      Top = 303
Left = 329
Height = 28
Width = 99
Cancel = .T.
Caption = "\<0.ȡ"
TabIndex = 16
ForeColor = 0,0,255
Name = "Command2"
      ,PROCEDURE Click
release thisform
ENDPROC
                                         %   F       Z      T             U   
 C   U  DAUSERS When,     1  2                              )                            textbox      textbox      Text1      Form1      Comment = ""
ControlSource = "m.mem"
Height = 35
Left = 68
MaxLength = 0
TabIndex = 14
ToolTipText = "˫˿ɽݴ롰"
Top = 235
Width = 188
ForeColor = 0,0,255
BackColor = 192,192,192
Name = "Text1"
      label      label      Label1      Form1      dCaption = "Ҫ"
Height = 14
Left = 9
Top = 246
Width = 50
TabIndex = 32
Name = "Label1"
      textbox      textbox      Text4      Form1      Comment = ""
ControlSource = "m.tele"
Format = "!"
Height = 20
Left = 67
MaxLength = 30
TabIndex = 6
TabStop = .F.
Top = 88
Width = 188
ForeColor = 0,0,255
BackColor = 192,192,192
Name = "Text4"
      label      label      Label8      Form1      `Caption = "绰"
Height = 13
Left = 34
Top = 92
Width = 26
TabIndex = 23
Name = "Label8"
      textbox      textbox      Text6      Form1      Comment = ""
ControlSource = "m.code"
Enabled = .F.
Height = 20
Left = 67
MaxLength = 3
TabIndex = 1
TabStop = .F.
Top = 6
Width = 46
ForeColor = 0,0,255
BackColor = 192,192,192
DisabledForeColor = 0,0,255
Name = "Text6"
      label      label      Label7      Form1      pAutoSize = .F.
Caption = ""
Height = 14
Left = 33
Top = 10
Width = 26
TabIndex = 19
Name = "Label7"
      textbox      textbox      Text7      Form1      Comment = ""
ControlSource = "m.name"
Height = 20
Left = 67
MaxLength = 30
TabIndex = 4
TabStop = .F.
Top = 34
Width = 188
ForeColor = 0,0,255
BackColor = 192,192,192
Name = "Text7"
      label      label      Label10      Form1      dCaption = "ͻ"
Height = 13
Left = 9
Top = 38
Width = 50
TabIndex = 18
Name = "Label10"
      textbox      textbox      Text8      Form1      Comment = ""
ControlSource = "m.miles"
Format = "Z"
Height = 20
Left = 67
MaxLength = 0
TabIndex = 13
TabStop = .F.
Top = 172
Width = 70
ForeColor = 0,0,255
BackColor = 192,192,192
Name = "Text8"
      label      label      Label11      Form1      bCaption = ""
Height = 13
Left = 33
Top = 176
Width = 26
TabIndex = 31
Name = "Label11"
      textbox      textbox      Text9      Form1      Comment = ""
ControlSource = "m.clr"
Format = "!"
Height = 20
Left = 182
MaxLength = 30
TabIndex = 9
TabStop = .F.
Top = 141
Width = 73
ForeColor = 0,0,255
BackColor = 192,192,192
Name = "Text9"
      &PROCEDURE When
dausers()

ENDPROC
       , 0, 9, 6, 14, 10, 12, 2, 2
      Optiongroup1      optiongroup      optiongroup      Form1      Label5      label      label      Form1      Text2      textbox      label      label      Label12      Form1      cCaption = "ɫ"
Height = 13
Left = 149
Top = 145
Width = 25
TabIndex = 21
Name = "Label12"
      label      label      Label13      Form1      eCaption = "Ԥ"
Height = 13
Left = 9
Top = 206
Width = 50
TabIndex = 30
Name = "Label13"
      optiongroup      optiongroup      Optiongroup2      Form1     5AutoSize = .F.
ButtonCount = 3
Value = 
ControlSource = "m.fxclass"
Height = 26
Left = 68
Top = 200
Width = 188
TabIndex = 33
Name = "Optiongroup2"
Option1.Caption = "С"
Option1.Value = 0
Option1.Height = 16
Option1.Left = 11
Option1.Top = 5
Option1.Width = 46
Option1.Name = "Option1"
Option2.Caption = ""
Option2.Height = 16
Option2.Left = 70
Option2.Top = 5
Option2.Width = 46
Option2.Name = "Option2"
Option3.Caption = ""
Option3.Height = 16
Option3.Left = 130
Option3.Top = 5
Option3.Width = 45
Option3.Name = "Option3"
     PPROCEDURE Click
gath memvar field fxclass

sele fxclass
loca for name=m.fxclass
m_hr=iif(hr=0,0.5,hr)
m_fxs=fxs

sele fxtable
dele all

for i=l_fusertime1 to l_fusertime2 step m_hr
insert into fxtable (time,fxs) values(i,m_fxs)
endfor

sele fuser
rc=recno()
set filt to fxdate=m.fxdate and fxclass=m.fxclass
go top
scan while not eof()
m.fxtime=fxtime
sele fxtable
loca for time=m.fxtime
if eof()
go bott
endif
repl mans with mans+1 next 1
sele fuser
endscan
sele fxtable 
go top
thisform.grid1.refresh

sele fuser
set filt to
go rc

return .t.
ENDPROC
                                   %   %   E        !   T            U  	 _   F   -   ' T C         ?  6 T   F     (	   & r fxtable
      F  T CO G(  
     	 #) ~+C+
D T   F  -
   %C+" #6  >   F   F  #)     F  G(	 #  Ba U  FXCLASS NAME M_HR HR M_FXS FXS FXTABLE I L_FUSERTIME1 L_FUSERTIME2 TIME FUSER RC FXDATE FXTIME MANS NEXT THISFORM GRID1 REFRESH Click,     1  r q r Q aA r  Q   q  Q A qq A q Q  r a  r 1                       E      )                           textbox      textbox      Text10      Form1      Comment = ""
ControlSource = "m.fxtime"
Format = "z"
Height = 20
InputMask = "99.9"
Left = 347
MaxLength = 0
TabIndex = 3
TabStop = .F.
Top = 9
Width = 47
ForeColor = 0,0,255
BackColor = 255,255,255
Name = "Text10"
     PROCEDURE Valid
gath memvar field fxtime

sele fxtable
repl mans with 0 all

sele fuser
rc=recno()
set filt to fxdate=m.fxdate and fxclass=m.fxclass
go top
scan while not eof()
m.fxtime=fxtime
sele fxtable
loca for time=m.fxtime
if eof()
go bott
endif
repl mans with mans+1 next 1
sele fuser
endscan
sele fxtable 
go top
thisform.grid1.refresh

sele fuser
set filt to
go rc

return .t.
ENDPROC
                                      B   %   U       l      d             U    T  a <  U  PSWD THISFORM Click,     1  q 1                       +       )                           ButtonCount = 1
Value = 
ControlSource = "m.chk"
Height = 23
Left = 435
Top = 8
Width = 68
Name = "Optiongroup1"
Option1.Caption = "ѽӴ"
Option1.Value = 0
Option1.Height = 16
Option1.Left = 5
Option1.Top = 5
Option1.Width = 63
Option1.Name = "Option1"
      textbox      Form1.Grid1.Column3      Text1      textbox      label      label      Label14      Form1      fCaption = "ԤԼʱ"
Height = 13
Left = 289
Top = 13
Width = 49
TabIndex = 28
Name = "Label14"
      grid      grid      Grid1      Form1     	ColumnCount = 4
AllowAddNew = .F.
DeleteMark = .F.
Height = 238
Left = 275
Panel = 1
ReadOnly = .T.
RecordSource = "fxtable"
RecordSourceType = 1
TabIndex = 17
Top = 35
Width = 239
Name = "Grid1"
Column1.Alignment = 2
Column1.ControlSource = "time"
Column1.Width = 49
Column1.ReadOnly = .T.
Column1.Format = "z"
Column1.InputMask = "99.9"
Column1.Name = "Column1"
Column2.ControlSource = "fxs"
Column2.Width = 55
Column2.ReadOnly = .T.
Column2.Name = "Column2"
Column3.ColumnOrder = 3
Column3.ControlSource = "mans"
Column3.Width = 54
Column3.ReadOnly = .T.
Column3.Format = "z"
Column3.Name = "Column5"
Column4.Alignment = 2
Column4.ControlSource = "iif(mans>=fxs,'','')"
Column4.Width = 41
Column4.ReadOnly = .T.
Column4.Name = "Column3"
      header      header      Header1      Form1.Grid1.Column1      5Alignment = 2
Caption = "ʱ"
Name = "Header1"
      textbox      textbox      Text1      Form1.Grid1.Column1      xAlignment = 2
BorderStyle = 0
Margin = 0
ReadOnly = .T.
ForeColor = 0,0,0
BackColor = 255,255,255
Name = "Text1"
      header      header      Header1      Form1.Grid1.Column2      7Alignment = 2
Caption = "ԤԼ"
Name = "Header1"
      textbox      textbox      Text1      Form1.Grid1.Column2      iBorderStyle = 0
Margin = 0
ReadOnly = .T.
ForeColor = 0,0,0
BackColor = 255,255,255
Name = "Text1"
      header      header      Header1      Form1.Grid1.Column5      7Alignment = 2
Caption = "ԤԼ"
Name = "Header1"
      textbox      textbox      Text1      Form1.Grid1.Column5      iBorderStyle = 0
Margin = 0
ReadOnly = .T.
ForeColor = 0,0,0
BackColor = 255,255,255
Name = "Text1"
      header      header      Header1      Form1.Grid1.Column3      3Alignment = 2
Caption = "״̬"
Name = "Header1"
      textbox      hAlignment = 2
BorderStyle = 0
Margin = 0
ForeColor = 0,0,0
BackColor = 255,255,255
Name = "Text1"
      bCaption = "Ӵ"
Height = 13
Left = 149
Top = 176
Width = 25
TabIndex = 21
Name = "Label5"
      Comment = ""
ControlSource = "m.idman"
Enabled = .F.
Format = "!"
Height = 20
Left = 182
MaxLength = 0
TabIndex = 9
TabStop = .F.
Top = 172
Width = 73
ForeColor = 0,0,255
BackColor = 192,192,192
DisabledForeColor = 0,0,255
Name = "Text2"
     +                                 %                          U   	 _   F  >   F  T CO G(    
   	 #) ~+C+
  T   F  -   %C+  #6  >   F   F  #) 
    F  G(	 #  Ba U  FXDATE FXTABLE MANS ALL FUSER RC FXCLASS FXTIME TIME NEXT THISFORM GRID1 REFRESH Valid,     1  r  r  Q   q  Q A qq A q Q  r a  r 1                             )                     
