Объект и предмет исследования


Download 1.41 Mb.
bet25/25
Sana16.06.2023
Hajmi1.41 Mb.
#1518011
1   ...   17   18   19   20   21   22   23   24   25
Bog'liq
Разработка программного средства прогноза частоты пост 02

Приложение 2.


Листинг программы Steno vbw
Form1 = 4, 3, 489, 349, Z, 22, 22, 636, 495, C


Листинг программы Steno vbp
Type=Exe
Form=Title-1.frm
Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#C:\WINDOWS\system32\stdole2.tlb#OLE Automation
IconForm="Form1"
Startup="Form1"
ExeName32="_Sten.exe"
Command32=""
Name="Проект1"
HelpContextID="0"
CompatibleMode="0"
MajorVer=1
MinorVer=0
RevisionVer=0
AutoIncrementVer=0
ServerSupportFiles=0
VersionCompanyName="House"
CompilationType=0
OptimizationType=0
FavorPentiumPro(tm)=0
CodeViewDebugInfo=0
NoAliasing=0
BoundsCheck=0
OverflowCheck=0
FlPointCheck=0
FDIVCheck=0
UnroundedFP=0
StartMode=0
Unattended=0
Retained=0
ThreadPerObject=0
MaxNumberOfThreads=1
[MS Transaction Server]
AutoRefresh=1


