Ver código fonte

202101備份

B70340 4 anos atrás
pai
commit
a5a64d279f

BIN
.vs/BIFENG-ERP-SYS/v16/.suo Ver arquivo


+ 2
- 8
BIFENG-ERP-SYS/BIFENG-ERP-SYS.vb Ver arquivo

@@ -58,17 +58,11 @@ Public Class BIFENG_ERP_SYS
58 58
     End Sub
59 59
     <Obsolete>
60 60
     Private Sub BIFENG_ERP_SYS_Load(sender As Object, e As EventArgs) Handles MyBase.Load
61
-        SplashScreen1.ShowDialog()
61
+        網段.ShowDialog()
62 62
         '-----------------------取得本機IP-----------------------------------------------------------------------------------------------------------------------------------------------
63 63
         HostName = Dns.GetHostName '获得本机的机器名
64 64
         IPAdress = Dns.GetHostByName(HostName).AddressList.GetValue(0) '获得本机的IP
65 65
         MYIP = IPAdress.ToString
66
-        '-----------------------IP比對----------------------------------------------------------------------------------------------------------------------------------------------------
67
-        If Strings.Left(MYIP, 10) = "192.168.12" Or Strings.Left(MYIP, 7) = "10.0.0." Or Strings.Left(MYIP, 9) = "192.168.0" Then
68
-            登入人IP = "192.168.12.127"
69
-        Else
70
-            登入人IP = ""
71
-        End If
72 66
         '-----------------------寫入連線字串-----------------------------------------------------------------------------------------------------------------------------------------------
73 67
         If 登入人IP = "" Then
74 68
             MsgBox("目前線路不再碧峰堂伺服器線路上,系統即將關閉,請連線該服務器所在網域的VPN,確保連線正常後重新開啟系統!")
@@ -87,7 +81,7 @@ Public Class BIFENG_ERP_SYS
87 81
         '-----硬碟資料----------------------------------------------------------------------------------------------
88 82
         Dim cmicWmi As New Management.ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive")
89 83
         For Each cmicWmiObj As Management.ManagementObject In cmicWmi.Get
90
-            diskId = cmicWmiObj("signature")
84
+            diskId = cmicWmiObj("size")
91 85
             diskSerialNumber = cmicWmiObj("serialnumber")
92 86
             diskModel = cmicWmiObj("Model")
93 87
         Next

+ 9
- 0
BIFENG-ERP-SYS/BIFENG-ERP-SYS.vbproj Ver arquivo

@@ -95,6 +95,12 @@
95 95
     <Compile Include="擇日\擇日%28資料導入%29.vb">
96 96
       <SubType>Form</SubType>
97 97
     </Compile>
98
+    <Compile Include="網段.Designer.vb">
99
+      <DependentUpon>網段.vb</DependentUpon>
100
+    </Compile>
101
+    <Compile Include="網段.vb">
102
+      <SubType>Form</SubType>
103
+    </Compile>
98 104
     <Compile Include="醫\中藥資料庫導入.Designer.vb">
99 105
       <DependentUpon>中藥資料庫導入.vb</DependentUpon>
100 106
     </Compile>
@@ -220,6 +226,9 @@
220 226
     <EmbeddedResource Include="擇日\擇日%28資料導入%29.resx">
221 227
       <DependentUpon>擇日%28資料導入%29.vb</DependentUpon>
222 228
     </EmbeddedResource>
229
+    <EmbeddedResource Include="網段.resx">
230
+      <DependentUpon>網段.vb</DependentUpon>
231
+    </EmbeddedResource>
223 232
     <EmbeddedResource Include="醫\中藥資料庫導入.resx">
224 233
       <DependentUpon>中藥資料庫導入.vb</DependentUpon>
225 234
     </EmbeddedResource>

+ 1
- 1
BIFENG-ERP-SYS/MyModule/Module1.vb Ver arquivo

@@ -1,6 +1,6 @@
1 1
 Module Module1
2 2
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3
-    Public 版本 As String = "2020042202"
3
+    Public 版本 As String = "2021010101"
4 4
     '----系統登入-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5 5
     Public g_conn_type As String = "" : Public ConString As String : Public AA(99) As String : Public 版本號 As String
6 6
     Public Target As String : Public Target1 As String : Public Target2 As String : Public FTP帳號 As String : Public FTP密碼 As String : Public FTP資料夾 As String : Public 登入人IP As String

BIN
BIFENG-ERP-SYS/bin/Debug/BIFENG-ERP-SYS.exe Ver arquivo


BIN
BIFENG-ERP-SYS/bin/Debug/BIFENG-ERP-SYS.pdb Ver arquivo


BIN
BIFENG-ERP-SYS/obj/Debug/BIFENG-ERP-SYS.exe Ver arquivo


BIN
BIFENG-ERP-SYS/obj/Debug/BIFENG-ERP-SYS.pdb Ver arquivo


+ 1
- 1
BIFENG-ERP-SYS/obj/Debug/BIFENG-ERP-SYS.vbproj.CoreCompileInputs.cache Ver arquivo

