B70340 vor 4 Jahren
Commit
31e7bf2fec
39 geänderte Dateien mit 2708 neuen und 0 gelöschten Zeilen
  1. BIN
      .vs/MAOJI-REG-SYS/v16/.suo
  2. 25
    0
      MAOJI-REG-SYS.sln
  3. 6
    0
      MAOJI-REG-SYS/App.config
  4. 153
    0
      MAOJI-REG-SYS/Form1.Designer.vb
  5. 120
    0
      MAOJI-REG-SYS/Form1.resx
  6. 23
    0
      MAOJI-REG-SYS/Form1.vb
  7. 147
    0
      MAOJI-REG-SYS/MAOJI-REG-SYS.vbproj
  8. BIN
      MAOJI-REG-SYS/MO-ERP-SYS.ico
  9. 139
    0
      MAOJI-REG-SYS/MOJI-REG-SYS.Designer.vb
  10. 1553
    0
      MAOJI-REG-SYS/MOJI-REG-SYS.resx
  11. 54
    0
      MAOJI-REG-SYS/MOJI-REG-SYS.vb
  12. 38
    0
      MAOJI-REG-SYS/My Project/Application.Designer.vb
  13. 10
    0
      MAOJI-REG-SYS/My Project/Application.myapp
  14. 35
    0
      MAOJI-REG-SYS/My Project/AssemblyInfo.vb
  15. 83
    0
      MAOJI-REG-SYS/My Project/Resources.Designer.vb
  16. 127
    0
      MAOJI-REG-SYS/My Project/Resources.resx
  17. 73
    0
      MAOJI-REG-SYS/My Project/Settings.Designer.vb
  18. 7
    0
      MAOJI-REG-SYS/My Project/Settings.settings
  19. BIN
      MAOJI-REG-SYS/Resources/timg01.jpg
  20. BIN
      MAOJI-REG-SYS/Resources/timg02.jpg
  21. 11
    0
      MAOJI-REG-SYS/SQL_Module.vb
  22. BIN
      MAOJI-REG-SYS/bin/Debug/MAOJI-REG-SYS.exe
  23. 6
    0
      MAOJI-REG-SYS/bin/Debug/MAOJI-REG-SYS.exe.config
  24. BIN
      MAOJI-REG-SYS/bin/Debug/MAOJI-REG-SYS.pdb
  25. 36
    0
      MAOJI-REG-SYS/bin/Debug/MAOJI-REG-SYS.xml
  26. BIN
      MAOJI-REG-SYS/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  27. BIN
      MAOJI-REG-SYS/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  28. BIN
      MAOJI-REG-SYS/obj/Debug/MAOJI-REG-SYS.exe
  29. BIN
      MAOJI-REG-SYS/obj/Debug/MAOJI-REG-SYS.pdb
  30. 1
    0
      MAOJI-REG-SYS/obj/Debug/MAOJI-REG-SYS.vbproj.CoreCompileInputs.cache
  31. 13
    0
      MAOJI-REG-SYS/obj/Debug/MAOJI-REG-SYS.vbproj.FileListAbsolute.txt
  32. BIN
      MAOJI-REG-SYS/obj/Debug/MAOJI-REG-SYS.vbproj.GenerateResource.cache
  33. BIN
      MAOJI-REG-SYS/obj/Debug/MAOJI-REG-SYS.vbprojAssemblyReference.cache
  34. 36
    0
      MAOJI-REG-SYS/obj/Debug/MAOJI-REG-SYS.xml
  35. BIN
      MAOJI-REG-SYS/obj/Debug/MAOJI_REG_SYS.MOJI_REG_SYS.resources
  36. BIN
      MAOJI-REG-SYS/obj/Debug/MAOJI_REG_SYS.Resources.resources
  37. BIN
      MAOJI-REG-SYS/obj/Debug/MAOJI_REG_SYS.網段.resources
  38. BIN
      MAOJI-REG-SYS/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll
  39. 12
    0
      MAOJI-REG-SYS/全域變數.vb

BIN
.vs/MAOJI-REG-SYS/v16/.suo Datei anzeigen


+ 25
- 0
MAOJI-REG-SYS.sln Datei anzeigen

@@ -0,0 +1,25 @@
1
+
2
+Microsoft Visual Studio Solution File, Format Version 12.00
3
+# Visual Studio Version 16
4
+VisualStudioVersion = 16.0.30011.22
5
+MinimumVisualStudioVersion = 10.0.40219.1
6
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "MAOJI-REG-SYS", "MAOJI-REG-SYS\MAOJI-REG-SYS.vbproj", "{3704BE27-273F-4279-96E2-9EF0094C548C}"
7
+EndProject
8
+Global
9
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
10
+		Debug|Any CPU = Debug|Any CPU
11
+		Release|Any CPU = Release|Any CPU
12
+	EndGlobalSection
13
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
14
+		{3704BE27-273F-4279-96E2-9EF0094C548C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15
+		{3704BE27-273F-4279-96E2-9EF0094C548C}.Debug|Any CPU.Build.0 = Debug|Any CPU
16
+		{3704BE27-273F-4279-96E2-9EF0094C548C}.Release|Any CPU.ActiveCfg = Release|Any CPU
17
+		{3704BE27-273F-4279-96E2-9EF0094C548C}.Release|Any CPU.Build.0 = Release|Any CPU
18
+	EndGlobalSection
19
+	GlobalSection(SolutionProperties) = preSolution
20
+		HideSolutionNode = FALSE
21
+	EndGlobalSection
22
+	GlobalSection(ExtensibilityGlobals) = postSolution
23
+		SolutionGuid = {775E13D9-C453-4EA6-BA9A-CD766B1958B6}
24
+	EndGlobalSection
25
+EndGlobal

+ 6
- 0
MAOJI-REG-SYS/App.config Datei anzeigen

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="utf-8" ?>
2
+<configuration>
3
+    <startup>
4
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
5
+    </startup>
6
+</configuration>

+ 153
- 0
MAOJI-REG-SYS/Form1.Designer.vb Datei anzeigen

@@ -0,0 +1,153 @@
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.設計_bt = New System.Windows.Forms.Button()
30
+        Me.內網_bt = New System.Windows.Forms.Button()
31
+        Me.Label1 = New System.Windows.Forms.Label()
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(239, 38)
42
+        Me.Label8.Name = "Label8"
43
+        Me.Label8.Size = New System.Drawing.Size(253, 36)
44
+        Me.Label8.TabIndex = 682
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(353, 20)
54
+        Me.Label6.Name = "Label6"
55
+        Me.Label6.Size = New System.Drawing.Size(108, 20)
56
+        Me.Label6.TabIndex = 681
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(239, 20)
66
+        Me.Label5.Name = "Label5"
67
+        Me.Label5.Size = New System.Drawing.Size(108, 20)
68
+        Me.Label5.TabIndex = 680
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(251, 220)
77
+        Me.Copyright.Name = "Copyright"
78
+        Me.Copyright.Size = New System.Drawing.Size(241, 20)
79
+        Me.Copyright.TabIndex = 679
80
+        Me.Copyright.Text = "著作權"
81
+        '
82
+        '設計_bt
83
+        '
84
+        Me.設計_bt.Location = New System.Drawing.Point(417, 247)
85
+        Me.設計_bt.Name = "設計_bt"
86
+        Me.設計_bt.Size = New System.Drawing.Size(75, 34)
87
+        Me.設計_bt.TabIndex = 678
88
+        Me.設計_bt.Text = "設計"
89
+        Me.設計_bt.UseVisualStyleBackColor = True
90
+        '
91
+        '內網_bt
92
+        '
93
+        Me.內網_bt.Location = New System.Drawing.Point(340, 247)
94
+        Me.內網_bt.Name = "內網_bt"
95
+        Me.內網_bt.Size = New System.Drawing.Size(75, 34)
96
+        Me.內網_bt.TabIndex = 677
97
+        Me.內網_bt.Text = "內網"
98
+        Me.內網_bt.UseVisualStyleBackColor = True
99
+        '
100
+        'Label1
101
+        '
102
+        Me.Label1.Anchor = System.Windows.Forms.AnchorStyles.None
103
+        Me.Label1.BackColor = System.Drawing.Color.Transparent
104
+        Me.Label1.Font = New System.Drawing.Font("微軟正黑體", 21.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
105
+        Me.Label1.Location = New System.Drawing.Point(262, 99)
106
+        Me.Label1.Name = "Label1"
107
+        Me.Label1.Size = New System.Drawing.Size(238, 84)
108
+        Me.Label1.TabIndex = 683
109
+        Me.Label1.Text = "MOJI-ERP-SYS" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "電腦認證註冊"
110
+        '
111
+        '外網_bt
112
+        '
113
+        Me.外網_bt.Location = New System.Drawing.Point(264, 247)
114
+        Me.外網_bt.Name = "外網_bt"
115
+        Me.外網_bt.Size = New System.Drawing.Size(75, 34)
116
+        Me.外網_bt.TabIndex = 684
117
+        Me.外網_bt.Text = "外網"
118
+        Me.外網_bt.UseVisualStyleBackColor = True
119
+        '
120
+        '網段
121
+        '
122
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
123
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
124
+        Me.AutoValidate = System.Windows.Forms.AutoValidate.EnablePreventFocusChange
125
+        Me.BackgroundImage = Global.MAOJI_REG_SYS.My.Resources.Resources.timg01
126
+        Me.ClientSize = New System.Drawing.Size(504, 293)
127
+        Me.Controls.Add(Me.外網_bt)
128
+        Me.Controls.Add(Me.Label8)
129
+        Me.Controls.Add(Me.Label6)
130
+        Me.Controls.Add(Me.Label5)
131
+        Me.Controls.Add(Me.Copyright)
132
+        Me.Controls.Add(Me.設計_bt)
133
+        Me.Controls.Add(Me.內網_bt)
134
+        Me.Controls.Add(Me.Label1)
135
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
136
+        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
137
+        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
138
+        Me.Name = "網段"
139
+        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
140
+        Me.Text = "網段"
141
+        Me.ResumeLayout(False)
142
+
143
+    End Sub
144
+
145
+    Friend WithEvents Label8 As Label
146
+    Friend WithEvents Label6 As Label
147
+    Friend WithEvents Label5 As Label
148
+    Friend WithEvents Copyright As Label
149
+    Friend WithEvents 設計_bt As Button
150
+    Friend WithEvents 內網_bt As Button
151
+    Friend WithEvents Label1 As Label
152
+    Friend WithEvents 外網_bt As Button
153
+End Class

+ 120
- 0
MAOJI-REG-SYS/Form1.resx Datei anzeigen

@@ -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>

+ 23
- 0
MAOJI-REG-SYS/Form1.vb Datei anzeigen

@@ -0,0 +1,23 @@
1
+Imports System.Net
2
+Public Class 網段
3
+    Dim HostName As String
4
+    Dim IPAdress As IPAddress
5
+    Dim MYIP As String
6
+    <Obsolete>
7
+    Private Sub 網段_Load(sender As Object, e As EventArgs) Handles MyBase.Load
8
+        Copyright.Text = "著作權 - 工巧明智能設備有限公司所有"
9
+        HostName = Dns.GetHostName '获得本机的机器名
10
+        IPAdress = Dns.GetHostByName(HostName).AddressList.GetValue(0) '获得本机的IP
11
+        MYIP = IPAdress.ToString
12
+        Label6.Text = MYIP
13
+    End Sub
14
+    Private Sub 內網_bt_Click(sender As Object, e As EventArgs) Handles 內網_bt.Click
15
+        登入判斷 = True : 內外網 = False : Me.Close()
16
+    End Sub
17
+    Private Sub 設計_bt_Click(sender As Object, e As EventArgs) Handles 設計_bt.Click
18
+        登入判斷 = False : 內外網 = False : Me.Close()
19
+    End Sub
20
+    Private Sub 外網_bt_Click(sender As Object, e As EventArgs) Handles 外網_bt.Click
21
+        登入判斷 = True : 內外網 = True : Me.Close()
22
+    End Sub
23
+End Class

+ 147
- 0
MAOJI-REG-SYS/MAOJI-REG-SYS.vbproj Datei anzeigen

@@ -0,0 +1,147 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4
+  <PropertyGroup>
5
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7
+    <ProjectGuid>{3704BE27-273F-4279-96E2-9EF0094C548C}</ProjectGuid>
8
+    <OutputType>WinExe</OutputType>
9
+    <StartupObject>MAOJI_REG_SYS.My.MyApplication</StartupObject>
10
+    <RootNamespace>MAOJI_REG_SYS</RootNamespace>
11
+    <AssemblyName>MAOJI-REG-SYS</AssemblyName>
12
+    <FileAlignment>512</FileAlignment>
13
+    <MyType>WindowsForms</MyType>
14
+    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
15
+    <Deterministic>true</Deterministic>
16
+  </PropertyGroup>
17
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
18
+    <PlatformTarget>AnyCPU</PlatformTarget>
19
+    <DebugSymbols>true</DebugSymbols>
20
+    <DebugType>full</DebugType>
21
+    <DefineDebug>true</DefineDebug>
22
+    <DefineTrace>true</DefineTrace>
23
+    <OutputPath>bin\Debug\</OutputPath>
24
+    <DocumentationFile>MAOJI-REG-SYS.xml</DocumentationFile>
25
+    <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
26
+  </PropertyGroup>
27
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28
+    <PlatformTarget>AnyCPU</PlatformTarget>
29
+    <DebugType>pdbonly</DebugType>
30
+    <DefineDebug>false</DefineDebug>
31
+    <DefineTrace>true</DefineTrace>
32
+    <Optimize>true</Optimize>
33
+    <OutputPath>bin\Release\</OutputPath>
34
+    <DocumentationFile>MAOJI-REG-SYS.xml</DocumentationFile>
35
+    <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
36
+  </PropertyGroup>
37
+  <PropertyGroup>
38
+    <OptionExplicit>On</OptionExplicit>
39
+  </PropertyGroup>
40
+  <PropertyGroup>
41
+    <OptionCompare>Binary</OptionCompare>
42
+  </PropertyGroup>
43
+  <PropertyGroup>
44
+    <OptionStrict>Off</OptionStrict>
45
+  </PropertyGroup>
46
+  <PropertyGroup>
47
+    <OptionInfer>On</OptionInfer>
48
+  </PropertyGroup>
49
+  <PropertyGroup>
50
+    <ApplicationIcon>MO-ERP-SYS.ico</ApplicationIcon>
51
+  </PropertyGroup>
52
+  <ItemGroup>
53
+    <Reference Include="System" />
54
+    <Reference Include="System.Data" />
55
+    <Reference Include="System.Deployment" />
56
+    <Reference Include="System.Drawing" />
57
+    <Reference Include="System.Management" />
58
+    <Reference Include="System.Windows.Forms" />
59
+    <Reference Include="System.Xml" />
60
+    <Reference Include="System.Core" />
61
+    <Reference Include="System.Xml.Linq" />
62
+    <Reference Include="System.Data.DataSetExtensions" />
63
+    <Reference Include="System.Net.Http" />
64
+  </ItemGroup>
65
+  <ItemGroup>
66
+    <Import Include="Microsoft.VisualBasic" />
67
+    <Import Include="System" />
68
+    <Import Include="System.Collections" />
69
+    <Import Include="System.Collections.Generic" />
70
+    <Import Include="System.Data" />
71
+    <Import Include="System.Drawing" />
72
+    <Import Include="System.Diagnostics" />
73
+    <Import Include="System.Windows.Forms" />
74
+    <Import Include="System.Linq" />
75
+    <Import Include="System.Xml.Linq" />
76
+    <Import Include="System.Threading.Tasks" />
77
+  </ItemGroup>
78
+  <ItemGroup>
79
+    <Compile Include="Form1.Designer.vb">
80
+      <DependentUpon>Form1.vb</DependentUpon>
81
+    </Compile>
82
+    <Compile Include="Form1.vb">
83
+      <SubType>Form</SubType>
84
+    </Compile>
85
+    <Compile Include="MOJI-REG-SYS.vb">
86
+      <SubType>Form</SubType>
87
+    </Compile>
88
+    <Compile Include="MOJI-REG-SYS.Designer.vb">
89
+      <DependentUpon>MOJI-REG-SYS.vb</DependentUpon>
90
+      <SubType>Form</SubType>
91
+    </Compile>
92
+    <Compile Include="My Project\AssemblyInfo.vb" />
93
+    <Compile Include="My Project\Application.Designer.vb">
94
+      <AutoGen>True</AutoGen>
95
+      <DependentUpon>Application.myapp</DependentUpon>
96
+      <DesignTime>True</DesignTime>
97
+    </Compile>
98
+    <Compile Include="My Project\Resources.Designer.vb">
99
+      <AutoGen>True</AutoGen>
100
+      <DesignTime>True</DesignTime>
101
+      <DependentUpon>Resources.resx</DependentUpon>
102
+    </Compile>
103
+    <Compile Include="My Project\Settings.Designer.vb">
104
+      <AutoGen>True</AutoGen>
105
+      <DependentUpon>Settings.settings</DependentUpon>
106
+      <DesignTimeSharedInput>True</DesignTimeSharedInput>
107
+    </Compile>
108
+    <Compile Include="SQL_Module.vb" />
109
+    <Compile Include="全域變數.vb" />
110
+  </ItemGroup>
111
+  <ItemGroup>
112
+    <EmbeddedResource Include="Form1.resx">
113
+      <DependentUpon>Form1.vb</DependentUpon>
114
+    </EmbeddedResource>
115
+    <EmbeddedResource Include="MOJI-REG-SYS.resx">
116
+      <DependentUpon>MOJI-REG-SYS.vb</DependentUpon>
117
+    </EmbeddedResource>
118
+    <EmbeddedResource Include="My Project\Resources.resx">
119
+      <Generator>VbMyResourcesResXFileCodeGenerator</Generator>
120
+      <LastGenOutput>Resources.Designer.vb</LastGenOutput>
121
+      <CustomToolNamespace>My.Resources</CustomToolNamespace>
122
+      <SubType>Designer</SubType>
123
+    </EmbeddedResource>
124
+  </ItemGroup>
125
+  <ItemGroup>
126
+    <None Include="My Project\Application.myapp">
127
+      <Generator>MyApplicationCodeGenerator</Generator>
128
+      <LastGenOutput>Application.Designer.vb</LastGenOutput>
129
+    </None>
130
+    <None Include="My Project\Settings.settings">
131
+      <Generator>SettingsSingleFileGenerator</Generator>
132
+      <CustomToolNamespace>My</CustomToolNamespace>
133
+      <LastGenOutput>Settings.Designer.vb</LastGenOutput>
134
+    </None>
135
+    <None Include="App.config" />
136
+  </ItemGroup>
137
+  <ItemGroup>
138
+    <None Include="Resources\timg02.jpg" />
139
+  </ItemGroup>
140
+  <ItemGroup>
141
+    <None Include="Resources\timg01.jpg" />
142
+  </ItemGroup>
143
+  <ItemGroup>
144
+    <Content Include="MO-ERP-SYS.ico" />
145
+  </ItemGroup>
146
+  <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
147
+</Project>

BIN
MAOJI-REG-SYS/MO-ERP-SYS.ico Datei anzeigen


+ 139
- 0
MAOJI-REG-SYS/MOJI-REG-SYS.Designer.vb Datei anzeigen

@@ -0,0 +1,139 @@
1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
+Partial Class MOJI_REG_SYS
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
+        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(MOJI_REG_SYS))
26
+        Me.Label5 = New System.Windows.Forms.Label()
27
+        Me.電腦註冊_tb = New System.Windows.Forms.Button()
28
+        Me.Label4 = New System.Windows.Forms.Label()
29
+        Me.Label3 = New System.Windows.Forms.Label()
30
+        Me.Label2 = New System.Windows.Forms.Label()
31
+        Me.Label1 = New System.Windows.Forms.Label()
32
+        Me.磁盘型態_tb = New System.Windows.Forms.TextBox()
33
+        Me.硬碟序列_tb = New System.Windows.Forms.TextBox()
34
+        Me.硬碟ID_tb = New System.Windows.Forms.TextBox()
35
+        Me.取得本地電腦訊息_bt = New System.Windows.Forms.Button()
36
+        Me.MAC碼_tb = New System.Windows.Forms.TextBox()
37
+        Me.SuspendLayout()
38
+        '
39
+        'Label5
40
+        '
41
+        resources.ApplyResources(Me.Label5, "Label5")
42
+        Me.Label5.ForeColor = System.Drawing.Color.Red
43
+        Me.Label5.Name = "Label5"
44
+        '
45
+        '電腦註冊_tb
46
+        '
47
+        Me.電腦註冊_tb.ForeColor = System.Drawing.Color.Red
48
+        resources.ApplyResources(Me.電腦註冊_tb, "電腦註冊_tb")
49
+        Me.電腦註冊_tb.Name = "電腦註冊_tb"
50
+        Me.電腦註冊_tb.UseVisualStyleBackColor = True
51
+        '
52
+        'Label4
53
+        '
54
+        resources.ApplyResources(Me.Label4, "Label4")
55
+        Me.Label4.ForeColor = System.Drawing.Color.Blue
56
+        Me.Label4.Name = "Label4"
57
+        '
58
+        'Label3
59
+        '
60
+        resources.ApplyResources(Me.Label3, "Label3")
61
+        Me.Label3.ForeColor = System.Drawing.Color.Blue
62
+        Me.Label3.Name = "Label3"
63
+        '
64
+        'Label2
65
+        '
66
+        resources.ApplyResources(Me.Label2, "Label2")
67
+        Me.Label2.ForeColor = System.Drawing.Color.Blue
68
+        Me.Label2.Name = "Label2"
69
+        '
70
+        'Label1
71
+        '
72
+        resources.ApplyResources(Me.Label1, "Label1")
73
+        Me.Label1.ForeColor = System.Drawing.Color.Blue
74
+        Me.Label1.Name = "Label1"
75
+        '
76
+        '磁盘型態_tb
77
+        '
78
+        Me.磁盘型態_tb.ForeColor = System.Drawing.Color.Blue
79
+        resources.ApplyResources(Me.磁盘型態_tb, "磁盘型態_tb")
80
+        Me.磁盘型態_tb.Name = "磁盘型態_tb"
81
+        '
82
+        '硬碟序列_tb
83
+        '
84
+        Me.硬碟序列_tb.ForeColor = System.Drawing.Color.Blue
85
+        resources.ApplyResources(Me.硬碟序列_tb, "硬碟序列_tb")
86
+        Me.硬碟序列_tb.Name = "硬碟序列_tb"
87
+        '
88
+        '硬碟ID_tb
89
+        '
90
+        Me.硬碟ID_tb.ForeColor = System.Drawing.Color.Blue
91
+        resources.ApplyResources(Me.硬碟ID_tb, "硬碟ID_tb")
92
+        Me.硬碟ID_tb.Name = "硬碟ID_tb"
93
+        '
94
+        '取得本地電腦訊息_bt
95
+        '
96
+        Me.取得本地電腦訊息_bt.ForeColor = System.Drawing.Color.Green
97
+        resources.ApplyResources(Me.取得本地電腦訊息_bt, "取得本地電腦訊息_bt")
98
+        Me.取得本地電腦訊息_bt.Name = "取得本地電腦訊息_bt"
99
+        Me.取得本地電腦訊息_bt.UseVisualStyleBackColor = True
100
+        '
101
+        'MAC碼_tb
102
+        '
103
+        Me.MAC碼_tb.ForeColor = System.Drawing.Color.Blue
104
+        resources.ApplyResources(Me.MAC碼_tb, "MAC碼_tb")
105
+        Me.MAC碼_tb.Name = "MAC碼_tb"
106
+        '
107
+        'MOJI_REG_SYS
108
+        '
109
+        resources.ApplyResources(Me, "$this")
110
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
111
+        Me.Controls.Add(Me.Label5)
112
+        Me.Controls.Add(Me.電腦註冊_tb)
113
+        Me.Controls.Add(Me.Label4)
114
+        Me.Controls.Add(Me.Label3)
115
+        Me.Controls.Add(Me.Label2)
116
+        Me.Controls.Add(Me.Label1)
117
+        Me.Controls.Add(Me.磁盘型態_tb)
118
+        Me.Controls.Add(Me.硬碟序列_tb)
119
+        Me.Controls.Add(Me.硬碟ID_tb)
120
+        Me.Controls.Add(Me.取得本地電腦訊息_bt)
121
+        Me.Controls.Add(Me.MAC碼_tb)
122
+        Me.Name = "MOJI_REG_SYS"
123
+        Me.ResumeLayout(False)
124
+        Me.PerformLayout()
125
+
126
+    End Sub
127
+
128
+    Friend WithEvents Label5 As Label
129
+    Friend WithEvents 電腦註冊_tb As Button
130
+    Friend WithEvents Label4 As Label
131
+    Friend WithEvents Label3 As Label
132
+    Friend WithEvents Label2 As Label
133
+    Friend WithEvents Label1 As Label
134
+    Friend WithEvents 磁盘型態_tb As TextBox
135
+    Friend WithEvents 硬碟序列_tb As TextBox
136
+    Friend WithEvents 硬碟ID_tb As TextBox
137
+    Friend WithEvents 取得本地電腦訊息_bt As Button
138
+    Friend WithEvents MAC碼_tb As TextBox
139
+End Class

+ 1553
- 0
MAOJI-REG-SYS/MOJI-REG-SYS.resx
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 54
- 0
MAOJI-REG-SYS/MOJI-REG-SYS.vb Datei anzeigen

@@ -0,0 +1,54 @@
1
+Option Strict Off
2
+Public Class MOJI_REG_SYS
3
+    Private Sub MOJI_REG_SYS_Load(sender As Object, e As EventArgs) Handles MyBase.Load
4
+        網段.ShowDialog()
5
+        If 登入判斷 = True And 內外網 = False Then
6
+            SQL_連線字串_內網()
7
+        ElseIf 登入判斷 = False And 內外網 = False Then
8
+            SQL_連線字串_測試()
9
+        ElseIf 登入判斷 = True And 內外網 = True Then
10
+            SQL_連線字串_外網()
11
+        End If
12
+    End Sub
13
+    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles 取得本地電腦訊息_bt.Click
14
+        '-----MAC碼----------------------------------------------------------------------------------------------
15
+        Dim Wmi As New System.Management.ManagementObjectSearcher("SELECT * FROM Win32_NetworkAdapterConfiguration")
16
+        For Each WmiObj As Management.ManagementObject In Wmi.Get
17
+            If CBool(WmiObj("IPEnabled")) Then
18
+                MAC碼_tb.Text = WmiObj("MACAddress")
19
+            End If
20
+        Next
21
+        '-----硬碟資料----------------------------------------------------------------------------------------------
22
+        Dim cmicWmi As New Management.ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive")
23
+        Dim diskId As String '数字ID
24
+        Dim diskSerialNumber As String '这个我们暂且称其为序列号码
25
+        Dim diskModel As String '序列号
26
+        For Each cmicWmiObj As Management.ManagementObject In cmicWmi.Get
27
+            diskId = cmicWmiObj("size")
28
+            diskSerialNumber = cmicWmiObj("serialnumber")
29
+            diskModel = cmicWmiObj("Model")
30
+            硬碟ID_tb.Text = diskId
31
+            硬碟序列_tb.Text = diskSerialNumber
32
+            磁盘型態_tb.Text = diskModel
33
+            Exit For
34
+        Next
35
+    End Sub
36
+    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles 電腦註冊_tb.Click
37
+        conn.Close()
38
+        If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
39
+        SQL1 = "SELECT MAC碼 FROM 系統綁定電腦資訊 
40
+                WHERE  硬碟ID LIKE N'" & 硬碟ID_tb.Text & "' AND 硬碟序列 LIKE N'" & 硬碟序列_tb.Text & "' AND 磁盘型態 LIKE N'" & 磁盘型態_tb.Text & "'"
41
+        cmd.CommandText = SQL1 : cmd.Connection = conn : dr = cmd.ExecuteReader
42
+        If dr.Read() Then
43
+            conn.Close()
44
+            MsgBox("該電腦以綁定過")
45
+        Else
46
+            conn.Close()
47
+            If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
48
+            SQL1 = "INSERT INTO 系統綁定電腦資訊 (MAC碼, 硬碟ID, 硬碟序列, 磁盘型態) " &
49
+                  "VALUES (N'" & MAC碼_tb.Text & "',N'" & 硬碟ID_tb.Text & "',N'" & 硬碟序列_tb.Text & "',N'" & 磁盘型態_tb.Text & "')"
50
+            cmd.Connection = conn : cmd.CommandText = SQL1 : cmd.ExecuteNonQuery() : conn.Close()
51
+            MsgBox("新增完成")
52
+        End If
53
+    End Sub
54
+End Class

+ 38
- 0
MAOJI-REG-SYS/My Project/Application.Designer.vb Datei anzeigen

@@ -0,0 +1,38 @@
1
+'------------------------------------------------------------------------------
2
+' <auto-generated>
3
+'     這段程式碼是由工具產生的。
4
+'     執行階段版本:4.0.30319.42000
5
+'
6
+'     對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
7
+'     變更將會遺失。
8
+' </auto-generated>
9
+'------------------------------------------------------------------------------
10
+
11
+Option Strict On
12
+Option Explicit On
13
+
14
+
15
+Namespace My
16
+    
17
+    '注意:這是自動產生的檔案,請勿直接修改它。若要進行變更,
18
+    ' 或者您在這個檔案發生建置錯誤,請到專案設計工具
19
+    ' (移至專案屬性或者在 [方案總管] 中按兩下 [My Project] 節點),
20
+    ' 然後在 [應用程式] 索引標籤上進行變更。
21
+    '
22
+    Partial Friend Class MyApplication
23
+        
24
+        <Global.System.Diagnostics.DebuggerStepThroughAttribute()>  _
25
+        Public Sub New()
26
+            MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
27
+            Me.IsSingleInstance = false
28
+            Me.EnableVisualStyles = true
29
+            Me.SaveMySettingsOnExit = true
30
+            Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
31
+        End Sub
32
+        
33
+        <Global.System.Diagnostics.DebuggerStepThroughAttribute()>  _
34
+        Protected Overrides Sub OnCreateMainForm()
35
+            Me.MainForm = Global.MAOJI_REG_SYS.MOJI_REG_SYS
36
+        End Sub
37
+    End Class
38
+End Namespace

+ 10
- 0
MAOJI-REG-SYS/My Project/Application.myapp Datei anzeigen

@@ -0,0 +1,10 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3
+  <MySubMain>true</MySubMain>
4
+  <MainForm>MOJI_REG_SYS</MainForm>
5
+  <SingleInstance>false</SingleInstance>
6
+  <ShutdownMode>0</ShutdownMode>
7
+  <EnableVisualStyles>true</EnableVisualStyles>
8
+  <AuthenticationMode>0</AuthenticationMode>
9
+  <SaveMySettingsOnExit>true</SaveMySettingsOnExit>
10
+</MyApplicationData>

+ 35
- 0
MAOJI-REG-SYS/My Project/AssemblyInfo.vb Datei anzeigen

@@ -0,0 +1,35 @@
1
+Imports System
2
+Imports System.Reflection
3
+Imports System.Runtime.InteropServices
4
+
5
+' 組件的一般資訊是由下列的屬性集控制。
6
+' 變更這些屬性的值即可修改組件的相關
7
+' 資訊。
8
+
9
+' 檢閱組件屬性的值
10
+
11
+<Assembly: AssemblyTitle("MAOJI-REG-SYS")>
12
+<Assembly: AssemblyDescription("")>
13
+<Assembly: AssemblyCompany("")>
14
+<Assembly: AssemblyProduct("MAOJI-REG-SYS")>
15
+<Assembly: AssemblyCopyright("Copyright ©  2021")>
16
+<Assembly: AssemblyTrademark("")>
17
+
18
+<Assembly: ComVisible(False)>
19
+
20
+'下列 GUID 為專案公開 (Expose) 至 COM 時所要使用的 typelib ID
21
+<Assembly: Guid("bde40e3d-12ba-4bdc-9296-e3ca03345195")>
22
+
23
+' 組件的版本資訊由下列四個值所組成: 
24
+'
25
+'      主要版本
26
+'      次要版本
27
+'      組建編號
28
+'      修訂編號
29
+'
30
+' 您可以指定所有的值,也可以使用 '*' 將組建和修訂編號
31
+' 設為預設,如下所示:
32
+' <Assembly: AssemblyVersion("1.0.*")>
33
+
34
+<Assembly: AssemblyVersion("1.0.0.0")>
35
+<Assembly: AssemblyFileVersion("1.0.0.0")>

+ 83
- 0
MAOJI-REG-SYS/My Project/Resources.Designer.vb Datei anzeigen

@@ -0,0 +1,83 @@
1
+'------------------------------------------------------------------------------
2
+' <auto-generated>
3
+'     這段程式碼是由工具產生的。
4
+'     執行階段版本:4.0.30319.42000
5
+'
6
+'     對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
7
+'     變更將會遺失。
8
+' </auto-generated>
9
+'------------------------------------------------------------------------------
10
+
11
+Option Strict On
12
+Option Explicit On
13
+
14
+Imports System
15
+
16
+Namespace My.Resources
17
+    
18
+    '這個類別是自動產生的,是利用 StronglyTypedResourceBuilder
19
+    '類別透過 ResGen 或 Visual Studio 這類工具。
20
+    '若要加入或移除成員,請編輯您的 .ResX 檔,然後重新執行 ResGen
21
+    '(利用 /str 選項),或重建您的 VS 專案。
22
+    '''<summary>
23
+    '''  用於查詢當地語系化字串等的強類型資源類別。
24
+    '''</summary>
25
+    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0"),  _
26
+     Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
27
+     Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(),  _
28
+     Global.Microsoft.VisualBasic.HideModuleNameAttribute()>  _
29
+    Friend Module Resources
30
+        
31
+        Private resourceMan As Global.System.Resources.ResourceManager
32
+        
33
+        Private resourceCulture As Global.System.Globalization.CultureInfo
34
+        
35
+        '''<summary>
36
+        '''  傳回這個類別使用的快取的 ResourceManager 執行個體。
37
+        '''</summary>
38
+        <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>  _
39
+        Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
40
+            Get
41
+                If Object.ReferenceEquals(resourceMan, Nothing) Then
42
+                    Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("MAOJI_REG_SYS.Resources", GetType(Resources).Assembly)
43
+                    resourceMan = temp
44
+                End If
45
+                Return resourceMan
46
+            End Get
47
+        End Property
48
+        
49
+        '''<summary>
50
+        '''  覆寫目前執行緒的 CurrentUICulture 屬性,對象是所有
51
+        '''  使用這個強類型資源類別的資源查閱。
52
+        '''</summary>
53
+        <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>  _
54
+        Friend Property Culture() As Global.System.Globalization.CultureInfo
55
+            Get
56
+                Return resourceCulture
57
+            End Get
58
+            Set
59
+                resourceCulture = value
60
+            End Set
61
+        End Property
62
+        
63
+        '''<summary>
64
+        '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
65
+        '''</summary>
66
+        Friend ReadOnly Property timg01() As System.Drawing.Bitmap
67
+            Get
68
+                Dim obj As Object = ResourceManager.GetObject("timg01", resourceCulture)
69
+                Return CType(obj,System.Drawing.Bitmap)
70
+            End Get
71
+        End Property
72
+        
73
+        '''<summary>
74
+        '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
75
+        '''</summary>
76
+        Friend ReadOnly Property timg02() As System.Drawing.Bitmap
77
+            Get
78
+                Dim obj As Object = ResourceManager.GetObject("timg02", resourceCulture)
79
+                Return CType(obj,System.Drawing.Bitmap)
80
+            End Get
81
+        End Property
82
+    End Module
83
+End Namespace

+ 127
- 0
MAOJI-REG-SYS/My Project/Resources.resx Datei anzeigen

@@ -0,0 +1,127 @@
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
+  <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
121
+  <data name="timg02" type="System.Resources.ResXFileRef, System.Windows.Forms">
122
+    <value>..\Resources\timg02.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
123
+  </data>
124
+  <data name="timg01" type="System.Resources.ResXFileRef, System.Windows.Forms">
125
+    <value>..\Resources\timg01.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
126
+  </data>
127
+</root>

+ 73
- 0
MAOJI-REG-SYS/My Project/Settings.Designer.vb Datei anzeigen

@@ -0,0 +1,73 @@
1
+'------------------------------------------------------------------------------
2
+' <auto-generated>
3
+'     This code was generated by a tool.
4
+'     Runtime Version:4.0.30319.42000
5
+'
6
+'     Changes to this file may cause incorrect behavior and will be lost if
7
+'     the code is regenerated.
8
+' </auto-generated>
9
+'------------------------------------------------------------------------------
10
+
11
+Option Strict On
12
+Option Explicit On
13
+
14
+
15
+Namespace My
16
+
17
+    <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
18
+     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0"), _
19
+     Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
20
+    Partial Friend NotInheritable Class MySettings
21
+        Inherits Global.System.Configuration.ApplicationSettingsBase
22
+
23
+        Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
24
+
25
+#Region "My.Settings Auto-Save Functionality"
26
+#If _MyType = "WindowsForms" Then
27
+        Private Shared addedHandler As Boolean
28
+
29
+        Private Shared addedHandlerLockObject As New Object
30
+
31
+        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
32
+        Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
33
+            If My.Application.SaveMySettingsOnExit Then
34
+                My.Settings.Save()
35
+            End If
36
+        End Sub
37
+#End If
38
+#End Region
39
+
40
+        Public Shared ReadOnly Property [Default]() As MySettings
41
+            Get
42
+
43
+#If _MyType = "WindowsForms" Then
44
+                   If Not addedHandler Then
45
+                        SyncLock addedHandlerLockObject
46
+                            If Not addedHandler Then
47
+                                AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
48
+                                addedHandler = True
49
+                            End If
50
+                        End SyncLock
51
+                    End If
52
+#End If
53
+                Return defaultInstance
54
+            End Get
55
+        End Property
56
+    End Class
57
+End Namespace
58
+
59
+Namespace My
60
+
61
+    <Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
62
+     Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
63
+     Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
64
+    Friend Module MySettingsProperty
65
+
66
+        <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
67
+        Friend ReadOnly Property Settings() As Global.MAOJI_REG_SYS.My.MySettings
68
+            Get
69
+                Return Global.MAOJI_REG_SYS.My.MySettings.Default
70
+            End Get
71
+        End Property
72
+    End Module
73
+End Namespace

+ 7
- 0
MAOJI-REG-SYS/My Project/Settings.settings Datei anzeigen

@@ -0,0 +1,7 @@
1
+<?xml version='1.0' encoding='utf-8'?>
2
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
3
+  <Profiles>
4
+    <Profile Name="(Default)" />
5
+  </Profiles>
6
+  <Settings />
7
+</SettingsFile>

BIN
MAOJI-REG-SYS/Resources/timg01.jpg Datei anzeigen


BIN
MAOJI-REG-SYS/Resources/timg02.jpg Datei anzeigen


+ 11
- 0
MAOJI-REG-SYS/SQL_Module.vb Datei anzeigen

@@ -0,0 +1,11 @@
1
+Module SQL_Module
2
+    Friend Sub SQL_連線字串_測試()
3
+        ConString = "Data Source=106.1.50.79;Initial Catalog=MAO-ORANGE-ERP-SYS;Persist Security Info=True;User ID=B70340;Password=Lee0911274990;Max pool size = 200;Connection Timeout=0"
4
+    End Sub
5
+    Friend Sub SQL_連線字串_內網()
6
+        ConString = "Data Source=192.168.0.199,2433;Initial Catalog=MAO-ORANGE-ERP-SYS;Persist Security Info=True;User ID=B70340;Password=lee0911274990;Max pool size = 200;Connection Timeout=0"
7
+    End Sub
8
+    Friend Sub SQL_連線字串_外網()
9
+        ConString = "Data Source=59.127.190.74,2433;Initial Catalog=MAO-ORANGE-ERP-SYS;Persist Security Info=True;User ID=B70340;Password=lee0911274990;Max pool size = 200;Connection Timeout=0"
10
+    End Sub
11
+End Module

BIN
MAOJI-REG-SYS/bin/Debug/MAOJI-REG-SYS.exe Datei anzeigen


+ 6
- 0
MAOJI-REG-SYS/bin/Debug/MAOJI-REG-SYS.exe.config Datei anzeigen

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="utf-8" ?>
2
+<configuration>
3
+    <startup>
4
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
5
+    </startup>
6
+</configuration>

BIN
MAOJI-REG-SYS/bin/Debug/MAOJI-REG-SYS.pdb Datei anzeigen


+ 36
- 0
MAOJI-REG-SYS/bin/Debug/MAOJI-REG-SYS.xml Datei anzeigen

@@ -0,0 +1,36 @@
1
+<?xml version="1.0"?>
2
+<doc>
3
+<assembly>
4
+<name>
5
+MAOJI-REG-SYS
6
+</name>
7
+</assembly>
8
+<members>
9
+<member name="T:MAOJI_REG_SYS.My.Resources.Resources">
10
+<summary>
11
+  用於查詢當地語系化字串等的強類型資源類別。
12
+</summary>
13
+</member>
14
+<member name="P:MAOJI_REG_SYS.My.Resources.Resources.ResourceManager">
15
+<summary>
16
+  傳回這個類別使用的快取的 ResourceManager 執行個體。
17
+</summary>
18
+</member>
19
+<member name="P:MAOJI_REG_SYS.My.Resources.Resources.Culture">
20
+<summary>
21
+  覆寫目前執行緒的 CurrentUICulture 屬性,對象是所有
22
+  使用這個強類型資源類別的資源查閱。
23
+</summary>
24
+</member>
25
+<member name="P:MAOJI_REG_SYS.My.Resources.Resources.timg01">
26
+<summary>
27
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
28
+</summary>
29
+</member>
30
+<member name="P:MAOJI_REG_SYS.My.Resources.Resources.timg02">
31
+<summary>
32
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
33
+</summary>
34
+</member>
35
+</members>
36
+</doc>

BIN
MAOJI-REG-SYS/obj/Debug/DesignTimeResolveAssemblyReferences.cache Datei anzeigen


BIN
MAOJI-REG-SYS/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache Datei anzeigen


BIN
MAOJI-REG-SYS/obj/Debug/MAOJI-REG-SYS.exe Datei anzeigen


BIN
MAOJI-REG-SYS/obj/Debug/MAOJI-REG-SYS.pdb Datei anzeigen


+ 1
- 0
MAOJI-REG-SYS/obj/Debug/MAOJI-REG-SYS.vbproj.CoreCompileInputs.cache Datei anzeigen

@@ -0,0 +1 @@
1
+4ed6abbf55a2f018710f27bece15ffdda90e27cb

+ 13
- 0
MAOJI-REG-SYS/obj/Debug/MAOJI-REG-SYS.vbproj.FileListAbsolute.txt Datei anzeigen

@@ -0,0 +1,13 @@
1
+G:\MAOJI-REG-SYS\MAOJI-REG-SYS\bin\Debug\MAOJI-REG-SYS.exe.config
2
+G:\MAOJI-REG-SYS\MAOJI-REG-SYS\bin\Debug\MAOJI-REG-SYS.exe
3
+G:\MAOJI-REG-SYS\MAOJI-REG-SYS\bin\Debug\MAOJI-REG-SYS.pdb
4
+G:\MAOJI-REG-SYS\MAOJI-REG-SYS\bin\Debug\MAOJI-REG-SYS.xml
5
+G:\MAOJI-REG-SYS\MAOJI-REG-SYS\obj\Debug\MAOJI-REG-SYS.vbprojAssemblyReference.cache
6
+G:\MAOJI-REG-SYS\MAOJI-REG-SYS\obj\Debug\MAOJI_REG_SYS.網段.resources
7
+G:\MAOJI-REG-SYS\MAOJI-REG-SYS\obj\Debug\MAOJI_REG_SYS.MOJI_REG_SYS.resources
8
+G:\MAOJI-REG-SYS\MAOJI-REG-SYS\obj\Debug\MAOJI_REG_SYS.Resources.resources
9
+G:\MAOJI-REG-SYS\MAOJI-REG-SYS\obj\Debug\MAOJI-REG-SYS.vbproj.GenerateResource.cache
10
+G:\MAOJI-REG-SYS\MAOJI-REG-SYS\obj\Debug\MAOJI-REG-SYS.vbproj.CoreCompileInputs.cache
11
+G:\MAOJI-REG-SYS\MAOJI-REG-SYS\obj\Debug\MAOJI-REG-SYS.exe
12
+G:\MAOJI-REG-SYS\MAOJI-REG-SYS\obj\Debug\MAOJI-REG-SYS.xml
13
+G:\MAOJI-REG-SYS\MAOJI-REG-SYS\obj\Debug\MAOJI-REG-SYS.pdb

BIN
MAOJI-REG-SYS/obj/Debug/MAOJI-REG-SYS.vbproj.GenerateResource.cache Datei anzeigen


BIN
MAOJI-REG-SYS/obj/Debug/MAOJI-REG-SYS.vbprojAssemblyReference.cache Datei anzeigen


+ 36
- 0
MAOJI-REG-SYS/obj/Debug/MAOJI-REG-SYS.xml Datei anzeigen

@@ -0,0 +1,36 @@
1
+<?xml version="1.0"?>
2
+<doc>
3
+<assembly>
4
+<name>
5
+MAOJI-REG-SYS
6
+</name>
7
+</assembly>
8
+<members>
9
+<member name="T:MAOJI_REG_SYS.My.Resources.Resources">
10
+<summary>
11
+  用於查詢當地語系化字串等的強類型資源類別。
12
+</summary>
13
+</member>
14
+<member name="P:MAOJI_REG_SYS.My.Resources.Resources.ResourceManager">
15
+<summary>
16
+  傳回這個類別使用的快取的 ResourceManager 執行個體。
17
+</summary>
18
+</member>
19
+<member name="P:MAOJI_REG_SYS.My.Resources.Resources.Culture">
20
+<summary>
21
+  覆寫目前執行緒的 CurrentUICulture 屬性,對象是所有
22
+  使用這個強類型資源類別的資源查閱。
23
+</summary>
24
+</member>
25
+<member name="P:MAOJI_REG_SYS.My.Resources.Resources.timg01">
26
+<summary>
27
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
28
+</summary>
29
+</member>
30
+<member name="P:MAOJI_REG_SYS.My.Resources.Resources.timg02">
31
+<summary>
32
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
33
+</summary>
34
+</member>
35
+</members>
36
+</doc>

BIN
MAOJI-REG-SYS/obj/Debug/MAOJI_REG_SYS.MOJI_REG_SYS.resources Datei anzeigen


BIN
MAOJI-REG-SYS/obj/Debug/MAOJI_REG_SYS.Resources.resources Datei anzeigen


BIN
MAOJI-REG-SYS/obj/Debug/MAOJI_REG_SYS.網段.resources Datei anzeigen


BIN
MAOJI-REG-SYS/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll Datei anzeigen


+ 12
- 0
MAOJI-REG-SYS/全域變數.vb Datei anzeigen

@@ -0,0 +1,12 @@
1
+Option Strict Off
2
+Imports System.Data.SqlClient
3
+Module 全域變數
4
+    Public conn As New SqlConnection
5
+    Public da As New SqlDataAdapter
6
+    Public cmd As New SqlCommand
7
+    Public dr As SqlDataReader
8
+    Public ConString As String
9
+    Public SQL1 As String
10
+    Public 登入判斷 As Boolean
11
+    Public 內外網 As Boolean
12
+End Module

Laden…
Abbrechen
Speichern