Merge branch 'rc' of http://172.16.1.76:3000/caihao/SXS20240115 into rc
# Conflicts: # SRC/MESWin/ENT/ET_Subcontractor/ET_Subcontractor.vbproj # SRC/MESWin/ENT/ET_Subcontractor/My Project/Resources.Designer.vb # SRC/MESWin/ENT/ET_Subcontractor/My Project/Settings.Designer.vb # SRC/MESWin/ENT/ET_Subcontractor/frmSubcontractorContDef.vb # SRC/MESWin/ENT/ET_Subcontractor/frmSubcontractorDef.vb # SRC/MEStc_SXS/tcENT/clsENT.cs # SRC/wsSXS/wsSXS.csproj.user # SRC/wsSXS/wxENT/wsENT.cs
This commit is contained in:
commit
33113c6fa3
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
|
||||||
<configuration>
|
|
||||||
<startup>
|
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
|
|
||||||
</startup>
|
|
||||||
</configuration>
|
|
@ -1,25 +0,0 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
||||||
# Visual Studio Version 16
|
|
||||||
VisualStudioVersion = 16.0.32630.194
|
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
|
||||||
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ET_Demo", "ET_Demo.vbproj", "{735A5B4F-8D51-408F-9411-235CDB01F9F3}"
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Debug|Any CPU = Debug|Any CPU
|
|
||||||
Release|Any CPU = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{735A5B4F-8D51-408F-9411-235CDB01F9F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{735A5B4F-8D51-408F-9411-235CDB01F9F3}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{735A5B4F-8D51-408F-9411-235CDB01F9F3}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{735A5B4F-8D51-408F-9411-235CDB01F9F3}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
||||||
SolutionGuid = {05370154-7301-4A5A-B360-EAF02EF9EFDA}
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
@ -1,120 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProjectGuid>{735A5B4F-8D51-408F-9411-235CDB01F9F3}</ProjectGuid>
|
|
||||||
<OutputType>WinExe</OutputType>
|
|
||||||
<StartupObject>ET_Demo.My.MyApplication</StartupObject>
|
|
||||||
<RootNamespace>ET_Demo</RootNamespace>
|
|
||||||
<AssemblyName>ET_Demo</AssemblyName>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
<MyType>WindowsForms</MyType>
|
|
||||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
|
||||||
<Deterministic>true</Deterministic>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<DefineDebug>true</DefineDebug>
|
|
||||||
<DefineTrace>true</DefineTrace>
|
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
|
||||||
<DocumentationFile>ET_Demo.xml</DocumentationFile>
|
|
||||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<DefineDebug>false</DefineDebug>
|
|
||||||
<DefineTrace>true</DefineTrace>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
|
||||||
<DocumentationFile>ET_Demo.xml</DocumentationFile>
|
|
||||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup>
|
|
||||||
<OptionExplicit>On</OptionExplicit>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup>
|
|
||||||
<OptionCompare>Binary</OptionCompare>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup>
|
|
||||||
<OptionStrict>Off</OptionStrict>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup>
|
|
||||||
<OptionInfer>On</OptionInfer>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="System" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Deployment" />
|
|
||||||
<Reference Include="System.Drawing" />
|
|
||||||
<Reference Include="System.Windows.Forms" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
<Reference Include="System.Core" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
|
||||||
<Reference Include="System.Net.Http" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Import Include="Microsoft.VisualBasic" />
|
|
||||||
<Import Include="System" />
|
|
||||||
<Import Include="System.Collections" />
|
|
||||||
<Import Include="System.Collections.Generic" />
|
|
||||||
<Import Include="System.Data" />
|
|
||||||
<Import Include="System.Drawing" />
|
|
||||||
<Import Include="System.Diagnostics" />
|
|
||||||
<Import Include="System.Windows.Forms" />
|
|
||||||
<Import Include="System.Linq" />
|
|
||||||
<Import Include="System.Xml.Linq" />
|
|
||||||
<Import Include="System.Threading.Tasks" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="Form1.vb">
|
|
||||||
<SubType>Form</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Form1.Designer.vb">
|
|
||||||
<DependentUpon>Form1.vb</DependentUpon>
|
|
||||||
<SubType>Form</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="My Project\AssemblyInfo.vb" />
|
|
||||||
<Compile Include="My Project\Application.Designer.vb">
|
|
||||||
<AutoGen>True</AutoGen>
|
|
||||||
<DependentUpon>Application.myapp</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="My Project\Resources.Designer.vb">
|
|
||||||
<AutoGen>True</AutoGen>
|
|
||||||
<DesignTime>True</DesignTime>
|
|
||||||
<DependentUpon>Resources.resx</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="My Project\Settings.Designer.vb">
|
|
||||||
<AutoGen>True</AutoGen>
|
|
||||||
<DependentUpon>Settings.settings</DependentUpon>
|
|
||||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
|
||||||
</Compile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<EmbeddedResource Include="My Project\Resources.resx">
|
|
||||||
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
|
||||||
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
|
||||||
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
</EmbeddedResource>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="My Project\Application.myapp">
|
|
||||||
<Generator>MyApplicationCodeGenerator</Generator>
|
|
||||||
<LastGenOutput>Application.Designer.vb</LastGenOutput>
|
|
||||||
</None>
|
|
||||||
<None Include="My Project\Settings.settings">
|
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
|
||||||
<CustomToolNamespace>My</CustomToolNamespace>
|
|
||||||
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
|
||||||
</None>
|
|
||||||
<None Include="App.config" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
|
||||||
</Project>
|
|
@ -1,38 +0,0 @@
|
|||||||
'------------------------------------------------------------------------------
|
|
||||||
' <auto-generated>
|
|
||||||
' This code was generated by a tool.
|
|
||||||
' Runtime Version:4.0.30319.42000
|
|
||||||
'
|
|
||||||
' Changes to this file may cause incorrect behavior and will be lost if
|
|
||||||
' the code is regenerated.
|
|
||||||
' </auto-generated>
|
|
||||||
'------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Option Strict On
|
|
||||||
Option Explicit On
|
|
||||||
|
|
||||||
|
|
||||||
Namespace My
|
|
||||||
|
|
||||||
'NOTE: This file is auto-generated; do not modify it directly. To make changes,
|
|
||||||
' or if you encounter build errors in this file, go to the Project Designer
|
|
||||||
' (go to Project Properties or double-click the My Project node in
|
|
||||||
' Solution Explorer), and make changes on the Application tab.
|
|
||||||
'
|
|
||||||
Partial Friend Class MyApplication
|
|
||||||
|
|
||||||
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
|
|
||||||
Public Sub New()
|
|
||||||
MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
|
|
||||||
Me.IsSingleInstance = false
|
|
||||||
Me.EnableVisualStyles = true
|
|
||||||
Me.SaveMySettingsOnExit = true
|
|
||||||
Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
|
|
||||||
Protected Overrides Sub OnCreateMainForm()
|
|
||||||
Me.MainForm = Global.ET_Demo.frmDemo
|
|
||||||
End Sub
|
|
||||||
End Class
|
|
||||||
End Namespace
|
|
@ -1,35 +0,0 @@
|
|||||||
Imports System
|
|
||||||
Imports System.Reflection
|
|
||||||
Imports System.Runtime.InteropServices
|
|
||||||
|
|
||||||
' 有关程序集的一般信息由以下
|
|
||||||
' 控制。更改这些特性值可修改
|
|
||||||
' 与程序集关联的信息。
|
|
||||||
|
|
||||||
'查看程序集特性的值
|
|
||||||
|
|
||||||
<Assembly: AssemblyTitle("ET_Demo")>
|
|
||||||
<Assembly: AssemblyDescription("")>
|
|
||||||
<Assembly: AssemblyCompany("")>
|
|
||||||
<Assembly: AssemblyProduct("ET_Demo")>
|
|
||||||
<Assembly: AssemblyCopyright("Copyright © 2024")>
|
|
||||||
<Assembly: AssemblyTrademark("")>
|
|
||||||
|
|
||||||
<Assembly: ComVisible(False)>
|
|
||||||
|
|
||||||
'如果此项目向 COM 公开,则下列 GUID 用于 typelib 的 ID
|
|
||||||
<Assembly: Guid("7b970d9e-d959-4089-a412-8d0bc552814e")>
|
|
||||||
|
|
||||||
' 程序集的版本信息由下列四个值组成:
|
|
||||||
'
|
|
||||||
' 主版本
|
|
||||||
' 次版本
|
|
||||||
' 生成号
|
|
||||||
' 修订号
|
|
||||||
'
|
|
||||||
'可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
|
||||||
'通过使用 "*",如下所示:
|
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("1.0.0.0")>
|
|
||||||
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
|
@ -1,73 +0,0 @@
|
|||||||
'------------------------------------------------------------------------------
|
|
||||||
' <auto-generated>
|
|
||||||
' This code was generated by a tool.
|
|
||||||
' Runtime Version:4.0.30319.42000
|
|
||||||
'
|
|
||||||
' Changes to this file may cause incorrect behavior and will be lost if
|
|
||||||
' the code is regenerated.
|
|
||||||
' </auto-generated>
|
|
||||||
'------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Option Strict On
|
|
||||||
Option Explicit On
|
|
||||||
|
|
||||||
|
|
||||||
Namespace My
|
|
||||||
|
|
||||||
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
|
||||||
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0"), _
|
|
||||||
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
|
||||||
Partial Friend NotInheritable Class MySettings
|
|
||||||
Inherits Global.System.Configuration.ApplicationSettingsBase
|
|
||||||
|
|
||||||
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
|
|
||||||
|
|
||||||
#Region "My.Settings Auto-Save Functionality"
|
|
||||||
#If _MyType = "WindowsForms" Then
|
|
||||||
Private Shared addedHandler As Boolean
|
|
||||||
|
|
||||||
Private Shared addedHandlerLockObject As New Object
|
|
||||||
|
|
||||||
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
|
||||||
Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
|
|
||||||
If My.Application.SaveMySettingsOnExit Then
|
|
||||||
My.Settings.Save()
|
|
||||||
End If
|
|
||||||
End Sub
|
|
||||||
#End If
|
|
||||||
#End Region
|
|
||||||
|
|
||||||
Public Shared ReadOnly Property [Default]() As MySettings
|
|
||||||
Get
|
|
||||||
|
|
||||||
#If _MyType = "WindowsForms" Then
|
|
||||||
If Not addedHandler Then
|
|
||||||
SyncLock addedHandlerLockObject
|
|
||||||
If Not addedHandler Then
|
|
||||||
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
|
||||||
addedHandler = True
|
|
||||||
End If
|
|
||||||
End SyncLock
|
|
||||||
End If
|
|
||||||
#End If
|
|
||||||
Return defaultInstance
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
End Class
|
|
||||||
End Namespace
|
|
||||||
|
|
||||||
Namespace My
|
|
||||||
|
|
||||||
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
|
||||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
|
||||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
|
||||||
Friend Module MySettingsProperty
|
|
||||||
|
|
||||||
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
|
||||||
Friend ReadOnly Property Settings() As Global.ET_Demo.My.MySettings
|
|
||||||
Get
|
|
||||||
Return Global.ET_Demo.My.MySettings.Default
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
End Module
|
|
||||||
End Namespace
|
|
236
SRC/MESWin/ENT/ET_Demo/frmDemo.Designer.vb
generated
236
SRC/MESWin/ENT/ET_Demo/frmDemo.Designer.vb
generated
@ -1,236 +0,0 @@
|
|||||||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
|
||||||
Partial Class frmDemo
|
|
||||||
' Inherits System.Windows.Forms.Form
|
|
||||||
Inherits COM_Kit.frmBasisTemplat
|
|
||||||
'Form 重写 Dispose,以清理组件列表。
|
|
||||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
|
||||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
|
||||||
Try
|
|
||||||
If disposing AndAlso components IsNot Nothing Then
|
|
||||||
components.Dispose()
|
|
||||||
End If
|
|
||||||
Finally
|
|
||||||
MyBase.Dispose(disposing)
|
|
||||||
End Try
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
'Windows 窗体设计器所必需的
|
|
||||||
Private components As System.ComponentModel.IContainer
|
|
||||||
|
|
||||||
'注意: 以下过程是 Windows 窗体设计器所必需的
|
|
||||||
'可以使用 Windows 窗体设计器修改它。
|
|
||||||
'不要使用代码编辑器修改它。
|
|
||||||
<System.Diagnostics.DebuggerStepThrough()> _
|
|
||||||
Private Sub InitializeComponent()
|
|
||||||
Me.iugBasis = New iMESUltraGrid.iMESUltraGridControl()
|
|
||||||
Me.iugDetail = New iMESUltraGrid.iMESUltraGridControl()
|
|
||||||
Me.btnClose = New Infragistics.Win.Misc.UltraButton()
|
|
||||||
Me.btnApprove = New Infragistics.Win.Misc.UltraButton()
|
|
||||||
Me.btnEMail = New Infragistics.Win.Misc.UltraButton()
|
|
||||||
Me.btnDCopy = New Infragistics.Win.Misc.UltraButton()
|
|
||||||
Me.btnCopy = New Infragistics.Win.Misc.UltraButton()
|
|
||||||
Me.btnDDel = New Infragistics.Win.Misc.UltraButton()
|
|
||||||
Me.btnDEdit = New Infragistics.Win.Misc.UltraButton()
|
|
||||||
Me.btnAdd = New Infragistics.Win.Misc.UltraButton()
|
|
||||||
Me.btnDAdd = New Infragistics.Win.Misc.UltraButton()
|
|
||||||
Me.btnDel = New Infragistics.Win.Misc.UltraButton()
|
|
||||||
Me.btnEdit = New Infragistics.Win.Misc.UltraButton()
|
|
||||||
Me.SuspendLayout()
|
|
||||||
'
|
|
||||||
'iugBasis
|
|
||||||
'
|
|
||||||
Me.iugBasis.EnterDirection = iMESUltraGrid.iMESUltraGridControl.EnterDirectionEnum.Down
|
|
||||||
Me.iugBasis.GroupBoxPromptText = "Drag a column header here to group by that column."
|
|
||||||
Me.iugBasis.GroupBoxTextForeColor = System.Drawing.Color.Red
|
|
||||||
Me.iugBasis.Identity = "iMES"
|
|
||||||
Me.iugBasis.IdentityForm = ""
|
|
||||||
Me.iugBasis.LayOutFilePath = ""
|
|
||||||
Me.iugBasis.Location = New System.Drawing.Point(12, 53)
|
|
||||||
Me.iugBasis.Name = "iugBasis"
|
|
||||||
Me.iugBasis.PrintFitWidthToPages = 0
|
|
||||||
Me.iugBasis.PrintLandscape = True
|
|
||||||
Me.iugBasis.PrintPageFooter = ""
|
|
||||||
Me.iugBasis.PrintPageFooterHAlign = Infragistics.Win.HAlign.[Default]
|
|
||||||
Me.iugBasis.PrintPageFooterHeight = 20
|
|
||||||
Me.iugBasis.PrintPageHeader = ""
|
|
||||||
Me.iugBasis.PrintPageHeaderHAlign = Infragistics.Win.HAlign.[Default]
|
|
||||||
Me.iugBasis.PrintPageHeaderHeight = 20
|
|
||||||
Me.iugBasis.PrintZoom = 1.0R
|
|
||||||
Me.iugBasis.Size = New System.Drawing.Size(791, 200)
|
|
||||||
Me.iugBasis.TabIndex = 41
|
|
||||||
Me.iugBasis.UserNo = "iMES"
|
|
||||||
'
|
|
||||||
'iugDetail
|
|
||||||
'
|
|
||||||
Me.iugDetail.EnterDirection = iMESUltraGrid.iMESUltraGridControl.EnterDirectionEnum.Down
|
|
||||||
Me.iugDetail.GroupBoxPromptText = "Drag a column header here to group by that column."
|
|
||||||
Me.iugDetail.GroupBoxTextForeColor = System.Drawing.Color.Red
|
|
||||||
Me.iugDetail.Identity = "iMES"
|
|
||||||
Me.iugDetail.IdentityForm = ""
|
|
||||||
Me.iugDetail.LayOutFilePath = ""
|
|
||||||
Me.iugDetail.Location = New System.Drawing.Point(12, 260)
|
|
||||||
Me.iugDetail.Name = "iugDetail"
|
|
||||||
Me.iugDetail.PrintFitWidthToPages = 0
|
|
||||||
Me.iugDetail.PrintLandscape = True
|
|
||||||
Me.iugDetail.PrintPageFooter = ""
|
|
||||||
Me.iugDetail.PrintPageFooterHAlign = Infragistics.Win.HAlign.[Default]
|
|
||||||
Me.iugDetail.PrintPageFooterHeight = 20
|
|
||||||
Me.iugDetail.PrintPageHeader = ""
|
|
||||||
Me.iugDetail.PrintPageHeaderHAlign = Infragistics.Win.HAlign.[Default]
|
|
||||||
Me.iugDetail.PrintPageHeaderHeight = 20
|
|
||||||
Me.iugDetail.PrintZoom = 1.0R
|
|
||||||
Me.iugDetail.Size = New System.Drawing.Size(791, 291)
|
|
||||||
Me.iugDetail.TabIndex = 42
|
|
||||||
Me.iugDetail.UserNo = "iMES"
|
|
||||||
'
|
|
||||||
'btnClose
|
|
||||||
'
|
|
||||||
Me.btnClose.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
|
||||||
Me.btnClose.Location = New System.Drawing.Point(827, 523)
|
|
||||||
Me.btnClose.Name = "btnClose"
|
|
||||||
Me.btnClose.Size = New System.Drawing.Size(88, 32)
|
|
||||||
Me.btnClose.TabIndex = 48
|
|
||||||
Me.btnClose.Text = "Close (&X)"
|
|
||||||
'
|
|
||||||
'btnApprove
|
|
||||||
'
|
|
||||||
Me.btnApprove.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
|
||||||
Me.btnApprove.Location = New System.Drawing.Point(827, 213)
|
|
||||||
Me.btnApprove.Name = "btnApprove"
|
|
||||||
Me.btnApprove.Size = New System.Drawing.Size(88, 32)
|
|
||||||
Me.btnApprove.TabIndex = 53
|
|
||||||
Me.btnApprove.Text = "Approve(&Y)"
|
|
||||||
'
|
|
||||||
'btnEMail
|
|
||||||
'
|
|
||||||
Me.btnEMail.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
|
||||||
Me.btnEMail.Location = New System.Drawing.Point(827, 429)
|
|
||||||
Me.btnEMail.Name = "btnEMail"
|
|
||||||
Me.btnEMail.Size = New System.Drawing.Size(88, 32)
|
|
||||||
Me.btnEMail.TabIndex = 47
|
|
||||||
Me.btnEMail.Text = "Mail"
|
|
||||||
'
|
|
||||||
'btnDCopy
|
|
||||||
'
|
|
||||||
Me.btnDCopy.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
|
||||||
Me.btnDCopy.Location = New System.Drawing.Point(827, 389)
|
|
||||||
Me.btnDCopy.Name = "btnDCopy"
|
|
||||||
Me.btnDCopy.Size = New System.Drawing.Size(88, 32)
|
|
||||||
Me.btnDCopy.TabIndex = 46
|
|
||||||
Me.btnDCopy.Text = "Copy"
|
|
||||||
'
|
|
||||||
'btnCopy
|
|
||||||
'
|
|
||||||
Me.btnCopy.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
|
||||||
Me.btnCopy.Location = New System.Drawing.Point(827, 173)
|
|
||||||
Me.btnCopy.Name = "btnCopy"
|
|
||||||
Me.btnCopy.Size = New System.Drawing.Size(88, 32)
|
|
||||||
Me.btnCopy.TabIndex = 52
|
|
||||||
Me.btnCopy.Text = "Copy(&C)"
|
|
||||||
'
|
|
||||||
'btnDDel
|
|
||||||
'
|
|
||||||
Me.btnDDel.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
|
||||||
Me.btnDDel.Location = New System.Drawing.Point(827, 349)
|
|
||||||
Me.btnDDel.Name = "btnDDel"
|
|
||||||
Me.btnDDel.Size = New System.Drawing.Size(88, 32)
|
|
||||||
Me.btnDDel.TabIndex = 45
|
|
||||||
Me.btnDDel.Text = "DEL"
|
|
||||||
'
|
|
||||||
'btnDEdit
|
|
||||||
'
|
|
||||||
Me.btnDEdit.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
|
||||||
Me.btnDEdit.Location = New System.Drawing.Point(827, 309)
|
|
||||||
Me.btnDEdit.Name = "btnDEdit"
|
|
||||||
Me.btnDEdit.Size = New System.Drawing.Size(88, 32)
|
|
||||||
Me.btnDEdit.TabIndex = 44
|
|
||||||
Me.btnDEdit.Text = "EDIT"
|
|
||||||
'
|
|
||||||
'btnAdd
|
|
||||||
'
|
|
||||||
Me.btnAdd.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
|
||||||
Me.btnAdd.Location = New System.Drawing.Point(827, 53)
|
|
||||||
Me.btnAdd.Name = "btnAdd"
|
|
||||||
Me.btnAdd.Size = New System.Drawing.Size(88, 32)
|
|
||||||
Me.btnAdd.TabIndex = 49
|
|
||||||
Me.btnAdd.Text = "Add(&A)"
|
|
||||||
'
|
|
||||||
'btnDAdd
|
|
||||||
'
|
|
||||||
Me.btnDAdd.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
|
||||||
Me.btnDAdd.Location = New System.Drawing.Point(827, 269)
|
|
||||||
Me.btnDAdd.Name = "btnDAdd"
|
|
||||||
Me.btnDAdd.Size = New System.Drawing.Size(88, 32)
|
|
||||||
Me.btnDAdd.TabIndex = 43
|
|
||||||
Me.btnDAdd.Text = "ADD"
|
|
||||||
'
|
|
||||||
'btnDel
|
|
||||||
'
|
|
||||||
Me.btnDel.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
|
||||||
Me.btnDel.Location = New System.Drawing.Point(827, 133)
|
|
||||||
Me.btnDel.Name = "btnDel"
|
|
||||||
Me.btnDel.Size = New System.Drawing.Size(88, 32)
|
|
||||||
Me.btnDel.TabIndex = 51
|
|
||||||
Me.btnDel.Text = "Del(&D)"
|
|
||||||
'
|
|
||||||
'btnEdit
|
|
||||||
'
|
|
||||||
Me.btnEdit.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
|
||||||
Me.btnEdit.Location = New System.Drawing.Point(827, 93)
|
|
||||||
Me.btnEdit.Name = "btnEdit"
|
|
||||||
Me.btnEdit.Size = New System.Drawing.Size(88, 32)
|
|
||||||
Me.btnEdit.TabIndex = 50
|
|
||||||
Me.btnEdit.Text = "Edit(&E)"
|
|
||||||
'
|
|
||||||
'frmDemo
|
|
||||||
'
|
|
||||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 15.0!)
|
|
||||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
|
||||||
Me.ClientSize = New System.Drawing.Size(927, 562)
|
|
||||||
Me.Controls.Add(Me.btnClose)
|
|
||||||
Me.Controls.Add(Me.btnApprove)
|
|
||||||
Me.Controls.Add(Me.btnEMail)
|
|
||||||
Me.Controls.Add(Me.btnDCopy)
|
|
||||||
Me.Controls.Add(Me.btnCopy)
|
|
||||||
Me.Controls.Add(Me.btnDDel)
|
|
||||||
Me.Controls.Add(Me.btnDEdit)
|
|
||||||
Me.Controls.Add(Me.btnAdd)
|
|
||||||
Me.Controls.Add(Me.btnDAdd)
|
|
||||||
Me.Controls.Add(Me.btnDel)
|
|
||||||
Me.Controls.Add(Me.btnEdit)
|
|
||||||
Me.Controls.Add(Me.iugDetail)
|
|
||||||
Me.Controls.Add(Me.iugBasis)
|
|
||||||
Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
|
|
||||||
Me.Name = "frmDemo"
|
|
||||||
Me.Text = "Demo"
|
|
||||||
Me.Controls.SetChildIndex(Me.iugBasis, 0)
|
|
||||||
Me.Controls.SetChildIndex(Me.iugDetail, 0)
|
|
||||||
Me.Controls.SetChildIndex(Me.btnEdit, 0)
|
|
||||||
Me.Controls.SetChildIndex(Me.btnDel, 0)
|
|
||||||
Me.Controls.SetChildIndex(Me.btnDAdd, 0)
|
|
||||||
Me.Controls.SetChildIndex(Me.btnAdd, 0)
|
|
||||||
Me.Controls.SetChildIndex(Me.btnDEdit, 0)
|
|
||||||
Me.Controls.SetChildIndex(Me.btnDDel, 0)
|
|
||||||
Me.Controls.SetChildIndex(Me.btnCopy, 0)
|
|
||||||
Me.Controls.SetChildIndex(Me.btnDCopy, 0)
|
|
||||||
Me.Controls.SetChildIndex(Me.btnEMail, 0)
|
|
||||||
Me.Controls.SetChildIndex(Me.btnApprove, 0)
|
|
||||||
Me.Controls.SetChildIndex(Me.btnClose, 0)
|
|
||||||
Me.ResumeLayout(False)
|
|
||||||
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Friend WithEvents iugBasis As iMESUltraGrid.iMESUltraGridControl
|
|
||||||
Friend WithEvents iugDetail As iMESUltraGrid.iMESUltraGridControl
|
|
||||||
Friend WithEvents btnClose As Infragistics.Win.Misc.UltraButton
|
|
||||||
Friend WithEvents btnApprove As Infragistics.Win.Misc.UltraButton
|
|
||||||
Friend WithEvents btnEMail As Infragistics.Win.Misc.UltraButton
|
|
||||||
Friend WithEvents btnDCopy As Infragistics.Win.Misc.UltraButton
|
|
||||||
Friend WithEvents btnCopy As Infragistics.Win.Misc.UltraButton
|
|
||||||
Friend WithEvents btnDDel As Infragistics.Win.Misc.UltraButton
|
|
||||||
Friend WithEvents btnDEdit As Infragistics.Win.Misc.UltraButton
|
|
||||||
Friend WithEvents btnAdd As Infragistics.Win.Misc.UltraButton
|
|
||||||
Friend WithEvents btnDAdd As Infragistics.Win.Misc.UltraButton
|
|
||||||
Friend WithEvents btnDel As Infragistics.Win.Misc.UltraButton
|
|
||||||
Friend WithEvents btnEdit As Infragistics.Win.Misc.UltraButton
|
|
||||||
End Class
|
|
@ -1,14 +0,0 @@
|
|||||||
Imports iMESExceptionManager
|
|
||||||
|
|
||||||
Imports Infragistics.Win
|
|
||||||
Imports Infragistics.Win.UltraWinGrid
|
|
||||||
Public Class frmDemo
|
|
||||||
|
|
||||||
Private Sub frmDemo_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
|
||||||
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub btnAdd_Click(sender As Object, e As EventArgs) Handles btnAdd.Click
|
|
||||||
|
|
||||||
End Sub
|
|
||||||
End Class
|
|
@ -6,11 +6,21 @@
|
|||||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||||
<ProjectGuid>{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}</ProjectGuid>
|
<ProjectGuid>{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
|
<<<<<<< HEAD
|
||||||
<RootNamespace>ET_Subcontractor</RootNamespace>
|
<RootNamespace>ET_Subcontractor</RootNamespace>
|
||||||
<AssemblyName>ET_Subcontractor</AssemblyName>
|
<AssemblyName>ET_Subcontractor</AssemblyName>
|
||||||
|
=======
|
||||||
|
<<<<<<< HEAD
|
||||||
|
<RootNamespace>ET_Subcontractor_21671</RootNamespace>
|
||||||
|
<AssemblyName>ET_Subcontractor_21671</AssemblyName>
|
||||||
|
=======
|
||||||
|
<RootNamespace>ET_Subcontractor_21703</RootNamespace>
|
||||||
|
<AssemblyName>ET_Subcontractor_21703</AssemblyName>
|
||||||
|
>>>>>>> d89d49780d597d830e98f207bcaf042ea615b374
|
||||||
|
>>>>>>> 7a91e232e75dd451f6bd1a92477e646c49dca747
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<MyType>Windows</MyType>
|
<MyType>Windows</MyType>
|
||||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
<TargetFrameworkProfile />
|
<TargetFrameworkProfile />
|
||||||
<SccProjectName>SAK</SccProjectName>
|
<SccProjectName>SAK</SccProjectName>
|
||||||
<SccLocalPath>SAK</SccLocalPath>
|
<SccLocalPath>SAK</SccLocalPath>
|
||||||
@ -34,7 +44,15 @@
|
|||||||
<DefineDebug>true</DefineDebug>
|
<DefineDebug>true</DefineDebug>
|
||||||
<DefineTrace>true</DefineTrace>
|
<DefineTrace>true</DefineTrace>
|
||||||
<OutputPath>..\..\..\MESClient\</OutputPath>
|
<OutputPath>..\..\..\MESClient\</OutputPath>
|
||||||
|
<<<<<<< HEAD
|
||||||
<DocumentationFile>ET_Subcontractor.xml</DocumentationFile>
|
<DocumentationFile>ET_Subcontractor.xml</DocumentationFile>
|
||||||
|
=======
|
||||||
|
<<<<<<< HEAD
|
||||||
|
<DocumentationFile>ET_Subcontractor_21671.xml</DocumentationFile>
|
||||||
|
=======
|
||||||
|
<DocumentationFile>ET_Subcontractor_21703.xml</DocumentationFile>
|
||||||
|
>>>>>>> d89d49780d597d830e98f207bcaf042ea615b374
|
||||||
|
>>>>>>> 7a91e232e75dd451f6bd1a92477e646c49dca747
|
||||||
<WarningLevel>0</WarningLevel>
|
<WarningLevel>0</WarningLevel>
|
||||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
@ -45,7 +63,15 @@
|
|||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||||
<DefineTrace>true</DefineTrace>
|
<DefineTrace>true</DefineTrace>
|
||||||
<OutputPath>..\..\..\MESClient\</OutputPath>
|
<OutputPath>..\..\..\MESClient\</OutputPath>
|
||||||
|
<<<<<<< HEAD
|
||||||
<DocumentationFile>ET_Subcontractor.xml</DocumentationFile>
|
<DocumentationFile>ET_Subcontractor.xml</DocumentationFile>
|
||||||
|
=======
|
||||||
|
<<<<<<< HEAD
|
||||||
|
<DocumentationFile>ET_Subcontractor_21671.xml</DocumentationFile>
|
||||||
|
=======
|
||||||
|
<DocumentationFile>ET_Subcontractor_21703.xml</DocumentationFile>
|
||||||
|
>>>>>>> d89d49780d597d830e98f207bcaf042ea615b374
|
||||||
|
>>>>>>> 7a91e232e75dd451f6bd1a92477e646c49dca747
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<WarningLevel>0</WarningLevel>
|
<WarningLevel>0</WarningLevel>
|
||||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
@ -126,6 +152,12 @@
|
|||||||
<Compile Include="..\..\shared file\modConstant.vb">
|
<Compile Include="..\..\shared file\modConstant.vb">
|
||||||
<Link>modConstant.vb</Link>
|
<Link>modConstant.vb</Link>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="frmDemo21706.Designer.vb">
|
||||||
|
<DependentUpon>frmDemo21706.vb</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="frmDemo21706.vb">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
<Compile Include="frmSubcontractor.vb">
|
<Compile Include="frmSubcontractor.vb">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@ -152,6 +184,9 @@
|
|||||||
</Compile>
|
</Compile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<EmbeddedResource Include="frmDemo21706.resx">
|
||||||
|
<DependentUpon>frmDemo21706.vb</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="frmSubcontractor.resx">
|
<EmbeddedResource Include="frmSubcontractor.resx">
|
||||||
<DependentUpon>frmSubcontractor.vb</DependentUpon>
|
<DependentUpon>frmSubcontractor.vb</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
@ -1 +0,0 @@
|
|||||||
<Assembly: Reflection.AssemblyFileVersion("6.0.5.40115")>
|
|
@ -39,6 +39,7 @@ Namespace My.Resources
|
|||||||
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
||||||
Get
|
Get
|
||||||
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
||||||
|
|
||||||
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("ET_Subcontractor.Resources", GetType(Resources).Assembly)
|
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("ET_Subcontractor.Resources", GetType(Resources).Assembly)
|
||||||
resourceMan = temp
|
resourceMan = temp
|
||||||
End If
|
End If
|
||||||
|
@ -64,9 +64,12 @@ Namespace My
|
|||||||
Friend Module MySettingsProperty
|
Friend Module MySettingsProperty
|
||||||
|
|
||||||
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
||||||
|
|
||||||
Friend ReadOnly Property Settings() As Global.ET_Subcontractor.My.MySettings
|
Friend ReadOnly Property Settings() As Global.ET_Subcontractor.My.MySettings
|
||||||
Get
|
Get
|
||||||
Return Global.ET_Subcontractor.My.MySettings.Default
|
Return Global.ET_Subcontractor.My.MySettings.Default
|
||||||
|
|
||||||
|
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
End Module
|
End Module
|
||||||
|
@ -832,6 +832,12 @@ Public Class frmSubcontractor
|
|||||||
.Hidden = False
|
.Hidden = False
|
||||||
.Header.VisiblePosition = 7
|
.Header.VisiblePosition = 7
|
||||||
End With
|
End With
|
||||||
|
With .Bands(0).Columns("AGE")
|
||||||
|
.Header.Caption = "AGE"
|
||||||
|
.Width = 150
|
||||||
|
.Hidden = False
|
||||||
|
.Header.VisiblePosition = 8
|
||||||
|
End With
|
||||||
With e.Layout.Bands(0).Columns("DataStamp")
|
With e.Layout.Bands(0).Columns("DataStamp")
|
||||||
.Hidden = True
|
.Hidden = True
|
||||||
End With
|
End With
|
||||||
@ -933,6 +939,13 @@ Public Class frmSubcontractor
|
|||||||
.Hidden = False
|
.Hidden = False
|
||||||
.Header.VisiblePosition = 11
|
.Header.VisiblePosition = 11
|
||||||
End With
|
End With
|
||||||
|
With .Bands(0).Columns("AGE")
|
||||||
|
.Header.Caption = "AGE"
|
||||||
|
.Width = 150
|
||||||
|
.Format = "yyyy/MM/dd HH:mm:ss"
|
||||||
|
.Hidden = False
|
||||||
|
.Header.VisiblePosition = 12
|
||||||
|
End With
|
||||||
With e.Layout.Bands(0).Columns("DataStamp")
|
With e.Layout.Bands(0).Columns("DataStamp")
|
||||||
.Hidden = True
|
.Hidden = True
|
||||||
End With
|
End With
|
||||||
|
@ -18,6 +18,14 @@ Public Class frmSubcontractorContDef
|
|||||||
|
|
||||||
Dim strIdentity As String
|
Dim strIdentity As String
|
||||||
Dim strParameter As String
|
Dim strParameter As String
|
||||||
|
|
||||||
|
Friend WithEvents UltraTextEditor1 As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents dll21671 As Label
|
||||||
|
|
||||||
|
Friend WithEvents lblAge As Label
|
||||||
|
Friend WithEvents txtAge As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
|
||||||
|
|
||||||
Dim intDataStamp As Integer '紀錄DataStamp
|
Dim intDataStamp As Integer '紀錄DataStamp
|
||||||
|
|
||||||
#Region " Windows Form Designer generated code "
|
#Region " Windows Form Designer generated code "
|
||||||
@ -84,6 +92,13 @@ Public Class frmSubcontractorContDef
|
|||||||
Me.txtSubcontractorNo = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
Me.txtSubcontractorNo = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
Me.txtContactorName = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
Me.txtContactorName = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
Me.txtTelNo = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
Me.txtTelNo = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
|
||||||
|
|
||||||
|
Me.dll21671 = New System.Windows.Forms.Label()
|
||||||
|
Me.UltraTextEditor1 = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
|
||||||
|
Me.txtAge = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
|
||||||
CType(Me.gbxBasisData, System.ComponentModel.ISupportInitialize).BeginInit()
|
CType(Me.gbxBasisData, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
Me.gbxSubcontractorContData.SuspendLayout()
|
Me.gbxSubcontractorContData.SuspendLayout()
|
||||||
CType(Me.txtAddress, System.ComponentModel.ISupportInitialize).BeginInit()
|
CType(Me.txtAddress, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
@ -93,6 +108,13 @@ Public Class frmSubcontractorContDef
|
|||||||
CType(Me.txtSubcontractorNo, System.ComponentModel.ISupportInitialize).BeginInit()
|
CType(Me.txtSubcontractorNo, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
CType(Me.txtContactorName, System.ComponentModel.ISupportInitialize).BeginInit()
|
CType(Me.txtContactorName, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
CType(Me.txtTelNo, System.ComponentModel.ISupportInitialize).BeginInit()
|
CType(Me.txtTelNo, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
|
||||||
|
|
||||||
|
CType(Me.UltraTextEditor1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
|
||||||
|
CType(Me.txtAge, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
|
||||||
|
|
||||||
Me.SuspendLayout()
|
Me.SuspendLayout()
|
||||||
'
|
'
|
||||||
'gbxBasisData
|
'gbxBasisData
|
||||||
@ -117,6 +139,15 @@ Public Class frmSubcontractorContDef
|
|||||||
Me.gbxSubcontractorContData.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
|
Me.gbxSubcontractorContData.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
|
||||||
Or System.Windows.Forms.AnchorStyles.Left) _
|
Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
|
||||||
|
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.UltraTextEditor1)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.dll21671)
|
||||||
|
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtAge)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblAge)
|
||||||
|
|
||||||
|
|
||||||
Me.gbxSubcontractorContData.Controls.Add(Me.txtAddress)
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtAddress)
|
||||||
Me.gbxSubcontractorContData.Controls.Add(Me.txtEMail)
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtEMail)
|
||||||
Me.gbxSubcontractorContData.Controls.Add(Me.txtTitle)
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtTitle)
|
||||||
@ -143,30 +174,30 @@ Public Class frmSubcontractorContDef
|
|||||||
'
|
'
|
||||||
'txtAddress
|
'txtAddress
|
||||||
'
|
'
|
||||||
Me.txtAddress.Location = New System.Drawing.Point(120, 152)
|
Me.txtAddress.Location = New System.Drawing.Point(116, 152)
|
||||||
Me.txtAddress.Name = "txtAddress"
|
Me.txtAddress.Name = "txtAddress"
|
||||||
Me.txtAddress.Size = New System.Drawing.Size(336, 22)
|
Me.txtAddress.Size = New System.Drawing.Size(336, 26)
|
||||||
Me.txtAddress.TabIndex = 13
|
Me.txtAddress.TabIndex = 13
|
||||||
'
|
'
|
||||||
'txtEMail
|
'txtEMail
|
||||||
'
|
'
|
||||||
Me.txtEMail.Location = New System.Drawing.Point(320, 120)
|
Me.txtEMail.Location = New System.Drawing.Point(320, 120)
|
||||||
Me.txtEMail.Name = "txtEMail"
|
Me.txtEMail.Name = "txtEMail"
|
||||||
Me.txtEMail.Size = New System.Drawing.Size(136, 22)
|
Me.txtEMail.Size = New System.Drawing.Size(136, 26)
|
||||||
Me.txtEMail.TabIndex = 11
|
Me.txtEMail.TabIndex = 11
|
||||||
'
|
'
|
||||||
'txtTitle
|
'txtTitle
|
||||||
'
|
'
|
||||||
Me.txtTitle.Location = New System.Drawing.Point(120, 120)
|
Me.txtTitle.Location = New System.Drawing.Point(120, 120)
|
||||||
Me.txtTitle.Name = "txtTitle"
|
Me.txtTitle.Name = "txtTitle"
|
||||||
Me.txtTitle.Size = New System.Drawing.Size(114, 22)
|
Me.txtTitle.Size = New System.Drawing.Size(114, 26)
|
||||||
Me.txtTitle.TabIndex = 9
|
Me.txtTitle.TabIndex = 9
|
||||||
'
|
'
|
||||||
'txtFaxNo
|
'txtFaxNo
|
||||||
'
|
'
|
||||||
Me.txtFaxNo.Location = New System.Drawing.Point(320, 88)
|
Me.txtFaxNo.Location = New System.Drawing.Point(320, 88)
|
||||||
Me.txtFaxNo.Name = "txtFaxNo"
|
Me.txtFaxNo.Name = "txtFaxNo"
|
||||||
Me.txtFaxNo.Size = New System.Drawing.Size(136, 22)
|
Me.txtFaxNo.Size = New System.Drawing.Size(136, 26)
|
||||||
Me.txtFaxNo.TabIndex = 7
|
Me.txtFaxNo.TabIndex = 7
|
||||||
'
|
'
|
||||||
'lblAddress
|
'lblAddress
|
||||||
@ -222,9 +253,17 @@ Public Class frmSubcontractorContDef
|
|||||||
'txtDescription
|
'txtDescription
|
||||||
'
|
'
|
||||||
Me.txtDescription.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
Me.txtDescription.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
Me.txtDescription.Location = New System.Drawing.Point(120, 184)
|
Me.txtDescription.Location = New System.Drawing.Point(116, 190)
|
||||||
Me.txtDescription.Name = "txtDescription"
|
Me.txtDescription.Name = "txtDescription"
|
||||||
|
|
||||||
Me.txtDescription.Size = New System.Drawing.Size(336, 108)
|
Me.txtDescription.Size = New System.Drawing.Size(336, 108)
|
||||||
|
|
||||||
|
|
||||||
|
Me.txtDescription.Size = New System.Drawing.Size(316, 36)
|
||||||
|
|
||||||
|
Me.txtDescription.Size = New System.Drawing.Size(336, 21)
|
||||||
|
|
||||||
|
|
||||||
Me.txtDescription.TabIndex = 15
|
Me.txtDescription.TabIndex = 15
|
||||||
Me.txtDescription.Text = ""
|
Me.txtDescription.Text = ""
|
||||||
'
|
'
|
||||||
@ -263,7 +302,7 @@ Public Class frmSubcontractorContDef
|
|||||||
Me.txtSubcontractorNo.Location = New System.Drawing.Point(120, 24)
|
Me.txtSubcontractorNo.Location = New System.Drawing.Point(120, 24)
|
||||||
Me.txtSubcontractorNo.Name = "txtSubcontractorNo"
|
Me.txtSubcontractorNo.Name = "txtSubcontractorNo"
|
||||||
Me.txtSubcontractorNo.ReadOnly = True
|
Me.txtSubcontractorNo.ReadOnly = True
|
||||||
Me.txtSubcontractorNo.Size = New System.Drawing.Size(114, 22)
|
Me.txtSubcontractorNo.Size = New System.Drawing.Size(114, 26)
|
||||||
Me.txtSubcontractorNo.TabIndex = 1
|
Me.txtSubcontractorNo.TabIndex = 1
|
||||||
Me.txtSubcontractorNo.TabStop = False
|
Me.txtSubcontractorNo.TabStop = False
|
||||||
'
|
'
|
||||||
@ -274,16 +313,44 @@ Public Class frmSubcontractorContDef
|
|||||||
Me.txtContactorName.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
Me.txtContactorName.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
Me.txtContactorName.Location = New System.Drawing.Point(120, 56)
|
Me.txtContactorName.Location = New System.Drawing.Point(120, 56)
|
||||||
Me.txtContactorName.Name = "txtContactorName"
|
Me.txtContactorName.Name = "txtContactorName"
|
||||||
Me.txtContactorName.Size = New System.Drawing.Size(160, 22)
|
Me.txtContactorName.Size = New System.Drawing.Size(160, 26)
|
||||||
Me.txtContactorName.TabIndex = 3
|
Me.txtContactorName.TabIndex = 3
|
||||||
'
|
'
|
||||||
'txtTelNo
|
'txtTelNo
|
||||||
'
|
'
|
||||||
Me.txtTelNo.Location = New System.Drawing.Point(120, 88)
|
Me.txtTelNo.Location = New System.Drawing.Point(120, 88)
|
||||||
Me.txtTelNo.Name = "txtTelNo"
|
Me.txtTelNo.Name = "txtTelNo"
|
||||||
Me.txtTelNo.Size = New System.Drawing.Size(114, 22)
|
Me.txtTelNo.Size = New System.Drawing.Size(114, 26)
|
||||||
Me.txtTelNo.TabIndex = 5
|
Me.txtTelNo.TabIndex = 5
|
||||||
'
|
'
|
||||||
|
|
||||||
|
|
||||||
|
'dll21671
|
||||||
|
'
|
||||||
|
Me.dll21671.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.dll21671.Location = New System.Drawing.Point(14, 236)
|
||||||
|
Me.dll21671.Name = "dll21671"
|
||||||
|
Me.dll21671.Size = New System.Drawing.Size(86, 14)
|
||||||
|
Me.dll21671.TabIndex = 16
|
||||||
|
Me.dll21671.Text = "AGE"
|
||||||
|
Me.dll21671.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'UltraTextEditor1
|
||||||
|
'
|
||||||
|
Me.UltraTextEditor1.Location = New System.Drawing.Point(116, 232)
|
||||||
|
Me.UltraTextEditor1.Name = "UltraTextEditor1"
|
||||||
|
Me.UltraTextEditor1.Size = New System.Drawing.Size(114, 26)
|
||||||
|
Me.UltraTextEditor1.TabIndex = 17
|
||||||
|
|
||||||
|
'txtAge
|
||||||
|
'
|
||||||
|
Me.txtAge.Location = New System.Drawing.Point(120, 222)
|
||||||
|
Me.txtAge.Name = "txtAge"
|
||||||
|
Me.txtAge.Size = New System.Drawing.Size(336, 22)
|
||||||
|
Me.txtAge.TabIndex = 17
|
||||||
|
|
||||||
|
'
|
||||||
|
|
||||||
'frmSubcontractorContDef
|
'frmSubcontractorContDef
|
||||||
'
|
'
|
||||||
Me.ClientSize = New System.Drawing.Size(496, 446)
|
Me.ClientSize = New System.Drawing.Size(496, 446)
|
||||||
@ -308,6 +375,13 @@ Public Class frmSubcontractorContDef
|
|||||||
CType(Me.txtSubcontractorNo, System.ComponentModel.ISupportInitialize).EndInit()
|
CType(Me.txtSubcontractorNo, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
CType(Me.txtContactorName, System.ComponentModel.ISupportInitialize).EndInit()
|
CType(Me.txtContactorName, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
CType(Me.txtTelNo, System.ComponentModel.ISupportInitialize).EndInit()
|
CType(Me.txtTelNo, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
|
||||||
|
|
||||||
|
CType(Me.UltraTextEditor1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
|
||||||
|
CType(Me.txtAge, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
|
||||||
|
|
||||||
Me.ResumeLayout(False)
|
Me.ResumeLayout(False)
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
@ -346,6 +420,13 @@ Public Class frmSubcontractorContDef
|
|||||||
txtTitle.Text = EditDataRow.Item("Title").ToString
|
txtTitle.Text = EditDataRow.Item("Title").ToString
|
||||||
txtAddress.Text = EditDataRow.Item("Address").ToString
|
txtAddress.Text = EditDataRow.Item("Address").ToString
|
||||||
txtEMail.Text = EditDataRow.Item("EMail").ToString
|
txtEMail.Text = EditDataRow.Item("EMail").ToString
|
||||||
|
|
||||||
|
|
||||||
|
dll21671.Text = EditDataRow.Item("AGE").ToString
|
||||||
|
|
||||||
|
txtAge.Text = EditDataRow.Item("Age").ToString
|
||||||
|
|
||||||
|
|
||||||
'txtDescription是RichTextBox(Control, 因為TextBox無法正常顯示多行換行的資料)
|
'txtDescription是RichTextBox(Control, 因為TextBox無法正常顯示多行換行的資料)
|
||||||
txtDescription.Text = EditDataRow.Item("Description").ToString
|
txtDescription.Text = EditDataRow.Item("Description").ToString
|
||||||
If DefMode = 1 Then
|
If DefMode = 1 Then
|
||||||
@ -609,6 +690,7 @@ Public Class frmSubcontractorContDef
|
|||||||
strParameter = strParameter & CombineXMLParameter("address", "Address", "String", CInput(txtAddress.Text), "")
|
strParameter = strParameter & CombineXMLParameter("address", "Address", "String", CInput(txtAddress.Text), "")
|
||||||
strParameter = strParameter & CombineXMLParameter("email", "EMail", "String", CInput(txtEMail.Text), "")
|
strParameter = strParameter & CombineXMLParameter("email", "EMail", "String", CInput(txtEMail.Text), "")
|
||||||
strParameter = strParameter & CombineXMLParameter("description", "Description", "String", CInput(txtDescription.Text), "")
|
strParameter = strParameter & CombineXMLParameter("description", "Description", "String", CInput(txtDescription.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("AGE", "AGE", "String", CInput(dll21671.Text), "")
|
||||||
|
|
||||||
|
|
||||||
If DefMode = 0 Or DefMode = 2 Then 'Add or Copy
|
If DefMode = 0 Or DefMode = 2 Then 'Add or Copy
|
||||||
@ -652,5 +734,18 @@ Public Class frmSubcontractorContDef
|
|||||||
Private Sub frmSubcontractorContDef_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
|
Private Sub frmSubcontractorContDef_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
|
||||||
' 2016 YF, If Not wsENT Is Nothing Then wsENT.Dispose()
|
' 2016 YF, If Not wsENT Is Nothing Then wsENT.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub UltraTextEditor1_ValueChanged(sender As Object, e As EventArgs) Handles UltraTextEditor1.ValueChanged
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub DD_Click(sender As Object, e As EventArgs) Handles dll21671.Click
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
|
@ -16,7 +16,14 @@ Public Class frmSubcontractorDef
|
|||||||
|
|
||||||
Dim strIdentity As String
|
Dim strIdentity As String
|
||||||
Dim strParameter As String
|
Dim strParameter As String
|
||||||
Dim intDataStamp As Integer '紀錄DataStamp
|
|
||||||
|
|
||||||
|
Friend WithEvents RichTextBox1 As RichTextBox
|
||||||
|
Friend WithEvents dll21671_01 As Label
|
||||||
|
|
||||||
|
Friend WithEvents txtAge As RichTextBox
|
||||||
|
Friend WithEvents lblAge As Label
|
||||||
|
|
||||||
|
|
||||||
#Region " Windows Form Designer generated code "
|
#Region " Windows Form Designer generated code "
|
||||||
|
|
||||||
@ -63,6 +70,8 @@ Public Class frmSubcontractorDef
|
|||||||
Me.lblSubcontractorName = New System.Windows.Forms.Label()
|
Me.lblSubcontractorName = New System.Windows.Forms.Label()
|
||||||
Me.txtSubcontractorNo = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
Me.txtSubcontractorNo = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
Me.txtSubcontractorName = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
Me.txtSubcontractorName = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.dll21671_01 = New System.Windows.Forms.Label()
|
||||||
|
Me.RichTextBox1 = New System.Windows.Forms.RichTextBox()
|
||||||
CType(Me.gbxBasisData, System.ComponentModel.ISupportInitialize).BeginInit()
|
CType(Me.gbxBasisData, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
Me.gbxSubcontractorData.SuspendLayout()
|
Me.gbxSubcontractorData.SuspendLayout()
|
||||||
CType(Me.txtSubcontractorNo, System.ComponentModel.ISupportInitialize).BeginInit()
|
CType(Me.txtSubcontractorNo, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
@ -91,6 +100,15 @@ Public Class frmSubcontractorDef
|
|||||||
Me.gbxSubcontractorData.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
|
Me.gbxSubcontractorData.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
|
||||||
Or System.Windows.Forms.AnchorStyles.Left) _
|
Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
|
||||||
|
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.RichTextBox1)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.dll21671_01)
|
||||||
|
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.txtAge)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.lblAge)
|
||||||
|
|
||||||
|
|
||||||
Me.gbxSubcontractorData.Controls.Add(Me.txtDescription)
|
Me.gbxSubcontractorData.Controls.Add(Me.txtDescription)
|
||||||
Me.gbxSubcontractorData.Controls.Add(Me.lblDescription)
|
Me.gbxSubcontractorData.Controls.Add(Me.lblDescription)
|
||||||
Me.gbxSubcontractorData.Controls.Add(Me.lblSubcontractorNo)
|
Me.gbxSubcontractorData.Controls.Add(Me.lblSubcontractorNo)
|
||||||
@ -110,7 +128,13 @@ Public Class frmSubcontractorDef
|
|||||||
Me.txtDescription.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
Me.txtDescription.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
Me.txtDescription.Location = New System.Drawing.Point(128, 86)
|
Me.txtDescription.Location = New System.Drawing.Point(128, 86)
|
||||||
Me.txtDescription.Name = "txtDescription"
|
Me.txtDescription.Name = "txtDescription"
|
||||||
Me.txtDescription.Size = New System.Drawing.Size(334, 67)
|
|
||||||
|
|
||||||
|
Me.txtDescription.Size = New System.Drawing.Size(316, 33)
|
||||||
|
|
||||||
|
Me.txtDescription.Size = New System.Drawing.Size(334, 24)
|
||||||
|
|
||||||
|
|
||||||
Me.txtDescription.TabIndex = 2
|
Me.txtDescription.TabIndex = 2
|
||||||
Me.txtDescription.Text = ""
|
Me.txtDescription.Text = ""
|
||||||
'
|
'
|
||||||
@ -151,7 +175,7 @@ Public Class frmSubcontractorDef
|
|||||||
Me.txtSubcontractorNo.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
Me.txtSubcontractorNo.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
Me.txtSubcontractorNo.Location = New System.Drawing.Point(128, 24)
|
Me.txtSubcontractorNo.Location = New System.Drawing.Point(128, 24)
|
||||||
Me.txtSubcontractorNo.Name = "txtSubcontractorNo"
|
Me.txtSubcontractorNo.Name = "txtSubcontractorNo"
|
||||||
Me.txtSubcontractorNo.Size = New System.Drawing.Size(152, 22)
|
Me.txtSubcontractorNo.Size = New System.Drawing.Size(152, 26)
|
||||||
Me.txtSubcontractorNo.TabIndex = 0
|
Me.txtSubcontractorNo.TabIndex = 0
|
||||||
'
|
'
|
||||||
'txtSubcontractorName
|
'txtSubcontractorName
|
||||||
@ -161,9 +185,28 @@ Public Class frmSubcontractorDef
|
|||||||
Me.txtSubcontractorName.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
Me.txtSubcontractorName.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
Me.txtSubcontractorName.Location = New System.Drawing.Point(128, 55)
|
Me.txtSubcontractorName.Location = New System.Drawing.Point(128, 55)
|
||||||
Me.txtSubcontractorName.Name = "txtSubcontractorName"
|
Me.txtSubcontractorName.Name = "txtSubcontractorName"
|
||||||
Me.txtSubcontractorName.Size = New System.Drawing.Size(334, 22)
|
Me.txtSubcontractorName.Size = New System.Drawing.Size(334, 26)
|
||||||
Me.txtSubcontractorName.TabIndex = 1
|
Me.txtSubcontractorName.TabIndex = 1
|
||||||
'
|
'
|
||||||
|
'dll21671_01
|
||||||
|
'
|
||||||
|
Me.dll21671_01.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.dll21671_01.Location = New System.Drawing.Point(56, 128)
|
||||||
|
Me.dll21671_01.Name = "dll21671_01"
|
||||||
|
Me.dll21671_01.Size = New System.Drawing.Size(64, 14)
|
||||||
|
Me.dll21671_01.TabIndex = 14
|
||||||
|
Me.dll21671_01.Text = "AGE"
|
||||||
|
Me.dll21671_01.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'RichTextBox1
|
||||||
|
'
|
||||||
|
Me.RichTextBox1.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.RichTextBox1.Location = New System.Drawing.Point(128, 125)
|
||||||
|
Me.RichTextBox1.Name = "RichTextBox1"
|
||||||
|
Me.RichTextBox1.Size = New System.Drawing.Size(120, 33)
|
||||||
|
Me.RichTextBox1.TabIndex = 15
|
||||||
|
Me.RichTextBox1.Text = ""
|
||||||
|
'
|
||||||
'frmSubcontractorDef
|
'frmSubcontractorDef
|
||||||
'
|
'
|
||||||
Me.ClientSize = New System.Drawing.Size(503, 309)
|
Me.ClientSize = New System.Drawing.Size(503, 309)
|
||||||
@ -215,6 +258,12 @@ Public Class frmSubcontractorDef
|
|||||||
txtSubcontractorName.Text = EditDataRow.Item("SubcontractorName").ToString
|
txtSubcontractorName.Text = EditDataRow.Item("SubcontractorName").ToString
|
||||||
'txtDescription是RichTextBox Control,因為TextBox無法正常顯示多行換行的資料
|
'txtDescription是RichTextBox Control,因為TextBox無法正常顯示多行換行的資料
|
||||||
txtDescription.Text = EditDataRow.Item("Description").ToString
|
txtDescription.Text = EditDataRow.Item("Description").ToString
|
||||||
|
|
||||||
|
|
||||||
|
dll21671_01.Text = EditDataRow.Item("AGE").ToString
|
||||||
|
|
||||||
|
txtAge.Text = EditDataRow.Item("Age").ToString
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If DefMode = 0 Or DefMode = 2 Then 'Add or Copy
|
If DefMode = 0 Or DefMode = 2 Then 'Add or Copy
|
||||||
@ -374,6 +423,12 @@ Public Class frmSubcontractorDef
|
|||||||
strParameter = strParameter & CombineXMLParameter("subcontractorname", "SubcontractorName", "String", CInput(txtSubcontractorName.Text), "")
|
strParameter = strParameter & CombineXMLParameter("subcontractorname", "SubcontractorName", "String", CInput(txtSubcontractorName.Text), "")
|
||||||
strParameter = strParameter & CombineXMLParameter("description", "Description", "String", CInput(txtDescription.Text), "")
|
strParameter = strParameter & CombineXMLParameter("description", "Description", "String", CInput(txtDescription.Text), "")
|
||||||
|
|
||||||
|
strParameter = strParameter & CombineXMLParameter("AGE", "AGE", "String", dll21671_01.Text, "")
|
||||||
|
|
||||||
|
strParameter = strParameter & CombineXMLParameter("age", "Age", "String", txtAge.Text, "")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If DefMode = 0 Or DefMode = 2 Then 'Add or Copy
|
If DefMode = 0 Or DefMode = 2 Then 'Add or Copy
|
||||||
strParameter = strParameter & CombineXMLParameter("creator", "Creator", "String", gUserNo, "")
|
strParameter = strParameter & CombineXMLParameter("creator", "Creator", "String", gUserNo, "")
|
||||||
strParameter = strParameter & CombineXMLParameter("createdate", "CreateDate", "DateTime", Format(Now, "yyyy/MM/dd HH:mm:ss"), "")
|
strParameter = strParameter & CombineXMLParameter("createdate", "CreateDate", "DateTime", Format(Now, "yyyy/MM/dd HH:mm:ss"), "")
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<PropertyGroup>
|
|
||||||
<ReferencePath>E:\DigiHua\2.Temp\Local\MESsc\SClientSource\</ReferencePath>
|
|
||||||
</PropertyGroup>
|
|
||||||
</Project>
|
|
194
SRC/MESWin/SYS2/ET_Subcontractor21708/ET_Subcontractor.vbproj
Normal file
194
SRC/MESWin/SYS2/ET_Subcontractor21708/ET_Subcontractor.vbproj
Normal file
@ -0,0 +1,194 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||||
|
<ProjectGuid>{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<RootNamespace>ET_Subcontractor_21708</RootNamespace>
|
||||||
|
<AssemblyName>ET_Subcontractor_21708</AssemblyName>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<MyType>Windows</MyType>
|
||||||
|
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
|
<SccProjectName>SAK</SccProjectName>
|
||||||
|
<SccLocalPath>SAK</SccLocalPath>
|
||||||
|
<SccAuxPath>SAK</SccAuxPath>
|
||||||
|
<SccProvider>SAK</SccProvider>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionExplicit>On</OptionExplicit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionCompare>Binary</OptionCompare>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionStrict>Off</OptionStrict>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionInfer>On</OptionInfer>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DefineDebug>true</DefineDebug>
|
||||||
|
<DefineTrace>true</DefineTrace>
|
||||||
|
<OutputPath>..\..\..\MESClient\</OutputPath>
|
||||||
|
<DocumentationFile>ET_Subcontractor_21708.xml</DocumentationFile>
|
||||||
|
<WarningLevel>0</WarningLevel>
|
||||||
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
<Prefer32Bit>false</Prefer32Bit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||||
|
<DefineTrace>true</DefineTrace>
|
||||||
|
<OutputPath>..\..\..\MESClient\</OutputPath>
|
||||||
|
<DocumentationFile>ET_Subcontractor_21708.xml</DocumentationFile>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<WarningLevel>0</WarningLevel>
|
||||||
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
<Prefer32Bit>false</Prefer32Bit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<SignAssembly>true</SignAssembly>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<AssemblyOriginatorKeyFile>iMES.snk</AssemblyOriginatorKeyFile>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="Infragistics4.Win.v19.1, Version=19.1.20191.82, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>C:\Program Files (x86)\Infragistics\2019.1\Windows Forms\CLR4.0\Bin\Infragistics4.Win.v19.1.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Infragistics4.Win.UltraWinGrid.v19.1, Version=19.1.20191.82, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>C:\Program Files (x86)\Infragistics\2019.1\Windows Forms\CLR4.0\Bin\Infragistics4.Win.UltraWinGrid.v19.1.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Infragistics4.Win.UltraWinEditors.v19.1, Version=19.1.20191.82, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>C:\Program Files (x86)\Infragistics\2019.1\Windows Forms\CLR4.0\Bin\Infragistics4.Win.UltraWinEditors.v19.1.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Infragistics4.Win.Misc.v19.1, Version=19.1.20191.82, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>C:\Program Files (x86)\Infragistics\2019.1\Windows Forms\CLR4.0\Bin\Infragistics4.Win.Misc.v19.1.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Infragistics4.Shared.v19.1, Version=19.1.20191.82, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>C:\Program Files (x86)\Infragistics\2019.1\Windows Forms\CLR4.0\Bin\Infragistics4.Shared.v19.1.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="COM_Kit">
|
||||||
|
<HintPath>..\..\..\MESClient\COM_Kit.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="iMESExceptionManager">
|
||||||
|
<HintPath>..\..\..\MES_C_DLL\iMESExceptionManager.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="iMESUltraGrid">
|
||||||
|
<HintPath>..\..\..\MES_C_DLL\iMESUltraGrid.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Drawing" />
|
||||||
|
<Reference Include="System.Windows.Forms" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Import Include="COM_Kit.clsGlobalVariables" />
|
||||||
|
<Import Include="COM_Kit.clsKit" />
|
||||||
|
<Import Include="Microsoft.VisualBasic" />
|
||||||
|
<Import Include="System" />
|
||||||
|
<Import Include="System.Collections" />
|
||||||
|
<Import Include="System.Collections.Generic" />
|
||||||
|
<Import Include="System.Data" />
|
||||||
|
<Import Include="System.Diagnostics" />
|
||||||
|
<Import Include="System.Drawing" />
|
||||||
|
<Import Include="System.Linq" />
|
||||||
|
<Import Include="System.Windows.Forms" />
|
||||||
|
<Import Include="System.Xml" />
|
||||||
|
<Import Include="System.Xml.Linq" />
|
||||||
|
<Import Include="System.Threading.Tasks" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="..\..\shared file\modConstant.vb">
|
||||||
|
<Link>modConstant.vb</Link>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="frmSubcontractor.vb">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="frmSubcontractorContDef.vb">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="frmSubcontractorDef.vb">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||||
|
<Compile Include="My Project\Application.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Application.myapp</DependentUpon>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\Resources.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\Settings.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Settings.settings</DependentUpon>
|
||||||
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
|
</Compile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<EmbeddedResource Include="frmSubcontractor.resx">
|
||||||
|
<DependentUpon>frmSubcontractor.vb</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="frmSubcontractorContDef.resx">
|
||||||
|
<DependentUpon>frmSubcontractorContDef.vb</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="frmSubcontractorDef.resx">
|
||||||
|
<DependentUpon>frmSubcontractorDef.vb</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="My Project\licenses.licx" />
|
||||||
|
<EmbeddedResource Include="My Project\Resources.resx">
|
||||||
|
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
||||||
|
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</EmbeddedResource>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="iMES.snk" />
|
||||||
|
<None Include="My Project\Application.myapp">
|
||||||
|
<Generator>MyApplicationCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Application.Designer.vb</LastGenOutput>
|
||||||
|
</None>
|
||||||
|
<None Include="My Project\Settings.settings">
|
||||||
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
|
<CustomToolNamespace>My</CustomToolNamespace>
|
||||||
|
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
<Import Project="..\..\shared file\MakeVersion.targets" Condition="exists('..\..\shared file\MakeVersion.targets')" />
|
||||||
|
</Project>
|
@ -0,0 +1 @@
|
|||||||
|
<Assembly: Reflection.AssemblyFileVersion("6.0.5.40116")>
|
@ -1,30 +1,31 @@
|
|||||||
'------------------------------------------------------------------------------
|
'------------------------------------------------------------------------------
|
||||||
' <auto-generated>
|
' <auto-generated>
|
||||||
' This code was generated by a tool.
|
' 此代码由工具生成。
|
||||||
' Runtime Version:4.0.30319.42000
|
' 运行时版本:4.0.30319.42000
|
||||||
'
|
'
|
||||||
' Changes to this file may cause incorrect behavior and will be lost if
|
' 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
' the code is regenerated.
|
' 重新生成代码,这些更改将会丢失。
|
||||||
' </auto-generated>
|
' </auto-generated>
|
||||||
'------------------------------------------------------------------------------
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
Option Strict On
|
Option Strict On
|
||||||
Option Explicit On
|
Option Explicit On
|
||||||
|
|
||||||
|
Imports System
|
||||||
|
|
||||||
Namespace My.Resources
|
Namespace My.Resources
|
||||||
|
|
||||||
'This class was auto-generated by the StronglyTypedResourceBuilder
|
'此类是由 StronglyTypedResourceBuilder
|
||||||
'class via a tool like ResGen or Visual Studio.
|
'类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||||
'To add or remove a member, edit your .ResX file then rerun ResGen
|
'若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||||
'with the /str option, or rebuild your VS project.
|
'(以 /str 作为命令选项),或重新生成 VS 项目。
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' A strongly-typed resource class, for looking up localized strings, etc.
|
''' 一个强类型的资源类,用于查找本地化的字符串等。
|
||||||
'''</summary>
|
'''</summary>
|
||||||
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
|
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0"), _
|
||||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
||||||
Friend Module Resources
|
Friend Module Resources
|
||||||
|
|
||||||
Private resourceMan As Global.System.Resources.ResourceManager
|
Private resourceMan As Global.System.Resources.ResourceManager
|
||||||
@ -32,13 +33,13 @@ Namespace My.Resources
|
|||||||
Private resourceCulture As Global.System.Globalization.CultureInfo
|
Private resourceCulture As Global.System.Globalization.CultureInfo
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Returns the cached ResourceManager instance used by this class.
|
''' 返回此类使用的缓存的 ResourceManager 实例。
|
||||||
'''</summary>
|
'''</summary>
|
||||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
||||||
Get
|
Get
|
||||||
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
||||||
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("ET_Demo.Resources", GetType(Resources).Assembly)
|
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("ET_Subcontractor_21708.Resources", GetType(Resources).Assembly)
|
||||||
resourceMan = temp
|
resourceMan = temp
|
||||||
End If
|
End If
|
||||||
Return resourceMan
|
Return resourceMan
|
||||||
@ -46,15 +47,15 @@ Namespace My.Resources
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Overrides the current thread's CurrentUICulture property for all
|
''' 重写当前线程的 CurrentUICulture 属性,对
|
||||||
''' resource lookups using this strongly typed resource class.
|
''' 使用此强类型资源类的所有资源查找执行重写。
|
||||||
'''</summary>
|
'''</summary>
|
||||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
Friend Property Culture() As Global.System.Globalization.CultureInfo
|
Friend Property Culture() As Global.System.Globalization.CultureInfo
|
||||||
Get
|
Get
|
||||||
Return resourceCulture
|
Return resourceCulture
|
||||||
End Get
|
End Get
|
||||||
Set(ByVal value As Global.System.Globalization.CultureInfo)
|
Set
|
||||||
resourceCulture = value
|
resourceCulture = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
73
SRC/MESWin/SYS2/ET_Subcontractor21708/My Project/Settings.Designer.vb
generated
Normal file
73
SRC/MESWin/SYS2/ET_Subcontractor21708/My Project/Settings.Designer.vb
generated
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <auto-generated>
|
||||||
|
' 此代码由工具生成。
|
||||||
|
' 运行时版本:4.0.30319.42000
|
||||||
|
'
|
||||||
|
' 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
' 重新生成代码,这些更改将会丢失。
|
||||||
|
' </auto-generated>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
|
|
||||||
|
Namespace My
|
||||||
|
|
||||||
|
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0"), _
|
||||||
|
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Partial Friend NotInheritable Class MySettings
|
||||||
|
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||||
|
|
||||||
|
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
|
||||||
|
|
||||||
|
#Region "My.Settings 自动保存功能"
|
||||||
|
#If _MyType = "WindowsForms" Then
|
||||||
|
Private Shared addedHandler As Boolean
|
||||||
|
|
||||||
|
Private Shared addedHandlerLockObject As New Object
|
||||||
|
|
||||||
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Private Shared Sub AutoSaveSettings(sender As Global.System.Object, e As Global.System.EventArgs)
|
||||||
|
If My.Application.SaveMySettingsOnExit Then
|
||||||
|
My.Settings.Save()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
#End If
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
Public Shared ReadOnly Property [Default]() As MySettings
|
||||||
|
Get
|
||||||
|
|
||||||
|
#If _MyType = "WindowsForms" Then
|
||||||
|
If Not addedHandler Then
|
||||||
|
SyncLock addedHandlerLockObject
|
||||||
|
If Not addedHandler Then
|
||||||
|
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
||||||
|
addedHandler = True
|
||||||
|
End If
|
||||||
|
End SyncLock
|
||||||
|
End If
|
||||||
|
#End If
|
||||||
|
Return defaultInstance
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
End Class
|
||||||
|
End Namespace
|
||||||
|
|
||||||
|
Namespace My
|
||||||
|
|
||||||
|
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
|
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
||||||
|
Friend Module MySettingsProperty
|
||||||
|
|
||||||
|
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
||||||
|
Friend ReadOnly Property Settings() As Global.ET_Subcontractor_21708.My.MySettings
|
||||||
|
Get
|
||||||
|
Return Global.ET_Subcontractor_21708.My.MySettings.Default
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
End Module
|
||||||
|
End Namespace
|
1129
SRC/MESWin/SYS2/ET_Subcontractor21708/frmSubcontractor.vb
Normal file
1129
SRC/MESWin/SYS2/ET_Subcontractor21708/frmSubcontractor.vb
Normal file
File diff suppressed because it is too large
Load Diff
656
SRC/MESWin/SYS2/ET_Subcontractor21708/frmSubcontractorContDef.vb
Normal file
656
SRC/MESWin/SYS2/ET_Subcontractor21708/frmSubcontractorContDef.vb
Normal file
@ -0,0 +1,656 @@
|
|||||||
|
Imports iMESExceptionManager
|
||||||
|
|
||||||
|
Public Class frmSubcontractorContDef
|
||||||
|
|
||||||
|
Inherits COM_Kit.frmDefTemplat
|
||||||
|
|
||||||
|
'//Public Variables
|
||||||
|
Public EditDataRow As DataRow
|
||||||
|
Public DefMode As Integer = 0 '0. ADD, 1.Edit, 2. Copy
|
||||||
|
|
||||||
|
Public StudentNo As String = defString
|
||||||
|
Public PrivFunNo As String = defString
|
||||||
|
|
||||||
|
'//Web Service相關變數
|
||||||
|
' 2016 YF, Dim wsENT As New wsENT.wsENT
|
||||||
|
Dim InXml As String
|
||||||
|
Dim OutXml As String
|
||||||
|
|
||||||
|
Dim strIdentity As String
|
||||||
|
Dim strParameter As String
|
||||||
|
Dim intDataStamp As Integer '紀錄DataStamp
|
||||||
|
|
||||||
|
#Region " Windows Form Designer generated code "
|
||||||
|
|
||||||
|
Public Sub New()
|
||||||
|
MyBase.New()
|
||||||
|
|
||||||
|
'This call is required by the Windows Form Designer.
|
||||||
|
InitializeComponent()
|
||||||
|
|
||||||
|
'Add any initialization after the InitializeComponent() call
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Form overrides dispose to clean up the component list.
|
||||||
|
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||||
|
If disposing Then
|
||||||
|
If Not (components Is Nothing) Then
|
||||||
|
components.Dispose()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
MyBase.Dispose(disposing)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Required by the Windows Form Designer
|
||||||
|
Private components As System.ComponentModel.IContainer
|
||||||
|
|
||||||
|
'NOTE: The following procedure is required by the Windows Form Designer
|
||||||
|
'It can be modified using the Windows Form Designer.
|
||||||
|
'Do not modify it using the code editor.
|
||||||
|
Friend WithEvents txtDescription As System.Windows.Forms.RichTextBox
|
||||||
|
Friend WithEvents lblAddress As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblEMail As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblNickName As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblQQno As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblTelNo As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblDescription As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblContactorName As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblSubcontractorNo As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents gbxSubcontractorContData As System.Windows.Forms.GroupBox
|
||||||
|
Friend WithEvents txtSubcontractorNo As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtContactorName As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtQQno As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtTelNo As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtEMail As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtNickName As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtAddress As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
|
||||||
|
Dim Appearance1 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance()
|
||||||
|
Me.gbxSubcontractorContData = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.txtAddress = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtEMail = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtNickName = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtQQno = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.lblAddress = New System.Windows.Forms.Label()
|
||||||
|
Me.lblEMail = New System.Windows.Forms.Label()
|
||||||
|
Me.lblNickName = New System.Windows.Forms.Label()
|
||||||
|
Me.lblQQno = New System.Windows.Forms.Label()
|
||||||
|
Me.lblTelNo = New System.Windows.Forms.Label()
|
||||||
|
Me.txtDescription = New System.Windows.Forms.RichTextBox()
|
||||||
|
Me.lblDescription = New System.Windows.Forms.Label()
|
||||||
|
Me.lblSubcontractorNo = New System.Windows.Forms.Label()
|
||||||
|
Me.lblContactorName = New System.Windows.Forms.Label()
|
||||||
|
Me.txtSubcontractorNo = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtContactorName = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtTelNo = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
CType(Me.gbxBasisData, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
Me.gbxSubcontractorContData.SuspendLayout()
|
||||||
|
CType(Me.txtAddress, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtEMail, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtNickName, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtQQno, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtSubcontractorNo, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtContactorName, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtTelNo, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
Me.SuspendLayout()
|
||||||
|
'
|
||||||
|
'gbxBasisData
|
||||||
|
'
|
||||||
|
Me.gbxBasisData.Location = New System.Drawing.Point(12, 322)
|
||||||
|
Me.gbxBasisData.Size = New System.Drawing.Size(472, 70)
|
||||||
|
'
|
||||||
|
'btnApply
|
||||||
|
'
|
||||||
|
Me.btnApply.Location = New System.Drawing.Point(396, 401)
|
||||||
|
'
|
||||||
|
'btnConfirm
|
||||||
|
'
|
||||||
|
Me.btnConfirm.Location = New System.Drawing.Point(208, 401)
|
||||||
|
'
|
||||||
|
'btnClose
|
||||||
|
'
|
||||||
|
Me.btnClose.Location = New System.Drawing.Point(302, 401)
|
||||||
|
'
|
||||||
|
'gbxSubcontractorContData
|
||||||
|
'
|
||||||
|
Me.gbxSubcontractorContData.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtAddress)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtEMail)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtNickName)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtQQno)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblAddress)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblEMail)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblNickName)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblQQno)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblTelNo)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtDescription)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblDescription)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblSubcontractorNo)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblContactorName)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtSubcontractorNo)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtContactorName)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtTelNo)
|
||||||
|
Me.gbxSubcontractorContData.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.gbxSubcontractorContData.Location = New System.Drawing.Point(15, 8)
|
||||||
|
Me.gbxSubcontractorContData.Name = "gbxSubcontractorContData"
|
||||||
|
Me.gbxSubcontractorContData.Size = New System.Drawing.Size(469, 306)
|
||||||
|
Me.gbxSubcontractorContData.TabIndex = 0
|
||||||
|
Me.gbxSubcontractorContData.TabStop = False
|
||||||
|
Me.gbxSubcontractorContData.Text = "ENT Subcontractor Contactor Data"
|
||||||
|
'
|
||||||
|
'txtAddress
|
||||||
|
'
|
||||||
|
Me.txtAddress.Location = New System.Drawing.Point(120, 152)
|
||||||
|
Me.txtAddress.Name = "txtAddress"
|
||||||
|
Me.txtAddress.Size = New System.Drawing.Size(336, 22)
|
||||||
|
Me.txtAddress.TabIndex = 13
|
||||||
|
'
|
||||||
|
'txtEMail
|
||||||
|
'
|
||||||
|
Me.txtEMail.Location = New System.Drawing.Point(320, 120)
|
||||||
|
Me.txtEMail.Name = "txtEMail"
|
||||||
|
Me.txtEMail.Size = New System.Drawing.Size(136, 22)
|
||||||
|
Me.txtEMail.TabIndex = 11
|
||||||
|
'
|
||||||
|
'txtNickName
|
||||||
|
'
|
||||||
|
Me.txtNickName.Location = New System.Drawing.Point(120, 120)
|
||||||
|
Me.txtNickName.Name = "txtNickName"
|
||||||
|
Me.txtNickName.Size = New System.Drawing.Size(114, 22)
|
||||||
|
Me.txtNickName.TabIndex = 9
|
||||||
|
'
|
||||||
|
'txtQQno
|
||||||
|
'
|
||||||
|
Me.txtQQno.Location = New System.Drawing.Point(320, 88)
|
||||||
|
Me.txtQQno.Name = "txtQQno"
|
||||||
|
Me.txtQQno.Size = New System.Drawing.Size(136, 22)
|
||||||
|
Me.txtQQno.TabIndex = 7
|
||||||
|
'
|
||||||
|
'lblAddress
|
||||||
|
'
|
||||||
|
Me.lblAddress.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblAddress.Location = New System.Drawing.Point(24, 154)
|
||||||
|
Me.lblAddress.Name = "lblAddress"
|
||||||
|
Me.lblAddress.Size = New System.Drawing.Size(86, 14)
|
||||||
|
Me.lblAddress.TabIndex = 12
|
||||||
|
Me.lblAddress.Text = "Address"
|
||||||
|
Me.lblAddress.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblEMail
|
||||||
|
'
|
||||||
|
Me.lblEMail.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblEMail.Location = New System.Drawing.Point(248, 123)
|
||||||
|
Me.lblEMail.Name = "lblEMail"
|
||||||
|
Me.lblEMail.Size = New System.Drawing.Size(64, 14)
|
||||||
|
Me.lblEMail.TabIndex = 10
|
||||||
|
Me.lblEMail.Text = "EMail"
|
||||||
|
Me.lblEMail.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblNickName
|
||||||
|
'
|
||||||
|
Me.lblNickName.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblNickName.Location = New System.Drawing.Point(24, 121)
|
||||||
|
Me.lblNickName.Name = "lblNickName"
|
||||||
|
Me.lblNickName.Size = New System.Drawing.Size(86, 14)
|
||||||
|
Me.lblNickName.TabIndex = 8
|
||||||
|
Me.lblNickName.Text = "NickName"
|
||||||
|
Me.lblNickName.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblQQno
|
||||||
|
'
|
||||||
|
Me.lblQQno.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblQQno.Location = New System.Drawing.Point(248, 90)
|
||||||
|
Me.lblQQno.Name = "lblQQno"
|
||||||
|
Me.lblQQno.Size = New System.Drawing.Size(64, 14)
|
||||||
|
Me.lblQQno.TabIndex = 6
|
||||||
|
Me.lblQQno.Text = "QQno"
|
||||||
|
Me.lblQQno.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblTelNo
|
||||||
|
'
|
||||||
|
Me.lblTelNo.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblTelNo.Location = New System.Drawing.Point(24, 90)
|
||||||
|
Me.lblTelNo.Name = "lblTelNo"
|
||||||
|
Me.lblTelNo.Size = New System.Drawing.Size(86, 14)
|
||||||
|
Me.lblTelNo.TabIndex = 4
|
||||||
|
Me.lblTelNo.Text = "TelNo"
|
||||||
|
Me.lblTelNo.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'txtDescription
|
||||||
|
'
|
||||||
|
Me.txtDescription.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.txtDescription.Location = New System.Drawing.Point(120, 184)
|
||||||
|
Me.txtDescription.Name = "txtDescription"
|
||||||
|
Me.txtDescription.Size = New System.Drawing.Size(336, 108)
|
||||||
|
Me.txtDescription.TabIndex = 15
|
||||||
|
Me.txtDescription.Text = ""
|
||||||
|
'
|
||||||
|
'lblDescription
|
||||||
|
'
|
||||||
|
Me.lblDescription.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblDescription.Location = New System.Drawing.Point(24, 186)
|
||||||
|
Me.lblDescription.Name = "lblDescription"
|
||||||
|
Me.lblDescription.Size = New System.Drawing.Size(86, 14)
|
||||||
|
Me.lblDescription.TabIndex = 14
|
||||||
|
Me.lblDescription.Text = "Description"
|
||||||
|
Me.lblDescription.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblSubcontractorNo
|
||||||
|
'
|
||||||
|
Me.lblSubcontractorNo.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblSubcontractorNo.Location = New System.Drawing.Point(14, 29)
|
||||||
|
Me.lblSubcontractorNo.Name = "lblSubcontractorNo"
|
||||||
|
Me.lblSubcontractorNo.Size = New System.Drawing.Size(96, 14)
|
||||||
|
Me.lblSubcontractorNo.TabIndex = 0
|
||||||
|
Me.lblSubcontractorNo.Text = "Subcontractor No"
|
||||||
|
Me.lblSubcontractorNo.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblContactorName
|
||||||
|
'
|
||||||
|
Me.lblContactorName.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblContactorName.Location = New System.Drawing.Point(24, 59)
|
||||||
|
Me.lblContactorName.Name = "lblContactorName"
|
||||||
|
Me.lblContactorName.Size = New System.Drawing.Size(86, 14)
|
||||||
|
Me.lblContactorName.TabIndex = 2
|
||||||
|
Me.lblContactorName.Text = "Contactor Name"
|
||||||
|
Me.lblContactorName.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'txtSubcontractorNo
|
||||||
|
'
|
||||||
|
Me.txtSubcontractorNo.Location = New System.Drawing.Point(120, 24)
|
||||||
|
Me.txtSubcontractorNo.Name = "txtSubcontractorNo"
|
||||||
|
Me.txtSubcontractorNo.ReadOnly = True
|
||||||
|
Me.txtSubcontractorNo.Size = New System.Drawing.Size(114, 22)
|
||||||
|
Me.txtSubcontractorNo.TabIndex = 1
|
||||||
|
Me.txtSubcontractorNo.TabStop = False
|
||||||
|
'
|
||||||
|
'txtContactorName
|
||||||
|
'
|
||||||
|
Appearance1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtContactorName.Appearance = Appearance1
|
||||||
|
Me.txtContactorName.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtContactorName.Location = New System.Drawing.Point(120, 56)
|
||||||
|
Me.txtContactorName.Name = "txtContactorName"
|
||||||
|
Me.txtContactorName.Size = New System.Drawing.Size(160, 22)
|
||||||
|
Me.txtContactorName.TabIndex = 3
|
||||||
|
'
|
||||||
|
'txtTelNo
|
||||||
|
'
|
||||||
|
Me.txtTelNo.Location = New System.Drawing.Point(120, 88)
|
||||||
|
Me.txtTelNo.Name = "txtTelNo"
|
||||||
|
Me.txtTelNo.Size = New System.Drawing.Size(114, 22)
|
||||||
|
Me.txtTelNo.TabIndex = 5
|
||||||
|
'
|
||||||
|
'frmSubcontractorContDef
|
||||||
|
'
|
||||||
|
Me.ClientSize = New System.Drawing.Size(496, 446)
|
||||||
|
Me.Controls.Add(Me.gbxSubcontractorContData)
|
||||||
|
Me.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.Name = "frmSubcontractorContDef"
|
||||||
|
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
|
||||||
|
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||||
|
Me.Text = "ENT Subcontractor Contactor Define"
|
||||||
|
Me.Controls.SetChildIndex(Me.btnClose, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.btnConfirm, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.btnApply, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.gbxBasisData, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.gbxSubcontractorContData, 0)
|
||||||
|
CType(Me.gbxBasisData, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
Me.gbxSubcontractorContData.ResumeLayout(False)
|
||||||
|
Me.gbxSubcontractorContData.PerformLayout()
|
||||||
|
CType(Me.txtAddress, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtEMail, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtNickName, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtQQno, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtSubcontractorNo, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtContactorName, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtTelNo, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
Me.ResumeLayout(False)
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
Private Sub frmSubcontractorContDef_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
Select Case DefMode
|
||||||
|
Case 0
|
||||||
|
Me.Text = Me.Text & "(ADD)"
|
||||||
|
Case 1
|
||||||
|
Me.Text = Me.Text & "(EDIT)"
|
||||||
|
Case 2
|
||||||
|
Me.Text = Me.Text & "(Copy)"
|
||||||
|
Case Else
|
||||||
|
Me.Text = Me.Text & "(Unknown)"
|
||||||
|
End Select
|
||||||
|
|
||||||
|
'做為MainForm判斷是否重新LoadData的依據()
|
||||||
|
gReturnKeyValue = ""
|
||||||
|
|
||||||
|
' 2016 YF, wsENT.Url = LocalizeWebService(wsENT.Url.ToString)
|
||||||
|
' 2016 YF, wsENT.EnableDecompression = True
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then
|
||||||
|
SetCreateDate(Now)
|
||||||
|
SetCreator(gUserNo)
|
||||||
|
End If
|
||||||
|
If Not EditDataRow Is Nothing Then '修改 or Copy
|
||||||
|
txtSubcontractorNo.Text = EditDataRow.Item("SubcontractorNo").ToString
|
||||||
|
txtContactorName.Text = EditDataRow.Item("ContactorName").ToString
|
||||||
|
txtTelNo.Text = EditDataRow.Item("TelNo").ToString
|
||||||
|
txtQQno.Text = EditDataRow.Item("QQno").ToString
|
||||||
|
txtNickName.Text = EditDataRow.Item("NickName").ToString
|
||||||
|
txtAddress.Text = EditDataRow.Item("Address").ToString
|
||||||
|
txtEMail.Text = EditDataRow.Item("EMail").ToString
|
||||||
|
'txtDescription是RichTextBox(Control, 因為TextBox無法正常顯示多行換行的資料)
|
||||||
|
txtDescription.Text = EditDataRow.Item("Description").ToString
|
||||||
|
If DefMode = 1 Then
|
||||||
|
If (Not IsDBNull(EditDataRow("Creator"))) Then
|
||||||
|
SetCreateDate(Convert.ToDateTime(EditDataRow.Item("CreateDate")))
|
||||||
|
SetCreator(EditDataRow.Item("Creator").ToString)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
If DefMode = 0 Then 'Add
|
||||||
|
txtSubcontractorNo.Text = StudentNo
|
||||||
|
SetCreateDate(Now)
|
||||||
|
SetCreator(gUserNo)
|
||||||
|
ElseIf DefMode = 1 Then 'Edit
|
||||||
|
txtContactorName.ReadOnly = True
|
||||||
|
SetReviseDate(Now)
|
||||||
|
SetReviser(gUserNo)
|
||||||
|
intDataStamp = EditDataRow.Item("DataStamp")
|
||||||
|
End If
|
||||||
|
|
||||||
|
btnApplyEnabled = False
|
||||||
|
|
||||||
|
'語系切換
|
||||||
|
Call ExeChangeResource(Me, gLanguageMode)
|
||||||
|
ExeGroupControlPriv(Me, PrivFunNo)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub frmSubcontractorContDef_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Activated
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then
|
||||||
|
txtContactorName.Focus()
|
||||||
|
Else
|
||||||
|
txtTelNo.Focus()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overrides Sub btnConfirm_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
If funAddorEdit(sender) < 0 Then Exit Sub
|
||||||
|
|
||||||
|
Me.Close()
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overrides Sub btnClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
Me.Close()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overrides Sub btnApply_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
If funAddorEdit(sender) < 0 Then Exit Sub
|
||||||
|
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then
|
||||||
|
txtContactorName.Focus()
|
||||||
|
Else
|
||||||
|
txtTelNo.Focus()
|
||||||
|
End If
|
||||||
|
|
||||||
|
txtEMail.Text = ""
|
||||||
|
btnApplyEnabled = False
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#Region "Control KeyPress"
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorNo.Click
|
||||||
|
txtSubcontractorNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorNo.Enter
|
||||||
|
txtSubcontractorNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtSubcontractorNo.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorNo.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtContactorName_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtContactorName.Click
|
||||||
|
txtContactorName.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtContactorName_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtContactorName.Enter
|
||||||
|
txtContactorName.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtContactorName_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtContactorName.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtContactorName_Leave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtContactorName.Leave
|
||||||
|
If txtContactorName.Text <> "" And txtEMail.Text = "" Then
|
||||||
|
txtEMail.Text = txtContactorName.Text & "@"
|
||||||
|
End If
|
||||||
|
txtContactorName.Text = UCase(txtContactorName.Text)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtContactorName_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtContactorName.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTelNo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtTelNo.Click
|
||||||
|
txtTelNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTelNo_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtTelNo.Enter
|
||||||
|
txtTelNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTelNo_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtTelNo.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTelNo_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtTelNo.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtQQno_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtQQno.Click
|
||||||
|
txtQQno.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtQQno_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtQQno.Enter
|
||||||
|
txtQQno.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtQQno_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtQQno.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtQQno_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtQQno.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtNickName_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtNickName.Click
|
||||||
|
txtNickName.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtNickName_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtNickName.Enter
|
||||||
|
txtNickName.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtNickName_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtNickName.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtNickName_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtNickName.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtEMail_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtEMail.Click
|
||||||
|
txtEMail.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtEMail_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtEMail.Enter
|
||||||
|
txtEMail.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtEMail_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtEMail.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtEMail_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtEMail.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtAddress_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtAddress.Click
|
||||||
|
txtAddress.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtAddress_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtAddress.Enter
|
||||||
|
txtAddress.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtAddress_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtAddress.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtAddress_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtAddress.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtDescription.Click
|
||||||
|
txtDescription.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtDescription.Enter
|
||||||
|
txtDescription.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtDescription.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtDescription.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
#Region "Others"
|
||||||
|
|
||||||
|
Private Function funAddorEdit(sender As Object) As Integer
|
||||||
|
|
||||||
|
funAddorEdit = -1
|
||||||
|
|
||||||
|
'******************************************************************************
|
||||||
|
'1.基本檢查()
|
||||||
|
'******************************************************************************
|
||||||
|
If txtSubcontractorNo.Text = "" Then
|
||||||
|
iMESExceptionManager.ExceptionManager.iMESMsgBoxShowDialog(ChgTranslateName_Msg("0000-200001", "[%SubcontractorNo%]"), MsgBoxStyle.Exclamation, Me.Text)
|
||||||
|
txtSubcontractorNo.Focus()
|
||||||
|
Exit Function
|
||||||
|
End If
|
||||||
|
If txtContactorName.Text = "" Then
|
||||||
|
iMESExceptionManager.ExceptionManager.iMESMsgBoxShowDialog(ChgTranslateName_Msg("0000-200001", "[%ContactorName%]"), MsgBoxStyle.Exclamation, Me.Text)
|
||||||
|
txtContactorName.Focus()
|
||||||
|
Exit Function
|
||||||
|
End If
|
||||||
|
|
||||||
|
'******************************************************************************
|
||||||
|
'2.寫回資料庫()
|
||||||
|
'******************************************************************************
|
||||||
|
Dim XmlDoc As New XmlDocument
|
||||||
|
|
||||||
|
Try
|
||||||
|
strIdentity = CombineXMLIdentity(gComputerName, gUserNo, GetNow())
|
||||||
|
strParameter = CombineXMLParameter("subcontractorno", "SubcontractorNo", "String", CInput(txtSubcontractorNo.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("contactorname", "ContactorName", "String", CInput(txtContactorName.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("telno", "TelNo", "String", txtTelNo.Text, "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("QQno", "QQno", "String", txtQQno.Text, "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("NickName", "NickName", "String", CInput(txtNickName.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("address", "Address", "String", CInput(txtAddress.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("email", "EMail", "String", CInput(txtEMail.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("description", "Description", "String", CInput(txtDescription.Text), "")
|
||||||
|
|
||||||
|
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then 'Add or Copy
|
||||||
|
strParameter += CombineXMLParameter("creator", "Creator", "String", gUserNo, "")
|
||||||
|
InXml = CombineXMLRequest(strIdentity, strParameter)
|
||||||
|
' 2016 YF, OutXml = wsENT.AddSubcontractorCont(InXml)
|
||||||
|
OutXml = InvokeSrv("SXS.wsENT.AddSubcontractorCont", InXml)
|
||||||
|
|
||||||
|
Else 'Edit
|
||||||
|
' 增加Datastamp
|
||||||
|
strParameter += CombineXMLParameter("datastamp", "Datastamp", "Integer", intDataStamp, "")
|
||||||
|
InXml = CombineXMLRequest(strIdentity, strParameter)
|
||||||
|
' 2016 YF, OutXml = wsENT.EditSubcontractorCont(InXml)
|
||||||
|
OutXml = InvokeSrv("SXS.wsENT.EditSubcontractorCont", InXml)
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
XmlDoc.LoadXml(OutXml)
|
||||||
|
If ChkExecutionSuccess(XmlDoc) Then
|
||||||
|
gReturnKeyValue = txtContactorName.Text
|
||||||
|
|
||||||
|
funAddorEdit = 0
|
||||||
|
If sender.Equals(btnApply) Then
|
||||||
|
intDataStamp += 1
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
ExceptionManager.iMESShowDialog(GetExceptionCode(XmlDoc), GetExceptionSysMsg(XmlDoc), GetExceptionStack(XmlDoc))
|
||||||
|
End If
|
||||||
|
|
||||||
|
Catch ex As Exception
|
||||||
|
'MsgBox("Unexpected Error. Add or Edit ENT Subcontractor Contactor Failed!," & e1.Message, MsgBoxStyle.Exclamation)
|
||||||
|
ExceptionManager.iMESShowDialog(defWinErrCode, ex.Message, ex.StackTrace)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
XmlDoc = Nothing
|
||||||
|
|
||||||
|
End Function
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub frmSubcontractorContDef_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
|
||||||
|
' 2016 YF, If Not wsENT Is Nothing Then wsENT.Dispose()
|
||||||
|
End Sub
|
||||||
|
End Class
|
||||||
|
|
421
SRC/MESWin/SYS2/ET_Subcontractor21708/frmSubcontractorDef.vb
Normal file
421
SRC/MESWin/SYS2/ET_Subcontractor21708/frmSubcontractorDef.vb
Normal file
@ -0,0 +1,421 @@
|
|||||||
|
Imports iMESExceptionManager
|
||||||
|
|
||||||
|
Public Class frmSubcontractorDef
|
||||||
|
|
||||||
|
Inherits COM_Kit.frmDefTemplat
|
||||||
|
|
||||||
|
'//Public Variables
|
||||||
|
Public EditDataRow As DataRow
|
||||||
|
Public DefMode As Integer = 0 '0. ADD, 1.Edit, 2. Copy
|
||||||
|
Public PrivFunNo As String = defString
|
||||||
|
|
||||||
|
'//Web Service相關變數
|
||||||
|
' 2016 YF, Dim wsENT As New wsENT.wsENT
|
||||||
|
Dim InXml As String
|
||||||
|
Dim OutXml As String
|
||||||
|
|
||||||
|
Dim strIdentity As String
|
||||||
|
Dim strParameter As String
|
||||||
|
Dim intDataStamp As Integer '紀錄DataStamp
|
||||||
|
|
||||||
|
#Region " Windows Form Designer generated code "
|
||||||
|
|
||||||
|
Public Sub New()
|
||||||
|
MyBase.New()
|
||||||
|
|
||||||
|
'This call is required by the Windows Form Designer.
|
||||||
|
InitializeComponent()
|
||||||
|
|
||||||
|
'Add any initialization after the InitializeComponent() call
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Form overrides dispose to clean up the component list.
|
||||||
|
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||||
|
If disposing Then
|
||||||
|
If Not (components Is Nothing) Then
|
||||||
|
components.Dispose()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
MyBase.Dispose(disposing)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Required by the Windows Form Designer
|
||||||
|
Private components As System.ComponentModel.IContainer
|
||||||
|
|
||||||
|
'NOTE: The following procedure is required by the Windows Form Designer
|
||||||
|
'It can be modified using the Windows Form Designer.
|
||||||
|
'Do not modify it using the code editor.
|
||||||
|
Friend WithEvents txtDescription As System.Windows.Forms.RichTextBox
|
||||||
|
Friend WithEvents lblDescription As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblStudentNo As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblStudentName As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents gbxSubcontractorData As System.Windows.Forms.GroupBox
|
||||||
|
Friend WithEvents txtStudentNo As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtStudentName As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
|
||||||
|
Dim Appearance1 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance()
|
||||||
|
Dim Appearance2 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance()
|
||||||
|
Me.gbxSubcontractorData = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.txtDescription = New System.Windows.Forms.RichTextBox()
|
||||||
|
Me.lblDescription = New System.Windows.Forms.Label()
|
||||||
|
Me.lblStudentNo = New System.Windows.Forms.Label()
|
||||||
|
Me.lblStudentName = New System.Windows.Forms.Label()
|
||||||
|
Me.txtStudentNo = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtStudentName = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
CType(Me.gbxBasisData, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
Me.gbxSubcontractorData.SuspendLayout()
|
||||||
|
CType(Me.txtStudentNo, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtStudentName, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
Me.SuspendLayout()
|
||||||
|
'
|
||||||
|
'gbxBasisData
|
||||||
|
'
|
||||||
|
Me.gbxBasisData.Location = New System.Drawing.Point(12, 185)
|
||||||
|
Me.gbxBasisData.Size = New System.Drawing.Size(479, 70)
|
||||||
|
'
|
||||||
|
'btnApply
|
||||||
|
'
|
||||||
|
Me.btnApply.Location = New System.Drawing.Point(403, 264)
|
||||||
|
'
|
||||||
|
'btnConfirm
|
||||||
|
'
|
||||||
|
Me.btnConfirm.Location = New System.Drawing.Point(215, 264)
|
||||||
|
'
|
||||||
|
'btnClose
|
||||||
|
'
|
||||||
|
Me.btnClose.Location = New System.Drawing.Point(309, 264)
|
||||||
|
'
|
||||||
|
'gbxSubcontractorData
|
||||||
|
'
|
||||||
|
Me.gbxSubcontractorData.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.txtDescription)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.lblDescription)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.lblStudentNo)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.lblStudentName)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.txtStudentNo)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.txtStudentName)
|
||||||
|
Me.gbxSubcontractorData.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.gbxSubcontractorData.Location = New System.Drawing.Point(12, 8)
|
||||||
|
Me.gbxSubcontractorData.Name = "gbxSubcontractorData"
|
||||||
|
Me.gbxSubcontractorData.Size = New System.Drawing.Size(479, 169)
|
||||||
|
Me.gbxSubcontractorData.TabIndex = 7
|
||||||
|
Me.gbxSubcontractorData.TabStop = False
|
||||||
|
Me.gbxSubcontractorData.Text = "Subcontractor Data"
|
||||||
|
'
|
||||||
|
'txtDescription
|
||||||
|
'
|
||||||
|
Me.txtDescription.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.txtDescription.Location = New System.Drawing.Point(128, 86)
|
||||||
|
Me.txtDescription.Name = "txtDescription"
|
||||||
|
Me.txtDescription.Size = New System.Drawing.Size(334, 67)
|
||||||
|
Me.txtDescription.TabIndex = 2
|
||||||
|
Me.txtDescription.Text = ""
|
||||||
|
'
|
||||||
|
'lblDescription
|
||||||
|
'
|
||||||
|
Me.lblDescription.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblDescription.Location = New System.Drawing.Point(56, 88)
|
||||||
|
Me.lblDescription.Name = "lblDescription"
|
||||||
|
Me.lblDescription.Size = New System.Drawing.Size(64, 14)
|
||||||
|
Me.lblDescription.TabIndex = 13
|
||||||
|
Me.lblDescription.Text = "Description"
|
||||||
|
Me.lblDescription.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblStudentNo
|
||||||
|
'
|
||||||
|
Me.lblStudentNo.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblStudentNo.Location = New System.Drawing.Point(24, 24)
|
||||||
|
Me.lblStudentNo.Name = "lblStudentNo"
|
||||||
|
Me.lblStudentNo.Size = New System.Drawing.Size(96, 32)
|
||||||
|
Me.lblStudentNo.TabIndex = 5
|
||||||
|
Me.lblStudentNo.Text = "Student No"
|
||||||
|
Me.lblStudentNo.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblStudentName
|
||||||
|
'
|
||||||
|
Me.lblStudentName.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblStudentName.Location = New System.Drawing.Point(8, 56)
|
||||||
|
Me.lblStudentName.Name = "lblStudentName"
|
||||||
|
Me.lblStudentName.Size = New System.Drawing.Size(112, 32)
|
||||||
|
Me.lblStudentName.TabIndex = 9
|
||||||
|
Me.lblStudentName.Text = "Student Name"
|
||||||
|
Me.lblStudentName.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'txtStudentNo
|
||||||
|
'
|
||||||
|
Appearance1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtStudentNo.Appearance = Appearance1
|
||||||
|
Me.txtStudentNo.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtStudentNo.Location = New System.Drawing.Point(128, 24)
|
||||||
|
Me.txtStudentNo.Name = "txtStudentNo"
|
||||||
|
Me.txtStudentNo.Size = New System.Drawing.Size(152, 22)
|
||||||
|
Me.txtStudentNo.TabIndex = 0
|
||||||
|
'
|
||||||
|
'txtStudentName
|
||||||
|
'
|
||||||
|
Appearance2.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtStudentName.Appearance = Appearance2
|
||||||
|
Me.txtStudentName.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtStudentName.Location = New System.Drawing.Point(128, 55)
|
||||||
|
Me.txtStudentName.Name = "txtStudentName"
|
||||||
|
Me.txtStudentName.Size = New System.Drawing.Size(334, 22)
|
||||||
|
Me.txtStudentName.TabIndex = 1
|
||||||
|
'
|
||||||
|
'frmSubcontractorDef
|
||||||
|
'
|
||||||
|
Me.ClientSize = New System.Drawing.Size(503, 309)
|
||||||
|
Me.Controls.Add(Me.gbxSubcontractorData)
|
||||||
|
Me.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.Name = "frmSubcontractorDef"
|
||||||
|
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
|
||||||
|
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||||
|
Me.Text = "ENT Subcontractor Define"
|
||||||
|
Me.Controls.SetChildIndex(Me.btnClose, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.btnConfirm, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.btnApply, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.gbxBasisData, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.gbxSubcontractorData, 0)
|
||||||
|
CType(Me.gbxBasisData, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
Me.gbxSubcontractorData.ResumeLayout(False)
|
||||||
|
Me.gbxSubcontractorData.PerformLayout()
|
||||||
|
CType(Me.txtStudentNo, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtStudentName, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
Me.ResumeLayout(False)
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
Private Sub frmSubcontractorDef_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
Select Case DefMode
|
||||||
|
Case 0
|
||||||
|
Me.Text = Me.Text & "(ADD)"
|
||||||
|
Case 1
|
||||||
|
Me.Text = Me.Text & "(EDIT)"
|
||||||
|
Case 2
|
||||||
|
Me.Text = Me.Text & "(Copy)"
|
||||||
|
Case Else
|
||||||
|
Me.Text = Me.Text & "(Unknown)"
|
||||||
|
End Select
|
||||||
|
|
||||||
|
'做為MainForm判斷是否重新LoadData的依據
|
||||||
|
gReturnKeyValue = ""
|
||||||
|
|
||||||
|
' 2016 YF, wsENT.Url = LocalizeWebService(wsENT.Url.ToString)
|
||||||
|
' 2016 YF, wsENT.EnableDecompression = True
|
||||||
|
|
||||||
|
If Not EditDataRow Is Nothing Then
|
||||||
|
txtStudentNo.Text = EditDataRow.Item("StudentNo").ToString
|
||||||
|
txtStudentName.Text = EditDataRow.Item("StudentName").ToString
|
||||||
|
'txtDescription是RichTextBox Control,因為TextBox無法正常顯示多行換行的資料
|
||||||
|
txtDescription.Text = EditDataRow.Item("Description").ToString
|
||||||
|
End If
|
||||||
|
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then 'Add or Copy
|
||||||
|
SetCreator(gUserNo)
|
||||||
|
SetCreateDate(Now)
|
||||||
|
ElseIf DefMode = 1 Then 'Edit
|
||||||
|
txtStudentNo.ReadOnly = True
|
||||||
|
SetCreator(EditDataRow.Item("Creator").ToString)
|
||||||
|
SetCreateDate(Convert.ToDateTime(EditDataRow.Item("CreateDate")))
|
||||||
|
SetReviser(gUserNo)
|
||||||
|
SetReviseDate(Now)
|
||||||
|
intDataStamp = EditDataRow.Item("DataStamp")
|
||||||
|
End If
|
||||||
|
|
||||||
|
btnApplyEnabled = False
|
||||||
|
|
||||||
|
'語系切換
|
||||||
|
Call ExeChangeResource(Me, gLanguageMode)
|
||||||
|
ExeGroupControlPriv(Me, PrivFunNo)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub frmSubcontractorDef_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Activated
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then
|
||||||
|
txtStudentNo.Focus()
|
||||||
|
Else
|
||||||
|
txtStudentName.Focus()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overrides Sub btnConfirm_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
If funAddorEdit(sender) < 0 Then Exit Sub
|
||||||
|
|
||||||
|
Me.Close()
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overrides Sub btnClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
Me.Close()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overrides Sub btnApply_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
If funAddorEdit(sender) < 0 Then Exit Sub
|
||||||
|
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then
|
||||||
|
txtStudentNo.Focus()
|
||||||
|
Else
|
||||||
|
txtStudentName.Focus()
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
btnApplyEnabled = False
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub frmSubcontractorDef_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
|
||||||
|
' 2016 YF, If Not wsENT Is Nothing Then wsENT.Dispose()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#Region "Control KeyPress"
|
||||||
|
|
||||||
|
Private Sub txtStudentNo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtStudentNo.Click
|
||||||
|
txtStudentNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtStudentNo_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtStudentNo.Enter
|
||||||
|
txtStudentNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtStudentNo_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtStudentNo.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtStudentNo_Leave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtStudentNo.Leave
|
||||||
|
txtStudentNo.Text = UCase(txtStudentNo.Text)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtStudentNo_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtStudentNo.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtStudentName_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtStudentName.Click
|
||||||
|
txtStudentName.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtStudentName_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtStudentName.Enter
|
||||||
|
txtStudentName.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtStudentName_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtStudentName.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtStudentName_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtStudentName.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtDescription.Click
|
||||||
|
txtDescription.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtDescription.Enter
|
||||||
|
txtDescription.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtDescription.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
#Region "Others"
|
||||||
|
|
||||||
|
Private Function funAddorEdit(sender As Object) As Integer
|
||||||
|
|
||||||
|
funAddorEdit = -1
|
||||||
|
|
||||||
|
'******************************************************************************
|
||||||
|
'1.基本檢查
|
||||||
|
'******************************************************************************
|
||||||
|
If txtStudentNo.Text = "" Then
|
||||||
|
iMESExceptionManager.ExceptionManager.iMESMsgBoxShowDialog(ChgTranslateName_Msg("0000-200001", "[%StudentNo%]"), MsgBoxStyle.Exclamation, Me.Text)
|
||||||
|
txtStudentNo.Focus()
|
||||||
|
Exit Function
|
||||||
|
End If
|
||||||
|
|
||||||
|
If txtStudentName.Text = "" Then
|
||||||
|
iMESExceptionManager.ExceptionManager.iMESMsgBoxShowDialog(ChgTranslateName_Msg("0000-200001", "[%StudentName%]"), MsgBoxStyle.Exclamation, Me.Text)
|
||||||
|
txtStudentName.Focus()
|
||||||
|
Exit Function
|
||||||
|
End If
|
||||||
|
|
||||||
|
'2.
|
||||||
|
'******************************************************************************
|
||||||
|
'寫回資料庫
|
||||||
|
'******************************************************************************
|
||||||
|
Dim XmlDoc As New XmlDocument
|
||||||
|
|
||||||
|
Try
|
||||||
|
strIdentity = CombineXMLIdentity(gComputerName, gUserNo, GetNow())
|
||||||
|
strParameter = CombineXMLParameter("StudentNo", "StudentNo", "String", CInput(txtStudentNo.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("StudentName", "StudentName", "String", CInput(txtStudentName.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("description", "Description", "String", CInput(txtDescription.Text), "")
|
||||||
|
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then 'Add or Copy
|
||||||
|
strParameter = strParameter & CombineXMLParameter("creator", "Creator", "String", gUserNo, "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("createdate", "CreateDate", "DateTime", Format(Now, "yyyy/MM/dd HH:mm:ss"), "")
|
||||||
|
InXml = CombineXMLRequest(strIdentity, strParameter)
|
||||||
|
|
||||||
|
' 2016 YF, OutXml = wsENT.AddSubcontractor(InXml)
|
||||||
|
OutXml = InvokeSrv("wsENT.AddSubcontractor", InXml)
|
||||||
|
|
||||||
|
Else
|
||||||
|
'修改
|
||||||
|
strParameter = strParameter & CombineXMLParameter("issuestate", "IssueState", "String", EditDataRow.Item("IssueState").ToString, "")
|
||||||
|
' 增加Datastamp
|
||||||
|
strParameter += CombineXMLParameter("datastamp", "Datastamp", "Integer", intDataStamp, "")
|
||||||
|
InXml = CombineXMLRequest(strIdentity, strParameter)
|
||||||
|
|
||||||
|
' 2016 YF, OutXml = wsENT.EditSubcontractor(InXml)
|
||||||
|
OutXml = InvokeSrv("wsENT.EditSubcontractor", InXml)
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
XmlDoc.LoadXml(OutXml)
|
||||||
|
If ChkExecutionSuccess(XmlDoc) Then
|
||||||
|
gReturnKeyValue = txtStudentNo.Text
|
||||||
|
|
||||||
|
funAddorEdit = 0
|
||||||
|
If sender.Equals(btnApply) Then
|
||||||
|
intDataStamp += 1
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
ExceptionManager.iMESShowDialog(GetExceptionCode(XmlDoc), GetExceptionSysMsg(XmlDoc), GetExceptionStack(XmlDoc))
|
||||||
|
End If
|
||||||
|
|
||||||
|
Catch ex As Exception
|
||||||
|
'MsgBox("Unexpected Error. Add or Edit ENT Subcontractor Failed!," & e1.Message, MsgBoxStyle.Exclamation)
|
||||||
|
ExceptionManager.iMESShowDialog(defWinErrCode, ex.Message, ex.StackTrace)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
XmlDoc = Nothing
|
||||||
|
|
||||||
|
End Function
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
End Class
|
||||||
|
|
31
SRC/MESWin/SYS4/21706/ET_Subcontractor_21706.sln
Normal file
31
SRC/MESWin/SYS4/21706/ET_Subcontractor_21706.sln
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.34407.143
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ET_Subcontractor_21706", "ET_Subcontractor_21706.vbproj", "{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}"
|
||||||
|
EndProject
|
||||||
|
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Test", "..\..\Test\Test.vbproj", "{C4A48E3F-38E4-4E88-A47D-FA5510686E57}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|x86 = Debug|x86
|
||||||
|
Release|x86 = Release|x86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}.Debug|x86.ActiveCfg = Debug|x86
|
||||||
|
{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}.Debug|x86.Build.0 = Debug|x86
|
||||||
|
{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}.Release|x86.ActiveCfg = Release|x86
|
||||||
|
{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}.Release|x86.Build.0 = Release|x86
|
||||||
|
{C4A48E3F-38E4-4E88-A47D-FA5510686E57}.Debug|x86.ActiveCfg = Debug|x86
|
||||||
|
{C4A48E3F-38E4-4E88-A47D-FA5510686E57}.Debug|x86.Build.0 = Debug|x86
|
||||||
|
{C4A48E3F-38E4-4E88-A47D-FA5510686E57}.Release|x86.ActiveCfg = Release|x86
|
||||||
|
{C4A48E3F-38E4-4E88-A47D-FA5510686E57}.Release|x86.Build.0 = Release|x86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {90AD5AEC-CF5E-4F34-BF22-34D3D94B3E15}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
194
SRC/MESWin/SYS4/21706/ET_Subcontractor_21706.vbproj
Normal file
194
SRC/MESWin/SYS4/21706/ET_Subcontractor_21706.vbproj
Normal file
@ -0,0 +1,194 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||||
|
<ProjectGuid>{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<RootNamespace>ET_Subcontractor_21706</RootNamespace>
|
||||||
|
<AssemblyName>ET_Subcontractor_21706</AssemblyName>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<MyType>Windows</MyType>
|
||||||
|
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
|
<SccProjectName>SAK</SccProjectName>
|
||||||
|
<SccLocalPath>SAK</SccLocalPath>
|
||||||
|
<SccAuxPath>SAK</SccAuxPath>
|
||||||
|
<SccProvider>SAK</SccProvider>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionExplicit>On</OptionExplicit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionCompare>Binary</OptionCompare>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionStrict>Off</OptionStrict>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionInfer>On</OptionInfer>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DefineDebug>true</DefineDebug>
|
||||||
|
<DefineTrace>true</DefineTrace>
|
||||||
|
<OutputPath>..\..\..\MESClient\</OutputPath>
|
||||||
|
<DocumentationFile>ET_Subcontractor_21706.xml</DocumentationFile>
|
||||||
|
<WarningLevel>0</WarningLevel>
|
||||||
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
<Prefer32Bit>false</Prefer32Bit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||||
|
<DefineTrace>true</DefineTrace>
|
||||||
|
<OutputPath>..\..\..\MESClient\</OutputPath>
|
||||||
|
<DocumentationFile>ET_Subcontractor_21706.xml</DocumentationFile>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<WarningLevel>0</WarningLevel>
|
||||||
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
<Prefer32Bit>false</Prefer32Bit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<SignAssembly>true</SignAssembly>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<AssemblyOriginatorKeyFile>iMES.snk</AssemblyOriginatorKeyFile>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="Infragistics4.Win.v19.1, Version=19.1.20191.82, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>C:\Program Files (x86)\Infragistics\2019.1\Windows Forms\CLR4.0\Bin\Infragistics4.Win.v19.1.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Infragistics4.Win.UltraWinGrid.v19.1, Version=19.1.20191.82, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>C:\Program Files (x86)\Infragistics\2019.1\Windows Forms\CLR4.0\Bin\Infragistics4.Win.UltraWinGrid.v19.1.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Infragistics4.Win.UltraWinEditors.v19.1, Version=19.1.20191.82, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>C:\Program Files (x86)\Infragistics\2019.1\Windows Forms\CLR4.0\Bin\Infragistics4.Win.UltraWinEditors.v19.1.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Infragistics4.Win.Misc.v19.1, Version=19.1.20191.82, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>C:\Program Files (x86)\Infragistics\2019.1\Windows Forms\CLR4.0\Bin\Infragistics4.Win.Misc.v19.1.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Infragistics4.Shared.v19.1, Version=19.1.20191.82, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>C:\Program Files (x86)\Infragistics\2019.1\Windows Forms\CLR4.0\Bin\Infragistics4.Shared.v19.1.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="COM_Kit">
|
||||||
|
<HintPath>..\..\..\MESClient\COM_Kit.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="iMESExceptionManager">
|
||||||
|
<HintPath>..\..\..\MES_C_DLL\iMESExceptionManager.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="iMESUltraGrid">
|
||||||
|
<HintPath>..\..\..\MES_C_DLL\iMESUltraGrid.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Drawing" />
|
||||||
|
<Reference Include="System.Windows.Forms" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Import Include="COM_Kit.clsGlobalVariables" />
|
||||||
|
<Import Include="COM_Kit.clsKit" />
|
||||||
|
<Import Include="Microsoft.VisualBasic" />
|
||||||
|
<Import Include="System" />
|
||||||
|
<Import Include="System.Collections" />
|
||||||
|
<Import Include="System.Collections.Generic" />
|
||||||
|
<Import Include="System.Data" />
|
||||||
|
<Import Include="System.Diagnostics" />
|
||||||
|
<Import Include="System.Drawing" />
|
||||||
|
<Import Include="System.Linq" />
|
||||||
|
<Import Include="System.Windows.Forms" />
|
||||||
|
<Import Include="System.Xml" />
|
||||||
|
<Import Include="System.Xml.Linq" />
|
||||||
|
<Import Include="System.Threading.Tasks" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="..\..\shared file\modConstant.vb">
|
||||||
|
<Link>modConstant.vb</Link>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="frmSubcontractor21706.vb">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="frmSubcontractorContDef.vb">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="frmSubcontractorDef.vb">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||||
|
<Compile Include="My Project\Application.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Application.myapp</DependentUpon>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\Resources.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\Settings.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Settings.settings</DependentUpon>
|
||||||
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
|
</Compile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<EmbeddedResource Include="frmSubcontractor21706.resx">
|
||||||
|
<DependentUpon>frmSubcontractor21706.vb</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="frmSubcontractorContDef.resx">
|
||||||
|
<DependentUpon>frmSubcontractorContDef.vb</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="frmSubcontractorDef.resx">
|
||||||
|
<DependentUpon>frmSubcontractorDef.vb</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="My Project\licenses.licx" />
|
||||||
|
<EmbeddedResource Include="My Project\Resources.resx">
|
||||||
|
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
||||||
|
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</EmbeddedResource>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="iMES.snk" />
|
||||||
|
<None Include="My Project\Application.myapp">
|
||||||
|
<Generator>MyApplicationCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Application.Designer.vb</LastGenOutput>
|
||||||
|
</None>
|
||||||
|
<None Include="My Project\Settings.settings">
|
||||||
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
|
<CustomToolNamespace>My</CustomToolNamespace>
|
||||||
|
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
<Import Project="..\..\shared file\MakeVersion.targets" Condition="exists('..\..\shared file\MakeVersion.targets')" />
|
||||||
|
</Project>
|
@ -1,10 +1,10 @@
|
|||||||
'------------------------------------------------------------------------------
|
'------------------------------------------------------------------------------
|
||||||
' <auto-generated>
|
' <auto-generated>
|
||||||
' 這段程式碼是由工具產生的。
|
' 此代码由工具生成。
|
||||||
' 執行階段版本:4.0.30319.42000
|
' 运行时版本:4.0.30319.42000
|
||||||
'
|
'
|
||||||
' 對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
|
' 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
' 變更將會遺失。
|
' 重新生成代码,这些更改将会丢失。
|
||||||
' </auto-generated>
|
' </auto-generated>
|
||||||
'------------------------------------------------------------------------------
|
'------------------------------------------------------------------------------
|
||||||
|
|
63
SRC/MESWin/SYS4/21706/My Project/Resources.Designer.vb
generated
Normal file
63
SRC/MESWin/SYS4/21706/My Project/Resources.Designer.vb
generated
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <auto-generated>
|
||||||
|
' 此代码由工具生成。
|
||||||
|
' 运行时版本:4.0.30319.42000
|
||||||
|
'
|
||||||
|
' 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
' 重新生成代码,这些更改将会丢失。
|
||||||
|
' </auto-generated>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
|
Imports System
|
||||||
|
|
||||||
|
Namespace My.Resources
|
||||||
|
|
||||||
|
'此类是由 StronglyTypedResourceBuilder
|
||||||
|
'类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||||
|
'若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||||
|
'(以 /str 作为命令选项),或重新生成 VS 项目。
|
||||||
|
'''<summary>
|
||||||
|
''' 一个强类型的资源类,用于查找本地化的字符串等。
|
||||||
|
'''</summary>
|
||||||
|
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0"), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
|
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
|
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
||||||
|
Friend Module Resources
|
||||||
|
|
||||||
|
Private resourceMan As Global.System.Resources.ResourceManager
|
||||||
|
|
||||||
|
Private resourceCulture As Global.System.Globalization.CultureInfo
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' 返回此类使用的缓存的 ResourceManager 实例。
|
||||||
|
'''</summary>
|
||||||
|
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
||||||
|
Get
|
||||||
|
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
||||||
|
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("ET_Subcontractor_21706.Resources", GetType(Resources).Assembly)
|
||||||
|
resourceMan = temp
|
||||||
|
End If
|
||||||
|
Return resourceMan
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' 重写当前线程的 CurrentUICulture 属性,对
|
||||||
|
''' 使用此强类型资源类的所有资源查找执行重写。
|
||||||
|
'''</summary>
|
||||||
|
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Friend Property Culture() As Global.System.Globalization.CultureInfo
|
||||||
|
Get
|
||||||
|
Return resourceCulture
|
||||||
|
End Get
|
||||||
|
Set
|
||||||
|
resourceCulture = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
End Module
|
||||||
|
End Namespace
|
73
SRC/MESWin/SYS4/21706/My Project/Settings.Designer.vb
generated
Normal file
73
SRC/MESWin/SYS4/21706/My Project/Settings.Designer.vb
generated
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <auto-generated>
|
||||||
|
' 此代码由工具生成。
|
||||||
|
' 运行时版本:4.0.30319.42000
|
||||||
|
'
|
||||||
|
' 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
' 重新生成代码,这些更改将会丢失。
|
||||||
|
' </auto-generated>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
|
|
||||||
|
Namespace My
|
||||||
|
|
||||||
|
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0"), _
|
||||||
|
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Partial Friend NotInheritable Class MySettings
|
||||||
|
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||||
|
|
||||||
|
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
|
||||||
|
|
||||||
|
#Region "My.Settings 自动保存功能"
|
||||||
|
#If _MyType = "WindowsForms" Then
|
||||||
|
Private Shared addedHandler As Boolean
|
||||||
|
|
||||||
|
Private Shared addedHandlerLockObject As New Object
|
||||||
|
|
||||||
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Private Shared Sub AutoSaveSettings(sender As Global.System.Object, e As Global.System.EventArgs)
|
||||||
|
If My.Application.SaveMySettingsOnExit Then
|
||||||
|
My.Settings.Save()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
#End If
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
Public Shared ReadOnly Property [Default]() As MySettings
|
||||||
|
Get
|
||||||
|
|
||||||
|
#If _MyType = "WindowsForms" Then
|
||||||
|
If Not addedHandler Then
|
||||||
|
SyncLock addedHandlerLockObject
|
||||||
|
If Not addedHandler Then
|
||||||
|
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
||||||
|
addedHandler = True
|
||||||
|
End If
|
||||||
|
End SyncLock
|
||||||
|
End If
|
||||||
|
#End If
|
||||||
|
Return defaultInstance
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
End Class
|
||||||
|
End Namespace
|
||||||
|
|
||||||
|
Namespace My
|
||||||
|
|
||||||
|
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
|
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
||||||
|
Friend Module MySettingsProperty
|
||||||
|
|
||||||
|
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
||||||
|
Friend ReadOnly Property Settings() As Global.ET_Subcontractor_21706.My.MySettings
|
||||||
|
Get
|
||||||
|
Return Global.ET_Subcontractor_21706.My.MySettings.Default
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
End Module
|
||||||
|
End Namespace
|
5
SRC/MESWin/SYS4/21706/frmDemo21706.Designer.vb
generated
Normal file
5
SRC/MESWin/SYS4/21706/frmDemo21706.Designer.vb
generated
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
|
||||||
|
Partial Class frmDemo21706
|
||||||
|
|
||||||
|
|
||||||
|
End Class
|
3
SRC/MESWin/SYS4/21706/frmDemo21706.vb
Normal file
3
SRC/MESWin/SYS4/21706/frmDemo21706.vb
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Public Class frmDemo21706
|
||||||
|
|
||||||
|
End Class
|
1150
SRC/MESWin/SYS4/21706/frmSubcontractor21706.vb
Normal file
1150
SRC/MESWin/SYS4/21706/frmSubcontractor21706.vb
Normal file
File diff suppressed because it is too large
Load Diff
688
SRC/MESWin/SYS4/21706/frmSubcontractorContDef.vb
Normal file
688
SRC/MESWin/SYS4/21706/frmSubcontractorContDef.vb
Normal file
@ -0,0 +1,688 @@
|
|||||||
|
Imports iMESExceptionManager
|
||||||
|
|
||||||
|
Public Class frmSubcontractorContDef
|
||||||
|
|
||||||
|
Inherits COM_Kit.frmDefTemplat
|
||||||
|
|
||||||
|
'//Public Variables
|
||||||
|
Public EditDataRow As DataRow
|
||||||
|
Public DefMode As Integer = 0 '0. ADD, 1.Edit, 2. Copy
|
||||||
|
|
||||||
|
Public SubcontractorNo As String = defString
|
||||||
|
Public PrivFunNo As String = defString
|
||||||
|
|
||||||
|
'//Web Service相關變數
|
||||||
|
' 2016 YF, Dim wsENT As New wsENT.wsENT
|
||||||
|
Dim InXml As String
|
||||||
|
Dim OutXml As String
|
||||||
|
|
||||||
|
Dim strIdentity As String
|
||||||
|
Dim strParameter As String
|
||||||
|
Friend WithEvents lblNote21706 As Label
|
||||||
|
Friend WithEvents txtNote21706 As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Dim intDataStamp As Integer '紀錄DataStamp
|
||||||
|
|
||||||
|
#Region " Windows Form Designer generated code "
|
||||||
|
|
||||||
|
Public Sub New()
|
||||||
|
MyBase.New()
|
||||||
|
|
||||||
|
'This call is required by the Windows Form Designer.
|
||||||
|
InitializeComponent()
|
||||||
|
|
||||||
|
'Add any initialization after the InitializeComponent() call
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Form overrides dispose to clean up the component list.
|
||||||
|
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||||
|
If disposing Then
|
||||||
|
If Not (components Is Nothing) Then
|
||||||
|
components.Dispose()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
MyBase.Dispose(disposing)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Required by the Windows Form Designer
|
||||||
|
Private components As System.ComponentModel.IContainer
|
||||||
|
|
||||||
|
'NOTE: The following procedure is required by the Windows Form Designer
|
||||||
|
'It can be modified using the Windows Form Designer.
|
||||||
|
'Do not modify it using the code editor.
|
||||||
|
Friend WithEvents txtDescription As System.Windows.Forms.RichTextBox
|
||||||
|
Friend WithEvents lblAddress As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblEMail As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblTitle As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblFaxNo As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblTelNo As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblDescription As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblContactorName As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblSubcontractorNo As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents gbxSubcontractorContData As System.Windows.Forms.GroupBox
|
||||||
|
Friend WithEvents txtSubcontractorNo As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtContactorName As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtFaxNo As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtTelNo As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtEMail As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtTitle As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtAddress As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
|
||||||
|
Dim Appearance1 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance()
|
||||||
|
Me.gbxSubcontractorContData = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.lblNote21706 = New System.Windows.Forms.Label()
|
||||||
|
Me.txtNote21706 = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtAddress = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtEMail = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtTitle = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtFaxNo = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.lblAddress = New System.Windows.Forms.Label()
|
||||||
|
Me.lblEMail = New System.Windows.Forms.Label()
|
||||||
|
Me.lblTitle = New System.Windows.Forms.Label()
|
||||||
|
Me.lblFaxNo = New System.Windows.Forms.Label()
|
||||||
|
Me.lblTelNo = New System.Windows.Forms.Label()
|
||||||
|
Me.txtDescription = New System.Windows.Forms.RichTextBox()
|
||||||
|
Me.lblDescription = New System.Windows.Forms.Label()
|
||||||
|
Me.lblSubcontractorNo = New System.Windows.Forms.Label()
|
||||||
|
Me.lblContactorName = New System.Windows.Forms.Label()
|
||||||
|
Me.txtSubcontractorNo = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtContactorName = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtTelNo = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
CType(Me.gbxBasisData, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
Me.gbxSubcontractorContData.SuspendLayout()
|
||||||
|
CType(Me.txtNote21706, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtAddress, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtEMail, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtTitle, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtFaxNo, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtSubcontractorNo, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtContactorName, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtTelNo, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
Me.SuspendLayout()
|
||||||
|
'
|
||||||
|
'gbxBasisData
|
||||||
|
'
|
||||||
|
Me.gbxBasisData.Location = New System.Drawing.Point(12, 354)
|
||||||
|
Me.gbxBasisData.Size = New System.Drawing.Size(476, 70)
|
||||||
|
'
|
||||||
|
'btnApply
|
||||||
|
'
|
||||||
|
Me.btnApply.Location = New System.Drawing.Point(400, 433)
|
||||||
|
'
|
||||||
|
'btnConfirm
|
||||||
|
'
|
||||||
|
Me.btnConfirm.Location = New System.Drawing.Point(212, 433)
|
||||||
|
'
|
||||||
|
'btnClose
|
||||||
|
'
|
||||||
|
Me.btnClose.Location = New System.Drawing.Point(306, 433)
|
||||||
|
'
|
||||||
|
'gbxSubcontractorContData
|
||||||
|
'
|
||||||
|
Me.gbxSubcontractorContData.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblNote21706)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtNote21706)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtAddress)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtEMail)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtTitle)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtFaxNo)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblAddress)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblEMail)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblTitle)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblFaxNo)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblTelNo)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtDescription)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblDescription)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblSubcontractorNo)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblContactorName)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtSubcontractorNo)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtContactorName)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtTelNo)
|
||||||
|
Me.gbxSubcontractorContData.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.gbxSubcontractorContData.Location = New System.Drawing.Point(15, 8)
|
||||||
|
Me.gbxSubcontractorContData.Name = "gbxSubcontractorContData"
|
||||||
|
Me.gbxSubcontractorContData.Size = New System.Drawing.Size(473, 338)
|
||||||
|
Me.gbxSubcontractorContData.TabIndex = 0
|
||||||
|
Me.gbxSubcontractorContData.TabStop = False
|
||||||
|
Me.gbxSubcontractorContData.Text = "ENT Subcontractor Contactor Data"
|
||||||
|
'
|
||||||
|
'lblNote21706
|
||||||
|
'
|
||||||
|
Me.lblNote21706.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblNote21706.Location = New System.Drawing.Point(24, 302)
|
||||||
|
Me.lblNote21706.Name = "lblNote21706"
|
||||||
|
Me.lblNote21706.Size = New System.Drawing.Size(86, 14)
|
||||||
|
Me.lblNote21706.TabIndex = 17
|
||||||
|
Me.lblNote21706.Text = "Note 21706"
|
||||||
|
Me.lblNote21706.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'txtNote21706
|
||||||
|
'
|
||||||
|
Me.txtNote21706.Location = New System.Drawing.Point(120, 298)
|
||||||
|
Me.txtNote21706.Name = "txtNote21706"
|
||||||
|
Me.txtNote21706.Size = New System.Drawing.Size(114, 22)
|
||||||
|
Me.txtNote21706.TabIndex = 16
|
||||||
|
'
|
||||||
|
'txtAddress
|
||||||
|
'
|
||||||
|
Me.txtAddress.Location = New System.Drawing.Point(120, 152)
|
||||||
|
Me.txtAddress.Name = "txtAddress"
|
||||||
|
Me.txtAddress.Size = New System.Drawing.Size(336, 22)
|
||||||
|
Me.txtAddress.TabIndex = 13
|
||||||
|
'
|
||||||
|
'txtEMail
|
||||||
|
'
|
||||||
|
Me.txtEMail.Location = New System.Drawing.Point(320, 120)
|
||||||
|
Me.txtEMail.Name = "txtEMail"
|
||||||
|
Me.txtEMail.Size = New System.Drawing.Size(136, 22)
|
||||||
|
Me.txtEMail.TabIndex = 11
|
||||||
|
'
|
||||||
|
'txtTitle
|
||||||
|
'
|
||||||
|
Me.txtTitle.Location = New System.Drawing.Point(120, 120)
|
||||||
|
Me.txtTitle.Name = "txtTitle"
|
||||||
|
Me.txtTitle.Size = New System.Drawing.Size(114, 22)
|
||||||
|
Me.txtTitle.TabIndex = 9
|
||||||
|
'
|
||||||
|
'txtFaxNo
|
||||||
|
'
|
||||||
|
Me.txtFaxNo.Location = New System.Drawing.Point(320, 88)
|
||||||
|
Me.txtFaxNo.Name = "txtFaxNo"
|
||||||
|
Me.txtFaxNo.Size = New System.Drawing.Size(136, 22)
|
||||||
|
Me.txtFaxNo.TabIndex = 7
|
||||||
|
'
|
||||||
|
'lblAddress
|
||||||
|
'
|
||||||
|
Me.lblAddress.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblAddress.Location = New System.Drawing.Point(24, 154)
|
||||||
|
Me.lblAddress.Name = "lblAddress"
|
||||||
|
Me.lblAddress.Size = New System.Drawing.Size(86, 14)
|
||||||
|
Me.lblAddress.TabIndex = 12
|
||||||
|
Me.lblAddress.Text = "Address"
|
||||||
|
Me.lblAddress.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblEMail
|
||||||
|
'
|
||||||
|
Me.lblEMail.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblEMail.Location = New System.Drawing.Point(248, 123)
|
||||||
|
Me.lblEMail.Name = "lblEMail"
|
||||||
|
Me.lblEMail.Size = New System.Drawing.Size(64, 14)
|
||||||
|
Me.lblEMail.TabIndex = 10
|
||||||
|
Me.lblEMail.Text = "EMail"
|
||||||
|
Me.lblEMail.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblTitle
|
||||||
|
'
|
||||||
|
Me.lblTitle.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblTitle.Location = New System.Drawing.Point(24, 123)
|
||||||
|
Me.lblTitle.Name = "lblTitle"
|
||||||
|
Me.lblTitle.Size = New System.Drawing.Size(86, 14)
|
||||||
|
Me.lblTitle.TabIndex = 8
|
||||||
|
Me.lblTitle.Text = "Title"
|
||||||
|
Me.lblTitle.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblFaxNo
|
||||||
|
'
|
||||||
|
Me.lblFaxNo.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblFaxNo.Location = New System.Drawing.Point(248, 90)
|
||||||
|
Me.lblFaxNo.Name = "lblFaxNo"
|
||||||
|
Me.lblFaxNo.Size = New System.Drawing.Size(64, 14)
|
||||||
|
Me.lblFaxNo.TabIndex = 6
|
||||||
|
Me.lblFaxNo.Text = "FaxNo"
|
||||||
|
Me.lblFaxNo.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblTelNo
|
||||||
|
'
|
||||||
|
Me.lblTelNo.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblTelNo.Location = New System.Drawing.Point(24, 90)
|
||||||
|
Me.lblTelNo.Name = "lblTelNo"
|
||||||
|
Me.lblTelNo.Size = New System.Drawing.Size(86, 14)
|
||||||
|
Me.lblTelNo.TabIndex = 4
|
||||||
|
Me.lblTelNo.Text = "TelNo"
|
||||||
|
Me.lblTelNo.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'txtDescription
|
||||||
|
'
|
||||||
|
Me.txtDescription.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.txtDescription.Location = New System.Drawing.Point(120, 184)
|
||||||
|
Me.txtDescription.Name = "txtDescription"
|
||||||
|
Me.txtDescription.Size = New System.Drawing.Size(336, 108)
|
||||||
|
Me.txtDescription.TabIndex = 15
|
||||||
|
Me.txtDescription.Text = ""
|
||||||
|
'
|
||||||
|
'lblDescription
|
||||||
|
'
|
||||||
|
Me.lblDescription.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblDescription.Location = New System.Drawing.Point(24, 186)
|
||||||
|
Me.lblDescription.Name = "lblDescription"
|
||||||
|
Me.lblDescription.Size = New System.Drawing.Size(86, 14)
|
||||||
|
Me.lblDescription.TabIndex = 14
|
||||||
|
Me.lblDescription.Text = "Description"
|
||||||
|
Me.lblDescription.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblSubcontractorNo
|
||||||
|
'
|
||||||
|
Me.lblSubcontractorNo.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblSubcontractorNo.Location = New System.Drawing.Point(14, 29)
|
||||||
|
Me.lblSubcontractorNo.Name = "lblSubcontractorNo"
|
||||||
|
Me.lblSubcontractorNo.Size = New System.Drawing.Size(96, 14)
|
||||||
|
Me.lblSubcontractorNo.TabIndex = 0
|
||||||
|
Me.lblSubcontractorNo.Text = "Subcontractor No"
|
||||||
|
Me.lblSubcontractorNo.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblContactorName
|
||||||
|
'
|
||||||
|
Me.lblContactorName.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblContactorName.Location = New System.Drawing.Point(24, 59)
|
||||||
|
Me.lblContactorName.Name = "lblContactorName"
|
||||||
|
Me.lblContactorName.Size = New System.Drawing.Size(86, 14)
|
||||||
|
Me.lblContactorName.TabIndex = 2
|
||||||
|
Me.lblContactorName.Text = "Contactor Name"
|
||||||
|
Me.lblContactorName.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'txtSubcontractorNo
|
||||||
|
'
|
||||||
|
Me.txtSubcontractorNo.Location = New System.Drawing.Point(120, 24)
|
||||||
|
Me.txtSubcontractorNo.Name = "txtSubcontractorNo"
|
||||||
|
Me.txtSubcontractorNo.ReadOnly = True
|
||||||
|
Me.txtSubcontractorNo.Size = New System.Drawing.Size(114, 22)
|
||||||
|
Me.txtSubcontractorNo.TabIndex = 1
|
||||||
|
Me.txtSubcontractorNo.TabStop = False
|
||||||
|
'
|
||||||
|
'txtContactorName
|
||||||
|
'
|
||||||
|
Appearance1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtContactorName.Appearance = Appearance1
|
||||||
|
Me.txtContactorName.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtContactorName.Location = New System.Drawing.Point(120, 56)
|
||||||
|
Me.txtContactorName.Name = "txtContactorName"
|
||||||
|
Me.txtContactorName.Size = New System.Drawing.Size(160, 22)
|
||||||
|
Me.txtContactorName.TabIndex = 3
|
||||||
|
'
|
||||||
|
'txtTelNo
|
||||||
|
'
|
||||||
|
Me.txtTelNo.Location = New System.Drawing.Point(120, 88)
|
||||||
|
Me.txtTelNo.Name = "txtTelNo"
|
||||||
|
Me.txtTelNo.Size = New System.Drawing.Size(114, 22)
|
||||||
|
Me.txtTelNo.TabIndex = 5
|
||||||
|
'
|
||||||
|
'frmSubcontractorContDef
|
||||||
|
'
|
||||||
|
Me.ClientSize = New System.Drawing.Size(500, 478)
|
||||||
|
Me.Controls.Add(Me.gbxSubcontractorContData)
|
||||||
|
Me.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.Name = "frmSubcontractorContDef"
|
||||||
|
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
|
||||||
|
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||||
|
Me.Text = "ENT Subcontractor Contactor Define"
|
||||||
|
Me.Controls.SetChildIndex(Me.btnClose, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.btnConfirm, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.btnApply, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.gbxBasisData, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.gbxSubcontractorContData, 0)
|
||||||
|
CType(Me.gbxBasisData, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
Me.gbxSubcontractorContData.ResumeLayout(False)
|
||||||
|
Me.gbxSubcontractorContData.PerformLayout()
|
||||||
|
CType(Me.txtNote21706, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtAddress, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtEMail, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtTitle, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtFaxNo, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtSubcontractorNo, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtContactorName, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtTelNo, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
Me.ResumeLayout(False)
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
Private Sub frmSubcontractorContDef_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
Select Case DefMode
|
||||||
|
Case 0
|
||||||
|
Me.Text = Me.Text & "(ADD)"
|
||||||
|
Case 1
|
||||||
|
Me.Text = Me.Text & "(EDIT)"
|
||||||
|
Case 2
|
||||||
|
Me.Text = Me.Text & "(Copy)"
|
||||||
|
Case Else
|
||||||
|
Me.Text = Me.Text & "(Unknown)"
|
||||||
|
End Select
|
||||||
|
|
||||||
|
'做為MainForm判斷是否重新LoadData的依據()
|
||||||
|
gReturnKeyValue = ""
|
||||||
|
|
||||||
|
' 2016 YF, wsENT.Url = LocalizeWebService(wsENT.Url.ToString)
|
||||||
|
' 2016 YF, wsENT.EnableDecompression = True
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then
|
||||||
|
SetCreateDate(Now)
|
||||||
|
SetCreator(gUserNo)
|
||||||
|
End If
|
||||||
|
If Not EditDataRow Is Nothing Then '修改 or Copy
|
||||||
|
txtSubcontractorNo.Text = EditDataRow.Item("SubcontractorNo").ToString
|
||||||
|
txtContactorName.Text = EditDataRow.Item("ContactorName").ToString
|
||||||
|
txtTelNo.Text = EditDataRow.Item("TelNo").ToString
|
||||||
|
txtFaxNo.Text = EditDataRow.Item("FaxNo").ToString
|
||||||
|
txtTitle.Text = EditDataRow.Item("Title").ToString
|
||||||
|
txtAddress.Text = EditDataRow.Item("Address").ToString
|
||||||
|
txtEMail.Text = EditDataRow.Item("EMail").ToString
|
||||||
|
'txtDescription是RichTextBox(Control, 因為TextBox無法正常顯示多行換行的資料)
|
||||||
|
txtDescription.Text = EditDataRow.Item("Description").ToString
|
||||||
|
'以下为自己添加的字段
|
||||||
|
txtNote21706.Text = EditDataRow.Item("Note21706").ToString
|
||||||
|
If DefMode = 1 Then
|
||||||
|
If (Not IsDBNull(EditDataRow("Creator"))) Then
|
||||||
|
SetCreateDate(Convert.ToDateTime(EditDataRow.Item("CreateDate")))
|
||||||
|
SetCreator(EditDataRow.Item("Creator").ToString)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
If DefMode = 0 Then 'Add
|
||||||
|
txtSubcontractorNo.Text = SubcontractorNo
|
||||||
|
SetCreateDate(Now)
|
||||||
|
SetCreator(gUserNo)
|
||||||
|
ElseIf DefMode = 1 Then 'Edit
|
||||||
|
txtContactorName.ReadOnly = True
|
||||||
|
SetReviseDate(Now)
|
||||||
|
SetReviser(gUserNo)
|
||||||
|
intDataStamp = EditDataRow.Item("DataStamp")
|
||||||
|
End If
|
||||||
|
|
||||||
|
btnApplyEnabled = False
|
||||||
|
|
||||||
|
'語系切換
|
||||||
|
Call ExeChangeResource(Me, gLanguageMode)
|
||||||
|
ExeGroupControlPriv(Me, PrivFunNo)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub frmSubcontractorContDef_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Activated
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then
|
||||||
|
txtContactorName.Focus()
|
||||||
|
Else
|
||||||
|
txtTelNo.Focus()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overrides Sub btnConfirm_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
If funAddorEdit(sender) < 0 Then Exit Sub
|
||||||
|
|
||||||
|
Me.Close()
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overrides Sub btnClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
Me.Close()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overrides Sub btnApply_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
If funAddorEdit(sender) < 0 Then Exit Sub
|
||||||
|
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then
|
||||||
|
txtContactorName.Focus()
|
||||||
|
Else
|
||||||
|
txtTelNo.Focus()
|
||||||
|
End If
|
||||||
|
|
||||||
|
txtEMail.Text = ""
|
||||||
|
btnApplyEnabled = False
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#Region "Control KeyPress"
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorNo.Click
|
||||||
|
txtSubcontractorNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorNo.Enter
|
||||||
|
txtSubcontractorNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtSubcontractorNo.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorNo.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtContactorName_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtContactorName.Click
|
||||||
|
txtContactorName.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtContactorName_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtContactorName.Enter
|
||||||
|
txtContactorName.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtContactorName_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtContactorName.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtContactorName_Leave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtContactorName.Leave
|
||||||
|
If txtContactorName.Text <> "" And txtEMail.Text = "" Then
|
||||||
|
txtEMail.Text = txtContactorName.Text & "@"
|
||||||
|
End If
|
||||||
|
txtContactorName.Text = UCase(txtContactorName.Text)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtContactorName_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtContactorName.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTelNo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtTelNo.Click
|
||||||
|
txtTelNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTelNo_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtTelNo.Enter
|
||||||
|
txtTelNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTelNo_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtTelNo.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTelNo_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtTelNo.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtFaxNo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtFaxNo.Click
|
||||||
|
txtFaxNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtFaxNo_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtFaxNo.Enter
|
||||||
|
txtFaxNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtFaxNo_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtFaxNo.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtFaxNo_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtFaxNo.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTitle_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtTitle.Click
|
||||||
|
txtTitle.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTitle_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtTitle.Enter
|
||||||
|
txtTitle.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTitle_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtTitle.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTitle_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtTitle.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtEMail_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtEMail.Click
|
||||||
|
txtEMail.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtEMail_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtEMail.Enter
|
||||||
|
txtEMail.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtEMail_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtEMail.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtEMail_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtEMail.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtAddress_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtAddress.Click
|
||||||
|
txtAddress.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtAddress_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtAddress.Enter
|
||||||
|
txtAddress.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtAddress_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtAddress.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtAddress_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtAddress.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtDescription.Click
|
||||||
|
txtDescription.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtDescription.Enter
|
||||||
|
txtDescription.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtDescription.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtDescription.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
#Region "Others"
|
||||||
|
|
||||||
|
Private Function funAddorEdit(sender As Object) As Integer
|
||||||
|
|
||||||
|
funAddorEdit = -1
|
||||||
|
|
||||||
|
'******************************************************************************
|
||||||
|
'1.基本檢查()
|
||||||
|
'******************************************************************************
|
||||||
|
If txtSubcontractorNo.Text = "" Then
|
||||||
|
iMESExceptionManager.ExceptionManager.iMESMsgBoxShowDialog(ChgTranslateName_Msg("0000-200001", "[%SubcontractorNo%]"), MsgBoxStyle.Exclamation, Me.Text)
|
||||||
|
txtSubcontractorNo.Focus()
|
||||||
|
Exit Function
|
||||||
|
End If
|
||||||
|
If txtContactorName.Text = "" Then
|
||||||
|
iMESExceptionManager.ExceptionManager.iMESMsgBoxShowDialog(ChgTranslateName_Msg("0000-200001", "[%ContactorName%]"), MsgBoxStyle.Exclamation, Me.Text)
|
||||||
|
txtContactorName.Focus()
|
||||||
|
Exit Function
|
||||||
|
End If
|
||||||
|
|
||||||
|
'******************************************************************************
|
||||||
|
'2.寫回資料庫()
|
||||||
|
'******************************************************************************
|
||||||
|
Dim XmlDoc As New XmlDocument
|
||||||
|
|
||||||
|
Try
|
||||||
|
strIdentity = CombineXMLIdentity(gComputerName, gUserNo, GetNow())
|
||||||
|
strParameter = CombineXMLParameter("subcontractorno", "SubcontractorNo", "String", CInput(txtSubcontractorNo.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("contactorname", "ContactorName", "String", CInput(txtContactorName.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("telno", "TelNo", "String", txtTelNo.Text, "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("faxno", "FaxNo", "String", txtFaxNo.Text, "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("title", "Title", "String", CInput(txtTitle.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("address", "Address", "String", CInput(txtAddress.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("email", "EMail", "String", CInput(txtEMail.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("description", "Description", "String", CInput(txtDescription.Text), "")
|
||||||
|
'以下为自己添加的字段
|
||||||
|
strParameter = strParameter & CombineXMLParameter("note21706", "Note21706", "String", CInput(txtNote21706.Text), "")
|
||||||
|
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then 'Add or Copy
|
||||||
|
strParameter += CombineXMLParameter("creator", "Creator", "String", gUserNo, "")
|
||||||
|
InXml = CombineXMLRequest(strIdentity, strParameter)
|
||||||
|
' 2016 YF, OutXml = wsENT.AddSubcontractorCont(InXml)
|
||||||
|
'OutXml = InvokeSrv("SXS.wsENT.AddSubcontractorCont", InXml)
|
||||||
|
'调用客制化方法
|
||||||
|
OutXml = InvokeSrv("SXS.wsENT.AddSubcontractorContCustom", InXml)
|
||||||
|
|
||||||
|
Else 'Edit
|
||||||
|
' 增加Datastamp
|
||||||
|
strParameter += CombineXMLParameter("datastamp", "Datastamp", "Integer", intDataStamp, "")
|
||||||
|
InXml = CombineXMLRequest(strIdentity, strParameter)
|
||||||
|
' 2016 YF, OutXml = wsENT.EditSubcontractorCont(InXml)
|
||||||
|
'OutXml = InvokeSrv("SXS.wsENT.EditSubcontractorCont", InXml)
|
||||||
|
'调用客制化方法
|
||||||
|
OutXml = InvokeSrv("SXS.wsENT.EditSubcontractorContCustom", InXml)
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
XmlDoc.LoadXml(OutXml)
|
||||||
|
If ChkExecutionSuccess(XmlDoc) Then
|
||||||
|
gReturnKeyValue = txtContactorName.Text
|
||||||
|
|
||||||
|
funAddorEdit = 0
|
||||||
|
If sender.Equals(btnApply) Then
|
||||||
|
intDataStamp += 1
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
ExceptionManager.iMESShowDialog(GetExceptionCode(XmlDoc), GetExceptionSysMsg(XmlDoc), GetExceptionStack(XmlDoc))
|
||||||
|
End If
|
||||||
|
|
||||||
|
Catch ex As Exception
|
||||||
|
'MsgBox("Unexpected Error. Add or Edit ENT Subcontractor Contactor Failed!," & e1.Message, MsgBoxStyle.Exclamation)
|
||||||
|
ExceptionManager.iMESShowDialog(defWinErrCode, ex.Message, ex.StackTrace)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
XmlDoc = Nothing
|
||||||
|
|
||||||
|
End Function
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub frmSubcontractorContDef_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
|
||||||
|
' 2016 YF, If Not wsENT Is Nothing Then wsENT.Dispose()
|
||||||
|
End Sub
|
||||||
|
End Class
|
||||||
|
|
497
SRC/MESWin/SYS4/21706/frmSubcontractorDef.vb
Normal file
497
SRC/MESWin/SYS4/21706/frmSubcontractorDef.vb
Normal file
@ -0,0 +1,497 @@
|
|||||||
|
Imports iMESExceptionManager
|
||||||
|
|
||||||
|
Public Class frmSubcontractorDef
|
||||||
|
|
||||||
|
Inherits COM_Kit.frmDefTemplat
|
||||||
|
|
||||||
|
'//Public Variables
|
||||||
|
Public EditDataRow As DataRow
|
||||||
|
Public DefMode As Integer = 0 '0. ADD, 1.Edit, 2. Copy
|
||||||
|
Public PrivFunNo As String = defString
|
||||||
|
|
||||||
|
'//Web Service相關變數
|
||||||
|
' 2016 YF, Dim wsENT As New wsENT.wsENT
|
||||||
|
Dim InXml As String
|
||||||
|
Dim OutXml As String
|
||||||
|
|
||||||
|
Dim strIdentity As String
|
||||||
|
Dim strParameter As String
|
||||||
|
Friend WithEvents txtNote21706 As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents lblNote21706 As Label
|
||||||
|
Friend WithEvents lblKey21706 As Label
|
||||||
|
Friend WithEvents txtNotNull As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Dim intDataStamp As Integer '紀錄DataStamp
|
||||||
|
|
||||||
|
#Region " Windows Form Designer generated code "
|
||||||
|
|
||||||
|
Public Sub New()
|
||||||
|
MyBase.New()
|
||||||
|
|
||||||
|
'This call is required by the Windows Form Designer.
|
||||||
|
InitializeComponent()
|
||||||
|
|
||||||
|
'Add any initialization after the InitializeComponent() call
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Form overrides dispose to clean up the component list.
|
||||||
|
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||||
|
If disposing Then
|
||||||
|
If Not (components Is Nothing) Then
|
||||||
|
components.Dispose()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
MyBase.Dispose(disposing)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Required by the Windows Form Designer
|
||||||
|
Private components As System.ComponentModel.IContainer
|
||||||
|
|
||||||
|
'NOTE: The following procedure is required by the Windows Form Designer
|
||||||
|
'It can be modified using the Windows Form Designer.
|
||||||
|
'Do not modify it using the code editor.
|
||||||
|
Friend WithEvents txtDescription As System.Windows.Forms.RichTextBox
|
||||||
|
Friend WithEvents lblDescription As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblSubcontractorNo As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblSubcontractorName As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents gbxSubcontractorData As System.Windows.Forms.GroupBox
|
||||||
|
Friend WithEvents txtSubcontractorNo As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtSubcontractorName As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
|
||||||
|
Dim Appearance2 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance()
|
||||||
|
Dim Appearance3 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance()
|
||||||
|
Dim Appearance4 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance()
|
||||||
|
Dim Appearance1 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance()
|
||||||
|
Me.gbxSubcontractorData = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.lblNote21706 = New System.Windows.Forms.Label()
|
||||||
|
Me.txtNote21706 = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtDescription = New System.Windows.Forms.RichTextBox()
|
||||||
|
Me.lblDescription = New System.Windows.Forms.Label()
|
||||||
|
Me.lblSubcontractorNo = New System.Windows.Forms.Label()
|
||||||
|
Me.lblSubcontractorName = New System.Windows.Forms.Label()
|
||||||
|
Me.txtSubcontractorNo = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtSubcontractorName = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtNotNull = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.lblKey21706 = New System.Windows.Forms.Label()
|
||||||
|
CType(Me.gbxBasisData, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
Me.gbxSubcontractorData.SuspendLayout()
|
||||||
|
CType(Me.txtNote21706, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtSubcontractorNo, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtSubcontractorName, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtNotNull, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
Me.SuspendLayout()
|
||||||
|
'
|
||||||
|
'gbxBasisData
|
||||||
|
'
|
||||||
|
Me.gbxBasisData.Location = New System.Drawing.Point(12, 266)
|
||||||
|
Me.gbxBasisData.Size = New System.Drawing.Size(479, 70)
|
||||||
|
'
|
||||||
|
'btnApply
|
||||||
|
'
|
||||||
|
Me.btnApply.Location = New System.Drawing.Point(403, 345)
|
||||||
|
'
|
||||||
|
'btnConfirm
|
||||||
|
'
|
||||||
|
Me.btnConfirm.Location = New System.Drawing.Point(215, 345)
|
||||||
|
'
|
||||||
|
'btnClose
|
||||||
|
'
|
||||||
|
Me.btnClose.Location = New System.Drawing.Point(309, 345)
|
||||||
|
'
|
||||||
|
'gbxSubcontractorData
|
||||||
|
'
|
||||||
|
Me.gbxSubcontractorData.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.lblKey21706)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.txtNotNull)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.lblNote21706)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.txtNote21706)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.txtDescription)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.lblDescription)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.lblSubcontractorNo)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.lblSubcontractorName)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.txtSubcontractorNo)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.txtSubcontractorName)
|
||||||
|
Me.gbxSubcontractorData.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.gbxSubcontractorData.Location = New System.Drawing.Point(12, 8)
|
||||||
|
Me.gbxSubcontractorData.Name = "gbxSubcontractorData"
|
||||||
|
Me.gbxSubcontractorData.Size = New System.Drawing.Size(479, 250)
|
||||||
|
Me.gbxSubcontractorData.TabIndex = 7
|
||||||
|
Me.gbxSubcontractorData.TabStop = False
|
||||||
|
Me.gbxSubcontractorData.Text = "Subcontractor Data"
|
||||||
|
'
|
||||||
|
'lblNote21706
|
||||||
|
'
|
||||||
|
Me.lblNote21706.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblNote21706.Location = New System.Drawing.Point(24, 193)
|
||||||
|
Me.lblNote21706.Name = "lblNote21706"
|
||||||
|
Me.lblNote21706.Size = New System.Drawing.Size(96, 32)
|
||||||
|
Me.lblNote21706.TabIndex = 14
|
||||||
|
Me.lblNote21706.Text = "Note 21706"
|
||||||
|
Me.lblNote21706.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'txtNote21706
|
||||||
|
'
|
||||||
|
Appearance2.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
|
||||||
|
Me.txtNote21706.Appearance = Appearance2
|
||||||
|
Me.txtNote21706.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
|
||||||
|
Me.txtNote21706.Location = New System.Drawing.Point(128, 193)
|
||||||
|
Me.txtNote21706.Name = "txtNote21706"
|
||||||
|
Me.txtNote21706.Size = New System.Drawing.Size(152, 22)
|
||||||
|
Me.txtNote21706.TabIndex = 3
|
||||||
|
'
|
||||||
|
'txtDescription
|
||||||
|
'
|
||||||
|
Me.txtDescription.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.txtDescription.Location = New System.Drawing.Point(128, 86)
|
||||||
|
Me.txtDescription.Name = "txtDescription"
|
||||||
|
Me.txtDescription.Size = New System.Drawing.Size(334, 67)
|
||||||
|
Me.txtDescription.TabIndex = 2
|
||||||
|
Me.txtDescription.Text = ""
|
||||||
|
'
|
||||||
|
'lblDescription
|
||||||
|
'
|
||||||
|
Me.lblDescription.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblDescription.Location = New System.Drawing.Point(56, 88)
|
||||||
|
Me.lblDescription.Name = "lblDescription"
|
||||||
|
Me.lblDescription.Size = New System.Drawing.Size(64, 14)
|
||||||
|
Me.lblDescription.TabIndex = 13
|
||||||
|
Me.lblDescription.Text = "Description"
|
||||||
|
Me.lblDescription.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblSubcontractorNo
|
||||||
|
'
|
||||||
|
Me.lblSubcontractorNo.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblSubcontractorNo.Location = New System.Drawing.Point(24, 24)
|
||||||
|
Me.lblSubcontractorNo.Name = "lblSubcontractorNo"
|
||||||
|
Me.lblSubcontractorNo.Size = New System.Drawing.Size(96, 32)
|
||||||
|
Me.lblSubcontractorNo.TabIndex = 5
|
||||||
|
Me.lblSubcontractorNo.Text = "Subcontractor No"
|
||||||
|
Me.lblSubcontractorNo.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblSubcontractorName
|
||||||
|
'
|
||||||
|
Me.lblSubcontractorName.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblSubcontractorName.Location = New System.Drawing.Point(8, 56)
|
||||||
|
Me.lblSubcontractorName.Name = "lblSubcontractorName"
|
||||||
|
Me.lblSubcontractorName.Size = New System.Drawing.Size(112, 32)
|
||||||
|
Me.lblSubcontractorName.TabIndex = 9
|
||||||
|
Me.lblSubcontractorName.Text = "Subcontractor Name"
|
||||||
|
Me.lblSubcontractorName.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'txtSubcontractorNo
|
||||||
|
'
|
||||||
|
Appearance3.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtSubcontractorNo.Appearance = Appearance3
|
||||||
|
Me.txtSubcontractorNo.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtSubcontractorNo.Location = New System.Drawing.Point(128, 24)
|
||||||
|
Me.txtSubcontractorNo.Name = "txtSubcontractorNo"
|
||||||
|
Me.txtSubcontractorNo.Size = New System.Drawing.Size(152, 22)
|
||||||
|
Me.txtSubcontractorNo.TabIndex = 0
|
||||||
|
'
|
||||||
|
'txtSubcontractorName
|
||||||
|
'
|
||||||
|
Appearance4.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtSubcontractorName.Appearance = Appearance4
|
||||||
|
Me.txtSubcontractorName.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtSubcontractorName.Location = New System.Drawing.Point(128, 55)
|
||||||
|
Me.txtSubcontractorName.Name = "txtSubcontractorName"
|
||||||
|
Me.txtSubcontractorName.Size = New System.Drawing.Size(334, 22)
|
||||||
|
Me.txtSubcontractorName.TabIndex = 1
|
||||||
|
'
|
||||||
|
'txtNotNull
|
||||||
|
'
|
||||||
|
Appearance1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtNotNull.Appearance = Appearance1
|
||||||
|
Me.txtNotNull.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtNotNull.Location = New System.Drawing.Point(128, 162)
|
||||||
|
Me.txtNotNull.Name = "txtNotNull"
|
||||||
|
Me.txtNotNull.Size = New System.Drawing.Size(152, 22)
|
||||||
|
Me.txtNotNull.TabIndex = 15
|
||||||
|
'
|
||||||
|
'lblKey21706
|
||||||
|
'
|
||||||
|
Me.lblKey21706.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblKey21706.Location = New System.Drawing.Point(24, 162)
|
||||||
|
Me.lblKey21706.Name = "lblKey21706"
|
||||||
|
Me.lblKey21706.Size = New System.Drawing.Size(96, 32)
|
||||||
|
Me.lblKey21706.TabIndex = 16
|
||||||
|
Me.lblKey21706.Text = "Not Null"
|
||||||
|
Me.lblKey21706.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'frmSubcontractorDef
|
||||||
|
'
|
||||||
|
Me.ClientSize = New System.Drawing.Size(503, 390)
|
||||||
|
Me.Controls.Add(Me.gbxSubcontractorData)
|
||||||
|
Me.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.Name = "frmSubcontractorDef"
|
||||||
|
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
|
||||||
|
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||||
|
Me.Text = "ENT Subcontractor Define"
|
||||||
|
Me.Controls.SetChildIndex(Me.btnClose, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.btnConfirm, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.btnApply, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.gbxBasisData, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.gbxSubcontractorData, 0)
|
||||||
|
CType(Me.gbxBasisData, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
Me.gbxSubcontractorData.ResumeLayout(False)
|
||||||
|
Me.gbxSubcontractorData.PerformLayout()
|
||||||
|
CType(Me.txtNote21706, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtSubcontractorNo, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtSubcontractorName, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtNotNull, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
Me.ResumeLayout(False)
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
Private Sub frmSubcontractorDef_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
Select Case DefMode
|
||||||
|
Case 0
|
||||||
|
Me.Text = Me.Text & "(ADD)"
|
||||||
|
Case 1
|
||||||
|
Me.Text = Me.Text & "(EDIT)"
|
||||||
|
Case 2
|
||||||
|
Me.Text = Me.Text & "(Copy)"
|
||||||
|
Case Else
|
||||||
|
Me.Text = Me.Text & "(Unknown)"
|
||||||
|
End Select
|
||||||
|
|
||||||
|
'做為MainForm判斷是否重新LoadData的依據
|
||||||
|
gReturnKeyValue = ""
|
||||||
|
|
||||||
|
' 2016 YF, wsENT.Url = LocalizeWebService(wsENT.Url.ToString)
|
||||||
|
' 2016 YF, wsENT.EnableDecompression = True
|
||||||
|
|
||||||
|
If Not EditDataRow Is Nothing Then
|
||||||
|
txtSubcontractorNo.Text = EditDataRow.Item("SubcontractorNo").ToString
|
||||||
|
txtSubcontractorName.Text = EditDataRow.Item("SubcontractorName").ToString
|
||||||
|
'txtDescription是RichTextBox Control,因為TextBox無法正常顯示多行換行的資料
|
||||||
|
txtDescription.Text = EditDataRow.Item("Description").ToString
|
||||||
|
'加入自定义字段
|
||||||
|
txtNotNull.Text = EditDataRow.Item("NotNull").ToString
|
||||||
|
txtNote21706.Text = EditDataRow.Item("Note21706").ToString
|
||||||
|
End If
|
||||||
|
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then 'Add or Copy
|
||||||
|
SetCreator(gUserNo)
|
||||||
|
SetCreateDate(Now)
|
||||||
|
ElseIf DefMode = 1 Then 'Edit
|
||||||
|
txtSubcontractorNo.ReadOnly = True
|
||||||
|
SetCreator(EditDataRow.Item("Creator").ToString)
|
||||||
|
SetCreateDate(Convert.ToDateTime(EditDataRow.Item("CreateDate")))
|
||||||
|
SetReviser(gUserNo)
|
||||||
|
SetReviseDate(Now)
|
||||||
|
intDataStamp = EditDataRow.Item("DataStamp")
|
||||||
|
End If
|
||||||
|
|
||||||
|
btnApplyEnabled = False
|
||||||
|
|
||||||
|
'語系切換
|
||||||
|
Call ExeChangeResource(Me, gLanguageMode)
|
||||||
|
ExeGroupControlPriv(Me, PrivFunNo)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub frmSubcontractorDef_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Activated
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then
|
||||||
|
txtSubcontractorNo.Focus()
|
||||||
|
Else
|
||||||
|
txtSubcontractorName.Focus()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overrides Sub btnConfirm_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
If funAddorEdit(sender) < 0 Then Exit Sub
|
||||||
|
|
||||||
|
Me.Close()
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overrides Sub btnClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
Me.Close()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overrides Sub btnApply_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
If funAddorEdit(sender) < 0 Then Exit Sub
|
||||||
|
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then
|
||||||
|
txtSubcontractorNo.Focus()
|
||||||
|
Else
|
||||||
|
txtSubcontractorName.Focus()
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
btnApplyEnabled = False
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub frmSubcontractorDef_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
|
||||||
|
' 2016 YF, If Not wsENT Is Nothing Then wsENT.Dispose()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#Region "Control KeyPress"
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorNo.Click
|
||||||
|
txtSubcontractorNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorNo.Enter
|
||||||
|
txtSubcontractorNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtSubcontractorNo.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_Leave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorNo.Leave
|
||||||
|
txtSubcontractorNo.Text = UCase(txtSubcontractorNo.Text)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorNo.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorName_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorName.Click
|
||||||
|
txtSubcontractorName.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorName_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorName.Enter
|
||||||
|
txtSubcontractorName.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorName_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtSubcontractorName.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorName_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorName.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtDescription.Click
|
||||||
|
txtDescription.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtDescription.Enter
|
||||||
|
txtDescription.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtDescription.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
#Region "Others"
|
||||||
|
|
||||||
|
Private Function funAddorEdit(sender As Object) As Integer
|
||||||
|
|
||||||
|
funAddorEdit = -1
|
||||||
|
|
||||||
|
'******************************************************************************
|
||||||
|
'1.基本檢查
|
||||||
|
'******************************************************************************
|
||||||
|
If txtSubcontractorNo.Text = "" Then
|
||||||
|
iMESExceptionManager.ExceptionManager.iMESMsgBoxShowDialog(ChgTranslateName_Msg("0000-200001", "[%SubcontractorNo%]"), MsgBoxStyle.Exclamation, Me.Text)
|
||||||
|
txtSubcontractorNo.Focus()
|
||||||
|
Exit Function
|
||||||
|
End If
|
||||||
|
|
||||||
|
If txtSubcontractorName.Text = "" Then
|
||||||
|
iMESExceptionManager.ExceptionManager.iMESMsgBoxShowDialog(ChgTranslateName_Msg("0000-200001", "[%SubcontractorName%]"), MsgBoxStyle.Exclamation, Me.Text)
|
||||||
|
txtSubcontractorName.Focus()
|
||||||
|
Exit Function
|
||||||
|
End If
|
||||||
|
|
||||||
|
'以下为自定义的字段,如果非空字段为空,抛出异常之后退出函数(即不进行处理)
|
||||||
|
If txtNotNull.Text = "" Then
|
||||||
|
iMESExceptionManager.ExceptionManager.iMESMsgBoxShowDialog(ChgTranslateName_Msg("0000-200001", "[%NotNull%]"), MsgBoxStyle.Exclamation, Me.Text)
|
||||||
|
txtNotNull.Focus()
|
||||||
|
Exit Function
|
||||||
|
End If
|
||||||
|
|
||||||
|
'2.
|
||||||
|
'******************************************************************************
|
||||||
|
'寫回資料庫
|
||||||
|
'******************************************************************************
|
||||||
|
Dim XmlDoc As New XmlDocument
|
||||||
|
|
||||||
|
Try
|
||||||
|
strIdentity = CombineXMLIdentity(gComputerName, gUserNo, GetNow())
|
||||||
|
strParameter = CombineXMLParameter("subcontractorno", "SubcontractorNo", "String", CInput(txtSubcontractorNo.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("subcontractorname", "SubcontractorName", "String", CInput(txtSubcontractorName.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("description", "Description", "String", CInput(txtDescription.Text), "")
|
||||||
|
'以下为自己定义的字段
|
||||||
|
strParameter = strParameter & CombineXMLParameter("notnull", "NotNull", "String", CInput(txtNotNull.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("note21706", "Note21706", "String", CInput(txtNote21706.Text), "")
|
||||||
|
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then
|
||||||
|
'Add or Copy
|
||||||
|
strParameter = strParameter & CombineXMLParameter("creator", "Creator", "String", gUserNo, "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("createdate", "CreateDate", "DateTime", Format(Now, "yyyy/MM/dd HH:mm:ss"), "")
|
||||||
|
InXml = CombineXMLRequest(strIdentity, strParameter)
|
||||||
|
|
||||||
|
' 2016 YF, OutXml = wsENT.AddSubcontractor(InXml)
|
||||||
|
'OutXml = InvokeSrv("wsENT.AddSubcontractor", InXml)
|
||||||
|
'调用客制化方法
|
||||||
|
OutXml = InvokeSrv("SXS.wsENT.AddSubcontractorCustom", InXml)
|
||||||
|
|
||||||
|
Else
|
||||||
|
'修改
|
||||||
|
strParameter = strParameter & CombineXMLParameter("issuestate", "IssueState", "String", EditDataRow.Item("IssueState").ToString, "")
|
||||||
|
' 增加Datastamp
|
||||||
|
strParameter += CombineXMLParameter("datastamp", "Datastamp", "Integer", intDataStamp, "")
|
||||||
|
InXml = CombineXMLRequest(strIdentity, strParameter)
|
||||||
|
|
||||||
|
' 2016 YF, OutXml = wsENT.EditSubcontractor(InXml)
|
||||||
|
'OutXml = InvokeSrv("wsENT.EditSubcontractor", InXml)
|
||||||
|
'调用客制化方法
|
||||||
|
OutXml = InvokeSrv("SXS.wsENT.EditSubcontractorCustom", InXml)
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
XmlDoc.LoadXml(OutXml)
|
||||||
|
If ChkExecutionSuccess(XmlDoc) Then
|
||||||
|
gReturnKeyValue = txtSubcontractorNo.Text
|
||||||
|
|
||||||
|
funAddorEdit = 0
|
||||||
|
If sender.Equals(btnApply) Then
|
||||||
|
intDataStamp += 1
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
ExceptionManager.iMESShowDialog(GetExceptionCode(XmlDoc), GetExceptionSysMsg(XmlDoc), GetExceptionStack(XmlDoc))
|
||||||
|
End If
|
||||||
|
|
||||||
|
Catch ex As Exception
|
||||||
|
'MsgBox("Unexpected Error. Add or Edit ENT Subcontractor Failed!," & e1.Message, MsgBoxStyle.Exclamation)
|
||||||
|
ExceptionManager.iMESShowDialog(defWinErrCode, ex.Message, ex.StackTrace)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
XmlDoc = Nothing
|
||||||
|
|
||||||
|
End Function
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
End Class
|
||||||
|
|
10
SRC/MESWin/SYS4/21706NEW/ET_Subcontractor.vbproj.vspscc
Normal file
10
SRC/MESWin/SYS4/21706NEW/ET_Subcontractor.vbproj.vspscc
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
""
|
||||||
|
{
|
||||||
|
"FILE_VERSION" = "9237"
|
||||||
|
"ENLISTMENT_CHOICE" = "NEVER"
|
||||||
|
"PROJECT_FILE_RELATIVE_PATH" = ""
|
||||||
|
"NUMBER_OF_EXCLUDED_FILES" = "0"
|
||||||
|
"ORIGINAL_PROJECT_FILE_PATH" = ""
|
||||||
|
"NUMBER_OF_NESTED_PROJECTS" = "0"
|
||||||
|
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
|
||||||
|
}
|
@ -1,9 +1,11 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.32630.194
|
VisualStudioVersion = 16.0.34407.143
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ET_TestData14278", "ET_TestData14278.vbproj", "{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}"
|
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ET_TestData21706", "ET_TestData21706.vbproj", "{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}"
|
||||||
|
EndProject
|
||||||
|
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Test", "..\..\Test\Test.vbproj", "{C4A48E3F-38E4-4E88-A47D-FA5510686E57}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@ -15,11 +17,15 @@ Global
|
|||||||
{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}.Debug|x86.Build.0 = Debug|x86
|
{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}.Debug|x86.Build.0 = Debug|x86
|
||||||
{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}.Release|x86.ActiveCfg = Release|x86
|
{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}.Release|x86.ActiveCfg = Release|x86
|
||||||
{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}.Release|x86.Build.0 = Release|x86
|
{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}.Release|x86.Build.0 = Release|x86
|
||||||
|
{C4A48E3F-38E4-4E88-A47D-FA5510686E57}.Debug|x86.ActiveCfg = Debug|x86
|
||||||
|
{C4A48E3F-38E4-4E88-A47D-FA5510686E57}.Debug|x86.Build.0 = Debug|x86
|
||||||
|
{C4A48E3F-38E4-4E88-A47D-FA5510686E57}.Release|x86.ActiveCfg = Release|x86
|
||||||
|
{C4A48E3F-38E4-4E88-A47D-FA5510686E57}.Release|x86.Build.0 = Release|x86
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {1C44D0CA-A98A-40C4-B1C1-EC0BD8EBCE11}
|
SolutionGuid = {EDD304C3-6FB8-495A-8B20-2CFB2A234E2B}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
@ -6,8 +6,8 @@
|
|||||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||||
<ProjectGuid>{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}</ProjectGuid>
|
<ProjectGuid>{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<RootNamespace>ET_TestData14278</RootNamespace>
|
<RootNamespace>ET_TestData21706</RootNamespace>
|
||||||
<AssemblyName>ET_TestData14278</AssemblyName>
|
<AssemblyName>ET_TestData21706</AssemblyName>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<MyType>Windows</MyType>
|
<MyType>Windows</MyType>
|
||||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||||
@ -34,7 +34,7 @@
|
|||||||
<DefineDebug>true</DefineDebug>
|
<DefineDebug>true</DefineDebug>
|
||||||
<DefineTrace>true</DefineTrace>
|
<DefineTrace>true</DefineTrace>
|
||||||
<OutputPath>..\..\..\MESClient\</OutputPath>
|
<OutputPath>..\..\..\MESClient\</OutputPath>
|
||||||
<DocumentationFile>ET_TestData14278.xml</DocumentationFile>
|
<DocumentationFile>ET_TestData21706.xml</DocumentationFile>
|
||||||
<WarningLevel>0</WarningLevel>
|
<WarningLevel>0</WarningLevel>
|
||||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
@ -45,7 +45,7 @@
|
|||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||||
<DefineTrace>true</DefineTrace>
|
<DefineTrace>true</DefineTrace>
|
||||||
<OutputPath>..\..\..\MESClient\</OutputPath>
|
<OutputPath>..\..\..\MESClient\</OutputPath>
|
||||||
<DocumentationFile>ET_TestData14278.xml</DocumentationFile>
|
<DocumentationFile>ET_TestData21706.xml</DocumentationFile>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<WarningLevel>0</WarningLevel>
|
<WarningLevel>0</WarningLevel>
|
||||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
@ -126,13 +126,13 @@
|
|||||||
<Compile Include="..\..\shared file\modConstant.vb">
|
<Compile Include="..\..\shared file\modConstant.vb">
|
||||||
<Link>modConstant.vb</Link>
|
<Link>modConstant.vb</Link>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="frmTestData14278.vb">
|
<Compile Include="frmTestData21706.vb">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="frmTestData14278ContDef.vb">
|
<Compile Include="frmTestData21706ContDef.vb">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="frmTestData14278Def.vb">
|
<Compile Include="frmTestData21706Def.vb">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="My Project\AssemblyInfo.vb" />
|
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||||
@ -153,14 +153,14 @@
|
|||||||
</Compile>
|
</Compile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Include="frmTestData14278.resx">
|
<EmbeddedResource Include="frmTestData21706.resx">
|
||||||
<DependentUpon>frmTestData14278.vb</DependentUpon>
|
<DependentUpon>frmTestData21706.vb</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="frmTestData14278ContDef.resx">
|
<EmbeddedResource Include="frmTestData21706ContDef.resx">
|
||||||
<DependentUpon>frmTestData14278ContDef.vb</DependentUpon>
|
<DependentUpon>frmTestData21706ContDef.vb</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="frmTestData14278Def.resx">
|
<EmbeddedResource Include="frmTestData21706Def.resx">
|
||||||
<DependentUpon>frmTestData14278Def.vb</DependentUpon>
|
<DependentUpon>frmTestData21706Def.vb</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="My Project\licenses.licx" />
|
<EmbeddedResource Include="My Project\licenses.licx" />
|
||||||
<EmbeddedResource Include="My Project\Resources.resx">
|
<EmbeddedResource Include="My Project\Resources.resx">
|
13
SRC/MESWin/SYS4/21706NEW/My Project/Application.Designer.vb
generated
Normal file
13
SRC/MESWin/SYS4/21706NEW/My Project/Application.Designer.vb
generated
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <auto-generated>
|
||||||
|
' 此代码由工具生成。
|
||||||
|
' 运行时版本:4.0.30319.42000
|
||||||
|
'
|
||||||
|
' 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
' 重新生成代码,这些更改将会丢失。
|
||||||
|
' </auto-generated>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
@ -1,11 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
<MySubMain>true</MySubMain>
|
<MySubMain>false</MySubMain>
|
||||||
<MainForm>Form1</MainForm>
|
|
||||||
<SingleInstance>false</SingleInstance>
|
<SingleInstance>false</SingleInstance>
|
||||||
<ShutdownMode>0</ShutdownMode>
|
<ShutdownMode>0</ShutdownMode>
|
||||||
<EnableVisualStyles>true</EnableVisualStyles>
|
<EnableVisualStyles>true</EnableVisualStyles>
|
||||||
<AuthenticationMode>0</AuthenticationMode>
|
<AuthenticationMode>0</AuthenticationMode>
|
||||||
<ApplicationType>0</ApplicationType>
|
<ApplicationType>1</ApplicationType>
|
||||||
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
||||||
</MyApplicationData>
|
</MyApplicationData>
|
35
SRC/MESWin/SYS4/21706NEW/My Project/AssemblyInfo.vb
Normal file
35
SRC/MESWin/SYS4/21706NEW/My Project/AssemblyInfo.vb
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
Imports System
|
||||||
|
Imports System.Reflection
|
||||||
|
Imports System.Runtime.InteropServices
|
||||||
|
|
||||||
|
' 組件的一般資訊是由下列的屬性集控制。
|
||||||
|
' 變更這些屬性的值即可修改組件的相關
|
||||||
|
' 資訊。
|
||||||
|
|
||||||
|
' 檢閱組件屬性的值
|
||||||
|
|
||||||
|
<Assembly: AssemblyTitle("ET_Subcontractor")>
|
||||||
|
<Assembly: AssemblyDescription("")>
|
||||||
|
<Assembly: AssemblyCompany("iMES Technology Inc.")>
|
||||||
|
<Assembly: AssemblyProduct("MESSeries 6")>
|
||||||
|
<Assembly: AssemblyCopyright("Copyright © iMES Technology Inc.")>
|
||||||
|
<Assembly: AssemblyTrademark("")>
|
||||||
|
|
||||||
|
<Assembly: ComVisible(False)>
|
||||||
|
|
||||||
|
'下列 GUID 為專案公開 (Expose) 至 COM 時所要使用的 typelib ID
|
||||||
|
<Assembly: Guid("cb602012-a17f-433f-b777-ace6a6a676c1")>
|
||||||
|
|
||||||
|
' 組件的版本資訊由下列四個值所組成:
|
||||||
|
'
|
||||||
|
' 主要版本
|
||||||
|
' 次要版本
|
||||||
|
' 組建編號
|
||||||
|
' 修訂編號
|
||||||
|
'
|
||||||
|
' 您可以指定所有的值,也可以依照以下的方式,使用 '*' 將組建和修訂編號
|
||||||
|
' 指定為預設值:
|
||||||
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
|
<Assembly: AssemblyVersion("6.0.0.0")>
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
<Assembly: Reflection.AssemblyFileVersion("6.0.5.40117")>
|
@ -39,7 +39,7 @@ Namespace My.Resources
|
|||||||
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
||||||
Get
|
Get
|
||||||
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
||||||
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("ET_TestData14278.Resources", GetType(Resources).Assembly)
|
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("ET_TestData21706.Resources", GetType(Resources).Assembly)
|
||||||
resourceMan = temp
|
resourceMan = temp
|
||||||
End If
|
End If
|
||||||
Return resourceMan
|
Return resourceMan
|
@ -64,9 +64,9 @@ Namespace My
|
|||||||
Friend Module MySettingsProperty
|
Friend Module MySettingsProperty
|
||||||
|
|
||||||
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
||||||
Friend ReadOnly Property Settings() As Global.ET_TestData14278.My.MySettings
|
Friend ReadOnly Property Settings() As Global.ET_TestData21706.My.MySettings
|
||||||
Get
|
Get
|
||||||
Return Global.ET_TestData14278.My.MySettings.Default
|
Return Global.ET_TestData21706.My.MySettings.Default
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
End Module
|
End Module
|
@ -1,7 +1,7 @@
|
|||||||
Infragistics.Win.Misc.UltraPanel, Infragistics4.Win.Misc.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
|
||||||
Infragistics.Win.Misc.UltraButton, Infragistics4.Win.Misc.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
Infragistics.Win.Misc.UltraButton, Infragistics4.Win.Misc.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
||||||
Infragistics.Win.UltraWinEditors.UltraTextEditor, Infragistics4.Win.UltraWinEditors.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
|
||||||
Infragistics.Win.Misc.UltraSplitter, Infragistics4.Win.Misc.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
|
||||||
Infragistics.Win.Misc.UltraLabel, Infragistics4.Win.Misc.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
|
||||||
Infragistics.Win.UltraWinEditors.UltraRadioButton, Infragistics4.Win.UltraWinEditors.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
Infragistics.Win.UltraWinEditors.UltraRadioButton, Infragistics4.Win.UltraWinEditors.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
||||||
Infragistics.Win.UltraWinEditors.UltraComboEditor, Infragistics4.Win.UltraWinEditors.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
Infragistics.Win.UltraWinEditors.UltraComboEditor, Infragistics4.Win.UltraWinEditors.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
||||||
|
Infragistics.Win.Misc.UltraGroupBox, Infragistics4.Win.Misc.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
||||||
|
Infragistics.Win.UltraWinEditors.UltraTextEditor, Infragistics4.Win.UltraWinEditors.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
||||||
|
Infragistics.Win.Misc.UltraLabel, Infragistics4.Win.Misc.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
||||||
|
Infragistics.Win.Misc.UltraPanel, Infragistics4.Win.Misc.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
120
SRC/MESWin/SYS4/21706NEW/frmTestData21706.resx
Normal file
120
SRC/MESWin/SYS4/21706NEW/frmTestData21706.resx
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Imports Infragistics.Win
|
Imports Infragistics.Win
|
||||||
Imports Infragistics.Win.UltraWinGrid
|
Imports Infragistics.Win.UltraWinGrid
|
||||||
Public Class frmTestData14278
|
Public Class frmTestData21706
|
||||||
|
|
||||||
Inherits COM_Kit.frmBasisTemplat
|
Inherits COM_Kit.frmBasisTemplat
|
||||||
|
|
||||||
@ -177,7 +177,7 @@ Public Class frmTestData14278
|
|||||||
'btnEdit
|
'btnEdit
|
||||||
'
|
'
|
||||||
Me.btnEdit.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
Me.btnEdit.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
Me.btnEdit.Location = New System.Drawing.Point(908, 91)
|
Me.btnEdit.Location = New System.Drawing.Point(912, 93)
|
||||||
Me.btnEdit.Name = "btnEdit"
|
Me.btnEdit.Name = "btnEdit"
|
||||||
Me.btnEdit.Size = New System.Drawing.Size(88, 32)
|
Me.btnEdit.Size = New System.Drawing.Size(88, 32)
|
||||||
Me.btnEdit.TabIndex = 21
|
Me.btnEdit.TabIndex = 21
|
||||||
@ -236,7 +236,7 @@ Public Class frmTestData14278
|
|||||||
Me.iugSubcontractor.TabIndex = 25
|
Me.iugSubcontractor.TabIndex = 25
|
||||||
Me.iugSubcontractor.UserNo = "IMes"
|
Me.iugSubcontractor.UserNo = "IMes"
|
||||||
'
|
'
|
||||||
'frmTestData14278
|
'frmTestData_21706
|
||||||
'
|
'
|
||||||
Me.ClientSize = New System.Drawing.Size(1008, 591)
|
Me.ClientSize = New System.Drawing.Size(1008, 591)
|
||||||
Me.Controls.Add(Me.btnClose)
|
Me.Controls.Add(Me.btnClose)
|
||||||
@ -253,8 +253,8 @@ Public Class frmTestData14278
|
|||||||
Me.Controls.Add(Me.iugDetail)
|
Me.Controls.Add(Me.iugDetail)
|
||||||
Me.Controls.Add(Me.btnEdit)
|
Me.Controls.Add(Me.btnEdit)
|
||||||
Me.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
Me.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
Me.Name = "frmTestData14278"
|
Me.Name = "frmTestData_21706"
|
||||||
Me.Text = "ET_TestData14278"
|
Me.Text = "ENT TestData21706"
|
||||||
Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
|
Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
|
||||||
Me.Controls.SetChildIndex(Me.btnEdit, 0)
|
Me.Controls.SetChildIndex(Me.btnEdit, 0)
|
||||||
Me.Controls.SetChildIndex(Me.iugDetail, 0)
|
Me.Controls.SetChildIndex(Me.iugDetail, 0)
|
||||||
@ -327,7 +327,7 @@ Public Class frmTestData14278
|
|||||||
|
|
||||||
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
|
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
|
||||||
|
|
||||||
Dim fSubcontractorDef As New frmTestData14278Def
|
Dim fSubcontractorDef As New frmTestData21706Def
|
||||||
|
|
||||||
fSubcontractorDef.DefMode = 0
|
fSubcontractorDef.DefMode = 0
|
||||||
fSubcontractorDef.ShowDialog(Me)
|
fSubcontractorDef.ShowDialog(Me)
|
||||||
@ -361,8 +361,6 @@ Public Class frmTestData14278
|
|||||||
End If
|
End If
|
||||||
Dim Rows As DataRow()
|
Dim Rows As DataRow()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
'找出DataSet中在目前游標列的資料列(DataRow)
|
'找出DataSet中在目前游標列的資料列(DataRow)
|
||||||
Rows = dsENT.Tables(tblENTSubcontractor).Select("SubcontractorNo = '" _
|
Rows = dsENT.Tables(tblENTSubcontractor).Select("SubcontractorNo = '" _
|
||||||
& Replace(Me.iugSubcontractor.iMESUltraGrid.ActiveRow.Cells("SubcontractorNo").Value.ToString, "'", "''") & "'")
|
& Replace(Me.iugSubcontractor.iMESUltraGrid.ActiveRow.Cells("SubcontractorNo").Value.ToString, "'", "''") & "'")
|
||||||
@ -374,7 +372,7 @@ Public Class frmTestData14278
|
|||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim fSubcontractorDef As New frmTestData14278Def
|
Dim fSubcontractorDef As New frmTestData21706Def
|
||||||
fSubcontractorDef.DefMode = 1
|
fSubcontractorDef.DefMode = 1
|
||||||
fSubcontractorDef.EditDataRow = Rows(0)
|
fSubcontractorDef.EditDataRow = Rows(0)
|
||||||
fSubcontractorDef.ShowDialog(Me)
|
fSubcontractorDef.ShowDialog(Me)
|
||||||
@ -436,7 +434,7 @@ Public Class frmTestData14278
|
|||||||
Try
|
Try
|
||||||
' 2016 YF, OutXml = wsENT.DelSubcontractor(InXml)
|
' 2016 YF, OutXml = wsENT.DelSubcontractor(InXml)
|
||||||
'OutXml = InvokeSrv("wsENT.DelSubcontractor", InXml)
|
'OutXml = InvokeSrv("wsENT.DelSubcontractor", InXml)
|
||||||
OutXml = InvokeSrv("SXS.wsTEST_14278.DelTestDataBasis_14278", InXml)
|
OutXml = InvokeSrv("SXS.wsENT_21706.DelSubcontractor", InXml)
|
||||||
|
|
||||||
XmlDoc.LoadXml(OutXml)
|
XmlDoc.LoadXml(OutXml)
|
||||||
If ChkExecutionSuccess(XmlDoc) Then
|
If ChkExecutionSuccess(XmlDoc) Then
|
||||||
@ -487,7 +485,7 @@ Public Class frmTestData14278
|
|||||||
Rows = dsENT.Tables(tblENTSubcontractor).Select("SubcontractorNo = '" _
|
Rows = dsENT.Tables(tblENTSubcontractor).Select("SubcontractorNo = '" _
|
||||||
& Replace(Me.iugSubcontractor.iMESUltraGrid.ActiveRow.Cells("SubcontractorNo").Value.ToString, "'", "''") & "'")
|
& Replace(Me.iugSubcontractor.iMESUltraGrid.ActiveRow.Cells("SubcontractorNo").Value.ToString, "'", "''") & "'")
|
||||||
|
|
||||||
Dim fSubcontractorDef As New frmTestData14278Def
|
Dim fSubcontractorDef As New frmTestData21706Def
|
||||||
fSubcontractorDef.DefMode = 2
|
fSubcontractorDef.DefMode = 2
|
||||||
fSubcontractorDef.EditDataRow = Rows(0)
|
fSubcontractorDef.EditDataRow = Rows(0)
|
||||||
fSubcontractorDef.ShowDialog(Me)
|
fSubcontractorDef.ShowDialog(Me)
|
||||||
@ -548,7 +546,7 @@ Public Class frmTestData14278
|
|||||||
Try
|
Try
|
||||||
' 2016 YF, OutXml = wsENT.ApproveSubcontractor(InXml)
|
' 2016 YF, OutXml = wsENT.ApproveSubcontractor(InXml)
|
||||||
'OutXml = InvokeSrv("wsENT.ApproveSubcontractor", InXml)
|
'OutXml = InvokeSrv("wsENT.ApproveSubcontractor", InXml)
|
||||||
OutXml = InvokeSrv("SXS.wsTEST_14278.ApproveTestDataBasis_14278", InXml)
|
OutXml = InvokeSrv("SXS.wsENT_21706.ApproveTestData21706", InXml)
|
||||||
|
|
||||||
XmlDoc.LoadXml(OutXml)
|
XmlDoc.LoadXml(OutXml)
|
||||||
If ChkExecutionSuccess(XmlDoc) Then
|
If ChkExecutionSuccess(XmlDoc) Then
|
||||||
@ -589,7 +587,7 @@ Public Class frmTestData14278
|
|||||||
If Not Me.iugSubcontractor.iMESUltraGrid.ActiveRow Is Nothing Then
|
If Not Me.iugSubcontractor.iMESUltraGrid.ActiveRow Is Nothing Then
|
||||||
|
|
||||||
'Dim Rows As DataRow()
|
'Dim Rows As DataRow()
|
||||||
Dim fSubcontractorContDef As New frmTestData14278ContDef
|
Dim fSubcontractorContDef As New frmTestData21706ContDef
|
||||||
|
|
||||||
fSubcontractorContDef.DefMode = 0
|
fSubcontractorContDef.DefMode = 0
|
||||||
fSubcontractorContDef.SubcontractorNo = Me.iugSubcontractor.iMESUltraGrid.ActiveRow.Cells("SubcontractorNo").Value.ToString
|
fSubcontractorContDef.SubcontractorNo = Me.iugSubcontractor.iMESUltraGrid.ActiveRow.Cells("SubcontractorNo").Value.ToString
|
||||||
@ -622,7 +620,7 @@ Public Class frmTestData14278
|
|||||||
& Replace(Me.iugSubcontractor.iMESUltraGrid.ActiveRow.Cells("SubcontractorNo").Value.ToString, "'", "''") & "'" _
|
& Replace(Me.iugSubcontractor.iMESUltraGrid.ActiveRow.Cells("SubcontractorNo").Value.ToString, "'", "''") & "'" _
|
||||||
& " And ContactorName = '" & Replace(Me.iugDetail.iMESUltraGrid.ActiveRow.Cells("ContactorName").Value.ToString, "'", "''") & "'")
|
& " And ContactorName = '" & Replace(Me.iugDetail.iMESUltraGrid.ActiveRow.Cells("ContactorName").Value.ToString, "'", "''") & "'")
|
||||||
|
|
||||||
Dim fSubcontractorContDef As New frmTestData14278ContDef
|
Dim fSubcontractorContDef As New frmTestData21706ContDef
|
||||||
fSubcontractorContDef.DefMode = 1
|
fSubcontractorContDef.DefMode = 1
|
||||||
fSubcontractorContDef.EditDataRow = Rows(0)
|
fSubcontractorContDef.EditDataRow = Rows(0)
|
||||||
fSubcontractorContDef.SubcontractorNo = Me.iugSubcontractor.iMESUltraGrid.ActiveRow.Cells("SubcontractorNo").Value.ToString
|
fSubcontractorContDef.SubcontractorNo = Me.iugSubcontractor.iMESUltraGrid.ActiveRow.Cells("SubcontractorNo").Value.ToString
|
||||||
@ -721,7 +719,7 @@ Public Class frmTestData14278
|
|||||||
& Replace(Me.iugSubcontractor.iMESUltraGrid.ActiveRow.Cells("SubcontractorNo").Value.ToString, "'", "''") & "'" _
|
& Replace(Me.iugSubcontractor.iMESUltraGrid.ActiveRow.Cells("SubcontractorNo").Value.ToString, "'", "''") & "'" _
|
||||||
& " And ContactorName = '" & Replace(Me.iugDetail.iMESUltraGrid.ActiveRow.Cells("ContactorName").Value.ToString, "'", "''") & "'")
|
& " And ContactorName = '" & Replace(Me.iugDetail.iMESUltraGrid.ActiveRow.Cells("ContactorName").Value.ToString, "'", "''") & "'")
|
||||||
|
|
||||||
Dim fSubcontractorContDef As New frmTestData14278ContDef
|
Dim fSubcontractorContDef As New frmTestData21706ContDef
|
||||||
fSubcontractorContDef.DefMode = 2
|
fSubcontractorContDef.DefMode = 2
|
||||||
fSubcontractorContDef.EditDataRow = Rows(0)
|
fSubcontractorContDef.EditDataRow = Rows(0)
|
||||||
fSubcontractorContDef.SubcontractorNo = Me.iugSubcontractor.iMESUltraGrid.ActiveRow.Cells("SubcontractorNo").Value.ToString
|
fSubcontractorContDef.SubcontractorNo = Me.iugSubcontractor.iMESUltraGrid.ActiveRow.Cells("SubcontractorNo").Value.ToString
|
||||||
@ -967,8 +965,8 @@ Public Class frmTestData14278
|
|||||||
|
|
||||||
Try
|
Try
|
||||||
' 2016 YF, OutXml = wsENT.LoadSubcontractor(InXml)
|
' 2016 YF, OutXml = wsENT.LoadSubcontractor(InXml)
|
||||||
' OutXml = InvokeSrv("wsENT.LoadSubcontractor", InXml)
|
'OutXml = InvokeSrv("wsENT.LoadSubcontractor", InXml)
|
||||||
OutXml = InvokeSrv("SXS.wsTEST_14278.LoadTestDataBasis_14278", InXml)
|
OutXml = InvokeSrv("SXS.wsENT_21706.LoadTestData21706", InXml)
|
||||||
|
|
||||||
Dim XmlDoc As New XmlDocument '處理Xml字串之物件?
|
Dim XmlDoc As New XmlDocument '處理Xml字串之物件?
|
||||||
|
|
||||||
@ -978,10 +976,10 @@ Public Class frmTestData14278
|
|||||||
If ChkExecutionSuccess(XmlDoc) Then
|
If ChkExecutionSuccess(XmlDoc) Then
|
||||||
'讀取取出資料表之名稱
|
'讀取取出資料表之名稱
|
||||||
|
|
||||||
tblENTSubcontractor = XmlDoc.GetElementsByTagName("returnvalue").Item(0).SelectNodes("TestDataBasis").Item(0).SelectNodes("name").Item(0).InnerXml
|
tblENTSubcontractor = XmlDoc.GetElementsByTagName("returnvalue").Item(0).SelectNodes("loadTestData21706").Item(0).SelectNodes("name").Item(0).InnerXml
|
||||||
'取出Schema,dataset讀取Schema可防止Null Field及DateTime的問題
|
'取出Schema,dataset讀取Schema可防止Null Field及DateTime的問題
|
||||||
|
|
||||||
XmlSchema = XmlDoc.DocumentElement.GetElementsByTagName("TestDataBasis").Item(0).SelectNodes("schema").Item(0).InnerXml
|
XmlSchema = XmlDoc.DocumentElement.GetElementsByTagName("loadTestData21706").Item(0).SelectNodes("schema").Item(0).InnerXml
|
||||||
If XmlSchema <> "" Then
|
If XmlSchema <> "" Then
|
||||||
'將XML讀入String Reader object中,因為Dataset讀入XML時必須透過String Reader物件
|
'將XML讀入String Reader object中,因為Dataset讀入XML時必須透過String Reader物件
|
||||||
tmpStringReader = New System.IO.StringReader(XmlSchema)
|
tmpStringReader = New System.IO.StringReader(XmlSchema)
|
||||||
@ -990,7 +988,7 @@ Public Class frmTestData14278
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'取出Data
|
'取出Data
|
||||||
XmlData = XmlDoc.DocumentElement.GetElementsByTagName("TestDataBasis").Item(0).SelectNodes("value").Item(0).InnerXml
|
XmlData = XmlDoc.DocumentElement.GetElementsByTagName("loadTestData21706").Item(0).SelectNodes("value").Item(0).InnerXml
|
||||||
If XmlData <> "" Then
|
If XmlData <> "" Then
|
||||||
tmpStringReader = New System.IO.StringReader(XmlData)
|
tmpStringReader = New System.IO.StringReader(XmlData)
|
||||||
dsENT.ReadXml(tmpStringReader, XmlReadMode.InferSchema)
|
dsENT.ReadXml(tmpStringReader, XmlReadMode.InferSchema)
|
120
SRC/MESWin/SYS4/21706NEW/frmTestData21706ContDef.resx
Normal file
120
SRC/MESWin/SYS4/21706NEW/frmTestData21706ContDef.resx
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
@ -1,6 +1,6 @@
|
|||||||
Imports iMESExceptionManager
|
Imports iMESExceptionManager
|
||||||
|
|
||||||
Public Class frmTestData14278ContDef
|
Public Class frmTestData21706ContDef
|
||||||
|
|
||||||
Inherits COM_Kit.frmDefTemplat
|
Inherits COM_Kit.frmDefTemplat
|
||||||
|
|
||||||
@ -652,7 +652,5 @@ Public Class frmTestData14278ContDef
|
|||||||
Private Sub frmSubcontractorContDef_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
|
Private Sub frmSubcontractorContDef_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
|
||||||
' 2016 YF, If Not wsENT Is Nothing Then wsENT.Dispose()
|
' 2016 YF, If Not wsENT Is Nothing Then wsENT.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
120
SRC/MESWin/SYS4/21706NEW/frmTestData21706Def.resx
Normal file
120
SRC/MESWin/SYS4/21706NEW/frmTestData21706Def.resx
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
@ -1,6 +1,6 @@
|
|||||||
Imports iMESExceptionManager
|
Imports iMESExceptionManager
|
||||||
|
|
||||||
Public Class frmTestData14278Def
|
Public Class frmTestData21706Def
|
||||||
|
|
||||||
Inherits COM_Kit.frmDefTemplat
|
Inherits COM_Kit.frmDefTemplat
|
||||||
|
|
||||||
@ -71,20 +71,20 @@ Public Class frmTestData14278Def
|
|||||||
'
|
'
|
||||||
'gbxBasisData
|
'gbxBasisData
|
||||||
'
|
'
|
||||||
Me.gbxBasisData.Location = New System.Drawing.Point(12, 188)
|
Me.gbxBasisData.Location = New System.Drawing.Point(12, 185)
|
||||||
Me.gbxBasisData.Size = New System.Drawing.Size(481, 70)
|
Me.gbxBasisData.Size = New System.Drawing.Size(479, 70)
|
||||||
'
|
'
|
||||||
'btnApply
|
'btnApply
|
||||||
'
|
'
|
||||||
Me.btnApply.Location = New System.Drawing.Point(405, 267)
|
Me.btnApply.Location = New System.Drawing.Point(403, 264)
|
||||||
'
|
'
|
||||||
'btnConfirm
|
'btnConfirm
|
||||||
'
|
'
|
||||||
Me.btnConfirm.Location = New System.Drawing.Point(217, 267)
|
Me.btnConfirm.Location = New System.Drawing.Point(215, 264)
|
||||||
'
|
'
|
||||||
'btnClose
|
'btnClose
|
||||||
'
|
'
|
||||||
Me.btnClose.Location = New System.Drawing.Point(311, 267)
|
Me.btnClose.Location = New System.Drawing.Point(309, 264)
|
||||||
'
|
'
|
||||||
'gbxSubcontractorData
|
'gbxSubcontractorData
|
||||||
'
|
'
|
||||||
@ -100,7 +100,7 @@ Public Class frmTestData14278Def
|
|||||||
Me.gbxSubcontractorData.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
Me.gbxSubcontractorData.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
Me.gbxSubcontractorData.Location = New System.Drawing.Point(12, 8)
|
Me.gbxSubcontractorData.Location = New System.Drawing.Point(12, 8)
|
||||||
Me.gbxSubcontractorData.Name = "gbxSubcontractorData"
|
Me.gbxSubcontractorData.Name = "gbxSubcontractorData"
|
||||||
Me.gbxSubcontractorData.Size = New System.Drawing.Size(481, 172)
|
Me.gbxSubcontractorData.Size = New System.Drawing.Size(479, 169)
|
||||||
Me.gbxSubcontractorData.TabIndex = 7
|
Me.gbxSubcontractorData.TabIndex = 7
|
||||||
Me.gbxSubcontractorData.TabStop = False
|
Me.gbxSubcontractorData.TabStop = False
|
||||||
Me.gbxSubcontractorData.Text = "Subcontractor Data"
|
Me.gbxSubcontractorData.Text = "Subcontractor Data"
|
||||||
@ -164,12 +164,12 @@ Public Class frmTestData14278Def
|
|||||||
Me.txtSubcontractorName.Size = New System.Drawing.Size(334, 22)
|
Me.txtSubcontractorName.Size = New System.Drawing.Size(334, 22)
|
||||||
Me.txtSubcontractorName.TabIndex = 1
|
Me.txtSubcontractorName.TabIndex = 1
|
||||||
'
|
'
|
||||||
'frmTestData14278Def
|
'frmSubcontractorDef
|
||||||
'
|
'
|
||||||
Me.ClientSize = New System.Drawing.Size(505, 312)
|
Me.ClientSize = New System.Drawing.Size(503, 309)
|
||||||
Me.Controls.Add(Me.gbxSubcontractorData)
|
Me.Controls.Add(Me.gbxSubcontractorData)
|
||||||
Me.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
Me.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
Me.Name = "frmTestData14278Def"
|
Me.Name = "frmSubcontractorDef"
|
||||||
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
|
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
|
||||||
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||||
Me.Text = "ENT Subcontractor Define"
|
Me.Text = "ENT Subcontractor Define"
|
||||||
@ -226,8 +226,9 @@ Public Class frmTestData14278Def
|
|||||||
SetCreateDate(Convert.ToDateTime(EditDataRow.Item("CreateDate")))
|
SetCreateDate(Convert.ToDateTime(EditDataRow.Item("CreateDate")))
|
||||||
SetReviser(gUserNo)
|
SetReviser(gUserNo)
|
||||||
SetReviseDate(Now)
|
SetReviseDate(Now)
|
||||||
intDataStamp = CInt(EditDataRow.Item("DataStamp").ToString())
|
intDataStamp = EditDataRow.Item("DataStamp")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
btnApplyEnabled = False
|
btnApplyEnabled = False
|
||||||
|
|
||||||
'語系切換
|
'語系切換
|
||||||
@ -379,7 +380,7 @@ Public Class frmTestData14278Def
|
|||||||
InXml = CombineXMLRequest(strIdentity, strParameter)
|
InXml = CombineXMLRequest(strIdentity, strParameter)
|
||||||
|
|
||||||
' 2016 YF, OutXml = wsENT.AddSubcontractor(InXml)
|
' 2016 YF, OutXml = wsENT.AddSubcontractor(InXml)
|
||||||
OutXml = InvokeSrv("SXS.wsTEST_14278.AddTestDataBasis_14278", InXml)
|
OutXml = InvokeSrv("SXS.wsENT_21706.AddTestData21706", InXml)
|
||||||
|
|
||||||
Else
|
Else
|
||||||
'修改
|
'修改
|
||||||
@ -389,7 +390,7 @@ Public Class frmTestData14278Def
|
|||||||
InXml = CombineXMLRequest(strIdentity, strParameter)
|
InXml = CombineXMLRequest(strIdentity, strParameter)
|
||||||
|
|
||||||
' 2016 YF, OutXml = wsENT.EditSubcontractor(InXml)
|
' 2016 YF, OutXml = wsENT.EditSubcontractor(InXml)
|
||||||
OutXml = InvokeSrv("SXS.wsTEST_14278.EditTestDataBasis_14278", InXml)
|
OutXml = InvokeSrv("SXS.wsENT_21706.EditTestData21706", InXml)
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@ -414,8 +415,6 @@ Public Class frmTestData14278Def
|
|||||||
|
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
End Class
|
End Class
|
BIN
SRC/MESWin/SYS4/21706NEW/iMES.snk
Normal file
BIN
SRC/MESWin/SYS4/21706NEW/iMES.snk
Normal file
Binary file not shown.
@ -0,0 +1,10 @@
|
|||||||
|
""
|
||||||
|
{
|
||||||
|
"FILE_VERSION" = "9237"
|
||||||
|
"ENLISTMENT_CHOICE" = "NEVER"
|
||||||
|
"PROJECT_FILE_RELATIVE_PATH" = ""
|
||||||
|
"NUMBER_OF_EXCLUDED_FILES" = "0"
|
||||||
|
"ORIGINAL_PROJECT_FILE_PATH" = ""
|
||||||
|
"NUMBER_OF_NESTED_PROJECTS" = "0"
|
||||||
|
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
|
||||||
|
}
|
@ -0,0 +1,31 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.34407.143
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ET_Subcontractor21671", "ET_Subcontractor21671.vbproj", "{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}"
|
||||||
|
EndProject
|
||||||
|
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Test", "..\..\Test\Test.vbproj", "{C4A48E3F-38E4-4E88-A47D-FA5510686E57}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|x86 = Debug|x86
|
||||||
|
Release|x86 = Release|x86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}.Debug|x86.ActiveCfg = Debug|x86
|
||||||
|
{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}.Debug|x86.Build.0 = Debug|x86
|
||||||
|
{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}.Release|x86.ActiveCfg = Release|x86
|
||||||
|
{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}.Release|x86.Build.0 = Release|x86
|
||||||
|
{C4A48E3F-38E4-4E88-A47D-FA5510686E57}.Debug|x86.ActiveCfg = Debug|x86
|
||||||
|
{C4A48E3F-38E4-4E88-A47D-FA5510686E57}.Debug|x86.Build.0 = Debug|x86
|
||||||
|
{C4A48E3F-38E4-4E88-A47D-FA5510686E57}.Release|x86.ActiveCfg = Release|x86
|
||||||
|
{C4A48E3F-38E4-4E88-A47D-FA5510686E57}.Release|x86.Build.0 = Release|x86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {27A8E809-CCBB-41A0-A6A6-F3A27B70C5DF}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
194
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/ET_Subcontractor21671.vbproj
Normal file
194
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/ET_Subcontractor21671.vbproj
Normal file
@ -0,0 +1,194 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||||
|
<ProjectGuid>{D6EE7B96-F10E-44E2-9731-162B70B4C8DD}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<RootNamespace>ET_Subcontractor_21671</RootNamespace>
|
||||||
|
<AssemblyName>ET_Subcontractor_21671</AssemblyName>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<MyType>Windows</MyType>
|
||||||
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
|
<SccProjectName>SAK</SccProjectName>
|
||||||
|
<SccLocalPath>SAK</SccLocalPath>
|
||||||
|
<SccAuxPath>SAK</SccAuxPath>
|
||||||
|
<SccProvider>SAK</SccProvider>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionExplicit>On</OptionExplicit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionCompare>Binary</OptionCompare>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionStrict>Off</OptionStrict>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionInfer>On</OptionInfer>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DefineDebug>true</DefineDebug>
|
||||||
|
<DefineTrace>true</DefineTrace>
|
||||||
|
<OutputPath>..\..\..\MESClient\</OutputPath>
|
||||||
|
<DocumentationFile>ET_Subcontractor_21671.xml</DocumentationFile>
|
||||||
|
<WarningLevel>0</WarningLevel>
|
||||||
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
<Prefer32Bit>false</Prefer32Bit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||||
|
<DefineTrace>true</DefineTrace>
|
||||||
|
<OutputPath>..\..\..\MESClient\</OutputPath>
|
||||||
|
<DocumentationFile>ET_Subcontractor_21671.xml</DocumentationFile>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<WarningLevel>0</WarningLevel>
|
||||||
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
<Prefer32Bit>false</Prefer32Bit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<SignAssembly>true</SignAssembly>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<AssemblyOriginatorKeyFile>iMES.snk</AssemblyOriginatorKeyFile>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="Infragistics4.Win.v19.1, Version=19.1.20191.82, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>C:\Program Files (x86)\Infragistics\2019.1\Windows Forms\CLR4.0\Bin\Infragistics4.Win.v19.1.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Infragistics4.Win.UltraWinGrid.v19.1, Version=19.1.20191.82, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>C:\Program Files (x86)\Infragistics\2019.1\Windows Forms\CLR4.0\Bin\Infragistics4.Win.UltraWinGrid.v19.1.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Infragistics4.Win.UltraWinEditors.v19.1, Version=19.1.20191.82, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>C:\Program Files (x86)\Infragistics\2019.1\Windows Forms\CLR4.0\Bin\Infragistics4.Win.UltraWinEditors.v19.1.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Infragistics4.Win.Misc.v19.1, Version=19.1.20191.82, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>C:\Program Files (x86)\Infragistics\2019.1\Windows Forms\CLR4.0\Bin\Infragistics4.Win.Misc.v19.1.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Infragistics4.Shared.v19.1, Version=19.1.20191.82, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>C:\Program Files (x86)\Infragistics\2019.1\Windows Forms\CLR4.0\Bin\Infragistics4.Shared.v19.1.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="COM_Kit">
|
||||||
|
<HintPath>..\..\..\MESClient\COM_Kit.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="iMESExceptionManager">
|
||||||
|
<HintPath>..\..\..\MES_C_DLL\iMESExceptionManager.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="iMESUltraGrid">
|
||||||
|
<HintPath>..\..\..\MES_C_DLL\iMESUltraGrid.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Drawing" />
|
||||||
|
<Reference Include="System.Windows.Forms" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Import Include="COM_Kit.clsGlobalVariables" />
|
||||||
|
<Import Include="COM_Kit.clsKit" />
|
||||||
|
<Import Include="Microsoft.VisualBasic" />
|
||||||
|
<Import Include="System" />
|
||||||
|
<Import Include="System.Collections" />
|
||||||
|
<Import Include="System.Collections.Generic" />
|
||||||
|
<Import Include="System.Data" />
|
||||||
|
<Import Include="System.Diagnostics" />
|
||||||
|
<Import Include="System.Drawing" />
|
||||||
|
<Import Include="System.Linq" />
|
||||||
|
<Import Include="System.Windows.Forms" />
|
||||||
|
<Import Include="System.Xml" />
|
||||||
|
<Import Include="System.Xml.Linq" />
|
||||||
|
<Import Include="System.Threading.Tasks" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="..\..\shared file\modConstant.vb">
|
||||||
|
<Link>modConstant.vb</Link>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="frmTestData21671.vb">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="frmTestData21671ContDef.vb">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="frmTestData21671Def.vb">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||||
|
<Compile Include="My Project\Application.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Application.myapp</DependentUpon>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\Resources.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\Settings.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Settings.settings</DependentUpon>
|
||||||
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
|
</Compile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<EmbeddedResource Include="frmTestData21671.resx">
|
||||||
|
<DependentUpon>frmTestData21671.vb</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="frmTestData21671ContDef.resx">
|
||||||
|
<DependentUpon>frmTestData21671ContDef.vb</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="frmTestData21671Def.resx">
|
||||||
|
<DependentUpon>frmTestData21671Def.vb</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="My Project\licenses.licx" />
|
||||||
|
<EmbeddedResource Include="My Project\Resources.resx">
|
||||||
|
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
||||||
|
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</EmbeddedResource>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="iMES.snk" />
|
||||||
|
<None Include="My Project\Application.myapp">
|
||||||
|
<Generator>MyApplicationCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Application.Designer.vb</LastGenOutput>
|
||||||
|
</None>
|
||||||
|
<None Include="My Project\Settings.settings">
|
||||||
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
|
<CustomToolNamespace>My</CustomToolNamespace>
|
||||||
|
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
<Import Project="..\..\shared file\MakeVersion.targets" Condition="exists('..\..\shared file\MakeVersion.targets')" />
|
||||||
|
</Project>
|
13
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/My Project/Application.Designer.vb
generated
Normal file
13
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/My Project/Application.Designer.vb
generated
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <auto-generated>
|
||||||
|
' 此代码由工具生成。
|
||||||
|
' 运行时版本:4.0.30319.42000
|
||||||
|
'
|
||||||
|
' 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
' 重新生成代码,这些更改将会丢失。
|
||||||
|
' </auto-generated>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
|
<MySubMain>false</MySubMain>
|
||||||
|
<SingleInstance>false</SingleInstance>
|
||||||
|
<ShutdownMode>0</ShutdownMode>
|
||||||
|
<EnableVisualStyles>true</EnableVisualStyles>
|
||||||
|
<AuthenticationMode>0</AuthenticationMode>
|
||||||
|
<ApplicationType>1</ApplicationType>
|
||||||
|
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
||||||
|
</MyApplicationData>
|
@ -0,0 +1,35 @@
|
|||||||
|
Imports System
|
||||||
|
Imports System.Reflection
|
||||||
|
Imports System.Runtime.InteropServices
|
||||||
|
|
||||||
|
' 組件的一般資訊是由下列的屬性集控制。
|
||||||
|
' 變更這些屬性的值即可修改組件的相關
|
||||||
|
' 資訊。
|
||||||
|
|
||||||
|
' 檢閱組件屬性的值
|
||||||
|
|
||||||
|
<Assembly: AssemblyTitle("ET_Subcontractor")>
|
||||||
|
<Assembly: AssemblyDescription("")>
|
||||||
|
<Assembly: AssemblyCompany("iMES Technology Inc.")>
|
||||||
|
<Assembly: AssemblyProduct("MESSeries 6")>
|
||||||
|
<Assembly: AssemblyCopyright("Copyright © iMES Technology Inc.")>
|
||||||
|
<Assembly: AssemblyTrademark("")>
|
||||||
|
|
||||||
|
<Assembly: ComVisible(False)>
|
||||||
|
|
||||||
|
'下列 GUID 為專案公開 (Expose) 至 COM 時所要使用的 typelib ID
|
||||||
|
<Assembly: Guid("cb602012-a17f-433f-b777-ace6a6a676c1")>
|
||||||
|
|
||||||
|
' 組件的版本資訊由下列四個值所組成:
|
||||||
|
'
|
||||||
|
' 主要版本
|
||||||
|
' 次要版本
|
||||||
|
' 組建編號
|
||||||
|
' 修訂編號
|
||||||
|
'
|
||||||
|
' 您可以指定所有的值,也可以依照以下的方式,使用 '*' 將組建和修訂編號
|
||||||
|
' 指定為預設值:
|
||||||
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
|
<Assembly: AssemblyVersion("6.0.0.0")>
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
<Assembly: Reflection.AssemblyFileVersion("6.0.5.40117")>
|
63
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/My Project/Resources.Designer.vb
generated
Normal file
63
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/My Project/Resources.Designer.vb
generated
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <auto-generated>
|
||||||
|
' 此代码由工具生成。
|
||||||
|
' 运行时版本:4.0.30319.42000
|
||||||
|
'
|
||||||
|
' 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
' 重新生成代码,这些更改将会丢失。
|
||||||
|
' </auto-generated>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
|
Imports System
|
||||||
|
|
||||||
|
Namespace My.Resources
|
||||||
|
|
||||||
|
'此类是由 StronglyTypedResourceBuilder
|
||||||
|
'类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||||
|
'若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||||
|
'(以 /str 作为命令选项),或重新生成 VS 项目。
|
||||||
|
'''<summary>
|
||||||
|
''' 一个强类型的资源类,用于查找本地化的字符串等。
|
||||||
|
'''</summary>
|
||||||
|
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0"), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
|
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
|
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
||||||
|
Friend Module Resources
|
||||||
|
|
||||||
|
Private resourceMan As Global.System.Resources.ResourceManager
|
||||||
|
|
||||||
|
Private resourceCulture As Global.System.Globalization.CultureInfo
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' 返回此类使用的缓存的 ResourceManager 实例。
|
||||||
|
'''</summary>
|
||||||
|
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
||||||
|
Get
|
||||||
|
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
||||||
|
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("ET_Subcontractor_21671.Resources", GetType(Resources).Assembly)
|
||||||
|
resourceMan = temp
|
||||||
|
End If
|
||||||
|
Return resourceMan
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' 重写当前线程的 CurrentUICulture 属性,对
|
||||||
|
''' 使用此强类型资源类的所有资源查找执行重写。
|
||||||
|
'''</summary>
|
||||||
|
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Friend Property Culture() As Global.System.Globalization.CultureInfo
|
||||||
|
Get
|
||||||
|
Return resourceCulture
|
||||||
|
End Get
|
||||||
|
Set
|
||||||
|
resourceCulture = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
End Module
|
||||||
|
End Namespace
|
117
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/My Project/Resources.resx
Normal file
117
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/My Project/Resources.resx
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
73
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/My Project/Settings.Designer.vb
generated
Normal file
73
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/My Project/Settings.Designer.vb
generated
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <auto-generated>
|
||||||
|
' 此代码由工具生成。
|
||||||
|
' 运行时版本:4.0.30319.42000
|
||||||
|
'
|
||||||
|
' 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
|
' 重新生成代码,这些更改将会丢失。
|
||||||
|
' </auto-generated>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
|
|
||||||
|
Namespace My
|
||||||
|
|
||||||
|
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0"), _
|
||||||
|
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Partial Friend NotInheritable Class MySettings
|
||||||
|
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||||
|
|
||||||
|
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
|
||||||
|
|
||||||
|
#Region "My.Settings 自动保存功能"
|
||||||
|
#If _MyType = "WindowsForms" Then
|
||||||
|
Private Shared addedHandler As Boolean
|
||||||
|
|
||||||
|
Private Shared addedHandlerLockObject As New Object
|
||||||
|
|
||||||
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Private Shared Sub AutoSaveSettings(sender As Global.System.Object, e As Global.System.EventArgs)
|
||||||
|
If My.Application.SaveMySettingsOnExit Then
|
||||||
|
My.Settings.Save()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
#End If
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
Public Shared ReadOnly Property [Default]() As MySettings
|
||||||
|
Get
|
||||||
|
|
||||||
|
#If _MyType = "WindowsForms" Then
|
||||||
|
If Not addedHandler Then
|
||||||
|
SyncLock addedHandlerLockObject
|
||||||
|
If Not addedHandler Then
|
||||||
|
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
||||||
|
addedHandler = True
|
||||||
|
End If
|
||||||
|
End SyncLock
|
||||||
|
End If
|
||||||
|
#End If
|
||||||
|
Return defaultInstance
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
End Class
|
||||||
|
End Namespace
|
||||||
|
|
||||||
|
Namespace My
|
||||||
|
|
||||||
|
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
|
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
||||||
|
Friend Module MySettingsProperty
|
||||||
|
|
||||||
|
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
||||||
|
Friend ReadOnly Property Settings() As Global.ET_Subcontractor_21671.My.MySettings
|
||||||
|
Get
|
||||||
|
Return Global.ET_Subcontractor_21671.My.MySettings.Default
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
End Module
|
||||||
|
End Namespace
|
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
|
||||||
|
<Profiles>
|
||||||
|
<Profile Name="(Default)" />
|
||||||
|
</Profiles>
|
||||||
|
<Settings />
|
||||||
|
</SettingsFile>
|
@ -0,0 +1,7 @@
|
|||||||
|
Infragistics.Win.Misc.UltraButton, Infragistics4.Win.Misc.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
||||||
|
Infragistics.Win.UltraWinEditors.UltraRadioButton, Infragistics4.Win.UltraWinEditors.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
||||||
|
Infragistics.Win.UltraWinEditors.UltraComboEditor, Infragistics4.Win.UltraWinEditors.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
||||||
|
Infragistics.Win.Misc.UltraGroupBox, Infragistics4.Win.Misc.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
||||||
|
Infragistics.Win.UltraWinEditors.UltraTextEditor, Infragistics4.Win.UltraWinEditors.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
||||||
|
Infragistics.Win.Misc.UltraLabel, Infragistics4.Win.Misc.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
||||||
|
Infragistics.Win.Misc.UltraPanel, Infragistics4.Win.Misc.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb
|
120
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/frmTestData21671.resx
Normal file
120
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/frmTestData21671.resx
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
1142
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/frmTestData21671.vb
Normal file
1142
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/frmTestData21671.vb
Normal file
File diff suppressed because it is too large
Load Diff
120
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/frmTestData21671ContDef.resx
Normal file
120
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/frmTestData21671ContDef.resx
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
691
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/frmTestData21671ContDef.vb
Normal file
691
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/frmTestData21671ContDef.vb
Normal file
@ -0,0 +1,691 @@
|
|||||||
|
Imports iMESExceptionManager
|
||||||
|
|
||||||
|
Public Class frmTestData21671ContDef
|
||||||
|
|
||||||
|
Inherits COM_Kit.frmDefTemplat
|
||||||
|
|
||||||
|
'//Public Variables
|
||||||
|
Public EditDataRow As DataRow
|
||||||
|
Public DefMode As Integer = 0 '0. ADD, 1.Edit, 2. Copy
|
||||||
|
|
||||||
|
Public SubcontractorNo As String = defString
|
||||||
|
Public PrivFunNo As String = defString
|
||||||
|
|
||||||
|
'//Web Service相關變數
|
||||||
|
' 2016 YF, Dim wsENT As New wsENT.wsENT
|
||||||
|
Dim InXml As String
|
||||||
|
Dim OutXml As String
|
||||||
|
|
||||||
|
Dim strIdentity As String
|
||||||
|
Dim strParameter As String
|
||||||
|
Friend WithEvents UltraTextEditor1 As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents dll21671 As Label
|
||||||
|
Dim intDataStamp As Integer '紀錄DataStamp
|
||||||
|
|
||||||
|
#Region " Windows Form Designer generated code "
|
||||||
|
|
||||||
|
Public Sub New()
|
||||||
|
MyBase.New()
|
||||||
|
|
||||||
|
'This call is required by the Windows Form Designer.
|
||||||
|
InitializeComponent()
|
||||||
|
|
||||||
|
'Add any initialization after the InitializeComponent() call
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Form overrides dispose to clean up the component list.
|
||||||
|
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||||
|
If disposing Then
|
||||||
|
If Not (components Is Nothing) Then
|
||||||
|
components.Dispose()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
MyBase.Dispose(disposing)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Required by the Windows Form Designer
|
||||||
|
Private components As System.ComponentModel.IContainer
|
||||||
|
|
||||||
|
'NOTE: The following procedure is required by the Windows Form Designer
|
||||||
|
'It can be modified using the Windows Form Designer.
|
||||||
|
'Do not modify it using the code editor.
|
||||||
|
Friend WithEvents txtDescription As System.Windows.Forms.RichTextBox
|
||||||
|
Friend WithEvents lblAddress As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblEMail As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblTitle As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblFaxNo As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblTelNo As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblDescription As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblContactorName As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblSubcontractorNo As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents gbxSubcontractorContData As System.Windows.Forms.GroupBox
|
||||||
|
Friend WithEvents txtSubcontractorNo As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtContactorName As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtFaxNo As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtTelNo As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtEMail As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtTitle As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtAddress As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
|
||||||
|
Dim Appearance1 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance()
|
||||||
|
Me.gbxSubcontractorContData = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.txtAddress = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtEMail = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtTitle = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtFaxNo = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.lblAddress = New System.Windows.Forms.Label()
|
||||||
|
Me.lblEMail = New System.Windows.Forms.Label()
|
||||||
|
Me.lblTitle = New System.Windows.Forms.Label()
|
||||||
|
Me.lblFaxNo = New System.Windows.Forms.Label()
|
||||||
|
Me.lblTelNo = New System.Windows.Forms.Label()
|
||||||
|
Me.txtDescription = New System.Windows.Forms.RichTextBox()
|
||||||
|
Me.lblDescription = New System.Windows.Forms.Label()
|
||||||
|
Me.lblSubcontractorNo = New System.Windows.Forms.Label()
|
||||||
|
Me.lblContactorName = New System.Windows.Forms.Label()
|
||||||
|
Me.txtSubcontractorNo = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtContactorName = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtTelNo = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.dll21671 = New System.Windows.Forms.Label()
|
||||||
|
Me.UltraTextEditor1 = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
CType(Me.gbxBasisData, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
Me.gbxSubcontractorContData.SuspendLayout()
|
||||||
|
CType(Me.txtAddress, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtEMail, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtTitle, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtFaxNo, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtSubcontractorNo, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtContactorName, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtTelNo, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.UltraTextEditor1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
Me.SuspendLayout()
|
||||||
|
'
|
||||||
|
'gbxBasisData
|
||||||
|
'
|
||||||
|
Me.gbxBasisData.Location = New System.Drawing.Point(12, 322)
|
||||||
|
Me.gbxBasisData.Size = New System.Drawing.Size(472, 70)
|
||||||
|
'
|
||||||
|
'btnApply
|
||||||
|
'
|
||||||
|
Me.btnApply.Location = New System.Drawing.Point(396, 401)
|
||||||
|
'
|
||||||
|
'btnConfirm
|
||||||
|
'
|
||||||
|
Me.btnConfirm.Location = New System.Drawing.Point(208, 401)
|
||||||
|
'
|
||||||
|
'btnClose
|
||||||
|
'
|
||||||
|
Me.btnClose.Location = New System.Drawing.Point(302, 401)
|
||||||
|
'
|
||||||
|
'gbxSubcontractorContData
|
||||||
|
'
|
||||||
|
Me.gbxSubcontractorContData.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.UltraTextEditor1)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.dll21671)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtAddress)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtEMail)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtTitle)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtFaxNo)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblAddress)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblEMail)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblTitle)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblFaxNo)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblTelNo)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtDescription)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblDescription)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblSubcontractorNo)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.lblContactorName)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtSubcontractorNo)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtContactorName)
|
||||||
|
Me.gbxSubcontractorContData.Controls.Add(Me.txtTelNo)
|
||||||
|
Me.gbxSubcontractorContData.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.gbxSubcontractorContData.Location = New System.Drawing.Point(15, 8)
|
||||||
|
Me.gbxSubcontractorContData.Name = "gbxSubcontractorContData"
|
||||||
|
Me.gbxSubcontractorContData.Size = New System.Drawing.Size(469, 306)
|
||||||
|
Me.gbxSubcontractorContData.TabIndex = 0
|
||||||
|
Me.gbxSubcontractorContData.TabStop = False
|
||||||
|
Me.gbxSubcontractorContData.Text = "ENT Subcontractor Contactor Data"
|
||||||
|
'
|
||||||
|
'txtAddress
|
||||||
|
'
|
||||||
|
Me.txtAddress.Location = New System.Drawing.Point(116, 152)
|
||||||
|
Me.txtAddress.Name = "txtAddress"
|
||||||
|
Me.txtAddress.Size = New System.Drawing.Size(336, 26)
|
||||||
|
Me.txtAddress.TabIndex = 13
|
||||||
|
'
|
||||||
|
'txtEMail
|
||||||
|
'
|
||||||
|
Me.txtEMail.Location = New System.Drawing.Point(320, 120)
|
||||||
|
Me.txtEMail.Name = "txtEMail"
|
||||||
|
Me.txtEMail.Size = New System.Drawing.Size(136, 26)
|
||||||
|
Me.txtEMail.TabIndex = 11
|
||||||
|
'
|
||||||
|
'txtTitle
|
||||||
|
'
|
||||||
|
Me.txtTitle.Location = New System.Drawing.Point(120, 120)
|
||||||
|
Me.txtTitle.Name = "txtTitle"
|
||||||
|
Me.txtTitle.Size = New System.Drawing.Size(114, 26)
|
||||||
|
Me.txtTitle.TabIndex = 9
|
||||||
|
'
|
||||||
|
'txtFaxNo
|
||||||
|
'
|
||||||
|
Me.txtFaxNo.Location = New System.Drawing.Point(320, 88)
|
||||||
|
Me.txtFaxNo.Name = "txtFaxNo"
|
||||||
|
Me.txtFaxNo.Size = New System.Drawing.Size(136, 26)
|
||||||
|
Me.txtFaxNo.TabIndex = 7
|
||||||
|
'
|
||||||
|
'lblAddress
|
||||||
|
'
|
||||||
|
Me.lblAddress.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblAddress.Location = New System.Drawing.Point(24, 154)
|
||||||
|
Me.lblAddress.Name = "lblAddress"
|
||||||
|
Me.lblAddress.Size = New System.Drawing.Size(86, 14)
|
||||||
|
Me.lblAddress.TabIndex = 12
|
||||||
|
Me.lblAddress.Text = "Address"
|
||||||
|
Me.lblAddress.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblEMail
|
||||||
|
'
|
||||||
|
Me.lblEMail.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblEMail.Location = New System.Drawing.Point(248, 123)
|
||||||
|
Me.lblEMail.Name = "lblEMail"
|
||||||
|
Me.lblEMail.Size = New System.Drawing.Size(64, 14)
|
||||||
|
Me.lblEMail.TabIndex = 10
|
||||||
|
Me.lblEMail.Text = "EMail"
|
||||||
|
Me.lblEMail.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblTitle
|
||||||
|
'
|
||||||
|
Me.lblTitle.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblTitle.Location = New System.Drawing.Point(24, 121)
|
||||||
|
Me.lblTitle.Name = "lblTitle"
|
||||||
|
Me.lblTitle.Size = New System.Drawing.Size(86, 14)
|
||||||
|
Me.lblTitle.TabIndex = 8
|
||||||
|
Me.lblTitle.Text = "Title"
|
||||||
|
Me.lblTitle.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblFaxNo
|
||||||
|
'
|
||||||
|
Me.lblFaxNo.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblFaxNo.Location = New System.Drawing.Point(248, 90)
|
||||||
|
Me.lblFaxNo.Name = "lblFaxNo"
|
||||||
|
Me.lblFaxNo.Size = New System.Drawing.Size(64, 14)
|
||||||
|
Me.lblFaxNo.TabIndex = 6
|
||||||
|
Me.lblFaxNo.Text = "FaxNo"
|
||||||
|
Me.lblFaxNo.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblTelNo
|
||||||
|
'
|
||||||
|
Me.lblTelNo.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblTelNo.Location = New System.Drawing.Point(24, 90)
|
||||||
|
Me.lblTelNo.Name = "lblTelNo"
|
||||||
|
Me.lblTelNo.Size = New System.Drawing.Size(86, 14)
|
||||||
|
Me.lblTelNo.TabIndex = 4
|
||||||
|
Me.lblTelNo.Text = "TelNo"
|
||||||
|
Me.lblTelNo.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'txtDescription
|
||||||
|
'
|
||||||
|
Me.txtDescription.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.txtDescription.Location = New System.Drawing.Point(116, 190)
|
||||||
|
Me.txtDescription.Name = "txtDescription"
|
||||||
|
Me.txtDescription.Size = New System.Drawing.Size(316, 36)
|
||||||
|
Me.txtDescription.TabIndex = 15
|
||||||
|
Me.txtDescription.Text = ""
|
||||||
|
'
|
||||||
|
'lblDescription
|
||||||
|
'
|
||||||
|
Me.lblDescription.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblDescription.Location = New System.Drawing.Point(24, 186)
|
||||||
|
Me.lblDescription.Name = "lblDescription"
|
||||||
|
Me.lblDescription.Size = New System.Drawing.Size(86, 14)
|
||||||
|
Me.lblDescription.TabIndex = 14
|
||||||
|
Me.lblDescription.Text = "Description"
|
||||||
|
Me.lblDescription.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblSubcontractorNo
|
||||||
|
'
|
||||||
|
Me.lblSubcontractorNo.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblSubcontractorNo.Location = New System.Drawing.Point(14, 29)
|
||||||
|
Me.lblSubcontractorNo.Name = "lblSubcontractorNo"
|
||||||
|
Me.lblSubcontractorNo.Size = New System.Drawing.Size(96, 14)
|
||||||
|
Me.lblSubcontractorNo.TabIndex = 0
|
||||||
|
Me.lblSubcontractorNo.Text = "Subcontractor No"
|
||||||
|
Me.lblSubcontractorNo.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblContactorName
|
||||||
|
'
|
||||||
|
Me.lblContactorName.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblContactorName.Location = New System.Drawing.Point(24, 59)
|
||||||
|
Me.lblContactorName.Name = "lblContactorName"
|
||||||
|
Me.lblContactorName.Size = New System.Drawing.Size(86, 14)
|
||||||
|
Me.lblContactorName.TabIndex = 2
|
||||||
|
Me.lblContactorName.Text = "Contactor Name"
|
||||||
|
Me.lblContactorName.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'txtSubcontractorNo
|
||||||
|
'
|
||||||
|
Me.txtSubcontractorNo.Location = New System.Drawing.Point(120, 24)
|
||||||
|
Me.txtSubcontractorNo.Name = "txtSubcontractorNo"
|
||||||
|
Me.txtSubcontractorNo.ReadOnly = True
|
||||||
|
Me.txtSubcontractorNo.Size = New System.Drawing.Size(114, 26)
|
||||||
|
Me.txtSubcontractorNo.TabIndex = 1
|
||||||
|
Me.txtSubcontractorNo.TabStop = False
|
||||||
|
'
|
||||||
|
'txtContactorName
|
||||||
|
'
|
||||||
|
Appearance1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtContactorName.Appearance = Appearance1
|
||||||
|
Me.txtContactorName.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtContactorName.Location = New System.Drawing.Point(120, 56)
|
||||||
|
Me.txtContactorName.Name = "txtContactorName"
|
||||||
|
Me.txtContactorName.Size = New System.Drawing.Size(160, 26)
|
||||||
|
Me.txtContactorName.TabIndex = 3
|
||||||
|
'
|
||||||
|
'txtTelNo
|
||||||
|
'
|
||||||
|
Me.txtTelNo.Location = New System.Drawing.Point(120, 88)
|
||||||
|
Me.txtTelNo.Name = "txtTelNo"
|
||||||
|
Me.txtTelNo.Size = New System.Drawing.Size(114, 26)
|
||||||
|
Me.txtTelNo.TabIndex = 5
|
||||||
|
'
|
||||||
|
'dll21671
|
||||||
|
'
|
||||||
|
Me.dll21671.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.dll21671.Location = New System.Drawing.Point(14, 236)
|
||||||
|
Me.dll21671.Name = "dll21671"
|
||||||
|
Me.dll21671.Size = New System.Drawing.Size(86, 14)
|
||||||
|
Me.dll21671.TabIndex = 16
|
||||||
|
Me.dll21671.Text = "AGE"
|
||||||
|
Me.dll21671.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'UltraTextEditor1
|
||||||
|
'
|
||||||
|
Me.UltraTextEditor1.Location = New System.Drawing.Point(116, 232)
|
||||||
|
Me.UltraTextEditor1.Name = "UltraTextEditor1"
|
||||||
|
Me.UltraTextEditor1.Size = New System.Drawing.Size(114, 26)
|
||||||
|
Me.UltraTextEditor1.TabIndex = 17
|
||||||
|
'
|
||||||
|
'frmSubcontractorContDef
|
||||||
|
'
|
||||||
|
Me.ClientSize = New System.Drawing.Size(496, 446)
|
||||||
|
Me.Controls.Add(Me.gbxSubcontractorContData)
|
||||||
|
Me.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.Name = "frmSubcontractorContDef"
|
||||||
|
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
|
||||||
|
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||||
|
Me.Text = "ENT Subcontractor Contactor Define"
|
||||||
|
Me.Controls.SetChildIndex(Me.btnClose, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.btnConfirm, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.btnApply, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.gbxBasisData, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.gbxSubcontractorContData, 0)
|
||||||
|
CType(Me.gbxBasisData, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
Me.gbxSubcontractorContData.ResumeLayout(False)
|
||||||
|
Me.gbxSubcontractorContData.PerformLayout()
|
||||||
|
CType(Me.txtAddress, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtEMail, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtTitle, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtFaxNo, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtSubcontractorNo, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtContactorName, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtTelNo, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.UltraTextEditor1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
Me.ResumeLayout(False)
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
Private Sub frmSubcontractorContDef_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
Select Case DefMode
|
||||||
|
Case 0
|
||||||
|
Me.Text = Me.Text & "(ADD)"
|
||||||
|
Case 1
|
||||||
|
Me.Text = Me.Text & "(EDIT)"
|
||||||
|
Case 2
|
||||||
|
Me.Text = Me.Text & "(Copy)"
|
||||||
|
Case Else
|
||||||
|
Me.Text = Me.Text & "(Unknown)"
|
||||||
|
End Select
|
||||||
|
|
||||||
|
'做為MainForm判斷是否重新LoadData的依據()
|
||||||
|
gReturnKeyValue = ""
|
||||||
|
|
||||||
|
' 2016 YF, wsENT.Url = LocalizeWebService(wsENT.Url.ToString)
|
||||||
|
' 2016 YF, wsENT.EnableDecompression = True
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then
|
||||||
|
SetCreateDate(Now)
|
||||||
|
SetCreator(gUserNo)
|
||||||
|
End If
|
||||||
|
If Not EditDataRow Is Nothing Then '修改 or Copy
|
||||||
|
txtSubcontractorNo.Text = EditDataRow.Item("SubcontractorNo").ToString
|
||||||
|
txtContactorName.Text = EditDataRow.Item("ContactorName").ToString
|
||||||
|
txtTelNo.Text = EditDataRow.Item("TelNo").ToString
|
||||||
|
txtFaxNo.Text = EditDataRow.Item("FaxNo").ToString
|
||||||
|
txtTitle.Text = EditDataRow.Item("Title").ToString
|
||||||
|
txtAddress.Text = EditDataRow.Item("Address").ToString
|
||||||
|
txtEMail.Text = EditDataRow.Item("EMail").ToString
|
||||||
|
dll21671.Text = EditDataRow.Item("AGE").ToString
|
||||||
|
'txtDescription是RichTextBox(Control, 因為TextBox無法正常顯示多行換行的資料)
|
||||||
|
txtDescription.Text = EditDataRow.Item("Description").ToString
|
||||||
|
If DefMode = 1 Then
|
||||||
|
If (Not IsDBNull(EditDataRow("Creator"))) Then
|
||||||
|
SetCreateDate(Convert.ToDateTime(EditDataRow.Item("CreateDate")))
|
||||||
|
SetCreator(EditDataRow.Item("Creator").ToString)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
If DefMode = 0 Then 'Add
|
||||||
|
txtSubcontractorNo.Text = SubcontractorNo
|
||||||
|
SetCreateDate(Now)
|
||||||
|
SetCreator(gUserNo)
|
||||||
|
ElseIf DefMode = 1 Then 'Edit
|
||||||
|
txtContactorName.ReadOnly = True
|
||||||
|
SetReviseDate(Now)
|
||||||
|
SetReviser(gUserNo)
|
||||||
|
intDataStamp = EditDataRow.Item("DataStamp")
|
||||||
|
End If
|
||||||
|
|
||||||
|
btnApplyEnabled = False
|
||||||
|
|
||||||
|
'語系切換
|
||||||
|
Call ExeChangeResource(Me, gLanguageMode)
|
||||||
|
ExeGroupControlPriv(Me, PrivFunNo)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub frmSubcontractorContDef_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Activated
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then
|
||||||
|
txtContactorName.Focus()
|
||||||
|
Else
|
||||||
|
txtTelNo.Focus()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overrides Sub btnConfirm_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
If funAddorEdit(sender) < 0 Then Exit Sub
|
||||||
|
|
||||||
|
Me.Close()
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overrides Sub btnClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
Me.Close()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overrides Sub btnApply_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
If funAddorEdit(sender) < 0 Then Exit Sub
|
||||||
|
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then
|
||||||
|
txtContactorName.Focus()
|
||||||
|
Else
|
||||||
|
txtTelNo.Focus()
|
||||||
|
End If
|
||||||
|
|
||||||
|
txtEMail.Text = ""
|
||||||
|
btnApplyEnabled = False
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#Region "Control KeyPress"
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorNo.Click
|
||||||
|
txtSubcontractorNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorNo.Enter
|
||||||
|
txtSubcontractorNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtSubcontractorNo.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorNo.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtContactorName_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtContactorName.Click
|
||||||
|
txtContactorName.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtContactorName_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtContactorName.Enter
|
||||||
|
txtContactorName.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtContactorName_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtContactorName.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtContactorName_Leave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtContactorName.Leave
|
||||||
|
If txtContactorName.Text <> "" And txtEMail.Text = "" Then
|
||||||
|
txtEMail.Text = txtContactorName.Text & "@"
|
||||||
|
End If
|
||||||
|
txtContactorName.Text = UCase(txtContactorName.Text)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtContactorName_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtContactorName.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTelNo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtTelNo.Click
|
||||||
|
txtTelNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTelNo_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtTelNo.Enter
|
||||||
|
txtTelNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTelNo_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtTelNo.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTelNo_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtTelNo.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtFaxNo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtFaxNo.Click
|
||||||
|
txtFaxNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtFaxNo_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtFaxNo.Enter
|
||||||
|
txtFaxNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtFaxNo_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtFaxNo.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtFaxNo_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtFaxNo.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTitle_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtTitle.Click
|
||||||
|
txtTitle.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTitle_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtTitle.Enter
|
||||||
|
txtTitle.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTitle_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtTitle.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtTitle_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtTitle.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtEMail_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtEMail.Click
|
||||||
|
txtEMail.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtEMail_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtEMail.Enter
|
||||||
|
txtEMail.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtEMail_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtEMail.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtEMail_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtEMail.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtAddress_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtAddress.Click
|
||||||
|
txtAddress.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtAddress_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtAddress.Enter
|
||||||
|
txtAddress.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtAddress_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtAddress.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtAddress_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtAddress.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtDescription.Click
|
||||||
|
txtDescription.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtDescription.Enter
|
||||||
|
txtDescription.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtDescription.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtDescription.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
#Region "Others"
|
||||||
|
|
||||||
|
Private Function funAddorEdit(sender As Object) As Integer
|
||||||
|
|
||||||
|
funAddorEdit = -1
|
||||||
|
|
||||||
|
'******************************************************************************
|
||||||
|
'1.基本檢查()
|
||||||
|
'******************************************************************************
|
||||||
|
If txtSubcontractorNo.Text = "" Then
|
||||||
|
iMESExceptionManager.ExceptionManager.iMESMsgBoxShowDialog(ChgTranslateName_Msg("0000-200001", "[%SubcontractorNo%]"), MsgBoxStyle.Exclamation, Me.Text)
|
||||||
|
txtSubcontractorNo.Focus()
|
||||||
|
Exit Function
|
||||||
|
End If
|
||||||
|
If txtContactorName.Text = "" Then
|
||||||
|
iMESExceptionManager.ExceptionManager.iMESMsgBoxShowDialog(ChgTranslateName_Msg("0000-200001", "[%ContactorName%]"), MsgBoxStyle.Exclamation, Me.Text)
|
||||||
|
txtContactorName.Focus()
|
||||||
|
Exit Function
|
||||||
|
End If
|
||||||
|
|
||||||
|
'******************************************************************************
|
||||||
|
'2.寫回資料庫()
|
||||||
|
'******************************************************************************
|
||||||
|
Dim XmlDoc As New XmlDocument
|
||||||
|
|
||||||
|
Try
|
||||||
|
strIdentity = CombineXMLIdentity(gComputerName, gUserNo, GetNow())
|
||||||
|
strParameter = CombineXMLParameter("subcontractorno", "SubcontractorNo", "String", CInput(txtSubcontractorNo.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("contactorname", "ContactorName", "String", CInput(txtContactorName.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("telno", "TelNo", "String", txtTelNo.Text, "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("faxno", "FaxNo", "String", txtFaxNo.Text, "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("title", "Title", "String", CInput(txtTitle.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("address", "Address", "String", CInput(txtAddress.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("email", "EMail", "String", CInput(txtEMail.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("description", "Description", "String", CInput(txtDescription.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("AGE", "AGE", "String", CInput(dll21671.Text), "")
|
||||||
|
|
||||||
|
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then 'Add or Copy
|
||||||
|
strParameter += CombineXMLParameter("creator", "Creator", "String", gUserNo, "")
|
||||||
|
InXml = CombineXMLRequest(strIdentity, strParameter)
|
||||||
|
' 2016 YF, OutXml = wsENT.AddSubcontractorCont(InXml)
|
||||||
|
OutXml = InvokeSrv("SXS.wsENT.AddSubcontractorCont", InXml)
|
||||||
|
|
||||||
|
Else 'Edit
|
||||||
|
' 增加Datastamp
|
||||||
|
strParameter += CombineXMLParameter("datastamp", "Datastamp", "Integer", intDataStamp, "")
|
||||||
|
InXml = CombineXMLRequest(strIdentity, strParameter)
|
||||||
|
' 2016 YF, OutXml = wsENT.EditSubcontractorCont(InXml)
|
||||||
|
OutXml = InvokeSrv("SXS.wsENT.EditSubcontractorCont", InXml)
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
XmlDoc.LoadXml(OutXml)
|
||||||
|
If ChkExecutionSuccess(XmlDoc) Then
|
||||||
|
gReturnKeyValue = txtContactorName.Text
|
||||||
|
|
||||||
|
funAddorEdit = 0
|
||||||
|
If sender.Equals(btnApply) Then
|
||||||
|
intDataStamp += 1
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
ExceptionManager.iMESShowDialog(GetExceptionCode(XmlDoc), GetExceptionSysMsg(XmlDoc), GetExceptionStack(XmlDoc))
|
||||||
|
End If
|
||||||
|
|
||||||
|
Catch ex As Exception
|
||||||
|
'MsgBox("Unexpected Error. Add or Edit ENT Subcontractor Contactor Failed!," & e1.Message, MsgBoxStyle.Exclamation)
|
||||||
|
ExceptionManager.iMESShowDialog(defWinErrCode, ex.Message, ex.StackTrace)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
XmlDoc = Nothing
|
||||||
|
|
||||||
|
End Function
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub frmSubcontractorContDef_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
|
||||||
|
' 2016 YF, If Not wsENT Is Nothing Then wsENT.Dispose()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub UltraTextEditor1_ValueChanged(sender As Object, e As EventArgs) Handles UltraTextEditor1.ValueChanged
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub DD_Click(sender As Object, e As EventArgs) Handles dll21671.Click
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
End Class
|
||||||
|
|
120
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/frmTestData21671Def.resx
Normal file
120
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/frmTestData21671Def.resx
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
448
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/frmTestData21671Def.vb
Normal file
448
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/frmTestData21671Def.vb
Normal file
@ -0,0 +1,448 @@
|
|||||||
|
Imports iMESExceptionManager
|
||||||
|
|
||||||
|
Public Class frmTestData21671Def
|
||||||
|
|
||||||
|
Inherits COM_Kit.frmDefTemplat
|
||||||
|
|
||||||
|
'//Public Variables
|
||||||
|
Public EditDataRow As DataRow
|
||||||
|
Public DefMode As Integer = 0 '0. ADD, 1.Edit, 2. Copy
|
||||||
|
Public PrivFunNo As String = defString
|
||||||
|
|
||||||
|
'//Web Service相關變數
|
||||||
|
' 2016 YF, Dim wsENT As New wsENT.wsENT
|
||||||
|
Dim InXml As String
|
||||||
|
Dim OutXml As String
|
||||||
|
|
||||||
|
Dim strIdentity As String
|
||||||
|
Dim strParameter As String
|
||||||
|
Friend WithEvents RichTextBox1 As RichTextBox
|
||||||
|
Friend WithEvents dll21671_01 As Label
|
||||||
|
Dim intDataStamp As Integer '紀錄DataStamp
|
||||||
|
|
||||||
|
#Region " Windows Form Designer generated code "
|
||||||
|
|
||||||
|
Public Sub New()
|
||||||
|
MyBase.New()
|
||||||
|
|
||||||
|
'This call is required by the Windows Form Designer.
|
||||||
|
InitializeComponent()
|
||||||
|
|
||||||
|
'Add any initialization after the InitializeComponent() call
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Form overrides dispose to clean up the component list.
|
||||||
|
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||||
|
If disposing Then
|
||||||
|
If Not (components Is Nothing) Then
|
||||||
|
components.Dispose()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
MyBase.Dispose(disposing)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Required by the Windows Form Designer
|
||||||
|
Private components As System.ComponentModel.IContainer
|
||||||
|
|
||||||
|
'NOTE: The following procedure is required by the Windows Form Designer
|
||||||
|
'It can be modified using the Windows Form Designer.
|
||||||
|
'Do not modify it using the code editor.
|
||||||
|
Friend WithEvents txtDescription As System.Windows.Forms.RichTextBox
|
||||||
|
Friend WithEvents lblDescription As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblSubcontractorNo As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents lblSubcontractorName As System.Windows.Forms.Label
|
||||||
|
Friend WithEvents gbxSubcontractorData As System.Windows.Forms.GroupBox
|
||||||
|
Friend WithEvents txtSubcontractorNo As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
Friend WithEvents txtSubcontractorName As Infragistics.Win.UltraWinEditors.UltraTextEditor
|
||||||
|
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
|
||||||
|
Dim Appearance1 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance()
|
||||||
|
Dim Appearance2 As Infragistics.Win.Appearance = New Infragistics.Win.Appearance()
|
||||||
|
Me.gbxSubcontractorData = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.txtDescription = New System.Windows.Forms.RichTextBox()
|
||||||
|
Me.lblDescription = New System.Windows.Forms.Label()
|
||||||
|
Me.lblSubcontractorNo = New System.Windows.Forms.Label()
|
||||||
|
Me.lblSubcontractorName = New System.Windows.Forms.Label()
|
||||||
|
Me.txtSubcontractorNo = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.txtSubcontractorName = New Infragistics.Win.UltraWinEditors.UltraTextEditor()
|
||||||
|
Me.dll21671_01 = New System.Windows.Forms.Label()
|
||||||
|
Me.RichTextBox1 = New System.Windows.Forms.RichTextBox()
|
||||||
|
CType(Me.gbxBasisData, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
Me.gbxSubcontractorData.SuspendLayout()
|
||||||
|
CType(Me.txtSubcontractorNo, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
CType(Me.txtSubcontractorName, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||||
|
Me.SuspendLayout()
|
||||||
|
'
|
||||||
|
'gbxBasisData
|
||||||
|
'
|
||||||
|
Me.gbxBasisData.Location = New System.Drawing.Point(12, 185)
|
||||||
|
Me.gbxBasisData.Size = New System.Drawing.Size(479, 70)
|
||||||
|
'
|
||||||
|
'btnApply
|
||||||
|
'
|
||||||
|
Me.btnApply.Location = New System.Drawing.Point(403, 264)
|
||||||
|
'
|
||||||
|
'btnConfirm
|
||||||
|
'
|
||||||
|
Me.btnConfirm.Location = New System.Drawing.Point(215, 264)
|
||||||
|
'
|
||||||
|
'btnClose
|
||||||
|
'
|
||||||
|
Me.btnClose.Location = New System.Drawing.Point(309, 264)
|
||||||
|
'
|
||||||
|
'gbxSubcontractorData
|
||||||
|
'
|
||||||
|
Me.gbxSubcontractorData.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.RichTextBox1)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.dll21671_01)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.txtDescription)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.lblDescription)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.lblSubcontractorNo)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.lblSubcontractorName)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.txtSubcontractorNo)
|
||||||
|
Me.gbxSubcontractorData.Controls.Add(Me.txtSubcontractorName)
|
||||||
|
Me.gbxSubcontractorData.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.gbxSubcontractorData.Location = New System.Drawing.Point(12, 8)
|
||||||
|
Me.gbxSubcontractorData.Name = "gbxSubcontractorData"
|
||||||
|
Me.gbxSubcontractorData.Size = New System.Drawing.Size(479, 169)
|
||||||
|
Me.gbxSubcontractorData.TabIndex = 7
|
||||||
|
Me.gbxSubcontractorData.TabStop = False
|
||||||
|
Me.gbxSubcontractorData.Text = "Subcontractor Data"
|
||||||
|
'
|
||||||
|
'txtDescription
|
||||||
|
'
|
||||||
|
Me.txtDescription.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.txtDescription.Location = New System.Drawing.Point(128, 86)
|
||||||
|
Me.txtDescription.Name = "txtDescription"
|
||||||
|
Me.txtDescription.Size = New System.Drawing.Size(316, 33)
|
||||||
|
Me.txtDescription.TabIndex = 2
|
||||||
|
Me.txtDescription.Text = ""
|
||||||
|
'
|
||||||
|
'lblDescription
|
||||||
|
'
|
||||||
|
Me.lblDescription.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblDescription.Location = New System.Drawing.Point(56, 88)
|
||||||
|
Me.lblDescription.Name = "lblDescription"
|
||||||
|
Me.lblDescription.Size = New System.Drawing.Size(64, 14)
|
||||||
|
Me.lblDescription.TabIndex = 13
|
||||||
|
Me.lblDescription.Text = "Description"
|
||||||
|
Me.lblDescription.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblSubcontractorNo
|
||||||
|
'
|
||||||
|
Me.lblSubcontractorNo.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblSubcontractorNo.Location = New System.Drawing.Point(24, 24)
|
||||||
|
Me.lblSubcontractorNo.Name = "lblSubcontractorNo"
|
||||||
|
Me.lblSubcontractorNo.Size = New System.Drawing.Size(96, 32)
|
||||||
|
Me.lblSubcontractorNo.TabIndex = 5
|
||||||
|
Me.lblSubcontractorNo.Text = "Subcontractor No"
|
||||||
|
Me.lblSubcontractorNo.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'lblSubcontractorName
|
||||||
|
'
|
||||||
|
Me.lblSubcontractorName.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.lblSubcontractorName.Location = New System.Drawing.Point(8, 56)
|
||||||
|
Me.lblSubcontractorName.Name = "lblSubcontractorName"
|
||||||
|
Me.lblSubcontractorName.Size = New System.Drawing.Size(112, 32)
|
||||||
|
Me.lblSubcontractorName.TabIndex = 9
|
||||||
|
Me.lblSubcontractorName.Text = "Subcontractor Name"
|
||||||
|
Me.lblSubcontractorName.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'txtSubcontractorNo
|
||||||
|
'
|
||||||
|
Appearance1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtSubcontractorNo.Appearance = Appearance1
|
||||||
|
Me.txtSubcontractorNo.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtSubcontractorNo.Location = New System.Drawing.Point(128, 24)
|
||||||
|
Me.txtSubcontractorNo.Name = "txtSubcontractorNo"
|
||||||
|
Me.txtSubcontractorNo.Size = New System.Drawing.Size(152, 26)
|
||||||
|
Me.txtSubcontractorNo.TabIndex = 0
|
||||||
|
'
|
||||||
|
'txtSubcontractorName
|
||||||
|
'
|
||||||
|
Appearance2.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtSubcontractorName.Appearance = Appearance2
|
||||||
|
Me.txtSubcontractorName.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
|
||||||
|
Me.txtSubcontractorName.Location = New System.Drawing.Point(128, 55)
|
||||||
|
Me.txtSubcontractorName.Name = "txtSubcontractorName"
|
||||||
|
Me.txtSubcontractorName.Size = New System.Drawing.Size(334, 26)
|
||||||
|
Me.txtSubcontractorName.TabIndex = 1
|
||||||
|
'
|
||||||
|
'dll21671_01
|
||||||
|
'
|
||||||
|
Me.dll21671_01.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.dll21671_01.Location = New System.Drawing.Point(56, 128)
|
||||||
|
Me.dll21671_01.Name = "dll21671_01"
|
||||||
|
Me.dll21671_01.Size = New System.Drawing.Size(64, 14)
|
||||||
|
Me.dll21671_01.TabIndex = 14
|
||||||
|
Me.dll21671_01.Text = "AGE"
|
||||||
|
Me.dll21671_01.TextAlign = System.Drawing.ContentAlignment.TopRight
|
||||||
|
'
|
||||||
|
'RichTextBox1
|
||||||
|
'
|
||||||
|
Me.RichTextBox1.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.RichTextBox1.Location = New System.Drawing.Point(128, 125)
|
||||||
|
Me.RichTextBox1.Name = "RichTextBox1"
|
||||||
|
Me.RichTextBox1.Size = New System.Drawing.Size(120, 33)
|
||||||
|
Me.RichTextBox1.TabIndex = 15
|
||||||
|
Me.RichTextBox1.Text = ""
|
||||||
|
'
|
||||||
|
'frmSubcontractorDef
|
||||||
|
'
|
||||||
|
Me.ClientSize = New System.Drawing.Size(503, 309)
|
||||||
|
Me.Controls.Add(Me.gbxSubcontractorData)
|
||||||
|
Me.Font = New System.Drawing.Font("Times New Roman", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.Name = "frmSubcontractorDef"
|
||||||
|
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
|
||||||
|
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||||
|
Me.Text = "ENT Subcontractor Define"
|
||||||
|
Me.Controls.SetChildIndex(Me.btnClose, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.btnConfirm, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.btnApply, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.gbxBasisData, 0)
|
||||||
|
Me.Controls.SetChildIndex(Me.gbxSubcontractorData, 0)
|
||||||
|
CType(Me.gbxBasisData, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
Me.gbxSubcontractorData.ResumeLayout(False)
|
||||||
|
Me.gbxSubcontractorData.PerformLayout()
|
||||||
|
CType(Me.txtSubcontractorNo, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
CType(Me.txtSubcontractorName, System.ComponentModel.ISupportInitialize).EndInit()
|
||||||
|
Me.ResumeLayout(False)
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
Private Sub frmSubcontractorDef_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
Select Case DefMode
|
||||||
|
Case 0
|
||||||
|
Me.Text = Me.Text & "(ADD)"
|
||||||
|
Case 1
|
||||||
|
Me.Text = Me.Text & "(EDIT)"
|
||||||
|
Case 2
|
||||||
|
Me.Text = Me.Text & "(Copy)"
|
||||||
|
Case Else
|
||||||
|
Me.Text = Me.Text & "(Unknown)"
|
||||||
|
End Select
|
||||||
|
|
||||||
|
'做為MainForm判斷是否重新LoadData的依據
|
||||||
|
gReturnKeyValue = ""
|
||||||
|
|
||||||
|
' 2016 YF, wsENT.Url = LocalizeWebService(wsENT.Url.ToString)
|
||||||
|
' 2016 YF, wsENT.EnableDecompression = True
|
||||||
|
|
||||||
|
If Not EditDataRow Is Nothing Then
|
||||||
|
txtSubcontractorNo.Text = EditDataRow.Item("SubcontractorNo").ToString
|
||||||
|
txtSubcontractorName.Text = EditDataRow.Item("SubcontractorName").ToString
|
||||||
|
'txtDescription是RichTextBox Control,因為TextBox無法正常顯示多行換行的資料
|
||||||
|
txtDescription.Text = EditDataRow.Item("Description").ToString
|
||||||
|
dll21671_01.Text = EditDataRow.Item("AGE").ToString
|
||||||
|
End If
|
||||||
|
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then 'Add or Copy
|
||||||
|
SetCreator(gUserNo)
|
||||||
|
SetCreateDate(Now)
|
||||||
|
ElseIf DefMode = 1 Then 'Edit
|
||||||
|
txtSubcontractorNo.ReadOnly = True
|
||||||
|
SetCreator(EditDataRow.Item("Creator").ToString)
|
||||||
|
SetCreateDate(Convert.ToDateTime(EditDataRow.Item("CreateDate")))
|
||||||
|
SetReviser(gUserNo)
|
||||||
|
SetReviseDate(Now)
|
||||||
|
intDataStamp = EditDataRow.Item("DataStamp")
|
||||||
|
End If
|
||||||
|
|
||||||
|
btnApplyEnabled = False
|
||||||
|
|
||||||
|
'語系切換
|
||||||
|
Call ExeChangeResource(Me, gLanguageMode)
|
||||||
|
ExeGroupControlPriv(Me, PrivFunNo)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub frmSubcontractorDef_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Activated
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then
|
||||||
|
txtSubcontractorNo.Focus()
|
||||||
|
Else
|
||||||
|
txtSubcontractorName.Focus()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overrides Sub btnConfirm_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
If funAddorEdit(sender) < 0 Then Exit Sub
|
||||||
|
|
||||||
|
Me.Close()
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overrides Sub btnClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
Me.Close()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Protected Overrides Sub btnApply_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
|
If funAddorEdit(sender) < 0 Then Exit Sub
|
||||||
|
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then
|
||||||
|
txtSubcontractorNo.Focus()
|
||||||
|
Else
|
||||||
|
txtSubcontractorName.Focus()
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
Cursor.Current = Cursors.Default
|
||||||
|
btnApplyEnabled = False
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub frmSubcontractorDef_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
|
||||||
|
' 2016 YF, If Not wsENT Is Nothing Then wsENT.Dispose()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#Region "Control KeyPress"
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorNo.Click
|
||||||
|
txtSubcontractorNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorNo.Enter
|
||||||
|
txtSubcontractorNo.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtSubcontractorNo.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_Leave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorNo.Leave
|
||||||
|
txtSubcontractorNo.Text = UCase(txtSubcontractorNo.Text)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorNo_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorNo.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorName_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorName.Click
|
||||||
|
txtSubcontractorName.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorName_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorName.Enter
|
||||||
|
txtSubcontractorName.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorName_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtSubcontractorName.KeyPress
|
||||||
|
If e.KeyChar = Convert.ToChar(13) Then
|
||||||
|
SendKeys.Send("{TAB}")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtSubcontractorName_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSubcontractorName.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtDescription.Click
|
||||||
|
txtDescription.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtDescription.Enter
|
||||||
|
txtDescription.SelectAll()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub txtDescription_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtDescription.TextChanged
|
||||||
|
btnApplyEnabled = True
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
#Region "Others"
|
||||||
|
|
||||||
|
Private Function funAddorEdit(sender As Object) As Integer
|
||||||
|
|
||||||
|
funAddorEdit = -1
|
||||||
|
|
||||||
|
'******************************************************************************
|
||||||
|
'1.基本檢查
|
||||||
|
'******************************************************************************
|
||||||
|
If txtSubcontractorNo.Text = "" Then
|
||||||
|
iMESExceptionManager.ExceptionManager.iMESMsgBoxShowDialog(ChgTranslateName_Msg("0000-200001", "[%SubcontractorNo%]"), MsgBoxStyle.Exclamation, Me.Text)
|
||||||
|
txtSubcontractorNo.Focus()
|
||||||
|
Exit Function
|
||||||
|
End If
|
||||||
|
|
||||||
|
If txtSubcontractorName.Text = "" Then
|
||||||
|
iMESExceptionManager.ExceptionManager.iMESMsgBoxShowDialog(ChgTranslateName_Msg("0000-200001", "[%SubcontractorName%]"), MsgBoxStyle.Exclamation, Me.Text)
|
||||||
|
txtSubcontractorName.Focus()
|
||||||
|
Exit Function
|
||||||
|
End If
|
||||||
|
|
||||||
|
'2.
|
||||||
|
'******************************************************************************
|
||||||
|
'寫回資料庫
|
||||||
|
'******************************************************************************
|
||||||
|
Dim XmlDoc As New XmlDocument
|
||||||
|
|
||||||
|
Try
|
||||||
|
strIdentity = CombineXMLIdentity(gComputerName, gUserNo, GetNow())
|
||||||
|
strParameter = CombineXMLParameter("subcontractorno", "SubcontractorNo", "String", CInput(txtSubcontractorNo.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("subcontractorname", "SubcontractorName", "String", CInput(txtSubcontractorName.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("description", "Description", "String", CInput(txtDescription.Text), "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("AGE", "AGE", "String", dll21671_01.Text, "")
|
||||||
|
|
||||||
|
If DefMode = 0 Or DefMode = 2 Then 'Add or Copy
|
||||||
|
strParameter = strParameter & CombineXMLParameter("creator", "Creator", "String", gUserNo, "")
|
||||||
|
strParameter = strParameter & CombineXMLParameter("createdate", "CreateDate", "DateTime", Format(Now, "yyyy/MM/dd HH:mm:ss"), "")
|
||||||
|
InXml = CombineXMLRequest(strIdentity, strParameter)
|
||||||
|
|
||||||
|
' 2016 YF, OutXml = wsENT.AddSubcontractor(InXml)
|
||||||
|
OutXml = InvokeSrv("SXS.wsENT.AddSubcontractor", InXml)
|
||||||
|
|
||||||
|
Else
|
||||||
|
'修改
|
||||||
|
strParameter = strParameter & CombineXMLParameter("issuestate", "IssueState", "String", EditDataRow.Item("IssueState").ToString, "")
|
||||||
|
' 增加Datastamp
|
||||||
|
strParameter += CombineXMLParameter("datastamp", "Datastamp", "Integer", intDataStamp, "")
|
||||||
|
InXml = CombineXMLRequest(strIdentity, strParameter)
|
||||||
|
|
||||||
|
' 2016 YF, OutXml = wsENT.EditSubcontractor(InXml)
|
||||||
|
OutXml = InvokeSrv("SXS.wsENT.EditSubcontractor", InXml)
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
XmlDoc.LoadXml(OutXml)
|
||||||
|
If ChkExecutionSuccess(XmlDoc) Then
|
||||||
|
gReturnKeyValue = txtSubcontractorNo.Text
|
||||||
|
|
||||||
|
funAddorEdit = 0
|
||||||
|
If sender.Equals(btnApply) Then
|
||||||
|
intDataStamp += 1
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
ExceptionManager.iMESShowDialog(GetExceptionCode(XmlDoc), GetExceptionSysMsg(XmlDoc), GetExceptionStack(XmlDoc))
|
||||||
|
End If
|
||||||
|
|
||||||
|
Catch ex As Exception
|
||||||
|
'MsgBox("Unexpected Error. Add or Edit ENT Subcontractor Failed!," & e1.Message, MsgBoxStyle.Exclamation)
|
||||||
|
ExceptionManager.iMESShowDialog(defWinErrCode, ex.Message, ex.StackTrace)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
XmlDoc = Nothing
|
||||||
|
|
||||||
|
End Function
|
||||||
|
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
End Class
|
||||||
|
|
BIN
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/iMES.snk
Normal file
BIN
SRC/MESWin/SYS6/SYS6_ENTBasis_21671/iMES.snk
Normal file
Binary file not shown.
@ -1,10 +1,10 @@
|
|||||||
'------------------------------------------------------------------------------
|
'------------------------------------------------------------------------------
|
||||||
' <auto-generated>
|
' <auto-generated>
|
||||||
' 這段程式碼是由工具產生的。
|
' 此代码由工具生成。
|
||||||
' 執行階段版本:4.0.30319.42000
|
' 运行时版本:4.0.30319.42000
|
||||||
'
|
'
|
||||||
' 對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
|
' 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
' 變更將會遺失。
|
' 重新生成代码,这些更改将会丢失。
|
||||||
' </auto-generated>
|
' </auto-generated>
|
||||||
'------------------------------------------------------------------------------
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
28
SRC/MESWin/Test/My Project/Resources.Designer.vb
generated
28
SRC/MESWin/Test/My Project/Resources.Designer.vb
generated
@ -1,10 +1,10 @@
|
|||||||
'------------------------------------------------------------------------------
|
'------------------------------------------------------------------------------
|
||||||
' <auto-generated>
|
' <auto-generated>
|
||||||
' 這段程式碼是由工具產生的。
|
' 此代码由工具生成。
|
||||||
' 執行階段版本:4.0.30319.42000
|
' 运行时版本:4.0.30319.42000
|
||||||
'
|
'
|
||||||
' 對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
|
' 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
' 變更將會遺失。
|
' 重新生成代码,这些更改将会丢失。
|
||||||
' </auto-generated>
|
' </auto-generated>
|
||||||
'------------------------------------------------------------------------------
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -15,14 +15,14 @@ Imports System
|
|||||||
|
|
||||||
Namespace My.Resources
|
Namespace My.Resources
|
||||||
|
|
||||||
'這個類別是自動產生的,是利用 StronglyTypedResourceBuilder
|
'此类是由 StronglyTypedResourceBuilder
|
||||||
'類別透過 ResGen 或 Visual Studio 這類工具。
|
'类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||||
'若要加入或移除成員,請編輯您的 .ResX 檔,然後重新執行 ResGen
|
'若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||||
'(利用 /str 選項),或重建您的 VS 專案。
|
'(以 /str 作为命令选项),或重新生成 VS 项目。
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' 用於查詢當地語系化字串等的強類型資源類別。
|
''' 一个强类型的资源类,用于查找本地化的字符串等。
|
||||||
'''</summary>
|
'''</summary>
|
||||||
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
|
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0"), _
|
||||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
||||||
@ -33,7 +33,7 @@ Namespace My.Resources
|
|||||||
Private resourceCulture As Global.System.Globalization.CultureInfo
|
Private resourceCulture As Global.System.Globalization.CultureInfo
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' 傳回這個類別使用的快取的 ResourceManager 執行個體。
|
''' 返回此类使用的缓存的 ResourceManager 实例。
|
||||||
'''</summary>
|
'''</summary>
|
||||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
||||||
@ -47,8 +47,8 @@ Namespace My.Resources
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' 覆寫目前執行緒的 CurrentUICulture 屬性,對象是所有
|
''' 重写当前线程的 CurrentUICulture 属性,对
|
||||||
''' 使用這個強類型資源類別的資源查閱。
|
''' 使用此强类型资源类的所有资源查找执行重写。
|
||||||
'''</summary>
|
'''</summary>
|
||||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
Friend Property Culture() As Global.System.Globalization.CultureInfo
|
Friend Property Culture() As Global.System.Globalization.CultureInfo
|
||||||
@ -61,7 +61,7 @@ Namespace My.Resources
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' 查詢類型 System.Byte[] 的當地語系化資源。
|
''' 查找 System.Byte[] 类型的本地化资源。
|
||||||
'''</summary>
|
'''</summary>
|
||||||
Friend ReadOnly Property iMES() As Byte()
|
Friend ReadOnly Property iMES() As Byte()
|
||||||
Get
|
Get
|
||||||
|
14
SRC/MESWin/Test/My Project/Settings.Designer.vb
generated
14
SRC/MESWin/Test/My Project/Settings.Designer.vb
generated
@ -1,10 +1,10 @@
|
|||||||
'------------------------------------------------------------------------------
|
'------------------------------------------------------------------------------
|
||||||
' <auto-generated>
|
' <auto-generated>
|
||||||
' 這段程式碼是由工具產生的。
|
' 此代码由工具生成。
|
||||||
' 執行階段版本:4.0.30319.42000
|
' 运行时版本:4.0.30319.42000
|
||||||
'
|
'
|
||||||
' 對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
|
' 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
' 變更將會遺失。
|
' 重新生成代码,这些更改将会丢失。
|
||||||
' </auto-generated>
|
' </auto-generated>
|
||||||
'------------------------------------------------------------------------------
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -15,21 +15,21 @@ Option Explicit On
|
|||||||
Namespace My
|
Namespace My
|
||||||
|
|
||||||
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0"), _
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0"), _
|
||||||
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
Partial Friend NotInheritable Class MySettings
|
Partial Friend NotInheritable Class MySettings
|
||||||
Inherits Global.System.Configuration.ApplicationSettingsBase
|
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||||
|
|
||||||
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
|
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
|
||||||
|
|
||||||
#Region "My.Settings 自動儲存功能"
|
#Region "My.Settings 自动保存功能"
|
||||||
#If _MyType = "WindowsForms" Then
|
#If _MyType = "WindowsForms" Then
|
||||||
Private Shared addedHandler As Boolean
|
Private Shared addedHandler As Boolean
|
||||||
|
|
||||||
Private Shared addedHandlerLockObject As New Object
|
Private Shared addedHandlerLockObject As New Object
|
||||||
|
|
||||||
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
|
Private Shared Sub AutoSaveSettings(sender As Global.System.Object, e As Global.System.EventArgs)
|
||||||
If My.Application.SaveMySettingsOnExit Then
|
If My.Application.SaveMySettingsOnExit Then
|
||||||
My.Settings.Save()
|
My.Settings.Save()
|
||||||
End If
|
End If
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<AssemblyName>Test</AssemblyName>
|
<AssemblyName>Test</AssemblyName>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<MyType>WindowsFormsWithCustomSubMain</MyType>
|
<MyType>WindowsFormsWithCustomSubMain</MyType>
|
||||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||||
<TargetFrameworkProfile />
|
<TargetFrameworkProfile />
|
||||||
<SccProjectName>
|
<SccProjectName>
|
||||||
</SccProjectName>
|
</SccProjectName>
|
||||||
@ -67,6 +67,29 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyOriginatorKeyFile>iMES.snk</AssemblyOriginatorKeyFile>
|
<AssemblyOriginatorKeyFile>iMES.snk</AssemblyOriginatorKeyFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DefineDebug>true</DefineDebug>
|
||||||
|
<DefineTrace>true</DefineTrace>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DocumentationFile>Test.xml</DocumentationFile>
|
||||||
|
<WarningLevel>0</WarningLevel>
|
||||||
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
|
||||||
|
<DefineTrace>true</DefineTrace>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DocumentationFile>Test.xml</DocumentationFile>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<WarningLevel>0</WarningLevel>
|
||||||
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Infragistics4.Shared.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
|
<Reference Include="Infragistics4.Shared.v19.1, Version=19.1.20191.294, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
@ -25,4 +25,4 @@
|
|||||||
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
|
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
|
||||||
</sharedListeners>
|
</sharedListeners>
|
||||||
</system.diagnostics>
|
</system.diagnostics>
|
||||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/></startup></configuration>
|
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup></configuration>
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user