@@ -1 +1 @@
1
-78f37ee923999466e5ec0d24a654c49d50127261
1
+0e528510592da64f2d41824a2d4300301f22975c

+ 1
- 0
BIFENG-ERP-SYS/obj/Debug/BIFENG-ERP-SYS.vbproj.FileListAbsolute.txt Ver arquivo

@@ -116,3 +116,4 @@ G:\BIFENG-ERP-SYS\BIFENG-ERP-SYS\obj\Debug\BIFENG-ERP-SYS.vbproj.CoreCompileInpu
116 116
 G:\BIFENG-ERP-SYS\BIFENG-ERP-SYS\obj\Debug\BIFENG-ERP-SYS.exe
117 117
 G:\BIFENG-ERP-SYS\BIFENG-ERP-SYS\obj\Debug\BIFENG-ERP-SYS.xml
118 118
 G:\BIFENG-ERP-SYS\BIFENG-ERP-SYS\obj\Debug\BIFENG-ERP-SYS.pdb
119
+G:\BIFENG-ERP-SYS\BIFENG-ERP-SYS\obj\Debug\BIFENG_ERP_SYS.網段.resources

BIN
BIFENG-ERP-SYS/obj/Debug/BIFENG-ERP-SYS.vbproj.GenerateResource.cache Ver arquivo


BIN
BIFENG-ERP-SYS/obj/Debug/BIFENG-ERP-SYS.vbprojAssemblyReference.cache Ver arquivo


BIN
BIFENG-ERP-SYS/obj/Debug/BIFENG_ERP_SYS.網段.resources Ver arquivo


BIN
BIFENG-ERP-SYS/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache Ver arquivo


+ 156
- 0
BIFENG-ERP-SYS/網段.Designer.vb Ver arquivo

@@ -0,0 +1,156 @@
1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
+Partial Class 網段
3
+    Inherits System.Windows.Forms.Form
4
+
5
+    'Form 覆寫 Dispose 以清除元件清單。
6
+    <System.Diagnostics.DebuggerNonUserCode()> _
7
+    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
8
+        Try
9
+            If disposing AndAlso components IsNot Nothing Then
10
+                components.Dispose()
11
+            End If
12
+        Finally
13
+            MyBase.Dispose(disposing)
14
+        End Try
15
+    End Sub
16
+
17
+    '為 Windows Form 設計工具的必要項
18
+    Private components As System.ComponentModel.IContainer
19
+
20
+    '注意: 以下為 Windows Form 設計工具所需的程序
21
+    '可以使用 Windows Form 設計工具進行修改。
22
+    '請勿使用程式碼編輯器進行修改。
23
+    <System.Diagnostics.DebuggerStepThrough()> _
24
+    Private Sub InitializeComponent()
25
+        Me.Label8 = New System.Windows.Forms.Label()
26
+        Me.Label6 = New System.Windows.Forms.Label()
27
+        Me.Label5 = New System.Windows.Forms.Label()
28
+        Me.Copyright = New System.Windows.Forms.Label()
29
+        Me.Label1 = New System.Windows.Forms.Label()
30
+        Me.Label2 = New System.Windows.Forms.Label()
31
+        Me.外網_bt = New System.Windows.Forms.Button()
32
+        Me.內網_bt = New System.Windows.Forms.Button()
33
+        Me.SuspendLayout()
34
+        '
35
+        'Label8
36
+        '
37
+        Me.Label8.Anchor = System.Windows.Forms.AnchorStyles.None
38
+        Me.Label8.BackColor = System.Drawing.Color.Transparent
39
+        Me.Label8.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
40
+        Me.Label8.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
41
+        Me.Label8.Location = New System.Drawing.Point(250, 28)
42
+        Me.Label8.Name = "Label8"
43
+        Me.Label8.Size = New System.Drawing.Size(253, 36)
44
+        Me.Label8.TabIndex = 680
45
+        Me.Label8.Text = "請確認您登入系統位置是否在伺服器所在網域"
46
+        '
47
+        'Label6
48
+        '
49
+        Me.Label6.Anchor = System.Windows.Forms.AnchorStyles.None
50
+        Me.Label6.BackColor = System.Drawing.Color.Transparent
51
+        Me.Label6.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
52
+        Me.Label6.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
53
+        Me.Label6.Location = New System.Drawing.Point(364, 10)
54
+        Me.Label6.Name = "Label6"
55
+        Me.Label6.Size = New System.Drawing.Size(108, 20)
56
+        Me.Label6.TabIndex = 679
57
+        Me.Label6.Text = "192.168.0.1"
58
+        '
59
+        'Label5
60
+        '
61
+        Me.Label5.Anchor = System.Windows.Forms.AnchorStyles.None
62
+        Me.Label5.BackColor = System.Drawing.Color.Transparent
63
+        Me.Label5.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
64
+        Me.Label5.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
65
+        Me.Label5.Location = New System.Drawing.Point(250, 10)
66
+        Me.Label5.Name = "Label5"
67
+        Me.Label5.Size = New System.Drawing.Size(108, 20)
68
+        Me.Label5.TabIndex = 678
69
+        Me.Label5.Text = "您目前的網段是 : "
70
+        '
71
+        'Copyright
72
+        '
73
+        Me.Copyright.Anchor = System.Windows.Forms.AnchorStyles.None
74
+        Me.Copyright.BackColor = System.Drawing.Color.Transparent
75
+        Me.Copyright.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
76
+        Me.Copyright.Location = New System.Drawing.Point(262, 210)
77
+        Me.Copyright.Name = "Copyright"
78
+        Me.Copyright.Size = New System.Drawing.Size(241, 20)
79
+        Me.Copyright.TabIndex = 677
80
+        Me.Copyright.Text = "著作權"
81
+        '
82
+        'Label1
83
+        '
84
+        Me.Label1.Anchor = System.Windows.Forms.AnchorStyles.None
85
+        Me.Label1.BackColor = System.Drawing.Color.Transparent
86
+        Me.Label1.Font = New System.Drawing.Font("微軟正黑體", 15.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
87
+        Me.Label1.Location = New System.Drawing.Point(244, 140)
88
+        Me.Label1.Name = "Label1"
89
+        Me.Label1.Size = New System.Drawing.Size(291, 62)
90
+        Me.Label1.TabIndex = 681
91
+        Me.Label1.Text = "碧中陰陽理指引迷人行正道" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "峰山通妙訣發明達士步青雲"
92
+        '
93
+        'Label2
94
+        '
95
+        Me.Label2.Anchor = System.Windows.Forms.AnchorStyles.None
96
+        Me.Label2.BackColor = System.Drawing.Color.Transparent
97
+        Me.Label2.Font = New System.Drawing.Font("微軟正黑體", 26.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
98
+        Me.Label2.Location = New System.Drawing.Point(314, 90)
99
+        Me.Label2.Name = "Label2"
100
+        Me.Label2.Size = New System.Drawing.Size(127, 42)
101
+        Me.Label2.TabIndex = 682
102
+        Me.Label2.Text = "碧峰堂"
103
+        '
104
+        '外網_bt
105
+        '
106
+        Me.外網_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
107
+        Me.外網_bt.Location = New System.Drawing.Point(265, 233)
108
+        Me.外網_bt.Name = "外網_bt"
109
+        Me.外網_bt.Size = New System.Drawing.Size(75, 45)
110
+        Me.外網_bt.TabIndex = 684
111
+        Me.外網_bt.Text = "外網"
112
+        Me.外網_bt.UseVisualStyleBackColor = True
113
+        '
114
+        '內網_bt
115
+        '
116
+        Me.內網_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
117
+        Me.內網_bt.Location = New System.Drawing.Point(397, 233)
118
+        Me.內網_bt.Name = "內網_bt"
119
+        Me.內網_bt.Size = New System.Drawing.Size(75, 45)
120
+        Me.內網_bt.TabIndex = 683
121
+        Me.內網_bt.Text = "內網"
122
+        Me.內網_bt.UseVisualStyleBackColor = True
123
+        '
124
+        '網段
125
+        '
126
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
127
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
128
+        Me.BackgroundImage = Global.BIFENG_ERP_SYS.My.Resources.Resources.timg01
129
+        Me.ClientSize = New System.Drawing.Size(515, 301)
130
+        Me.Controls.Add(Me.外網_bt)
131
+        Me.Controls.Add(Me.內網_bt)
132
+        Me.Controls.Add(Me.Label2)
133
+        Me.Controls.Add(Me.Label8)
134
+        Me.Controls.Add(Me.Label6)
135
+        Me.Controls.Add(Me.Label5)
136
+        Me.Controls.Add(Me.Copyright)
137
+        Me.Controls.Add(Me.Label1)
138
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
139
+        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow
140
+        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
141
+        Me.Name = "網段"
142
+        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
143
+        Me.Text = "網段"
144
+        Me.ResumeLayout(False)
145
+
146
+    End Sub
147
+
148
+    Friend WithEvents Label8 As Label
149
+    Friend WithEvents Label6 As Label
150
+    Friend WithEvents Label5 As Label
151
+    Friend WithEvents Copyright As Label
152
+    Friend WithEvents Label1 As Label
153
+    Friend WithEvents Label2 As Label
154
+    Friend WithEvents 外網_bt As Button
155
+    Friend WithEvents 內網_bt As Button
156
+End Class

+ 120
- 0
BIFENG-ERP-SYS/網段.resx Ver arquivo

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 10
- 0
BIFENG-ERP-SYS/網段.vb Ver arquivo

@@ -0,0 +1,10 @@
1
+Public Class 網段
2
+    Private Sub 外網_bt_Click(sender As Object, e As EventArgs) Handles 外網_bt.Click
3
+        登入人IP = "180.177.181.162,5264"
4
+        Me.Close()
5
+    End Sub
6
+    Private Sub 內網_bt_Click(sender As Object, e As EventArgs) Handles 內網_bt.Click
7
+        登入人IP = "192.168.12.127"
8
+        Me.Close()
9
+    End Sub
10
+End Class

Carregando…
Cancelar
Salvar