Листинг программы Steno frm
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 7065
ClientLeft = 2025
ClientTop = 465
ClientWidth = 8340
ClipControls = 0 'False
FillColor = &H00FF0000&
BeginProperty Font
Name = "Times New Roman"
Size = 8.25
Charset = 204
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
LinkTopic = "Form1"
ScaleHeight = 7065
ScaleWidth = 8340
Begin VB.CommandButton Command14
Caption = "Выход"
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 12
Charset = 204
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 4320
TabIndex = 20
Top = 6120
Width = 1935
End
Begin VB.CommandButton Command13
Caption = "На Весь Год"
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 12
Charset = 204
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 1920
TabIndex = 19
Top = 6120
Width = 1935
End
Begin VB.CommandButton Command12
Caption = "Декабрь"
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 12
Charset = 204
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 5040
TabIndex = 18
Top = 5280
Width = 1455
End
Begin VB.CommandButton Command11
Caption = "Ноябрь"
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 12
Charset = 204
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 3360
TabIndex = 17
Top = 5280
Width = 1455
End
Begin VB.CommandButton Command10
Caption = "Октябрь"
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 12
Charset = 204
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 1560
TabIndex = 16
Top = 5280
Width = 1575
End
Begin VB.CommandButton Command9
Caption = "Сентябрь"
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 12
Charset = 204
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 5040
TabIndex = 15
Top = 4560
Width = 1455
End
Begin VB.CommandButton Command8
Caption = "Август"
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 12
Charset = 204
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 3360
TabIndex = 14
Top = 4560
Width = 1455
End
Begin VB.CommandButton Command7
Caption = "Июль"
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 12
Charset = 204
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 1560
TabIndex = 13
Top = 4560
Width = 1575
End
Begin VB.CommandButton Command6
Caption = "Июнь"
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 12
Charset = 204
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 5040
TabIndex = 12
Top = 3840
Width = 1455
End
Begin VB.CommandButton Command5
Caption = "Май"
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 12
Charset = 204
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 3360
TabIndex = 11
Top = 3840
Width = 1455
End
Begin VB.CommandButton Command4
Caption = "Апрель"
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 12
Charset = 204
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 1560
TabIndex = 10
Top = 3840
Width = 1575
End
Begin VB.CommandButton Command3
Caption = "Март"
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 12
Charset = 204
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 5040
TabIndex = 9
Top = 3120
Width = 1455
End
Begin VB.CommandButton Command2
BackColor = &H00FF00FF&
Caption = "Февраль"
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 12
Charset = 204
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 3360
MaskColor = &H00FF0000&
TabIndex = 8
Top = 3120
Width = 1455
End
Begin VB.CommandButton Command1
BackColor = &H00FF00FF&
Caption = "Январь"
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 12
Charset = 204
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 1560
MaskColor = &H00FF00FF&
TabIndex = 7
Top = 3120
Width = 1575
End
Begin VB.TextBox Text3
Alignment = 2 'Центровка
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 14.25
Charset = 204
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height= 495 Left = 4200 TabIndex = 6 Top = 2520 Width = 2295
End
Begin VB.TextBox Text2
Alignment = 2 'Центровка
Enabled = 0 'False
BeginProperty Font
Name = "Times New Roman Cyr" Size = 18 Charset = 204 Weight = 700 Underline = 0 'False Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF& Height = 495 Left = 4080TabIndex = 5 Text = "Temperature" Top = 1800 Width = 2415
End
Begin VB.TextBox Text1
Alignment = 2 'Центровка
CausesValidation= 0 'False
Enabled = 0 'False
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 18 Charset = 204 Weight = 700Underline = 0 'False
Italic = 0 'False Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 495
Left = 4080
TabIndex = 4 TabStop = 0 'False Text = "Nukus" Top = 1080
Width = 2415
End
Begin VB.Label Label4
Alignment = 2 'Центровка
BackColor = &H00C0FFC0&
BorderStyle = 1 'Фиксировано один
Caption = "Год прогноза = "
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 14.25 Charset = 204 Weight = 700 Underline = 0 'False
Italic = 0 'False Strikethrough = 0 'False
EndProperty
Height = 495Left = 1560 TabIndex = 3Top = 2520 Width = 2415
End
Begin VB.Label Label3
Alignment = 2 'Центровка
BackColor = &H00C0FFC0&
BorderStyle = 1 'Фиксировано один
Caption = "Параметр ="
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 14.25 Charset = 204 Weight = 700 Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495Left = 1560TabIndex = 2Top = 1800 Width = 2415
End
Begin VB.Label Label2
Alignment = 2 'Центровка
BackColor = &H00C0FFC0&
BorderStyle = 1 'Фиксировано один
Caption = "Город ="
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 14.25 Charset = 204 Weight = 700 Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495 Left = 1560 TabIndex = 1 Top= 1080 Width = 2415
End
Begin VB.Label Label1
Alignment = 2 'Центровка
BackColor = &H0080FFFF&
BorderStyle = 1 'Фиксировано один
Caption = "Прогноз параметров погоды"
BeginProperty Font
Name = "Times New Roman Cyr"
Size = 14.25 Charset = 204 Weight = 700 Underline = 0 'False
Italic = 0 'False Strikethrough = 0 'False
EndProperty ForeColor = &H00800000&
Height = 615 Left = 1200 TabIndex = 0 Top = 240 Width = 5895
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public j0 As Integer
Public j1 As Integer
Public y1$, x1$, x2$, x3$, x4$, x5$, x6$
Private Sub Command1_Click()
j0 = 1: j1 = 1
Call Calculation(j0, j1)
End Sub
Private Sub Calculation(j0, j1)
Dim MyAppID, y1$, x1$, x2$, x3$, x4$, x5$, x6$
God = Val(Text3.Text)
q1 = FreeFile
Open "an" For Output As #q1
Print #q1, God
Close #q1
x1$ = Left$(Text1.Text, 1)
x2$ = Left$(Text2.Text, 1)
For i = j0 To j1
If i < 10 Then
x3$ = "0" & LTrim(Str(i))
Else
x3$ = LTrim(Str(i))
End If
For j = 1 To 8
k = (j - 1) * 3
If k < 10 Then
x4$ = "0" & LTrim$(Str(k)) & "n"
Else
x4$ = LTrim$(Str(k)) & "n"
End If
For ned = 1 To 4
x5$ = LTrim$(Str(ned))
x6$ = x1$ & x2$ & x3$ & x4$ & x5$ & ".exe"
MyAppID = Shell(x6$, 1)
AppActivate MyAppID
Next ned
Next j
Next i
End Sub
Private Sub Command10_Click()
j0 = 10: j1 = 10
Call Calculation(j0, j1)
End Sub
Private Sub Command11_Click()
j0 = 11: j1 = 11
Call Calculation(j0, j1)
End Sub
Private Sub Command12_Click()
j0 = 12: j1 = 12
Call Calculation(j0, j1)
End Sub
Private Sub Command13_Click()
j0 = 1: j1 = 12
Call Calculation(j0, j1)
End Sub
Private Sub Command14_Click()
End
End Sub
Private Sub Command2_Click()
j0 = 2: j1 = 2
Call Calculation(j0, j1)
End Sub
Private Sub Command3_Click()
j0 = 3: j1 = 3
Call Calculation(j0, j1)
End Sub
Private Sub Command4_Click()
j0 = 4: j1 = 4
Call Calculation(j0, j1)
End Sub
Private Sub Command5_Click()
j0 = 5: j1 = 5
Call Calculation(j0, j1)
End Sub
Private Sub Command6_Click()
j0 = 6: j1 = 6
Call Calculation(j0, j1)
End Sub
Private Sub Command7_Click()
j0 = 7: j1 = 7
Call Calculation(j0, j1)
End Sub
Private Sub Command8_Click()
j0 = 8: j1 = 8
Call Calculation(j0, j1)
End Sub
Private Sub Command9_Click()
j0 = 9: j1 = 9
Call Calculation(j0, j1)
End Sub
Private Sub Label1_Click()
End Sub


Download 1.41 Mb.

Do'stlaringiz bilan baham:
1   ...   17   18   19   20   21   22   23   24   25




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling