공정 항목 추가 (업무일지, 프로젝트)

구매내역에 s/c 정렬 기능 추가
This commit is contained in:
chi
2020-01-06 16:27:21 +09:00
parent d73a2e212a
commit 178c295587
80 changed files with 12686 additions and 9599 deletions

View File

@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013 # Visual Studio 15
VisualStudioVersion = 12.0.40629.0 VisualStudioVersion = 15.0.28307.902
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EETGW", "Project\EETGW.csproj", "{65F3E762-800C-499E-862F-A535642EC59F}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EETGW", "Project\EETGW.csproj", "{65F3E762-800C-499E-862F-A535642EC59F}"
EndProject EndProject
@@ -31,6 +31,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FTPClass", "Sub\arftp\FTPCl
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MailManager", "MailManager\MailManager.csproj", "{0D8E0019-909A-4879-9088-B2927509264E}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MailManager", "MailManager\MailManager.csproj", "{0D8E0019-909A-4879-9088-B2927509264E}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FTP_DB_Adapt", "FTP_DB_Adapt\FTP_DB_Adapt\FTP_DB_Adapt.csproj", "{BECE73DE-15C8-42B0-9F93-9484D745DF3A}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@@ -113,6 +115,14 @@ Global
{0D8E0019-909A-4879-9088-B2927509264E}.Release|Any CPU.ActiveCfg = Release|Any CPU {0D8E0019-909A-4879-9088-B2927509264E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0D8E0019-909A-4879-9088-B2927509264E}.Release|Any CPU.Build.0 = Release|Any CPU {0D8E0019-909A-4879-9088-B2927509264E}.Release|Any CPU.Build.0 = Release|Any CPU
{0D8E0019-909A-4879-9088-B2927509264E}.Release|x86.ActiveCfg = Release|Any CPU {0D8E0019-909A-4879-9088-B2927509264E}.Release|x86.ActiveCfg = Release|Any CPU
{BECE73DE-15C8-42B0-9F93-9484D745DF3A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BECE73DE-15C8-42B0-9F93-9484D745DF3A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BECE73DE-15C8-42B0-9F93-9484D745DF3A}.Debug|x86.ActiveCfg = Debug|Any CPU
{BECE73DE-15C8-42B0-9F93-9484D745DF3A}.Debug|x86.Build.0 = Debug|Any CPU
{BECE73DE-15C8-42B0-9F93-9484D745DF3A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BECE73DE-15C8-42B0-9F93-9484D745DF3A}.Release|Any CPU.Build.0 = Release|Any CPU
{BECE73DE-15C8-42B0-9F93-9484D745DF3A}.Release|x86.ActiveCfg = Release|Any CPU
{BECE73DE-15C8-42B0-9F93-9484D745DF3A}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE

View File

@@ -32,6 +32,9 @@
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="ArSetting.Net4">
<HintPath>..\DLL\ArSetting.Net4.dll</HintPath>
</Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
@@ -41,6 +44,7 @@
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="CSetting.cs" />
<Compile Include="DataSet1.Designer.cs"> <Compile Include="DataSet1.Designer.cs">
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
@@ -72,6 +76,9 @@
<LastGenOutput>Settings.Designer.cs</LastGenOutput> <LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None> </None>
</ItemGroup> </ItemGroup>
<ItemGroup>
<Content Include="History.txt" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- 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. Other similar extension points exist, see Microsoft.Common.targets.

View File

@@ -8,23 +8,43 @@ namespace MailManager
{ {
class Program class Program
{ {
static CSetting setting = new CSetting();
static DateTime ChkAutoDate = DateTime.Now.AddDays(-1); static DateTime ChkAutoDate = DateTime.Now.AddDays(-1);
static void Main(string[] args) static void Main(string[] args)
{ {
//먼저 보낼 메일이 있다면 전송을 한다 setting = new CSetting();
setting.Load();
if (setting.Xml.Exist() == false)
{
Console.WriteLine("new setting file make");
setting.Save();
}
var cn = false;
while (true) while (true)
{ {
if(cn ==false)
{
cn = connechk();
if(cn==false)
{
Console.WriteLine("wait for next connect");
System.Threading.Thread.Sleep(60000);
}
continue;
}
try try
{ {
SendMail(); SendMail();
} }
catch (Exception ex) catch (Exception ex)
{ {
Console.WriteLine("send error:" + ex.Message); Console.WriteLine("send error:" + ex.Message);
System.Threading.Thread.Sleep(60000);
} }
System.Threading.Thread.Sleep(1000); System.Threading.Thread.Sleep(1000);
@@ -37,12 +57,35 @@ namespace MailManager
catch (Exception ex) catch (Exception ex)
{ {
Console.WriteLine("MakeAutoMail error:" + ex.Message); Console.WriteLine("MakeAutoMail error:" + ex.Message);
System.Threading.Thread.Sleep(60000);
} }
System.Threading.Thread.Sleep(1000); System.Threading.Thread.Sleep(1000);
} }
} }
static Boolean connechk()
{
var retval = false;
Properties.Settings.Default["cs"] = setting.connstr; // "Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!";
var client = new SqlConnection(setting.connstr);
try
{
Console.WriteLine("connectino check");
client.Open();
Console.WriteLine("connection ok");
client.Close();
retval = true;
}
catch (Exception ex)
{
Console.WriteLine("conn error: " + ex.ToString());
if (ex.ToString().ToLower().IndexOf("fail") != -1)
Console.WriteLine(setting.connstr);
}
return retval;
}
static void SendMail() static void SendMail()
{ {
Console.WriteLine("Check Send Mail Data"); Console.WriteLine("Check Send Mail Data");
@@ -59,7 +102,6 @@ namespace MailManager
var list_bcc = getMaillist(dr.bcc); var list_bcc = getMaillist(dr.bcc);
var list_cc = getMaillist(dr.cc); var list_cc = getMaillist(dr.cc);
string sendMsg = ""; string sendMsg = "";
if (list_from == "") if (list_from == "")
{ {
@@ -145,7 +187,7 @@ namespace MailManager
if (string.Compare(curTime, dr.stime) < 0) continue; //지정된 시간 이전이면 생성 안한다 if (string.Compare(curTime, dr.stime) < 0) continue; //지정된 시간 이전이면 생성 안한다
//자동생성 구분용 카테고리 //자동생성 구분용 카테고리
var cate = string.Format("{0},{1}", dr.sday[0], dr.sday[1]); var cate = string.Format("{0},{1}", dr.sday[0], dr.sday[1]);
//동륵일 //동륵일
var pdate = DateTime.Now.ToString("yyyy-MM-dd"); var pdate = DateTime.Now.ToString("yyyy-MM-dd");
@@ -169,7 +211,7 @@ namespace MailManager
if (dr.sday[1] != DateTime.Now.Day) continue; if (dr.sday[1] != DateTime.Now.Day) continue;
} }
//같은날, 같은 atime aidx pdate 의 같이 있으면 이미 생성된것이므로 추가하지 않는다 //같은날, 같은 atime aidx pdate 의 같이 있으면 이미 생성된것이므로 추가하지 않는다
//생성해야할 자료라면 만들어 준다 //생성해야할 자료라면 만들어 준다

View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 버전이 자동으로 // 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 버전이 자동으로
// 지정되도록 할 수 있습니다. // 지정되도록 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("19.10.01.1400")] [assembly: AssemblyVersion("19.12.12.0930")]
[assembly: AssemblyFileVersion("19.10.01.1400")] [assembly: AssemblyFileVersion("19.12.12.0930")]

View File

@@ -12,7 +12,7 @@ namespace MailManager.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -27,18 +27,7 @@ namespace MailManager.Properties {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=ee" + [global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=ee" +
"user;Password=EEmicro123!")] "user;Password=Amkor123!")]
public string gwcs {
get {
return ((string)(this["gwcs"]));
}
}
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=ee" +
"user;Password=EEmicro123!")]
public string CS { public string CS {
get { get {
return ((string)(this["CS"])); return ((string)(this["CS"]));

View File

@@ -2,20 +2,13 @@
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="MailManager.Properties" GeneratedClassName="Settings"> <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="MailManager.Properties" GeneratedClassName="Settings">
<Profiles /> <Profiles />
<Settings> <Settings>
<Setting Name="gwcs" Type="(Connection string)" Scope="Application">
<DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&lt;ConnectionString&gt;Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123!&lt;/ConnectionString&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123!</Value>
</Setting>
<Setting Name="CS" Type="(Connection string)" Scope="Application"> <Setting Name="CS" Type="(Connection string)" Scope="Application">
<DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt; <DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; &lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&lt;ConnectionString&gt;Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123!&lt;/ConnectionString&gt; &lt;ConnectionString&gt;Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!&lt;/ConnectionString&gt;
&lt;ProviderName&gt;System.Data.SqlClient&lt;/ProviderName&gt; &lt;ProviderName&gt;System.Data.SqlClient&lt;/ProviderName&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue> &lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123!</Value> <Value Profile="(Default)">Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!</Value>
</Setting> </Setting>
</Settings> </Settings>
</SettingsFile> </SettingsFile>

View File

@@ -3,8 +3,7 @@
<configSections> <configSections>
</configSections> </configSections>
<connectionStrings> <connectionStrings>
<add name="MailManager.Properties.Settings.gwcs" connectionString="Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123!" /> <add name="MailManager.Properties.Settings.CS" connectionString="Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!"
<add name="MailManager.Properties.Settings.CS" connectionString="Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=EEmicro123!"
providerName="System.Data.SqlClient" /> providerName="System.Data.SqlClient" />
</connectionStrings> </connectionStrings>
</configuration> </configuration>

View File

@@ -113,6 +113,7 @@ namespace Project.Dialog
var gcode = FCOMMON.DBM.ExecuteScalar("select isnull(gcode,'NOGCODE') from UserGroup where dept ='" + cmbDept.Text + "'"); var gcode = FCOMMON.DBM.ExecuteScalar("select isnull(gcode,'NOGCODE') from UserGroup where dept ='" + cmbDept.Text + "'");
var gperm = FCOMMON.DBM.ExecuteScalar("select isnull(permission,0) from UserGroup where dept ='" + cmbDept.Text + "'"); var gperm = FCOMMON.DBM.ExecuteScalar("select isnull(permission,0) from UserGroup where dept ='" + cmbDept.Text + "'");
FCOMMON.info.Login.gcode = gcode; FCOMMON.info.Login.gcode = gcode;
FCOMMON.info.Login.process = userdr.processs;
FCOMMON.info.Login.permission = 0; FCOMMON.info.Login.permission = 0;
FCOMMON.info.Login.gpermission = int.Parse(gperm); FCOMMON.info.Login.gpermission = int.Parse(gperm);

View File

@@ -1,4 +1,8 @@
191129 chi 휴가내역 추가 200106 chi 구매내역목록에서 정렬 기능 추가 (등록일,완료일,S/C)
업무일지 및 프로젝트에 담당자 공정추가하고 해당 공정별 데이터 분리 작업
업무일지 기록 시간 출력물 2번을 제외한 1,3번 숨김
191129 chi 휴가내역 추가
* 주간내역이 업데이트 되지 않는 데이터를 강조시키고 알림을 띄울 방안 확인\ * 주간내역이 업데이트 되지 않는 데이터를 강조시키고 알림을 띄울 방안 확인\
191024 chi 프로젝트 공유폴더 눌렀을떄 \\ 가 연속으로 붙는현상 수정 191024 chi 프로젝트 공유폴더 눌렀을떄 \\ 가 연속으로 붙는현상 수정
191018 chi 열저장방식 변경(필드명으로 저장) 191018 chi 열저장방식 변경(필드명으로 저장)

View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로 // 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
// 지정되도록 할 수 있습니다. // 지정되도록 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("19.12.11.0950")] [assembly: AssemblyVersion("20.01.06.1530")]
[assembly: AssemblyFileVersion("19.12.11.0950")] [assembly: AssemblyFileVersion("20.01.06.1530")]

View File

@@ -43,6 +43,7 @@
System.Windows.Forms.Label label2; System.Windows.Forms.Label label2;
System.Windows.Forms.Label label3; System.Windows.Forms.Label label3;
System.Windows.Forms.Label label4; System.Windows.Forms.Label label4;
System.Windows.Forms.Label label5;
this.idTextBox = new System.Windows.Forms.TextBox(); this.idTextBox = new System.Windows.Forms.TextBox();
this.bs = new System.Windows.Forms.BindingSource(this.components); this.bs = new System.Windows.Forms.BindingSource(this.components);
this.dsMSSQL = new Project.dsMSSQL(); this.dsMSSQL = new Project.dsMSSQL();
@@ -62,6 +63,7 @@
this.textBox2 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox(); this.textBox3 = new System.Windows.Forms.TextBox();
this.tbKJPath = new System.Windows.Forms.TextBox(); this.tbKJPath = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
idLabel = new System.Windows.Forms.Label(); idLabel = new System.Windows.Forms.Label();
passwordLabel = new System.Windows.Forms.Label(); passwordLabel = new System.Windows.Forms.Label();
nameLabel = new System.Windows.Forms.Label(); nameLabel = new System.Windows.Forms.Label();
@@ -76,6 +78,7 @@
label2 = new System.Windows.Forms.Label(); label2 = new System.Windows.Forms.Label();
label3 = new System.Windows.Forms.Label(); label3 = new System.Windows.Forms.Label();
label4 = new System.Windows.Forms.Label(); label4 = new System.Windows.Forms.Label();
label5 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
@@ -287,9 +290,8 @@
// //
this.memoTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "memo", true)); this.memoTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "memo", true));
this.memoTextBox.Location = new System.Drawing.Point(407, 156); this.memoTextBox.Location = new System.Drawing.Point(407, 156);
this.memoTextBox.Multiline = true;
this.memoTextBox.Name = "memoTextBox"; this.memoTextBox.Name = "memoTextBox";
this.memoTextBox.Size = new System.Drawing.Size(189, 63); this.memoTextBox.Size = new System.Drawing.Size(189, 29);
this.memoTextBox.TabIndex = 25; this.memoTextBox.TabIndex = 25;
// //
// button1 // button1
@@ -324,6 +326,7 @@
this.tam.LineCodeTableAdapter = null; this.tam.LineCodeTableAdapter = null;
this.tam.ProjectsTableAdapter = null; this.tam.ProjectsTableAdapter = null;
this.tam.UpdateOrder = Project.dsMSSQLTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete; this.tam.UpdateOrder = Project.dsMSSQLTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
this.tam.UserGroupTableAdapter = null;
this.tam.UsersTableAdapter = this.ta; this.tam.UsersTableAdapter = this.ta;
// //
// textBox1 // textBox1
@@ -359,10 +362,29 @@
this.tbKJPath.Size = new System.Drawing.Size(177, 29); this.tbKJPath.Size = new System.Drawing.Size(177, 29);
this.tbKJPath.TabIndex = 28; this.tbKJPath.TabIndex = 28;
// //
// label5
//
label5.AutoSize = true;
label5.Location = new System.Drawing.Point(360, 193);
label5.Name = "label5";
label5.Size = new System.Drawing.Size(42, 21);
label5.TabIndex = 29;
label5.Text = "공정";
//
// textBox4
//
this.textBox4.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "processs", true));
this.textBox4.Location = new System.Drawing.Point(407, 190);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(189, 29);
this.textBox4.TabIndex = 30;
//
// fUserInfo // fUserInfo
// //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(601, 326); this.ClientSize = new System.Drawing.Size(601, 326);
this.Controls.Add(label5);
this.Controls.Add(this.textBox4);
this.Controls.Add(label4); this.Controls.Add(label4);
this.Controls.Add(this.tbKJPath); this.Controls.Add(this.tbKJPath);
this.Controls.Add(label3); this.Controls.Add(label3);
@@ -426,5 +448,6 @@
private System.Windows.Forms.TextBox textBox2; private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox3; private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.TextBox tbKJPath; private System.Windows.Forms.TextBox tbKJPath;
private System.Windows.Forms.TextBox textBox4;
} }
} }

View File

@@ -177,4 +177,7 @@
<metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>248, 17</value> <value>248, 17</value>
</metadata> </metadata>
<metadata name="label5.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
</root> </root>

View File

@@ -53,19 +53,6 @@
this.btDevel = new System.Windows.Forms.ToolStripDropDownButton(); this.btDevel = new System.Windows.Forms.ToolStripDropDownButton();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.dv1 = new System.Windows.Forms.DataGridView(); this.dv1 = new System.Windows.Forms.DataGridView();
this.dvc_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_level = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.nameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.nameEDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.deptDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.gradeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.emailDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.indateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.outdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.telDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.hpDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.placeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.memoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.autoResizeColumnToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.autoResizeColumnToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
@@ -78,6 +65,22 @@
this.cmbdept = new System.Windows.Forms.ToolStripComboBox(); this.cmbdept = new System.Windows.Forms.ToolStripComboBox();
this.btRef = new System.Windows.Forms.ToolStripButton(); this.btRef = new System.Windows.Forms.ToolStripButton();
this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox1 = new System.Windows.Forms.TextBox();
this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel();
this.tbProcess = new System.Windows.Forms.ToolStripTextBox();
this.dvc_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.processs = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_level = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.nameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.nameEDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.deptDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.gradeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.emailDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.indateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.outdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.telDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.hpDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.placeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.memoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
@@ -134,14 +137,14 @@
this.usersBindingNavigatorSaveItem, this.usersBindingNavigatorSaveItem,
this.toolStripSeparator1, this.toolStripSeparator1,
this.btDevel}); this.btDevel});
this.bn.Location = new System.Drawing.Point(0, 419); this.bn.Location = new System.Drawing.Point(0, 540);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem; this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem; this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem; this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem; this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn.Name = "bn"; this.bn.Name = "bn";
this.bn.PositionItem = this.bindingNavigatorPositionItem; this.bn.PositionItem = this.bindingNavigatorPositionItem;
this.bn.Size = new System.Drawing.Size(755, 25); this.bn.Size = new System.Drawing.Size(908, 25);
this.bn.TabIndex = 0; this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1"; this.bn.Text = "bindingNavigator1";
// //
@@ -267,6 +270,7 @@
this.dv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.dv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dvc_id, this.dvc_id,
this.processs,
this.dvc_level, this.dvc_level,
this.nameDataGridViewTextBoxColumn, this.nameDataGridViewTextBoxColumn,
this.nameEDataGridViewTextBoxColumn, this.nameEDataGridViewTextBoxColumn,
@@ -285,9 +289,116 @@
this.dv1.Location = new System.Drawing.Point(0, 25); this.dv1.Location = new System.Drawing.Point(0, 25);
this.dv1.Name = "dv1"; this.dv1.Name = "dv1";
this.dv1.RowTemplate.Height = 23; this.dv1.RowTemplate.Height = 23;
this.dv1.Size = new System.Drawing.Size(755, 373); this.dv1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
this.dv1.Size = new System.Drawing.Size(908, 494);
this.dv1.TabIndex = 1; this.dv1.TabIndex = 1;
// //
// cm1
//
this.cm1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.autoResizeColumnToolStripMenuItem,
this.toolStripMenuItem2,
this.iDChangeToolStripMenuItem,
this.passwordChangeToolStripMenuItem,
this.toolStripMenuItem1,
this.mailToolStripMenuItem});
this.cm1.Name = "cm1";
this.cm1.Size = new System.Drawing.Size(181, 104);
//
// autoResizeColumnToolStripMenuItem
//
this.autoResizeColumnToolStripMenuItem.Name = "autoResizeColumnToolStripMenuItem";
this.autoResizeColumnToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.autoResizeColumnToolStripMenuItem.Text = "AutoResize Column";
this.autoResizeColumnToolStripMenuItem.Click += new System.EventHandler(this.autoResizeColumnToolStripMenuItem_Click);
//
// toolStripMenuItem2
//
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(177, 6);
//
// iDChangeToolStripMenuItem
//
this.iDChangeToolStripMenuItem.Name = "iDChangeToolStripMenuItem";
this.iDChangeToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.iDChangeToolStripMenuItem.Text = "ID Change";
this.iDChangeToolStripMenuItem.Click += new System.EventHandler(this.iDChangeToolStripMenuItem_Click);
//
// passwordChangeToolStripMenuItem
//
this.passwordChangeToolStripMenuItem.Name = "passwordChangeToolStripMenuItem";
this.passwordChangeToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.passwordChangeToolStripMenuItem.Text = "Password Change";
this.passwordChangeToolStripMenuItem.Click += new System.EventHandler(this.passwordChangeToolStripMenuItem_Click);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(177, 6);
//
// mailToolStripMenuItem
//
this.mailToolStripMenuItem.Name = "mailToolStripMenuItem";
this.mailToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.mailToolStripMenuItem.Text = "Mail";
this.mailToolStripMenuItem.Click += new System.EventHandler(this.mailToolStripMenuItem_Click);
//
// toolStrip1
//
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripLabel1,
this.cmbdept,
this.toolStripLabel2,
this.tbProcess,
this.btRef});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(908, 25);
this.toolStrip1.TabIndex = 2;
this.toolStrip1.Text = "toolStrip1";
//
// toolStripLabel1
//
this.toolStripLabel1.Name = "toolStripLabel1";
this.toolStripLabel1.Size = new System.Drawing.Size(31, 22);
this.toolStripLabel1.Text = "소속";
//
// cmbdept
//
this.cmbdept.Name = "cmbdept";
this.cmbdept.Size = new System.Drawing.Size(400, 25);
//
// btRef
//
this.btRef.Image = ((System.Drawing.Image)(resources.GetObject("btRef.Image")));
this.btRef.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btRef.Name = "btRef";
this.btRef.Size = new System.Drawing.Size(66, 22);
this.btRef.Text = "Refresh";
this.btRef.Click += new System.EventHandler(this.btRef_Click);
//
// textBox1
//
this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "ads_title", true));
this.textBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.textBox1.Location = new System.Drawing.Point(0, 519);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(908, 21);
this.textBox1.TabIndex = 3;
//
// toolStripLabel2
//
this.toolStripLabel2.Name = "toolStripLabel2";
this.toolStripLabel2.Size = new System.Drawing.Size(31, 22);
this.toolStripLabel2.Text = "공정";
//
// tbProcess
//
this.tbProcess.Name = "tbProcess";
this.tbProcess.Size = new System.Drawing.Size(100, 25);
this.tbProcess.Text = "%";
this.tbProcess.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// dvc_id // dvc_id
// //
this.dvc_id.DataPropertyName = "id"; this.dvc_id.DataPropertyName = "id";
@@ -298,6 +409,12 @@
this.dvc_id.Name = "dvc_id"; this.dvc_id.Name = "dvc_id";
this.dvc_id.Width = 40; this.dvc_id.Width = 40;
// //
// processs
//
this.processs.DataPropertyName = "processs";
this.processs.HeaderText = "processs";
this.processs.Name = "processs";
//
// dvc_level // dvc_level
// //
this.dvc_level.DataPropertyName = "level"; this.dvc_level.DataPropertyName = "level";
@@ -385,102 +502,11 @@
this.memoDataGridViewTextBoxColumn.Name = "memoDataGridViewTextBoxColumn"; this.memoDataGridViewTextBoxColumn.Name = "memoDataGridViewTextBoxColumn";
this.memoDataGridViewTextBoxColumn.Width = 66; this.memoDataGridViewTextBoxColumn.Width = 66;
// //
// cm1
//
this.cm1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.autoResizeColumnToolStripMenuItem,
this.toolStripMenuItem2,
this.iDChangeToolStripMenuItem,
this.passwordChangeToolStripMenuItem,
this.toolStripMenuItem1,
this.mailToolStripMenuItem});
this.cm1.Name = "cm1";
this.cm1.Size = new System.Drawing.Size(181, 104);
//
// autoResizeColumnToolStripMenuItem
//
this.autoResizeColumnToolStripMenuItem.Name = "autoResizeColumnToolStripMenuItem";
this.autoResizeColumnToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.autoResizeColumnToolStripMenuItem.Text = "AutoResize Column";
this.autoResizeColumnToolStripMenuItem.Click += new System.EventHandler(this.autoResizeColumnToolStripMenuItem_Click);
//
// toolStripMenuItem2
//
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(177, 6);
//
// iDChangeToolStripMenuItem
//
this.iDChangeToolStripMenuItem.Name = "iDChangeToolStripMenuItem";
this.iDChangeToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.iDChangeToolStripMenuItem.Text = "ID Change";
this.iDChangeToolStripMenuItem.Click += new System.EventHandler(this.iDChangeToolStripMenuItem_Click);
//
// passwordChangeToolStripMenuItem
//
this.passwordChangeToolStripMenuItem.Name = "passwordChangeToolStripMenuItem";
this.passwordChangeToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.passwordChangeToolStripMenuItem.Text = "Password Change";
this.passwordChangeToolStripMenuItem.Click += new System.EventHandler(this.passwordChangeToolStripMenuItem_Click);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(177, 6);
//
// mailToolStripMenuItem
//
this.mailToolStripMenuItem.Name = "mailToolStripMenuItem";
this.mailToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.mailToolStripMenuItem.Text = "Mail";
this.mailToolStripMenuItem.Click += new System.EventHandler(this.mailToolStripMenuItem_Click);
//
// toolStrip1
//
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripLabel1,
this.cmbdept,
this.btRef});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(755, 25);
this.toolStrip1.TabIndex = 2;
this.toolStrip1.Text = "toolStrip1";
//
// toolStripLabel1
//
this.toolStripLabel1.Name = "toolStripLabel1";
this.toolStripLabel1.Size = new System.Drawing.Size(43, 22);
this.toolStripLabel1.Text = "Depart";
//
// cmbdept
//
this.cmbdept.Name = "cmbdept";
this.cmbdept.Size = new System.Drawing.Size(300, 25);
//
// btRef
//
this.btRef.Image = ((System.Drawing.Image)(resources.GetObject("btRef.Image")));
this.btRef.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btRef.Name = "btRef";
this.btRef.Size = new System.Drawing.Size(66, 22);
this.btRef.Text = "Refresh";
this.btRef.Click += new System.EventHandler(this.btRef_Click);
//
// textBox1
//
this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "ads_title", true));
this.textBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.textBox1.Location = new System.Drawing.Point(0, 398);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(755, 21);
this.textBox1.TabIndex = 3;
//
// fUserList // fUserList
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(755, 444); this.ClientSize = new System.Drawing.Size(908, 565);
this.Controls.Add(this.dv1); this.Controls.Add(this.dv1);
this.Controls.Add(this.textBox1); this.Controls.Add(this.textBox1);
this.Controls.Add(this.toolStrip1); this.Controls.Add(this.toolStrip1);
@@ -536,7 +562,11 @@
private System.Windows.Forms.ToolStripButton btRef; private System.Windows.Forms.ToolStripButton btRef;
private System.Windows.Forms.ToolStripMenuItem autoResizeColumnToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem autoResizeColumnToolStripMenuItem;
private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
private System.Windows.Forms.ToolStripLabel toolStripLabel2;
private System.Windows.Forms.ToolStripTextBox tbProcess;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_id; private System.Windows.Forms.DataGridViewTextBoxColumn dvc_id;
private System.Windows.Forms.DataGridViewTextBoxColumn processs;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_level; private System.Windows.Forms.DataGridViewTextBoxColumn dvc_level;
private System.Windows.Forms.DataGridViewTextBoxColumn nameDataGridViewTextBoxColumn; private System.Windows.Forms.DataGridViewTextBoxColumn nameDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn nameEDataGridViewTextBoxColumn; private System.Windows.Forms.DataGridViewTextBoxColumn nameEDataGridViewTextBoxColumn;
@@ -549,6 +579,5 @@
private System.Windows.Forms.DataGridViewTextBoxColumn hpDataGridViewTextBoxColumn; private System.Windows.Forms.DataGridViewTextBoxColumn hpDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn placeDataGridViewTextBoxColumn; private System.Windows.Forms.DataGridViewTextBoxColumn placeDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn memoDataGridViewTextBoxColumn; private System.Windows.Forms.DataGridViewTextBoxColumn memoDataGridViewTextBoxColumn;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
} }
} }

View File

@@ -155,8 +155,9 @@ namespace Project._Common
private void btRef_Click(object sender, EventArgs e) private void btRef_Click(object sender, EventArgs e)
{ {
//read data //read data
if (tbProcess.Text.Trim() == "") tbProcess.Text = "%";
this.dsMSSQL.Users.Clear(); this.dsMSSQL.Users.Clear();
this.ta.Fill(this.dsMSSQL.Users, this.cmbdept.Text ); this.ta.Fill(this.dsMSSQL.Users, this.cmbdept.Text, tbProcess.Text.Trim());
this.dsMSSQL.Users.AcceptChanges(); this.dsMSSQL.Users.AcceptChanges();
} }

View File

@@ -219,6 +219,9 @@
TgDQASA1MVpwzwAAAABJRU5ErkJggg== TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value> </value>
</data> </data>
<metadata name="processs.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="cm1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="cm1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>387, 17</value> <value>387, 17</value>
</metadata> </metadata>

File diff suppressed because it is too large Load Diff

View File

@@ -9,7 +9,7 @@
<Tables> <Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="UsersTableAdapter" GeneratorDataComponentClassName="UsersTableAdapter" Name="Users" UserDataComponentName="UsersTableAdapter"> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="UsersTableAdapter" GeneratorDataComponentClassName="UsersTableAdapter" Name="Users" UserDataComponentName="UsersTableAdapter">
<MainSource> <MainSource>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.Users" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill"> <DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.Users" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand> <DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [Users] WHERE (([id] = @Original_id) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @Original_password)) AND ((@IsNull_nameE = 1 AND [nameE] IS NULL) OR ([nameE] = @Original_nameE)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_outdate = 1 AND [outdate] IS NULL) OR ([outdate] = @Original_outdate)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_hp = 1 AND [hp] IS NULL) OR ([hp] = @Original_hp)) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_ads_employNo = 1 AND [ads_employNo] IS NULL) OR ([ads_employNo] = @Original_ads_employNo)) AND ((@IsNull_ads_title = 1 AND [ads_title] IS NULL) OR ([ads_title] = @Original_ads_title)) AND ((@IsNull_ads_created = 1 AND [ads_created] IS NULL) OR ([ads_created] = @Original_ads_created)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))</CommandText> <CommandText>DELETE FROM [Users] WHERE (([id] = @Original_id) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @Original_password)) AND ((@IsNull_nameE = 1 AND [nameE] IS NULL) OR ([nameE] = @Original_nameE)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_outdate = 1 AND [outdate] IS NULL) OR ([outdate] = @Original_outdate)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_hp = 1 AND [hp] IS NULL) OR ([hp] = @Original_hp)) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_ads_employNo = 1 AND [ads_employNo] IS NULL) OR ([ads_employNo] = @Original_ads_employNo)) AND ((@IsNull_ads_title = 1 AND [ads_title] IS NULL) OR ([ads_title] = @Original_ads_title)) AND ((@IsNull_ads_created = 1 AND [ads_created] IS NULL) OR ([ads_created] = @Original_ads_created)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))</CommandText>
@@ -54,101 +54,78 @@
</DeleteCommand> </DeleteCommand>
<InsertCommand> <InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [Users] ([id], [password], [nameE], [name], [dept], [grade], [email], [level], [indate], [outdate], [tel], [hp], [place], [ads_employNo], [ads_title], [ads_created], [memo], [wuid], [wdate]) VALUES (@id, @password, @nameE, @name, @dept, @grade, @email, @level, @indate, @outdate, @tel, @hp, @place, @ads_employNo, @ads_title, @ads_created, @memo, @wuid, @wdate); <CommandText>INSERT INTO Users
(id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate, processs, gcode)
VALUES (@id,@password,@nameE,@name,@dept,@grade,@email,@level,@indate,@outdate,@tel,@hp,@place,@ads_employNo,@ads_title,@ads_created,@memo,@wuid,@wdate,@processs,@gcode);
SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate FROM Users WHERE (id = @id) ORDER BY name</CommandText> SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate FROM Users WHERE (id = @id) ORDER BY name</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@id" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="id" ColumnName="id" DataSourceName="" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@id" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@password" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="password" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="password" ColumnName="password" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@password" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="password" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@nameE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="nameE" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="nameE" ColumnName="nameE" DataSourceName="" DataTypeServer="nvarchar(100)" DbType="String" Direction="Input" ParameterName="@nameE" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumn="nameE" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="name" ColumnName="name" DataSourceName="" DataTypeServer="nvarchar(100)" DbType="String" Direction="Input" ParameterName="@name" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@dept" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="dept" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="dept" ColumnName="dept" DataSourceName="" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@dept" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="dept" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@grade" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="grade" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="grade" ColumnName="grade" DataSourceName="" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@grade" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="grade" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@email" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="email" ColumnName="email" DataSourceName="" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@email" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@level" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="level" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="level" ColumnName="level" DataSourceName="" DataTypeServer="smallint" DbType="Int16" Direction="Input" ParameterName="@level" Precision="0" ProviderType="SmallInt" Scale="0" Size="2" SourceColumn="level" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@indate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="indate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="indate" ColumnName="indate" DataSourceName="" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@indate" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="indate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@outdate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="outdate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="outdate" ColumnName="outdate" DataSourceName="" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@outdate" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="outdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@tel" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="tel" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="tel" ColumnName="tel" DataSourceName="" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@tel" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="tel" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@hp" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="hp" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="hp" ColumnName="hp" DataSourceName="" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@hp" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="hp" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@place" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="place" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="place" ColumnName="place" DataSourceName="" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@place" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="place" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ads_employNo" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ads_employNo" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="ads_employNo" ColumnName="ads_employNo" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@ads_employNo" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="ads_employNo" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ads_title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ads_title" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="ads_title" ColumnName="ads_title" DataSourceName="" DataTypeServer="nvarchar(100)" DbType="String" Direction="Input" ParameterName="@ads_title" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumn="ads_title" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ads_created" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ads_created" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="ads_created" ColumnName="ads_created" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@ads_created" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="ads_created" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@memo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="memo" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="memo" ColumnName="memo" DataSourceName="" DataTypeServer="nvarchar(255)" DbType="String" Direction="Input" ParameterName="@memo" Precision="0" ProviderType="NVarChar" Scale="0" Size="255" SourceColumn="memo" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="wuid" ColumnName="wuid" DataSourceName="" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="wdate" ColumnName="wdate" DataSourceName="" DataTypeServer="smalldatetime" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="4" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="processs" ColumnName="processs" DataSourceName="" DataTypeServer="nvarchar(100)" DbType="String" Direction="Input" ParameterName="@processs" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumn="processs" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</InsertCommand> </InsertCommand>
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate <CommandText>SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate, processs, gcode
FROM Users FROM Users
WHERE (ISNULL(dept, '') LIKE @dept) WHERE (ISNULL(dept, N'') LIKE @dept) AND (ISNULL(processs, N'') LIKE @process)
ORDER BY name</CommandText> ORDER BY name</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="dept" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@dept" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="dept" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@dept" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="process" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="String" Direction="Input" ParameterName="@process" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</SelectCommand> </SelectCommand>
<UpdateCommand> <UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [Users] SET [id] = @id, [password] = @password, [nameE] = @nameE, [name] = @name, [dept] = @dept, [grade] = @grade, [email] = @email, [level] = @level, [indate] = @indate, [outdate] = @outdate, [tel] = @tel, [hp] = @hp, [place] = @place, [ads_employNo] = @ads_employNo, [ads_title] = @ads_title, [ads_created] = @ads_created, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate WHERE (([id] = @Original_id) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @Original_password)) AND ((@IsNull_nameE = 1 AND [nameE] IS NULL) OR ([nameE] = @Original_nameE)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_dept = 1 AND [dept] IS NULL) OR ([dept] = @Original_dept)) AND ((@IsNull_grade = 1 AND [grade] IS NULL) OR ([grade] = @Original_grade)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ((@IsNull_indate = 1 AND [indate] IS NULL) OR ([indate] = @Original_indate)) AND ((@IsNull_outdate = 1 AND [outdate] IS NULL) OR ([outdate] = @Original_outdate)) AND ((@IsNull_tel = 1 AND [tel] IS NULL) OR ([tel] = @Original_tel)) AND ((@IsNull_hp = 1 AND [hp] IS NULL) OR ([hp] = @Original_hp)) AND ((@IsNull_place = 1 AND [place] IS NULL) OR ([place] = @Original_place)) AND ((@IsNull_ads_employNo = 1 AND [ads_employNo] IS NULL) OR ([ads_employNo] = @Original_ads_employNo)) AND ((@IsNull_ads_title = 1 AND [ads_title] IS NULL) OR ([ads_title] = @Original_ads_title)) AND ((@IsNull_ads_created = 1 AND [ads_created] IS NULL) OR ([ads_created] = @Original_ads_created)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate)); <CommandText>UPDATE Users
SET id = @id, password = @password, nameE = @nameE, name = @name, dept = @dept, grade = @grade, email = @email, level = @level, indate = @indate, outdate = @outdate, tel = @tel,
hp = @hp, place = @place, ads_employNo = @ads_employNo, ads_title = @ads_title, ads_created = @ads_created, memo = @memo, wuid = @wuid, wdate = @wdate, processs = @process,
gcode = @gcode
WHERE (id = @Original_id);
SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate FROM Users WHERE (id = @id) ORDER BY name</CommandText> SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate FROM Users WHERE (id = @id) ORDER BY name</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@id" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="id" ColumnName="id" DataSourceName="" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@id" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@password" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="password" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="password" ColumnName="password" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@password" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="password" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@nameE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="nameE" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="nameE" ColumnName="nameE" DataSourceName="" DataTypeServer="nvarchar(100)" DbType="String" Direction="Input" ParameterName="@nameE" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumn="nameE" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="name" ColumnName="name" DataSourceName="" DataTypeServer="nvarchar(100)" DbType="String" Direction="Input" ParameterName="@name" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@dept" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="dept" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="dept" ColumnName="dept" DataSourceName="" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@dept" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="dept" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@grade" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="grade" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="grade" ColumnName="grade" DataSourceName="" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@grade" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="grade" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@email" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="email" ColumnName="email" DataSourceName="" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@email" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@level" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="level" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="level" ColumnName="level" DataSourceName="" DataTypeServer="smallint" DbType="Int16" Direction="Input" ParameterName="@level" Precision="0" ProviderType="SmallInt" Scale="0" Size="2" SourceColumn="level" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@indate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="indate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="indate" ColumnName="indate" DataSourceName="" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@indate" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="indate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@outdate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="outdate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="outdate" ColumnName="outdate" DataSourceName="" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@outdate" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="outdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@tel" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="tel" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="tel" ColumnName="tel" DataSourceName="" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@tel" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="tel" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@hp" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="hp" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="hp" ColumnName="hp" DataSourceName="" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@hp" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="hp" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@place" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="place" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="place" ColumnName="place" DataSourceName="" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@place" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="place" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ads_employNo" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ads_employNo" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="ads_employNo" ColumnName="ads_employNo" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@ads_employNo" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="ads_employNo" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ads_title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ads_title" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="ads_title" ColumnName="ads_title" DataSourceName="" DataTypeServer="nvarchar(100)" DbType="String" Direction="Input" ParameterName="@ads_title" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumn="ads_title" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ads_created" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ads_created" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="ads_created" ColumnName="ads_created" DataSourceName="" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@ads_created" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="ads_created" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@memo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="memo" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="memo" ColumnName="memo" DataSourceName="" DataTypeServer="nvarchar(255)" DbType="String" Direction="Input" ParameterName="@memo" Precision="0" ProviderType="NVarChar" Scale="0" Size="255" SourceColumn="memo" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="wuid" ColumnName="wuid" DataSourceName="" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="wdate" ColumnName="wdate" DataSourceName="" DataTypeServer="smalldatetime" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="4" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_id" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="process" ColumnName="processs" DataSourceName="" DataTypeServer="nvarchar(100)" DbType="String" Direction="Input" ParameterName="@process" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumn="processs" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_password" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="password" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_password" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="password" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="Original_id" ColumnName="id" DataSourceName="" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@Original_id" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_nameE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="nameE" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_nameE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="nameE" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dept" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dept" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_dept" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="dept" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_grade" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="grade" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_grade" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="grade" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_email" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="email" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_email" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_level" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="level" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_level" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="level" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_indate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="indate" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_indate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="indate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_outdate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="outdate" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_outdate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="outdate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_tel" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="tel" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_tel" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="tel" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_hp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="hp" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_hp" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="hp" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_place" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="place" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_place" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="place" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ads_employNo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ads_employNo" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_ads_employNo" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ads_employNo" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ads_title" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ads_title" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ads_title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ads_title" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ads_created" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ads_created" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_ads_created" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ads_created" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_memo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="memo" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_memo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="memo" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</UpdateCommand> </UpdateCommand>
@@ -174,17 +151,19 @@ SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, te
<Mapping SourceColumn="ads_title" DataSetColumn="ads_title" /> <Mapping SourceColumn="ads_title" DataSetColumn="ads_title" />
<Mapping SourceColumn="ads_created" DataSetColumn="ads_created" /> <Mapping SourceColumn="ads_created" DataSetColumn="ads_created" />
<Mapping SourceColumn="ads_employNo" DataSetColumn="ads_employNo" /> <Mapping SourceColumn="ads_employNo" DataSetColumn="ads_employNo" />
<Mapping SourceColumn="processs" DataSetColumn="processs" />
<Mapping SourceColumn="gcode" DataSetColumn="gcode" />
</Mappings> </Mappings>
<Sources> <Sources>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.Users" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByNamePw" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetByNamePw" GeneratorSourceName="FillByNamePw" GetMethodModifier="Public" GetMethodName="GetByNamePw" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetByNamePw" UserSourceName="FillByNamePw"> <DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.Users" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByNamePw" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetByNamePw" GeneratorSourceName="FillByNamePw" GetMethodModifier="Public" GetMethodName="GetByNamePw" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetByNamePw" UserSourceName="FillByNamePw">
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true"> <DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate <CommandText>SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate, processs, gcode
FROM Users FROM Users
WHERE [name] = @username and (password = @encpw)</CommandText> WHERE (name = @username) AND (password = @encpw)</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="username" ColumnName="name" DataSourceName="GroupWare.dbo.Users" DataTypeServer="nvarchar(100)" DbType="String" Direction="Input" ParameterName="@username" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="username" ColumnName="name" DataSourceName="EE.dbo.Users" DataTypeServer="nvarchar(100)" DbType="String" Direction="Input" ParameterName="@username" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="encpw" ColumnName="password" DataSourceName="GroupWare.dbo.Users" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@encpw" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="password" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="encpw" ColumnName="password" DataSourceName="EE.dbo.Users" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@encpw" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="password" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</SelectCommand> </SelectCommand>
@@ -192,12 +171,12 @@ WHERE [name] = @username and (password = @encpw)</CommandText>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.Users" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetID" GeneratorSourceName="FillID" GetMethodModifier="Public" GetMethodName="GetID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetID" UserSourceName="FillID"> <DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.Users" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetID" GeneratorSourceName="FillID" GetMethodModifier="Public" GetMethodName="GetID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetID" UserSourceName="FillID">
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true"> <DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate <CommandText>SELECT id, password, nameE, name, dept, grade, email, level, indate, outdate, tel, hp, place, ads_employNo, ads_title, ads_created, memo, wuid, wdate, processs, gcode
FROM Users FROM Users
where id = @id WHERE (id = @id)
ORDER BY name</CommandText> ORDER BY name</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="id" ColumnName="id" DataSourceName="GroupWare.dbo.Users" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@id" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="id" ColumnName="id" DataSourceName="EE.dbo.Users" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@id" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</SelectCommand> </SelectCommand>
@@ -205,10 +184,14 @@ ORDER BY name</CommandText>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.Users" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillIDPW" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetIDPW" GeneratorSourceName="FillIDPW" GetMethodModifier="Public" GetMethodName="GetIDPW" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetIDPW" UserSourceName="FillIDPW"> <DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.Users" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillIDPW" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetIDPW" GeneratorSourceName="FillIDPW" GetMethodModifier="Public" GetMethodName="GetIDPW" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetIDPW" UserSourceName="FillIDPW">
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true"> <DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT ads_created, ads_employNo, ads_title, dept, email, grade, hp, id, indate, level, memo, name, nameE, outdate, password, place, tel, wdate, wuid FROM Users WHERE (password = @encpw) AND (level &gt; 0) AND (email = @idkey) OR (password = @encpw) AND (level &gt; 0) AND (id = @idkey) OR (password = @encpw) AND (level &gt; 0) AND (email = { fn CONCAT(@idkey, '@amkor.co.kr') })</CommandText> <CommandText>SELECT ads_created, ads_employNo, ads_title, dept, email, grade, hp, id, indate, level, memo, name, nameE, outdate, password, place, tel, wdate, wuid, processs, gcode
FROM Users
WHERE (password = @encpw) AND (level &gt; 0) AND (email = @idkey) OR
(password = @encpw) AND (level &gt; 0) AND (id = @idkey) OR
(password = @encpw) AND (level &gt; 0) AND (email = { fn CONCAT(@idkey, '@amkor.co.kr') })</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="encpw" ColumnName="password" DataSourceName="GroupWare.dbo.Users" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@encpw" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="password" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="encpw" ColumnName="password" DataSourceName="EE.dbo.Users" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@encpw" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="password" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="idkey" ColumnName="email" DataSourceName="GroupWare.dbo.Users" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@idkey" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="idkey" ColumnName="email" DataSourceName="EE.dbo.Users" DataTypeServer="varchar(100)" DbType="AnsiString" Direction="Input" ParameterName="@idkey" Precision="0" ProviderType="VarChar" Scale="0" Size="100" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</SelectCommand> </SelectCommand>
@@ -929,6 +912,20 @@ WHERE (idx = @idx)</CommandText>
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="processs" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="processs" msprop:Generator_ColumnVarNameInTable="columnprocesss" msprop:Generator_ColumnPropNameInTable="processsColumn" msprop:Generator_UserColumnName="processs" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="100" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="gcode" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="gcode" msprop:Generator_ColumnVarNameInTable="columngcode" msprop:Generator_ColumnPropNameInTable="gcodeColumn" msprop:Generator_UserColumnName="gcode" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>

View File

@@ -4,7 +4,7 @@
Changes to this file may cause incorrect behavior and will be lost if Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated. the code is regenerated.
</autogenerated>--> </autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="28" ViewPortY="-21" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout"> <DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-21" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes> <Shapes>
<Shape ID="DesignTable:Users" ZOrder="2" X="38" Y="90" Height="554" Width="164" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="429" /> <Shape ID="DesignTable:Users" ZOrder="2" X="38" Y="90" Height="554" Width="164" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="429" />
<Shape ID="DesignTable:Projects" ZOrder="7" X="208" Y="0" Height="149" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="59" /> <Shape ID="DesignTable:Projects" ZOrder="7" X="208" Y="0" Height="149" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="59" />

View File

@@ -31,12 +31,9 @@
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fHolyday)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fHolyday));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
this.bn = new System.Windows.Forms.BindingNavigator(this.components); this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.dsMSSQL = new FBS0000.dsMSSQL();
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
@@ -48,7 +45,13 @@
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.boardBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripLabel7 = new System.Windows.Forms.ToolStripLabel();
this.sbUse = new System.Windows.Forms.ToolStripLabel();
this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel();
this.sbGen = new System.Windows.Forms.ToolStripLabel();
this.toolStripLabel8 = new System.Windows.Forms.ToolStripLabel();
this.sbJan = new System.Windows.Forms.ToolStripLabel();
this.dv1 = new System.Windows.Forms.DataGridView(); this.dv1 = new System.Windows.Forms.DataGridView();
this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.cm1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.sendToMailToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.sendToMailToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -62,32 +65,19 @@
this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel();
this.cmbUser = new System.Windows.Forms.ToolStripComboBox(); this.cmbUser = new System.Windows.Forms.ToolStripComboBox();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.bs = new System.Windows.Forms.BindingSource(this.components); this.ta = new FBS0000.dsMSSQLTableAdapters.vHoliday_uselistTableAdapter();
this.dsMSSQL = new FBS0000.dsMSSQL(); this.pdate = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tam = new FBS0000.dsMSSQLTableAdapters.TableAdapterManager(); this.dvc_cate = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ta = new FBS0000.dsMSSQLTableAdapters.HolydayTableAdapter();
this.dvc_user = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.dvc_cate = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.sdateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.edateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.termDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.termDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.termDr = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.termDr = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dvc_result = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.contents = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.contents = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.sbGen = new System.Windows.Forms.ToolStripLabel();
this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel();
this.sbUse = new System.Windows.Forms.ToolStripLabel();
this.toolStripLabel7 = new System.Windows.Forms.ToolStripLabel();
this.toolStripLabel8 = new System.Windows.Forms.ToolStripLabel();
this.sbJan = new System.Windows.Forms.ToolStripLabel();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout(); this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
this.cm1.SuspendLayout(); this.cm1.SuspendLayout();
this.toolStrip1.SuspendLayout(); this.toolStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// bn // bn
@@ -110,7 +100,6 @@
this.bindingNavigatorSeparator2, this.bindingNavigatorSeparator2,
this.bindingNavigatorAddNewItem, this.bindingNavigatorAddNewItem,
this.bindingNavigatorDeleteItem, this.bindingNavigatorDeleteItem,
this.boardBindingNavigatorSaveItem,
this.toolStripSeparator1, this.toolStripSeparator1,
this.toolStripLabel7, this.toolStripLabel7,
this.sbUse, this.sbUse,
@@ -129,6 +118,16 @@
this.bn.TabIndex = 0; this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1"; this.bn.Text = "bindingNavigator1";
// //
// bs
//
this.bs.DataMember = "vHoliday_uselist";
this.bs.DataSource = this.dsMSSQL;
//
// dsMSSQL
//
this.dsMSSQL.DataSetName = "dsMSSQL";
this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// bindingNavigatorCountItem // bindingNavigatorCountItem
// //
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem"; this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
@@ -209,17 +208,54 @@
this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image"))); this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image")));
this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem"; this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem";
this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true; this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(75, 28); this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(131, 28);
this.bindingNavigatorAddNewItem.Text = "추가(&A)"; this.bindingNavigatorAddNewItem.Text = "휴가 발생 등록(&A)";
this.bindingNavigatorAddNewItem.Click += new System.EventHandler(this.bindingNavigatorAddNewItem_Click); this.bindingNavigatorAddNewItem.Click += new System.EventHandler(this.bindingNavigatorAddNewItem_Click);
// //
// boardBindingNavigatorSaveItem // toolStripSeparator1
// //
this.boardBindingNavigatorSaveItem.Image = ((System.Drawing.Image)(resources.GetObject("boardBindingNavigatorSaveItem.Image"))); this.toolStripSeparator1.Name = "toolStripSeparator1";
this.boardBindingNavigatorSaveItem.Name = "boardBindingNavigatorSaveItem"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 31);
this.boardBindingNavigatorSaveItem.Size = new System.Drawing.Size(74, 28); //
this.boardBindingNavigatorSaveItem.Text = "저장(&S)"; // toolStripLabel7
this.boardBindingNavigatorSaveItem.Click += new System.EventHandler(this.boardBindingNavigatorSaveItem_Click); //
this.toolStripLabel7.Name = "toolStripLabel7";
this.toolStripLabel7.Size = new System.Drawing.Size(31, 28);
this.toolStripLabel7.Text = "사용";
//
// sbUse
//
this.sbUse.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.sbUse.Name = "sbUse";
this.sbUse.Size = new System.Drawing.Size(19, 28);
this.sbUse.Text = "0";
//
// toolStripLabel5
//
this.toolStripLabel5.Name = "toolStripLabel5";
this.toolStripLabel5.Size = new System.Drawing.Size(31, 28);
this.toolStripLabel5.Text = "발생";
//
// sbGen
//
this.sbGen.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.sbGen.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
this.sbGen.Name = "sbGen";
this.sbGen.Size = new System.Drawing.Size(19, 28);
this.sbGen.Text = "0";
//
// toolStripLabel8
//
this.toolStripLabel8.Name = "toolStripLabel8";
this.toolStripLabel8.Size = new System.Drawing.Size(31, 28);
this.toolStripLabel8.Text = "잔량";
//
// sbJan
//
this.sbJan.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.sbJan.Name = "sbJan";
this.sbJan.Size = new System.Drawing.Size(19, 28);
this.sbJan.Text = "0";
// //
// dv1 // dv1
// //
@@ -229,13 +265,10 @@
this.dv1.ColumnHeadersHeight = 30; this.dv1.ColumnHeadersHeight = 30;
this.dv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.dv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dvc_user, this.pdate,
this.dvc_cate, this.dvc_cate,
this.sdateDataGridViewTextBoxColumn,
this.edateDataGridViewTextBoxColumn,
this.termDataGridViewTextBoxColumn, this.termDataGridViewTextBoxColumn,
this.termDr, this.termDr,
this.dvc_result,
this.contents}); this.contents});
this.dv1.ContextMenuStrip = this.cm1; this.dv1.ContextMenuStrip = this.cm1;
this.dv1.DataSource = this.bs; this.dv1.DataSource = this.bs;
@@ -298,8 +331,8 @@
// toolStripLabel1 // toolStripLabel1
// //
this.toolStripLabel1.Name = "toolStripLabel1"; this.toolStripLabel1.Name = "toolStripLabel1";
this.toolStripLabel1.Size = new System.Drawing.Size(34, 28); this.toolStripLabel1.Size = new System.Drawing.Size(31, 28);
this.toolStripLabel1.Text = "Term"; this.toolStripLabel1.Text = "기간";
// //
// tbSD // tbSD
// //
@@ -326,8 +359,8 @@
// toolStripLabel3 // toolStripLabel3
// //
this.toolStripLabel3.Name = "toolStripLabel3"; this.toolStripLabel3.Name = "toolStripLabel3";
this.toolStripLabel3.Size = new System.Drawing.Size(30, 28); this.toolStripLabel3.Size = new System.Drawing.Size(43, 28);
this.toolStripLabel3.Text = "User"; this.toolStripLabel3.Text = "담당자";
// //
// cmbUser // cmbUser
// //
@@ -340,77 +373,34 @@
this.toolStripButton1.Image = global::FBS0000.Properties.Resources.action_refresh; this.toolStripButton1.Image = global::FBS0000.Properties.Resources.action_refresh;
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1"; this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(86, 28); this.toolStripButton1.Size = new System.Drawing.Size(74, 28);
this.toolStripButton1.Text = "Search(&R)"; this.toolStripButton1.Text = "검색(&R)";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
// //
// bs
//
this.bs.DataMember = "Holyday";
this.bs.DataSource = this.dsMSSQL;
//
// dsMSSQL
//
this.dsMSSQL.DataSetName = "dsMSSQL";
this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// tam
//
this.tam.BackupDataSetBeforeUpdate = false;
this.tam.BoardTableAdapter = null;
this.tam.HolydayTableAdapter = this.ta;
this.tam.minutesTableAdapter = null;
this.tam.UpdateOrder = FBS0000.dsMSSQLTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
//
// ta // ta
// //
this.ta.ClearBeforeFill = true; this.ta.ClearBeforeFill = true;
// //
// dvc_user // pdate
// //
this.dvc_user.DataPropertyName = "uid"; this.pdate.DataPropertyName = "pdate";
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; this.pdate.HeaderText = "등록일";
this.dvc_user.DefaultCellStyle = dataGridViewCellStyle1; this.pdate.Name = "pdate";
this.dvc_user.HeaderText = "사용자"; this.pdate.ReadOnly = true;
this.dvc_user.Name = "dvc_user";
this.dvc_user.ReadOnly = true;
this.dvc_user.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.dvc_user.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
// //
// dvc_cate // dvc_cate
// //
this.dvc_cate.DataPropertyName = "cate"; this.dvc_cate.DataPropertyName = "cate";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; this.dvc_cate.HeaderText = "cate";
this.dvc_cate.DefaultCellStyle = dataGridViewCellStyle2;
this.dvc_cate.HeaderText = "구분";
this.dvc_cate.Name = "dvc_cate"; this.dvc_cate.Name = "dvc_cate";
this.dvc_cate.ReadOnly = true; this.dvc_cate.ReadOnly = true;
this.dvc_cate.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.dvc_cate.Visible = false;
this.dvc_cate.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// sdateDataGridViewTextBoxColumn
//
this.sdateDataGridViewTextBoxColumn.DataPropertyName = "sdate";
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.sdateDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
this.sdateDataGridViewTextBoxColumn.HeaderText = "시작일";
this.sdateDataGridViewTextBoxColumn.Name = "sdateDataGridViewTextBoxColumn";
this.sdateDataGridViewTextBoxColumn.ReadOnly = true;
//
// edateDataGridViewTextBoxColumn
//
this.edateDataGridViewTextBoxColumn.DataPropertyName = "edate";
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.edateDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4;
this.edateDataGridViewTextBoxColumn.HeaderText = "종료일";
this.edateDataGridViewTextBoxColumn.Name = "edateDataGridViewTextBoxColumn";
this.edateDataGridViewTextBoxColumn.ReadOnly = true;
// //
// termDataGridViewTextBoxColumn // termDataGridViewTextBoxColumn
// //
this.termDataGridViewTextBoxColumn.DataPropertyName = "term"; this.termDataGridViewTextBoxColumn.DataPropertyName = "term";
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.termDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle5; this.termDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1;
this.termDataGridViewTextBoxColumn.HeaderText = "사용"; this.termDataGridViewTextBoxColumn.HeaderText = "사용";
this.termDataGridViewTextBoxColumn.Name = "termDataGridViewTextBoxColumn"; this.termDataGridViewTextBoxColumn.Name = "termDataGridViewTextBoxColumn";
this.termDataGridViewTextBoxColumn.ReadOnly = true; this.termDataGridViewTextBoxColumn.ReadOnly = true;
@@ -422,17 +412,6 @@
this.termDr.Name = "termDr"; this.termDr.Name = "termDr";
this.termDr.ReadOnly = true; this.termDr.ReadOnly = true;
// //
// dvc_result
//
this.dvc_result.DataPropertyName = "result";
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dvc_result.DefaultCellStyle = dataGridViewCellStyle6;
this.dvc_result.HeaderText = "결과";
this.dvc_result.Name = "dvc_result";
this.dvc_result.ReadOnly = true;
this.dvc_result.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.dvc_result.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// contents // contents
// //
this.contents.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.contents.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
@@ -441,51 +420,6 @@
this.contents.Name = "contents"; this.contents.Name = "contents";
this.contents.ReadOnly = true; this.contents.ReadOnly = true;
// //
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 31);
//
// sbGen
//
this.sbGen.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.sbGen.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
this.sbGen.Name = "sbGen";
this.sbGen.Size = new System.Drawing.Size(19, 28);
this.sbGen.Text = "0";
//
// toolStripLabel5
//
this.toolStripLabel5.Name = "toolStripLabel5";
this.toolStripLabel5.Size = new System.Drawing.Size(31, 28);
this.toolStripLabel5.Text = "발생";
//
// sbUse
//
this.sbUse.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.sbUse.Name = "sbUse";
this.sbUse.Size = new System.Drawing.Size(19, 28);
this.sbUse.Text = "0";
//
// toolStripLabel7
//
this.toolStripLabel7.Name = "toolStripLabel7";
this.toolStripLabel7.Size = new System.Drawing.Size(31, 28);
this.toolStripLabel7.Text = "사용";
//
// toolStripLabel8
//
this.toolStripLabel8.Name = "toolStripLabel8";
this.toolStripLabel8.Size = new System.Drawing.Size(31, 28);
this.toolStripLabel8.Text = "잔량";
//
// sbJan
//
this.sbJan.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.sbJan.Name = "sbJan";
this.sbJan.Size = new System.Drawing.Size(19, 28);
this.sbJan.Text = "0";
//
// fHolyday // fHolyday
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -495,17 +429,17 @@
this.Controls.Add(this.toolStrip1); this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.bn); this.Controls.Add(this.bn);
this.Name = "fHolyday"; this.Name = "fHolyday";
this.Text = "Holiday List"; this.Text = "휴가 사용 내역";
this.Load += new System.EventHandler(this.@__Load); this.Load += new System.EventHandler(this.@__Load);
((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit();
this.bn.ResumeLayout(false); this.bn.ResumeLayout(false);
this.bn.PerformLayout(); this.bn.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit();
this.cm1.ResumeLayout(false); this.cm1.ResumeLayout(false);
this.toolStrip1.ResumeLayout(false); this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout(); this.toolStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@@ -515,7 +449,6 @@
private dsMSSQL dsMSSQL; private dsMSSQL dsMSSQL;
private System.Windows.Forms.BindingSource bs; private System.Windows.Forms.BindingSource bs;
private dsMSSQLTableAdapters.TableAdapterManager tam;
private System.Windows.Forms.BindingNavigator bn; private System.Windows.Forms.BindingNavigator bn;
private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem; private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem; private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
@@ -528,9 +461,7 @@
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem; private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem; private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2; private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.ToolStripButton boardBindingNavigatorSaveItem;
private System.Windows.Forms.DataGridView dv1; private System.Windows.Forms.DataGridView dv1;
private dsMSSQLTableAdapters.HolydayTableAdapter ta;
private System.Windows.Forms.ToolStrip toolStrip1; private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripLabel toolStripLabel1; private System.Windows.Forms.ToolStripLabel toolStripLabel1;
private System.Windows.Forms.ToolStripTextBox tbSD; private System.Windows.Forms.ToolStripTextBox tbSD;
@@ -543,14 +474,6 @@
private System.Windows.Forms.ToolStripMenuItem autoResizeComlumnsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem autoResizeComlumnsToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem sendToMailToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem sendToMailToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1; private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
private System.Windows.Forms.DataGridViewComboBoxColumn dvc_user;
private System.Windows.Forms.DataGridViewComboBoxColumn dvc_cate;
private System.Windows.Forms.DataGridViewTextBoxColumn sdateDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn edateDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn termDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn termDr;
private System.Windows.Forms.DataGridViewComboBoxColumn dvc_result;
private System.Windows.Forms.DataGridViewTextBoxColumn contents;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripLabel toolStripLabel7; private System.Windows.Forms.ToolStripLabel toolStripLabel7;
private System.Windows.Forms.ToolStripLabel sbUse; private System.Windows.Forms.ToolStripLabel sbUse;
@@ -558,5 +481,11 @@
private System.Windows.Forms.ToolStripLabel sbGen; private System.Windows.Forms.ToolStripLabel sbGen;
private System.Windows.Forms.ToolStripLabel toolStripLabel8; private System.Windows.Forms.ToolStripLabel toolStripLabel8;
private System.Windows.Forms.ToolStripLabel sbJan; private System.Windows.Forms.ToolStripLabel sbJan;
private dsMSSQLTableAdapters.vHoliday_uselistTableAdapter ta;
private System.Windows.Forms.DataGridViewTextBoxColumn pdate;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_cate;
private System.Windows.Forms.DataGridViewTextBoxColumn termDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn termDr;
private System.Windows.Forms.DataGridViewTextBoxColumn contents;
} }
} }

View File

@@ -17,28 +17,39 @@ namespace FBS0000
public fHolyday() public fHolyday()
{ {
InitializeComponent(); InitializeComponent();
this.dsMSSQL.Holyday.TableNewRow += Holyday_TableNewRow; this.dsMSSQL.vHoliday_uselist.TableNewRow += Holyday_TableNewRow;
this.dv1.CellFormatting += dv1_CellFormatting;
}
void dv1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (e.RowIndex < 0 || e.ColumnIndex < 0) return;
var col = this.dv1.Columns[e.ColumnIndex];
var cate = dv1.Rows[e.RowIndex].Cells["dvc_cate"].Value.ToString();
if (cate == "0") dv1.Rows[e.RowIndex].DefaultCellStyle.ForeColor = Color.Blue;// = Color.Gray;
else dv1.Rows[e.RowIndex].DefaultCellStyle.ForeColor = Color.Black;
} }
private void __Load(object sender, EventArgs e) private void __Load(object sender, EventArgs e)
{ {
tbSD.Text = DateTime.Now.Year.ToString("0000") + "-01-01"; tbSD.Text = DateTime.Now.Year.ToString("0000") + "-01-01";
tbED.Text = DateTime.Now.AddDays(10).ToShortDateString(); tbED.Text = DateTime.Now.AddDays(10).ToShortDateString();
var userlist = FCOMMON.DBM.getUserTable(); //var userlist = FCOMMON.DBM.getUserTable();
dvc_user.DataSource = userlist; //dvc_user.DataSource = userlist;
dvc_user.ValueMember = "Key"; //dvc_user.ValueMember = "Key";
dvc_user.DisplayMember = "Value"; //dvc_user.DisplayMember = "Value";
var cateList = FCOMMON.DBM.getCodeTable("02"); //var cateList = FCOMMON.DBM.getCodeTable("02");
this.dvc_cate.DataSource = cateList; //this.dvc_cate.DataSource = cateList;
dvc_cate.ValueMember = "Key"; //dvc_cate.ValueMember = "Key";
dvc_cate.DisplayMember = "Value"; //dvc_cate.DisplayMember = "Value";
var rrltList = FCOMMON.DBM.getCodeTable("03"); //var rrltList = FCOMMON.DBM.getCodeTable("03");
this.dvc_result.DataSource = rrltList; //this.dvc_result.DataSource = rrltList;
dvc_result.ValueMember = "Key"; //dvc_result.ValueMember = "Key";
dvc_result.DisplayMember = "Value"; //dvc_result.DisplayMember = "Value";
//udpate user list //udpate user list
var userList = FCOMMON.DBM.getUserList(); var userList = FCOMMON.DBM.getUserList();
@@ -51,7 +62,7 @@ namespace FBS0000
if (user.Key == FCOMMON.info.Login.no) curuserindex = cmbUser.Items.Count - 1; if (user.Key == FCOMMON.info.Login.no) curuserindex = cmbUser.Items.Count - 1;
} }
this.cmbUser.SelectedIndex = curuserindex; this.cmbUser.SelectedIndex = curuserindex;
//일반사용자의경우에는 상태를 변경하지 못한다. //일반사용자의경우에는 상태를 변경하지 못한다.
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.holyday)); int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.holyday));
if (curLevel >= 5) if (curLevel >= 5)
@@ -71,11 +82,10 @@ namespace FBS0000
e.Row["wuid"] = FCOMMON.info.Login.no; e.Row["wuid"] = FCOMMON.info.Login.no;
e.Row["uid"] = FCOMMON.info.Login.no; e.Row["uid"] = FCOMMON.info.Login.no;
e.Row["wdate"] = DateTime.Now; e.Row["wdate"] = DateTime.Now;
e.Row["cate"] = "10"; //기본 신청 e.Row["cate"] = "0"; //기본 신청
e.Row["sdate"] = DateTime.Now.ToShortDateString(); e.Row["pdate"] = DateTime.Now;
e.Row["edate"] = DateTime.Now.ToShortDateString(); e.Row["termDr"] = 1.0f;
e.Row["term"] = 1.0f; e.Row["contents"] = string.Empty;
e.Row["Result"] = "00";
} }
@@ -87,24 +97,25 @@ namespace FBS0000
{ {
uid = cmbUser.Text.Substring(1, cmbUser.Text.IndexOf(']') - 1); uid = cmbUser.Text.Substring(1, cmbUser.Text.IndexOf(']') - 1);
} }
this.ta.Fill(this.dsMSSQL.Holyday, tbSD.Text, tbED.Text, uid); var sd = DateTime.Parse(tbSD.Text + " 00:00:00");
var ed = DateTime.Parse(tbED.Text + " 23:59:59");
this.ta.Fill(this.dsMSSQL.vHoliday_uselist,uid,tbSD.Text,tbED.Text,FCOMMON.info.Login.gcode);
//잔량계산 //잔량계산
double sumdr = 0; double sumdr = this.dsMSSQL.vHoliday_uselist.Sum(t => t.termDr);
double sumcr = 0; double sumcr = this.dsMSSQL.vHoliday_uselist.Sum(t => t.term);
double jan = 0; double jan = sumdr - sumcr;
foreach( dsMSSQL.HolydayRow dr in this.dsMSSQL.Holyday.Rows)
{
if (dr.RowState == DataRowState.Deleted || dr.RowState == DataRowState.Detached) continue;
sumdr += dr.termDr;
sumcr += dr.term;
}
jan = sumdr - sumcr;
sbGen.Text = sumdr.ToString("N0"); sbGen.Text = sumdr.ToString("N0");
sbUse.Text = sumcr.ToString("N0"); sbUse.Text = sumcr.ToString("N0");
sbJan.Text = jan.ToString("N0"); sbJan.Text = jan.ToString("N0");
if (jan < 0) sbJan.ForeColor = Color.Red; if (jan < 0) sbJan.ForeColor = Color.Red;
else sbJan.ForeColor = Color.Blue; else sbJan.ForeColor = Color.Blue;
//색상변경
this.dv1.AutoResizeColumns();
} }
private void boardBindingNavigatorSaveItem_Click(object sender, EventArgs e) private void boardBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{ {
@@ -114,27 +125,21 @@ namespace FBS0000
if (dlg != System.Windows.Forms.DialogResult.Yes) return; if (dlg != System.Windows.Forms.DialogResult.Yes) return;
try try
{ {
this.tam.UpdateAll(this.dsMSSQL);
} catch (Exception ex) }
catch (Exception ex)
{ {
FCOMMON.Util.MsgE(ex.Message); FCOMMON.Util.MsgE(ex.Message);
} }
} }
private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
{ {
var newdr = this.dsMSSQL.Holyday.NewHolydayRow();
var f = new fHolyday_Add(newdr); var f = new fHolyday_Add();
if (f.ShowDialog() != System.Windows.Forms.DialogResult.OK) if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{ {
newdr.Delete(); RefreshData();
}
else
{
newdr.EndEdit();
this.dsMSSQL.Holyday.AddHolydayRow(newdr);
} }
} }
@@ -152,12 +157,21 @@ namespace FBS0000
{ {
var drv = this.bs.Current as DataRowView; var drv = this.bs.Current as DataRowView;
if (drv == null) return; if (drv == null) return;
var dr = drv.Row as dsMSSQL.HolydayRow; var dr = drv.Row as dsMSSQL.vHoliday_uselistRow;
var f = new fHolyday_Add(dr); if(dr.cate == "0")
if(f.ShowDialog() != System.Windows.Forms.DialogResult.OK)
{ {
dr.RejectChanges(); var f = new fHolyday_Add(dr.idx);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
RefreshData();
}
} }
else
{
FCOMMON.Util.MsgI("이 데이터는 업무일지의 데이터가 입니다.\n\n" +
"변경하려면 업무일지의 자료를 수정하세요" );
}
} }
private void toolStripButton1_Click(object sender, EventArgs e) private void toolStripButton1_Click(object sender, EventArgs e)
@@ -168,10 +182,10 @@ namespace FBS0000
private void tbSD_KeyDown(object sender, KeyEventArgs e) private void tbSD_KeyDown(object sender, KeyEventArgs e)
{ {
var tb = sender as ToolStripTextBox; var tb = sender as ToolStripTextBox;
if(e.KeyCode == Keys.Enter) if (e.KeyCode == Keys.Enter)
{ {
string datestring ; string datestring;
if(FCOMMON.Util.MakeDateString(tb.Text,out datestring)) if (FCOMMON.Util.MakeDateString(tb.Text, out datestring))
{ {
tb.Text = datestring; tb.Text = datestring;
SendKeys.Send("{TAB}"); SendKeys.Send("{TAB}");
@@ -193,7 +207,7 @@ namespace FBS0000
Outlook.Application outlookApplication = new Outlook.Application(); Outlook.Application outlookApplication = new Outlook.Application();
Outlook.MailItem newTask = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem; Outlook.MailItem newTask = outlookApplication.CreateItem(OlItemType.olMailItem) as Outlook.MailItem;
newTask.Subject="mail test"; newTask.Subject = "mail test";
newTask.To = "Chikyun.Kim@amkor.co.kr"; newTask.To = "Chikyun.Kim@amkor.co.kr";
newTask.HTMLBody = "<i><b>this is test mail</b></i>"; newTask.HTMLBody = "<i><b>this is test mail</b></i>";
newTask.BodyFormat = OlBodyFormat.olFormatHTML; newTask.BodyFormat = OlBodyFormat.olFormatHTML;

View File

@@ -118,7 +118,7 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="bn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="bn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>259, 17</value> <value>186, 17</value>
</metadata> </metadata>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>122, 17</value> <value>122, 17</value>
@@ -191,32 +191,25 @@
rkJggg== rkJggg==
</value> </value>
</data> </data>
<data name="boardBindingNavigatorSaveItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <metadata name="pdate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo
dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII=
</value>
</data>
<metadata name="termDr.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="dvc_result.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="dvc_cate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="termDr.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="contents.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="contents.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="cm1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="cm1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>493, 17</value> <value>358, 17</value>
</metadata> </metadata>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>387, 17</value> <value>252, 17</value>
</metadata>
<metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>186, 17</value>
</metadata> </metadata>
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>325, 17</value> <value>433, 17</value>
</metadata> </metadata>
</root> </root>

View File

@@ -29,112 +29,58 @@
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.Windows.Forms.Label cateLabel;
System.Windows.Forms.Label resutLabel;
System.Windows.Forms.Label sdateLabel; System.Windows.Forms.Label sdateLabel;
System.Windows.Forms.Label edateLabel;
System.Windows.Forms.Label contentsLabel; System.Windows.Forms.Label contentsLabel;
System.Windows.Forms.Label uidLabel; System.Windows.Forms.Label uidLabel;
System.Windows.Forms.Label tolistLabel; System.Windows.Forms.Label label1;
this.dsMSSQL = new FBS0000.dsMSSQL(); this.dsMSSQL = new FBS0000.dsMSSQL();
this.bs = new System.Windows.Forms.BindingSource(this.components); this.bs = new System.Windows.Forms.BindingSource(this.components);
this.ta = new FBS0000.dsMSSQLTableAdapters.HolydayTableAdapter(); this.ta = new FBS0000.dsMSSQLTableAdapters.HolydayTableAdapter();
this.tam = new FBS0000.dsMSSQLTableAdapters.TableAdapterManager(); this.tam = new FBS0000.dsMSSQLTableAdapters.TableAdapterManager();
this.contentsTextBox = new System.Windows.Forms.TextBox(); this.contentsTextBox = new System.Windows.Forms.TextBox();
this.tolistTextBox = new System.Windows.Forms.TextBox();
this.mailCheckBox = new System.Windows.Forms.CheckBox();
this.reasonTextBox = new System.Windows.Forms.TextBox();
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
this.dateTimePicker2 = new System.Windows.Forms.DateTimePicker();
this.cmbCate = new System.Windows.Forms.ComboBox();
this.cmbUser = new System.Windows.Forms.ComboBox(); this.cmbUser = new System.Windows.Forms.ComboBox();
this.cmbRlt = new System.Windows.Forms.ComboBox();
this.btOK = new System.Windows.Forms.Button(); this.btOK = new System.Windows.Forms.Button();
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
cateLabel = new System.Windows.Forms.Label();
resutLabel = new System.Windows.Forms.Label();
sdateLabel = new System.Windows.Forms.Label(); sdateLabel = new System.Windows.Forms.Label();
edateLabel = new System.Windows.Forms.Label();
contentsLabel = new System.Windows.Forms.Label(); contentsLabel = new System.Windows.Forms.Label();
uidLabel = new System.Windows.Forms.Label(); uidLabel = new System.Windows.Forms.Label();
tolistLabel = new System.Windows.Forms.Label(); label1 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// cateLabel
//
cateLabel.AutoSize = true;
cateLabel.Location = new System.Drawing.Point(12, 73);
cateLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
cateLabel.Name = "cateLabel";
cateLabel.Size = new System.Drawing.Size(72, 19);
cateLabel.TabIndex = 4;
cateLabel.Text = "Category";
//
// resutLabel
//
resutLabel.AutoSize = true;
resutLabel.Location = new System.Drawing.Point(372, 9);
resutLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
resutLabel.Name = "resutLabel";
resutLabel.Size = new System.Drawing.Size(54, 19);
resutLabel.TabIndex = 6;
resutLabel.Text = "Resut:";
//
// sdateLabel // sdateLabel
// //
sdateLabel.AutoSize = true; sdateLabel.AutoSize = true;
sdateLabel.Location = new System.Drawing.Point(42, 107); sdateLabel.Location = new System.Drawing.Point(38, 50);
sdateLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); sdateLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
sdateLabel.Name = "sdateLabel"; sdateLabel.Name = "sdateLabel";
sdateLabel.Size = new System.Drawing.Size(42, 19); sdateLabel.Size = new System.Drawing.Size(42, 19);
sdateLabel.TabIndex = 8; sdateLabel.TabIndex = 2;
sdateLabel.Text = "Start"; sdateLabel.Text = "Start";
// //
// edateLabel
//
edateLabel.AutoSize = true;
edateLabel.Location = new System.Drawing.Point(48, 140);
edateLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
edateLabel.Name = "edateLabel";
edateLabel.Size = new System.Drawing.Size(36, 19);
edateLabel.TabIndex = 10;
edateLabel.Text = "End";
//
// contentsLabel // contentsLabel
// //
contentsLabel.AutoSize = true; contentsLabel.AutoSize = true;
contentsLabel.Location = new System.Drawing.Point(21, 173); contentsLabel.Location = new System.Drawing.Point(17, 83);
contentsLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); contentsLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
contentsLabel.Name = "contentsLabel"; contentsLabel.Name = "contentsLabel";
contentsLabel.Size = new System.Drawing.Size(63, 19); contentsLabel.Size = new System.Drawing.Size(63, 19);
contentsLabel.TabIndex = 16; contentsLabel.TabIndex = 4;
contentsLabel.Text = "Remark"; contentsLabel.Text = "Remark";
// //
// uidLabel // uidLabel
// //
uidLabel.AutoSize = true; uidLabel.AutoSize = true;
uidLabel.Location = new System.Drawing.Point(43, 41); uidLabel.Location = new System.Drawing.Point(39, 16);
uidLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); uidLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
uidLabel.Name = "uidLabel"; uidLabel.Name = "uidLabel";
uidLabel.Size = new System.Drawing.Size(41, 19); uidLabel.Size = new System.Drawing.Size(41, 19);
uidLabel.TabIndex = 18; uidLabel.TabIndex = 0;
uidLabel.Text = "User"; uidLabel.Text = "User";
// //
// tolistLabel
//
tolistLabel.AutoSize = true;
tolistLabel.Location = new System.Drawing.Point(18, 364);
tolistLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
tolistLabel.Name = "tolistLabel";
tolistLabel.Size = new System.Drawing.Size(66, 19);
tolistLabel.TabIndex = 20;
tolistLabel.Text = "Mail List";
//
// dsMSSQL // dsMSSQL
// //
this.dsMSSQL.DataSetName = "dsMSSQL"; this.dsMSSQL.DataSetName = "dsMSSQL";
@@ -160,171 +106,87 @@
// contentsTextBox // contentsTextBox
// //
this.contentsTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "contents", true)); this.contentsTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "contents", true));
this.contentsTextBox.Location = new System.Drawing.Point(91, 170); this.contentsTextBox.Location = new System.Drawing.Point(87, 80);
this.contentsTextBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.contentsTextBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.contentsTextBox.Multiline = true; this.contentsTextBox.Multiline = true;
this.contentsTextBox.Name = "contentsTextBox"; this.contentsTextBox.Name = "contentsTextBox";
this.contentsTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.contentsTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.contentsTextBox.Size = new System.Drawing.Size(301, 145); this.contentsTextBox.Size = new System.Drawing.Size(301, 110);
this.contentsTextBox.TabIndex = 17; this.contentsTextBox.TabIndex = 5;
//
// tolistTextBox
//
this.tolistTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "tolist", true));
this.tolistTextBox.Location = new System.Drawing.Point(91, 360);
this.tolistTextBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.tolistTextBox.Name = "tolistTextBox";
this.tolistTextBox.Size = new System.Drawing.Size(301, 27);
this.tolistTextBox.TabIndex = 21;
//
// mailCheckBox
//
this.mailCheckBox.DataBindings.Add(new System.Windows.Forms.Binding("CheckState", this.bs, "mail", true));
this.mailCheckBox.Location = new System.Drawing.Point(91, 324);
this.mailCheckBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.mailCheckBox.Name = "mailCheckBox";
this.mailCheckBox.Size = new System.Drawing.Size(257, 38);
this.mailCheckBox.TabIndex = 23;
this.mailCheckBox.Text = "Send Mail";
this.mailCheckBox.UseVisualStyleBackColor = true;
//
// reasonTextBox
//
this.reasonTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "reason", true));
this.reasonTextBox.Location = new System.Drawing.Point(408, 121);
this.reasonTextBox.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.reasonTextBox.Multiline = true;
this.reasonTextBox.Name = "reasonTextBox";
this.reasonTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.reasonTextBox.Size = new System.Drawing.Size(279, 266);
this.reasonTextBox.TabIndex = 27;
// //
// dateTimePicker1 // dateTimePicker1
// //
this.dateTimePicker1.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.bs, "sdate", true)); this.dateTimePicker1.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.bs, "sdate", true));
this.dateTimePicker1.Location = new System.Drawing.Point(91, 102); this.dateTimePicker1.Location = new System.Drawing.Point(87, 45);
this.dateTimePicker1.Name = "dateTimePicker1"; this.dateTimePicker1.Name = "dateTimePicker1";
this.dateTimePicker1.Size = new System.Drawing.Size(301, 27); this.dateTimePicker1.Size = new System.Drawing.Size(301, 27);
this.dateTimePicker1.TabIndex = 28; this.dateTimePicker1.TabIndex = 3;
this.dateTimePicker1.ValueChanged += new System.EventHandler(this.dateTimePicker1_ValueChanged); this.dateTimePicker1.ValueChanged += new System.EventHandler(this.dateTimePicker1_ValueChanged);
// //
// dateTimePicker2
//
this.dateTimePicker2.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.bs, "edate", true));
this.dateTimePicker2.Location = new System.Drawing.Point(91, 135);
this.dateTimePicker2.Name = "dateTimePicker2";
this.dateTimePicker2.Size = new System.Drawing.Size(301, 27);
this.dateTimePicker2.TabIndex = 29;
this.dateTimePicker2.ValueChanged += new System.EventHandler(this.dateTimePicker2_ValueChanged);
//
// cmbCate
//
this.cmbCate.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bs, "cate", true));
this.cmbCate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbCate.FormattingEnabled = true;
this.cmbCate.Location = new System.Drawing.Point(91, 69);
this.cmbCate.Name = "cmbCate";
this.cmbCate.Size = new System.Drawing.Size(301, 27);
this.cmbCate.TabIndex = 32;
//
// cmbUser // cmbUser
// //
this.cmbUser.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bs, "uid", true)); this.cmbUser.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bs, "uid", true));
this.cmbUser.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbUser.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbUser.FormattingEnabled = true; this.cmbUser.FormattingEnabled = true;
this.cmbUser.Location = new System.Drawing.Point(91, 37); this.cmbUser.Location = new System.Drawing.Point(87, 12);
this.cmbUser.Name = "cmbUser"; this.cmbUser.Name = "cmbUser";
this.cmbUser.Size = new System.Drawing.Size(301, 27); this.cmbUser.Size = new System.Drawing.Size(301, 27);
this.cmbUser.TabIndex = 33; this.cmbUser.TabIndex = 1;
//
// cmbRlt
//
this.cmbRlt.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bs, "result", true));
this.cmbRlt.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbRlt.FormattingEnabled = true;
this.cmbRlt.Location = new System.Drawing.Point(409, 89);
this.cmbRlt.Name = "cmbRlt";
this.cmbRlt.Size = new System.Drawing.Size(278, 27);
this.cmbRlt.TabIndex = 34;
// //
// btOK // btOK
// //
this.btOK.Location = new System.Drawing.Point(91, 399); this.btOK.Location = new System.Drawing.Point(87, 233);
this.btOK.Name = "btOK"; this.btOK.Name = "btOK";
this.btOK.Size = new System.Drawing.Size(596, 38); this.btOK.Size = new System.Drawing.Size(301, 38);
this.btOK.TabIndex = 35; this.btOK.TabIndex = 8;
this.btOK.Text = "OK"; this.btOK.Text = "OK";
this.btOK.UseVisualStyleBackColor = true; this.btOK.UseVisualStyleBackColor = true;
this.btOK.Click += new System.EventHandler(this.btOK_Click); this.btOK.Click += new System.EventHandler(this.btOK_Click);
// //
// label1
//
label1.AutoSize = true;
label1.Location = new System.Drawing.Point(38, 200);
label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
label1.Name = "label1";
label1.Size = new System.Drawing.Size(34, 19);
label1.TabIndex = 6;
label1.Text = "day";
//
// numericUpDown1 // numericUpDown1
// //
this.numericUpDown1.BackColor = System.Drawing.Color.HotPink; this.numericUpDown1.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.bs, "termDr", true));
this.numericUpDown1.DecimalPlaces = 1; this.numericUpDown1.Location = new System.Drawing.Point(87, 198);
this.numericUpDown1.Font = new System.Drawing.Font("Tahoma", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.numericUpDown1.Location = new System.Drawing.Point(409, 37);
this.numericUpDown1.Maximum = new decimal(new int[] {
99999,
0,
0,
0});
this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Name = "numericUpDown1";
this.numericUpDown1.Size = new System.Drawing.Size(94, 46); this.numericUpDown1.Size = new System.Drawing.Size(301, 27);
this.numericUpDown1.TabIndex = 36; this.numericUpDown1.TabIndex = 7;
this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
// //
// numericUpDown2
//
this.numericUpDown2.BackColor = System.Drawing.Color.Lime;
this.numericUpDown2.DecimalPlaces = 1;
this.numericUpDown2.Font = new System.Drawing.Font("Tahoma", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.numericUpDown2.Location = new System.Drawing.Point(509, 37);
this.numericUpDown2.Maximum = new decimal(new int[] {
99999,
0,
0,
0});
this.numericUpDown2.Name = "numericUpDown2";
this.numericUpDown2.Size = new System.Drawing.Size(94, 46);
this.numericUpDown2.TabIndex = 37;
this.numericUpDown2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// fHolyday_Add // fHolyday_Add
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 19F); this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 19F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(704, 449); this.ClientSize = new System.Drawing.Size(398, 280);
this.Controls.Add(this.numericUpDown2);
this.Controls.Add(this.numericUpDown1); this.Controls.Add(this.numericUpDown1);
this.Controls.Add(label1);
this.Controls.Add(this.btOK); this.Controls.Add(this.btOK);
this.Controls.Add(this.cmbRlt);
this.Controls.Add(this.cmbUser); this.Controls.Add(this.cmbUser);
this.Controls.Add(this.cmbCate);
this.Controls.Add(this.dateTimePicker2);
this.Controls.Add(this.dateTimePicker1); this.Controls.Add(this.dateTimePicker1);
this.Controls.Add(cateLabel);
this.Controls.Add(resutLabel);
this.Controls.Add(sdateLabel); this.Controls.Add(sdateLabel);
this.Controls.Add(edateLabel);
this.Controls.Add(contentsLabel); this.Controls.Add(contentsLabel);
this.Controls.Add(this.contentsTextBox); this.Controls.Add(this.contentsTextBox);
this.Controls.Add(uidLabel); this.Controls.Add(uidLabel);
this.Controls.Add(tolistLabel);
this.Controls.Add(this.tolistTextBox);
this.Controls.Add(this.mailCheckBox);
this.Controls.Add(this.reasonTextBox);
this.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.MaximizeBox = false; this.MaximizeBox = false;
this.MinimizeBox = false; this.MinimizeBox = false;
this.Name = "fHolyday_Add"; this.Name = "fHolyday_Add";
this.Text = "fHolyday_Add"; this.Text = "휴가 발생 등록";
this.Load += new System.EventHandler(this.@__Load); this.Load += new System.EventHandler(this.@__Load);
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@@ -337,16 +199,9 @@
private dsMSSQLTableAdapters.HolydayTableAdapter ta; private dsMSSQLTableAdapters.HolydayTableAdapter ta;
private dsMSSQLTableAdapters.TableAdapterManager tam; private dsMSSQLTableAdapters.TableAdapterManager tam;
private System.Windows.Forms.TextBox contentsTextBox; private System.Windows.Forms.TextBox contentsTextBox;
private System.Windows.Forms.TextBox tolistTextBox;
private System.Windows.Forms.CheckBox mailCheckBox;
private System.Windows.Forms.TextBox reasonTextBox;
private System.Windows.Forms.DateTimePicker dateTimePicker1; private System.Windows.Forms.DateTimePicker dateTimePicker1;
private System.Windows.Forms.DateTimePicker dateTimePicker2;
private System.Windows.Forms.ComboBox cmbCate;
private System.Windows.Forms.ComboBox cmbUser; private System.Windows.Forms.ComboBox cmbUser;
private System.Windows.Forms.ComboBox cmbRlt;
private System.Windows.Forms.Button btOK; private System.Windows.Forms.Button btOK;
private System.Windows.Forms.NumericUpDown numericUpDown1; private System.Windows.Forms.NumericUpDown numericUpDown1;
private System.Windows.Forms.NumericUpDown numericUpDown2;
} }
} }

View File

@@ -13,24 +13,35 @@ namespace FBS0000
{ {
Boolean bInit = false; Boolean bInit = false;
dsMSSQL.HolydayRow dr; dsMSSQL.HolydayRow dr;
public fHolyday_Add(dsMSSQL.HolydayRow dr_)
public fHolyday_Add(int idx)
{ {
InitializeComponent(); InitializeComponent();
dr = dr_; if(idx == -1)
this.cmbCate.DataSource = FCOMMON.DBM.getCodeTable("02"); ; {
this.cmbCate.DisplayMember = "KeyValue"; dr = this.dsMSSQL.Holyday.NewHolydayRow();
this.cmbCate.ValueMember = "Key"; dr.sdate = DateTime.Parse( DateTime.Now.Year.ToString() + "-01-01");
dr.edate = dr.sdate;
this.cmbRlt.DataSource = FCOMMON.DBM.getCodeTable("03"); ; dr.wuid = FCOMMON.info.Login.no;
this.cmbRlt.DisplayMember = "KeyValue"; dr.wdate = DateTime.Now;
this.cmbRlt.ValueMember = "Key"; dr.term = 0.0;
dr.cate = "10";
dr.gcode = FCOMMON.info.Login.gcode;
dr.uid = FCOMMON.info.Login.no;
this.dsMSSQL.Holyday.AddHolydayRow(dr);
}
else
{
ta.FillByIdx(this.dsMSSQL.Holyday, FCOMMON.info.Login.gcode, idx);
this.dr = this.dsMSSQL.Holyday.Rows[0] as dsMSSQL.HolydayRow;
}
this.cmbUser.DataSource = FCOMMON.DBM.getUserTable(); ; this.cmbUser.DataSource = FCOMMON.DBM.getUserTable(); ;
this.cmbUser.DisplayMember = "KeyValue"; this.cmbUser.DisplayMember = "dispName";
this.cmbUser.ValueMember = "Key"; this.cmbUser.ValueMember = "id";
this.bs.DataSource = dr; this.bs.DataSource = dr;
} }
public fHolyday_Add() : this(-1) { }
private void __Load(object sender, EventArgs e) private void __Load(object sender, EventArgs e)
@@ -40,32 +51,47 @@ namespace FBS0000
private void btOK_Click(object sender, EventArgs e) private void btOK_Click(object sender, EventArgs e)
{ {
this.Invalidate(); //기본값처리
this.Validate();
this.bs.EndEdit(); this.bs.EndEdit();
if(dr.cate.CompareTo("20") >= 0) this.dr.EndEdit();
try
{ {
dr.term *= -1;
dr.EndEdit(); this.ta.Update(this.dr);
dr.AcceptChanges();
DialogResult = System.Windows.Forms.DialogResult.OK;
} }
DialogResult = System.Windows.Forms.DialogResult.OK; catch (Exception eX)
{
FCOMMON.Util.MsgE(eX.Message);
}
} }
private void dateTimePicker1_ValueChanged(object sender, EventArgs e) private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
{ {
if (!bInit) return; if (!bInit) return;
if(dateTimePicker1.Value > this.dateTimePicker2.Value)
this.dateTimePicker2.Value = dateTimePicker1.Value;
RefreshTerm(); //if(dateTimePicker1.Value > this.dateTimePicker2.Value)
// this.dateTimePicker2.Value = dateTimePicker1.Value;
//RefreshTerm();
} }
void RefreshTerm() void RefreshTerm()
{ {
var ts = dateTimePicker2.Value - dateTimePicker1.Value; //var ts = dateTimePicker2.Value - dateTimePicker1.Value;
var days = Math.Ceiling(ts.TotalDays) + 1; //var days = Math.Ceiling(ts.TotalDays) + 1;
this.numericUpDown1.Value = (decimal)days; //this.numericUpDown1.Value = (decimal)days;
this.dr.term = days; //this.dr.term = days;
} }
private void dateTimePicker2_ValueChanged(object sender, EventArgs e) private void dateTimePicker2_ValueChanged(object sender, EventArgs e)
{ {

View File

@@ -1,153 +1,144 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0 Version 2.0
The primary goals of this format is to allow a simple XML format The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes various data types are done through the TypeConverter classes
associated with the data types. associated with the data types.
Example: Example:
... ado.net/XML headers & schema ... ... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader> <resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, 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="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="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value> <value>[base64 mime encoded serialized .NET Framework object]</value>
</data> </data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <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> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment> <comment>This is a comment</comment>
</data> </data>
There are any number of "resheader" rows that contain simple There are any number of "resheader" rows that contain simple
name/value pairs. name/value pairs.
Each data row contains a name, and value. The row also contains a Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture. text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the Classes that don't support this are serialized and stored with the
mimetype set. mimetype set.
The mimetype is used for serialized objects, and tells the The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly: extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below. read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64 mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64 mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter : using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding. : 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: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:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true"> <xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType> <xsd:complexType>
<xsd:choice maxOccurs="unbounded"> <xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata"> <xsd:element name="metadata">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" /> <xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" /> <xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="assembly"> <xsd:element name="assembly">
<xsd:complexType> <xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="data"> <xsd:element name="data">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <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:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <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="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" /> <xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="resheader"> <xsd:element name="resheader">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" /> <xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
</xsd:choice> </xsd:choice>
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
</xsd:schema> </xsd:schema>
<resheader name="resmimetype"> <resheader name="resmimetype">
<value>text/microsoft-resx</value> <value>text/microsoft-resx</value>
</resheader> </resheader>
<resheader name="version"> <resheader name="version">
<value>2.0</value> <value>2.0</value>
</resheader> </resheader>
<resheader name="reader"> <resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="cateLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="sdateLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="resutLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="contentsLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="sdateLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="uidLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="edateLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>False</value> <value>17, 17</value>
</metadata> </metadata>
<metadata name="contentsLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>False</value> <value>122, 17</value>
</metadata> </metadata>
<metadata name="uidLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>False</value> <value>186, 17</value>
</metadata> </metadata>
<metadata name="tolistLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>False</value> <value>248, 17</value>
</metadata> </metadata>
<metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>17, 17</value> <value>False</value>
</metadata> </metadata>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>122, 17</value>
</metadata>
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>186, 17</value>
</metadata>
<metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>248, 17</value>
</metadata>
</root> </root>

File diff suppressed because it is too large Load Diff

View File

@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated> <!--<autogenerated>
This code was generated by a tool. This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated. the code is regenerated.
</autogenerated>--> </autogenerated>-->
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource"> <DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TableUISettings /> <TableUISettings />
</DataSetUISetting> </DataSetUISetting>

View File

@@ -54,7 +54,7 @@ SELECT idx, stime, etime, title, place, contents, project, main, sub, memo, wuid
</DbCommand> </DbCommand>
</InsertCommand> </InsertCommand>
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT minutes.* <CommandText>SELECT minutes.*
FROM minutes</CommandText> FROM minutes</CommandText>
<Parameters /> <Parameters />
@@ -93,7 +93,7 @@ SELECT idx, stime, etime, title, place, contents, project, main, sub, memo, wuid
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_sub" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="sub" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_sub" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="sub" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="GroupWare.dbo.minutes" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</UpdateCommand> </UpdateCommand>
@@ -114,14 +114,12 @@ SELECT idx, stime, etime, title, place, contents, project, main, sub, memo, wuid
<Mapping SourceColumn="wdate" DataSetColumn="wdate" /> <Mapping SourceColumn="wdate" DataSetColumn="wdate" />
</Mappings> </Mappings>
<Sources> <Sources>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.minutes" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByIDX" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetbyIDX" GeneratorSourceName="FillByIDX" GetMethodModifier="Public" GetMethodName="GetbyIDX" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetbyIDX" UserSourceName="FillByIDX"> <DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.minutes" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByIDX" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetbyIDX" GeneratorSourceName="FillByIDX" GetMethodModifier="Public" GetMethodName="GetbyIDX" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetbyIDX" UserSourceName="FillByIDX">
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT idx, stime, etime, title, place, contents, project, main, sub, memo, wuid, wdate <CommandText>SELECT contents, etime, idx, main, memo, place, project, stime, sub, title, wdate, wuid FROM minutes WHERE (idx = @idx)</CommandText>
FROM minutes
WHERE (idx = @idx)</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="GroupWare.dbo.minutes" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</SelectCommand> </SelectCommand>
@@ -171,12 +169,12 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, wuid, wdate FROM
</DbCommand> </DbCommand>
</InsertCommand> </InsertCommand>
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT idx, bidx, header, cate, title, contents, [file], guid, wuid, wdate <CommandText>SELECT idx, bidx, header, cate, title, contents, [file], guid, wuid, wdate
FROM Board FROM Board
WHERE (bidx = @bidx)</CommandText> WHERE (bidx = @bidx)</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="bidx" ColumnName="bidx" DataSourceName="GroupWare.dbo.Board" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@bidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="bidx" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="bidx" ColumnName="bidx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@bidx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="bidx" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</SelectCommand> </SelectCommand>
@@ -209,7 +207,7 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, wuid, wdate FROM
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_guid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="guid" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_guid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="guid" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="GroupWare.dbo.Board" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</UpdateCommand> </UpdateCommand>
@@ -231,10 +229,10 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, wuid, wdate FROM
</TableAdapter> </TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="HolydayTableAdapter" GeneratorDataComponentClassName="HolydayTableAdapter" Name="Holyday" UserDataComponentName="HolydayTableAdapter"> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="HolydayTableAdapter" GeneratorDataComponentClassName="HolydayTableAdapter" Name="Holyday" UserDataComponentName="HolydayTableAdapter">
<MainSource> <MainSource>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.Holyday" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill"> <DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.Holyday" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand> <DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [Holyday] WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_result = 1 AND [result] IS NULL) OR ([result] = @Original_result)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_term = 1 AND [term] IS NULL) OR ([term] = @Original_term)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_mail = 1 AND [mail] IS NULL) OR ([mail] = @Original_mail)) AND ((@IsNull_mailsend = 1 AND [mailsend] IS NULL) OR ([mailsend] = @Original_mailsend)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_termDr = 1 AND [termDr] IS NULL) OR ([termDr] = @Original_termDr)))</CommandText> <CommandText>DELETE FROM [Holyday] WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_result = 1 AND [result] IS NULL) OR ([result] = @Original_result)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_term = 1 AND [term] IS NULL) OR ([term] = @Original_term)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_mail = 1 AND [mail] IS NULL) OR ([mail] = @Original_mail)) AND ((@IsNull_mailsend = 1 AND [mailsend] IS NULL) OR ([mailsend] = @Original_mailsend)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_termDr = 1 AND [termDr] IS NULL) OR ([termDr] = @Original_termDr)) AND ([gcode] = @Original_gcode))</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_cate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="cate" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_cate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="cate" SourceColumnNullMapping="true" SourceVersion="Original" />
@@ -256,92 +254,111 @@ SELECT idx, bidx, header, cate, title, contents, [file], guid, wuid, wdate FROM
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_mailsend" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="mailsend" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_mailsend" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="mailsend" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_mailsend" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="mailsend" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_mailsend" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="mailsend" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_termDr" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="termDr" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_termDr" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="termDr" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_termDr" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="termDr" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_termDr" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="termDr" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</DeleteCommand> </DeleteCommand>
<InsertCommand> <InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false"> <DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>INSERT INTO [Holyday] ([cate], [result], [sdate], [edate], [term], [title], [contents], [uid], [tolist], [mail], [mailsend], [reason], [wuid], [wdate], [termDr]) VALUES (@cate, @result, @sdate, @edate, @term, @title, @contents, @uid, @tolist, @mail, @mailsend, @reason, @wuid, @wdate, @termDr); <CommandText>INSERT INTO Holyday
(cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate, termDr, gcode)
VALUES (@cate,@result,@sdate,@edate,@term,@title,@contents,@uid,@tolist,@mail,@mailsend,@reason,@wuid,@wdate,@termDr,@gcode);
SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate, termDr FROM Holyday WHERE (idx = SCOPE_IDENTITY()) ORDER BY sdate, edate</CommandText> SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate, termDr FROM Holyday WHERE (idx = SCOPE_IDENTITY()) ORDER BY sdate, edate</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@cate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="cate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="cate" ColumnName="cate" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(2)" DbType="AnsiString" Direction="Input" ParameterName="@cate" Precision="0" ProviderType="VarChar" Scale="0" Size="2" SourceColumn="cate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@result" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="result" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="result" ColumnName="result" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(2)" DbType="AnsiString" Direction="Input" ParameterName="@result" Precision="0" ProviderType="VarChar" Scale="0" Size="2" SourceColumn="result" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@sdate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="sdate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="sdate" ColumnName="sdate" DataSourceName="EE.dbo.Holyday" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@sdate" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="sdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@edate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="edate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="edate" ColumnName="edate" DataSourceName="EE.dbo.Holyday" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@edate" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="edate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@term" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="term" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="term" ColumnName="term" DataSourceName="EE.dbo.Holyday" DataTypeServer="float" DbType="Double" Direction="Input" ParameterName="@term" Precision="0" ProviderType="Float" Scale="0" Size="8" SourceColumn="term" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="title" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="title" ColumnName="title" DataSourceName="EE.dbo.Holyday" DataTypeServer="nvarchar(255)" DbType="String" Direction="Input" ParameterName="@title" Precision="0" ProviderType="NVarChar" Scale="0" Size="255" SourceColumn="title" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@contents" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="contents" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="contents" ColumnName="contents" DataSourceName="EE.dbo.Holyday" DataTypeServer="nvarchar(MAX)" DbType="String" Direction="Input" ParameterName="@contents" Precision="0" ProviderType="NVarChar" Scale="0" Size="2147483647" SourceColumn="contents" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@uid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="uid" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="uid" ColumnName="uid" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@uid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="uid" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@tolist" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="tolist" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="tolist" ColumnName="tolist" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(MAX)" DbType="AnsiString" Direction="Input" ParameterName="@tolist" Precision="0" ProviderType="VarChar" Scale="0" Size="2147483647" SourceColumn="tolist" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@mail" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="mail" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="mail" ColumnName="mail" DataSourceName="EE.dbo.Holyday" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@mail" Precision="0" ProviderType="Bit" Scale="0" Size="1" SourceColumn="mail" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@mailsend" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="mailsend" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="mailsend" ColumnName="mailsend" DataSourceName="EE.dbo.Holyday" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@mailsend" Precision="0" ProviderType="Bit" Scale="0" Size="1" SourceColumn="mailsend" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@reason" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="reason" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="reason" ColumnName="reason" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(MAX)" DbType="AnsiString" Direction="Input" ParameterName="@reason" Precision="0" ProviderType="VarChar" Scale="0" Size="2147483647" SourceColumn="reason" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="wuid" ColumnName="wuid" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="wdate" ColumnName="wdate" DataSourceName="EE.dbo.Holyday" DataTypeServer="smalldatetime" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="4" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@termDr" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="termDr" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="termDr" ColumnName="termDr" DataSourceName="EE.dbo.Holyday" DataTypeServer="float" DbType="Double" Direction="Input" ParameterName="@termDr" Precision="0" ProviderType="Float" Scale="0" Size="8" SourceColumn="termDr" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</InsertCommand> </InsertCommand>
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate, termDr <CommandText>SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate, termDr, gcode
FROM Holyday FROM Holyday
WHERE (sdate &gt;= @sd) AND (edate &lt;= @ed) AND (wuid LIKE @uid) WHERE (sdate &gt;= @sd) AND (edate &lt;= @ed) AND (wuid LIKE @uid)
ORDER BY sdate, edate</CommandText> ORDER BY sdate, edate</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="sd" ColumnName="sdate" DataSourceName="GroupWare.dbo.Holyday" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@sd" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="sdate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="sd" ColumnName="sdate" DataSourceName="EE.dbo.Holyday" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@sd" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="sdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="ed" ColumnName="edate" DataSourceName="GroupWare.dbo.Holyday" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@ed" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="edate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="ed" ColumnName="edate" DataSourceName="EE.dbo.Holyday" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@ed" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="edate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="uid" ColumnName="wuid" DataSourceName="GroupWare.dbo.Holyday" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@uid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="uid" ColumnName="wuid" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@uid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</SelectCommand> </SelectCommand>
<UpdateCommand> <UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false"> <DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>UPDATE [Holyday] SET [cate] = @cate, [result] = @result, [sdate] = @sdate, [edate] = @edate, [term] = @term, [title] = @title, [contents] = @contents, [uid] = @uid, [tolist] = @tolist, [mail] = @mail, [mailsend] = @mailsend, [reason] = @reason, [wuid] = @wuid, [wdate] = @wdate, [termDr] = @termDr WHERE (([idx] = @Original_idx) AND ((@IsNull_cate = 1 AND [cate] IS NULL) OR ([cate] = @Original_cate)) AND ((@IsNull_result = 1 AND [result] IS NULL) OR ([result] = @Original_result)) AND ((@IsNull_sdate = 1 AND [sdate] IS NULL) OR ([sdate] = @Original_sdate)) AND ((@IsNull_edate = 1 AND [edate] IS NULL) OR ([edate] = @Original_edate)) AND ((@IsNull_term = 1 AND [term] IS NULL) OR ([term] = @Original_term)) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_uid = 1 AND [uid] IS NULL) OR ([uid] = @Original_uid)) AND ((@IsNull_mail = 1 AND [mail] IS NULL) OR ([mail] = @Original_mail)) AND ((@IsNull_mailsend = 1 AND [mailsend] IS NULL) OR ([mailsend] = @Original_mailsend)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_termDr = 1 AND [termDr] IS NULL) OR ([termDr] = @Original_termDr))); <CommandText>UPDATE Holyday
SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate, termDr FROM Holyday WHERE (idx = @idx) ORDER BY sdate, edate</CommandText> SET cate = @cate, result = @result, sdate = @sdate, edate = @edate, term = @term, title = @title, contents = @contents, uid = @uid, tolist = @tolist, mail = @mail, mailsend = @mailsend,
reason = @reason, wuid = @wuid, wdate = @wdate, termDr = @termDr, gcode = @gcode
WHERE (idx = @Original_idx) AND (@IsNull_cate = 1 AND cate IS NULL OR
cate = @Original_cate) AND (@IsNull_result = 1 AND result IS NULL OR
result = @Original_result) AND (@IsNull_sdate = 1 AND sdate IS NULL OR
sdate = @Original_sdate) AND (@IsNull_edate = 1 AND edate IS NULL OR
edate = @Original_edate) AND (@IsNull_term = 1 AND term IS NULL OR
term = @Original_term) AND (@IsNull_title = 1 AND title IS NULL OR
title = @Original_title) AND (@IsNull_uid = 1 AND uid IS NULL OR
uid = @Original_uid) AND (@IsNull_mail = 1 AND mail IS NULL OR
mail = @Original_mail) AND (@IsNull_mailsend = 1 AND mailsend IS NULL OR
mailsend = @Original_mailsend) AND (wuid = @Original_wuid) AND (wdate = @Original_wdate) AND (@IsNull_termDr = 1 AND termDr IS NULL OR
termDr = @Original_termDr) AND (gcode = @Original_gcode);
SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate, termDr, gcode FROM Holyday WHERE (idx = @idx) ORDER BY sdate, edate</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@cate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="cate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="cate" ColumnName="cate" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(2)" DbType="AnsiString" Direction="Input" ParameterName="@cate" Precision="0" ProviderType="VarChar" Scale="0" Size="2" SourceColumn="cate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@result" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="result" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="result" ColumnName="result" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(2)" DbType="AnsiString" Direction="Input" ParameterName="@result" Precision="0" ProviderType="VarChar" Scale="0" Size="2" SourceColumn="result" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@sdate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="sdate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="sdate" ColumnName="sdate" DataSourceName="EE.dbo.Holyday" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@sdate" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="sdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@edate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="edate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="edate" ColumnName="edate" DataSourceName="EE.dbo.Holyday" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@edate" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="edate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@term" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="term" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="term" ColumnName="term" DataSourceName="EE.dbo.Holyday" DataTypeServer="float" DbType="Double" Direction="Input" ParameterName="@term" Precision="0" ProviderType="Float" Scale="0" Size="8" SourceColumn="term" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="title" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="title" ColumnName="title" DataSourceName="EE.dbo.Holyday" DataTypeServer="nvarchar(255)" DbType="String" Direction="Input" ParameterName="@title" Precision="0" ProviderType="NVarChar" Scale="0" Size="255" SourceColumn="title" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@contents" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="contents" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="contents" ColumnName="contents" DataSourceName="EE.dbo.Holyday" DataTypeServer="nvarchar(MAX)" DbType="String" Direction="Input" ParameterName="@contents" Precision="0" ProviderType="NVarChar" Scale="0" Size="2147483647" SourceColumn="contents" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@uid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="uid" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="uid" ColumnName="uid" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@uid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="uid" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@tolist" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="tolist" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="tolist" ColumnName="tolist" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(MAX)" DbType="AnsiString" Direction="Input" ParameterName="@tolist" Precision="0" ProviderType="VarChar" Scale="0" Size="2147483647" SourceColumn="tolist" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@mail" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="mail" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="mail" ColumnName="mail" DataSourceName="EE.dbo.Holyday" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@mail" Precision="0" ProviderType="Bit" Scale="0" Size="1" SourceColumn="mail" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@mailsend" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="mailsend" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="mailsend" ColumnName="mailsend" DataSourceName="EE.dbo.Holyday" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@mailsend" Precision="0" ProviderType="Bit" Scale="0" Size="1" SourceColumn="mailsend" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@reason" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="reason" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="reason" ColumnName="reason" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(MAX)" DbType="AnsiString" Direction="Input" ParameterName="@reason" Precision="0" ProviderType="VarChar" Scale="0" Size="2147483647" SourceColumn="reason" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="wuid" ColumnName="wuid" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="wdate" ColumnName="wdate" DataSourceName="EE.dbo.Holyday" DataTypeServer="smalldatetime" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="4" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@termDr" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="termDr" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="termDr" ColumnName="termDr" DataSourceName="EE.dbo.Holyday" DataTypeServer="float" DbType="Double" Direction="Input" ParameterName="@termDr" Precision="0" ProviderType="Float" Scale="0" Size="8" SourceColumn="termDr" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_cate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="cate" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="Original_idx" ColumnName="idx" DataSourceName="EE.dbo.Holyday" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_cate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="cate" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="IsNull_cate" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_cate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="cate" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_result" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="result" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="Original_cate" ColumnName="cate" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(2)" DbType="AnsiString" Direction="Input" ParameterName="@Original_cate" Precision="0" ProviderType="VarChar" Scale="0" Size="2" SourceColumn="cate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_result" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="result" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="IsNull_result" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_result" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="result" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_sdate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="sdate" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="Original_result" ColumnName="result" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(2)" DbType="AnsiString" Direction="Input" ParameterName="@Original_result" Precision="0" ProviderType="VarChar" Scale="0" Size="2" SourceColumn="result" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_sdate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="sdate" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="IsNull_sdate" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_sdate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="sdate" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_edate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="edate" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="Original_sdate" ColumnName="sdate" DataSourceName="EE.dbo.Holyday" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@Original_sdate" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="sdate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_edate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="edate" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="IsNull_edate" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_edate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="edate" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_term" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="term" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="Original_edate" ColumnName="edate" DataSourceName="EE.dbo.Holyday" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@Original_edate" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="edate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_term" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="term" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="IsNull_term" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_term" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="term" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_title" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="title" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="Original_term" ColumnName="term" DataSourceName="EE.dbo.Holyday" DataTypeServer="float" DbType="Double" Direction="Input" ParameterName="@Original_term" Precision="0" ProviderType="Float" Scale="0" Size="8" SourceColumn="term" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="title" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="IsNull_title" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_title" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="title" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_uid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="uid" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="Original_title" ColumnName="title" DataSourceName="EE.dbo.Holyday" DataTypeServer="nvarchar(255)" DbType="String" Direction="Input" ParameterName="@Original_title" Precision="0" ProviderType="NVarChar" Scale="0" Size="255" SourceColumn="title" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_uid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="uid" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="IsNull_uid" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_uid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="uid" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_mail" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="mail" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="Original_uid" ColumnName="uid" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@Original_uid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="uid" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_mail" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="mail" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="IsNull_mail" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_mail" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="mail" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_mailsend" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="mailsend" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="Original_mail" ColumnName="mail" DataSourceName="EE.dbo.Holyday" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@Original_mail" Precision="0" ProviderType="Bit" Scale="0" Size="1" SourceColumn="mail" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_mailsend" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="mailsend" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="IsNull_mailsend" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_mailsend" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="mailsend" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="Original_mailsend" ColumnName="mailsend" DataSourceName="EE.dbo.Holyday" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@Original_mailsend" Precision="0" ProviderType="Bit" Scale="0" Size="1" SourceColumn="mailsend" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="Original_wuid" ColumnName="wuid" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@Original_wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_termDr" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="termDr" SourceColumnNullMapping="true" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="Original_wdate" ColumnName="wdate" DataSourceName="EE.dbo.Holyday" DataTypeServer="smalldatetime" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="4" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_termDr" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="termDr" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="true" AutogeneratedName="IsNull_termDr" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_termDr" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="termDr" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="GroupWare.dbo.Holyday" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="Original_termDr" ColumnName="termDr" DataSourceName="EE.dbo.Holyday" DataTypeServer="float" DbType="Double" Direction="Input" ParameterName="@Original_termDr" Precision="0" ProviderType="Float" Scale="0" Size="8" SourceColumn="termDr" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="Original_gcode" ColumnName="gcode" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@Original_gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="EE.dbo.Holyday" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</UpdateCommand> </UpdateCommand>
@@ -364,8 +381,72 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
<Mapping SourceColumn="wuid" DataSetColumn="wuid" /> <Mapping SourceColumn="wuid" DataSetColumn="wuid" />
<Mapping SourceColumn="wdate" DataSetColumn="wdate" /> <Mapping SourceColumn="wdate" DataSetColumn="wdate" />
<Mapping SourceColumn="termDr" DataSetColumn="termDr" /> <Mapping SourceColumn="termDr" DataSetColumn="termDr" />
<Mapping SourceColumn="gcode" DataSetColumn="gcode" />
</Mappings> </Mappings>
<Sources /> <Sources>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.Holyday" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByIdx" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetbyIdx" GeneratorSourceName="FillByIdx" GetMethodModifier="Public" GetMethodName="GetbyIdx" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetbyIdx" UserSourceName="FillByIdx">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail, mailsend, reason, wuid, wdate, termDr, gcode
FROM Holyday
WHERE gcode =@gcode and idx = @idx
</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.Holyday" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="EE.dbo.Holyday" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="vHoliday_uselistTableAdapter" GeneratorDataComponentClassName="vHoliday_uselistTableAdapter" Name="vHoliday_uselist" UserDataComponentName="vHoliday_uselistTableAdapter">
<MainSource>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.vHoliday_uselist" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT idx, cate, gcode, pdate, term, termDr, contents, uid, wuid, wdate
FROM vHoliday_uselist
WHERE (uid = @user) AND (pdate BETWEEN @sd AND @ed) AND (gcode = @gcode)
ORDER BY pdate DESC</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="user" ColumnName="uid" DataSourceName="EE.dbo.vHoliday_uselist" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@user" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="uid" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="sd" ColumnName="pdate" DataSourceName="EE.dbo.vHoliday_uselist" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@sd" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="ed" ColumnName="pdate" DataSourceName="EE.dbo.vHoliday_uselist" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@ed" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.vHoliday_uselist" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="idx" DataSetColumn="idx" />
<Mapping SourceColumn="cate" DataSetColumn="cate" />
<Mapping SourceColumn="gcode" DataSetColumn="gcode" />
<Mapping SourceColumn="pdate" DataSetColumn="pdate" />
<Mapping SourceColumn="term" DataSetColumn="term" />
<Mapping SourceColumn="termDr" DataSetColumn="termDr" />
<Mapping SourceColumn="contents" DataSetColumn="contents" />
<Mapping SourceColumn="uid" DataSetColumn="uid" />
<Mapping SourceColumn="wuid" DataSetColumn="wuid" />
<Mapping SourceColumn="wdate" DataSetColumn="wdate" />
</Mappings>
<Sources>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.vHoliday_uselist" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByIdx" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetbyIdx" GeneratorSourceName="FillByIdx" GetMethodModifier="Public" GetMethodName="GetbyIdx" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetbyIdx" UserSourceName="FillByIdx">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT idx, cate, gcode, pdate, term, termDr, contents, uid, wuid, wdate
FROM vHoliday_uselist
WHERE gcode = @gcode and idx =@idx
</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.vHoliday_uselist" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="EE.dbo.vHoliday_uselist" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter> </TableAdapter>
</Tables> </Tables>
<Sources /> <Sources />
@@ -435,7 +516,7 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="Board" msprop:Generator_TableClassName="BoardDataTable" msprop:Generator_TableVarName="tableBoard" msprop:Generator_RowChangedName="BoardRowChanged" msprop:Generator_TablePropName="Board" msprop:Generator_RowDeletingName="BoardRowDeleting" msprop:Generator_RowChangingName="BoardRowChanging" msprop:Generator_RowEvHandlerName="BoardRowChangeEventHandler" msprop:Generator_RowDeletedName="BoardRowDeleted" msprop:Generator_RowClassName="BoardRow" msprop:Generator_UserTableName="Board" msprop:Generator_RowEvArgName="BoardRowChangeEvent"> <xs:element name="Board" msprop:Generator_TableClassName="BoardDataTable" msprop:Generator_TableVarName="tableBoard" msprop:Generator_TablePropName="Board" msprop:Generator_RowDeletingName="BoardRowDeleting" msprop:Generator_RowChangingName="BoardRowChanging" msprop:Generator_RowEvHandlerName="BoardRowChangeEventHandler" msprop:Generator_RowDeletedName="BoardRowDeleted" msprop:Generator_UserTableName="Board" msprop:Generator_RowChangedName="BoardRowChanged" msprop:Generator_RowEvArgName="BoardRowChangeEvent" msprop:Generator_RowClassName="BoardRow">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -554,6 +635,59 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
</xs:element> </xs:element>
<xs:element name="wdate" msprop:Generator_ColumnVarNameInTable="columnwdate" msprop:Generator_ColumnPropNameInRow="wdate" msprop:Generator_ColumnPropNameInTable="wdateColumn" msprop:Generator_UserColumnName="wdate" type="xs:dateTime" /> <xs:element name="wdate" msprop:Generator_ColumnVarNameInTable="columnwdate" msprop:Generator_ColumnPropNameInRow="wdate" msprop:Generator_ColumnPropNameInTable="wdateColumn" msprop:Generator_UserColumnName="wdate" type="xs:dateTime" />
<xs:element name="termDr" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="termDr" msprop:Generator_ColumnVarNameInTable="columntermDr" msprop:Generator_ColumnPropNameInTable="termDrColumn" msprop:Generator_UserColumnName="termDr" type="xs:double" minOccurs="0" /> <xs:element name="termDr" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="termDr" msprop:Generator_ColumnVarNameInTable="columntermDr" msprop:Generator_ColumnPropNameInTable="termDrColumn" msprop:Generator_UserColumnName="termDr" type="xs:double" minOccurs="0" />
<xs:element name="gcode" msprop:Generator_ColumnVarNameInTable="columngcode" msprop:Generator_ColumnPropNameInRow="gcode" msprop:Generator_ColumnPropNameInTable="gcodeColumn" msprop:Generator_UserColumnName="gcode">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="vHoliday_uselist" msprop:Generator_TableClassName="vHoliday_uselistDataTable" msprop:Generator_TableVarName="tablevHoliday_uselist" msprop:Generator_TablePropName="vHoliday_uselist" msprop:Generator_RowDeletingName="vHoliday_uselistRowDeleting" msprop:Generator_RowChangingName="vHoliday_uselistRowChanging" msprop:Generator_RowEvHandlerName="vHoliday_uselistRowChangeEventHandler" msprop:Generator_RowDeletedName="vHoliday_uselistRowDeleted" msprop:Generator_UserTableName="vHoliday_uselist" msprop:Generator_RowChangedName="vHoliday_uselistRowChanged" msprop:Generator_RowEvArgName="vHoliday_uselistRowChangeEvent" msprop:Generator_RowClassName="vHoliday_uselistRow">
<xs:complexType>
<xs:sequence>
<xs:element name="idx" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
<xs:element name="cate" msprop:Generator_ColumnVarNameInTable="columncate" msprop:Generator_ColumnPropNameInRow="cate" msprop:Generator_ColumnPropNameInTable="cateColumn" msprop:Generator_UserColumnName="cate">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="1" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="gcode" msprop:Generator_ColumnVarNameInTable="columngcode" msprop:Generator_ColumnPropNameInRow="gcode" msprop:Generator_ColumnPropNameInTable="gcodeColumn" msprop:Generator_UserColumnName="gcode">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="pdate" msprop:Generator_ColumnVarNameInTable="columnpdate" msprop:Generator_ColumnPropNameInRow="pdate" msprop:Generator_ColumnPropNameInTable="pdateColumn" msprop:Generator_UserColumnName="pdate" type="xs:dateTime" minOccurs="0" />
<xs:element name="term" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="term" msprop:Generator_ColumnVarNameInTable="columnterm" msprop:Generator_ColumnPropNameInTable="termColumn" msprop:Generator_UserColumnName="term" type="xs:double" minOccurs="0" />
<xs:element name="termDr" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="termDr" msprop:Generator_ColumnVarNameInTable="columntermDr" msprop:Generator_ColumnPropNameInTable="termDrColumn" msprop:Generator_UserColumnName="termDr" type="xs:double" />
<xs:element name="contents" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="contents" msprop:Generator_ColumnVarNameInTable="columncontents" msprop:Generator_ColumnPropNameInTable="contentsColumn" msprop:Generator_UserColumnName="contents" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2147483647" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="uid" msprop:Generator_ColumnVarNameInTable="columnuid" msprop:Generator_ColumnPropNameInRow="uid" msprop:Generator_ColumnPropNameInTable="uidColumn" msprop:Generator_UserColumnName="uid" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="wuid" msprop:Generator_ColumnVarNameInTable="columnwuid" msprop:Generator_ColumnPropNameInRow="wuid" msprop:Generator_ColumnPropNameInTable="wuidColumn" msprop:Generator_UserColumnName="wuid">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="wdate" msprop:Generator_ColumnVarNameInTable="columnwdate" msprop:Generator_ColumnPropNameInRow="wdate" msprop:Generator_ColumnPropNameInTable="wdateColumn" msprop:Generator_UserColumnName="wdate" type="xs:dateTime" />
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
@@ -571,5 +705,10 @@ SELECT idx, cate, result, sdate, edate, term, title, contents, uid, tolist, mail
<xs:selector xpath=".//mstns:Holyday" /> <xs:selector xpath=".//mstns:Holyday" />
<xs:field xpath="mstns:idx" /> <xs:field xpath="mstns:idx" />
</xs:unique> </xs:unique>
<xs:unique name="vHoliday_uselist_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:vHoliday_uselist" />
<xs:field xpath="mstns:idx" />
<xs:field xpath="mstns:cate" />
</xs:unique>
</xs:element> </xs:element>
</xs:schema> </xs:schema>

View File

@@ -1,14 +1 @@
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool to store the dataset designer's layout information.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="297" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:minutes" ZOrder="3" X="314" Y="92" Height="324" Width="192" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:Board" ZOrder="2" X="571" Y="62" Height="267" Width="179" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
<Shape ID="DesignTable:Holyday" ZOrder="1" X="821" Y="82" Height="457" Width="193" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="389" />
</Shapes>
<Connectors />
</DiagramLayout>

File diff suppressed because it is too large Load Diff

View File

@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated> <!--<autogenerated>
This code was generated by a tool. This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated. the code is regenerated.
</autogenerated>--> </autogenerated>-->
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource"> <DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TableUISettings /> <TableUISettings />
</DataSetUISetting> </DataSetUISetting>

View File

@@ -323,7 +323,7 @@ WHERE (idx = @Original_idx)</CommandText>
<xs:element name="DSInventory" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DSInventory" msprop:Generator_UserDSName="DSInventory"> <xs:element name="DSInventory" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DSInventory" msprop:Generator_UserDSName="DSInventory">
<xs:complexType> <xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Inventory" msprop:Generator_TableClassName="InventoryDataTable" msprop:Generator_TableVarName="tableInventory" msprop:Generator_TablePropName="Inventory" msprop:Generator_RowDeletingName="InventoryRowDeleting" msprop:Generator_RowChangingName="InventoryRowChanging" msprop:Generator_RowEvHandlerName="InventoryRowChangeEventHandler" msprop:Generator_RowDeletedName="InventoryRowDeleted" msprop:Generator_UserTableName="Inventory" msprop:Generator_RowChangedName="InventoryRowChanged" msprop:Generator_RowEvArgName="InventoryRowChangeEvent" msprop:Generator_RowClassName="InventoryRow"> <xs:element name="Inventory" msprop:Generator_TableClassName="InventoryDataTable" msprop:Generator_TableVarName="tableInventory" msprop:Generator_RowChangedName="InventoryRowChanged" msprop:Generator_TablePropName="Inventory" msprop:Generator_RowDeletingName="InventoryRowDeleting" msprop:Generator_RowChangingName="InventoryRowChanging" msprop:Generator_RowEvHandlerName="InventoryRowChangeEventHandler" msprop:Generator_RowDeletedName="InventoryRowDeleted" msprop:Generator_RowClassName="InventoryRow" msprop:Generator_UserTableName="Inventory" msprop:Generator_RowEvArgName="InventoryRowChangeEvent">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -414,7 +414,7 @@ WHERE (idx = @Original_idx)</CommandText>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="vInventory" msprop:Generator_TableClassName="vInventoryDataTable" msprop:Generator_TableVarName="tablevInventory" msprop:Generator_TablePropName="vInventory" msprop:Generator_RowDeletingName="vInventoryRowDeleting" msprop:Generator_RowChangingName="vInventoryRowChanging" msprop:Generator_RowEvHandlerName="vInventoryRowChangeEventHandler" msprop:Generator_RowDeletedName="vInventoryRowDeleted" msprop:Generator_UserTableName="vInventory" msprop:Generator_RowChangedName="vInventoryRowChanged" msprop:Generator_RowEvArgName="vInventoryRowChangeEvent" msprop:Generator_RowClassName="vInventoryRow"> <xs:element name="vInventory" msprop:Generator_TableClassName="vInventoryDataTable" msprop:Generator_TableVarName="tablevInventory" msprop:Generator_RowChangedName="vInventoryRowChanged" msprop:Generator_TablePropName="vInventory" msprop:Generator_RowDeletingName="vInventoryRowDeleting" msprop:Generator_RowChangingName="vInventoryRowChanging" msprop:Generator_RowEvHandlerName="vInventoryRowChangeEventHandler" msprop:Generator_RowDeletedName="vInventoryRowDeleted" msprop:Generator_RowClassName="vInventoryRow" msprop:Generator_UserTableName="vInventory" msprop:Generator_RowEvArgName="vInventoryRowChangeEvent">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -453,7 +453,7 @@ WHERE (idx = @Original_idx)</CommandText>
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="item" msprop:Generator_ColumnVarNameInTable="columnitem" msprop:Generator_ColumnPropNameInRow="item" msprop:Generator_ColumnPropNameInTable="itemColumn" msprop:Generator_UserColumnName="item" type="xs:int" minOccurs="0" /> <xs:element name="item" msprop:nullValue="-1" msprop:Generator_ColumnPropNameInRow="item" msprop:Generator_ColumnVarNameInTable="columnitem" msprop:Generator_ColumnPropNameInTable="itemColumn" msprop:Generator_UserColumnName="item" type="xs:int" minOccurs="0" />
<xs:element name="serial" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="serial" msprop:Generator_ColumnVarNameInTable="columnserial" msprop:Generator_ColumnPropNameInTable="serialColumn" msprop:Generator_UserColumnName="serial" minOccurs="0"> <xs:element name="serial" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="serial" msprop:Generator_ColumnVarNameInTable="columnserial" msprop:Generator_ColumnPropNameInTable="serialColumn" msprop:Generator_UserColumnName="serial" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">

View File

@@ -4,7 +4,7 @@
Changes to this file may cause incorrect behavior and will be lost if Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated. the code is regenerated.
</autogenerated>--> </autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="50" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout"> <DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="50" ViewPortY="142" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes> <Shapes>
<Shape ID="DesignTable:Inventory" ZOrder="2" X="105" Y="50" Height="611" Width="207" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="427" /> <Shape ID="DesignTable:Inventory" ZOrder="2" X="105" Y="50" Height="611" Width="207" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="427" />
<Shape ID="DesignTable:vInventory" ZOrder="1" X="337" Y="55" Height="320" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="230" /> <Shape ID="DesignTable:vInventory" ZOrder="1" X="337" Y="55" Height="320" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="230" />

File diff suppressed because it is too large Load Diff

View File

@@ -69,11 +69,11 @@ GROUP BY Items.idx, Items.name, Items.sid, Items.model, Items.supply</CommandTex
<DbSource ConnectionRef="gwcs (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill"> <DbSource ConnectionRef="gwcs (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT Inventory.place, MAX(Inventory.pdate) AS lastDate, Items.name, Items.sid, Items.model, SUM(Inventory.dr_qty) AS Qty, SUM(Inventory.dr_amt) AS Amt, Items.supply <CommandText>SELECT Inventory.place, MAX(Inventory.pdate) AS lastDate, Items.name, Items.sid, Items.model, SUM(Inventory.dr_qty) AS Qty, SUM(Inventory.dr_amt) AS Amt, Items.supply, Inventory.item
FROM Inventory LEFT OUTER JOIN FROM Inventory LEFT OUTER JOIN
Items ON Inventory.gcode = Items.gcode AND Inventory.item = Items.idx Items ON Inventory.gcode = Items.gcode AND Inventory.item = Items.idx
WHERE (Inventory.gcode = @gcode) AND (Inventory.pdate &lt;= @baseDate) AND (ISNULL(Inventory.place, N'') LIKE @place) WHERE (Inventory.gcode = @gcode) AND (Inventory.pdate &lt;= @baseDate) AND (ISNULL(Inventory.place, N'') LIKE @place)
GROUP BY Items.name, Items.sid, Items.model, Items.supply, Inventory.place</CommandText> GROUP BY Items.name, Items.sid, Items.model, Items.supply, Inventory.place, Inventory.item</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.Inventory" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.Inventory" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="baseDate" ColumnName="pdate" DataSourceName="EE.dbo.Inventory" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@baseDate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="baseDate" ColumnName="pdate" DataSourceName="EE.dbo.Inventory" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@baseDate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -92,20 +92,21 @@ GROUP BY Items.name, Items.sid, Items.model, Items.supply, Inventory.place</Comm
<Mapping SourceColumn="Qty" DataSetColumn="Qty" /> <Mapping SourceColumn="Qty" DataSetColumn="Qty" />
<Mapping SourceColumn="Amt" DataSetColumn="Amt" /> <Mapping SourceColumn="Amt" DataSetColumn="Amt" />
<Mapping SourceColumn="supply" DataSetColumn="supply" /> <Mapping SourceColumn="supply" DataSetColumn="supply" />
<Mapping SourceColumn="item" DataSetColumn="item" />
</Mappings> </Mappings>
<Sources> <Sources>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByItemIdx" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetbyItemIdx" GeneratorSourceName="FillByItemIdx" GetMethodModifier="Public" GetMethodName="GetbyItemIdx" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetbyItemIdx" UserSourceName="FillByItemIdx"> <DbSource ConnectionRef="gwcs (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByItemIdx" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetbyItemIdx" GeneratorSourceName="FillByItemIdx" GetMethodModifier="Public" GetMethodName="GetbyItemIdx" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetbyItemIdx" UserSourceName="FillByItemIdx">
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true"> <DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT Inventory.place, MAX(Inventory.pdate) AS lastDate, Items.name, Items.sid, Items.model, SUM(Inventory.dr_qty) AS Qty, SUM(Inventory.dr_amt) AS Amt, Items.supply <CommandText>SELECT Inventory.place, MAX(Inventory.pdate) AS lastDate, Items.name, Items.sid, Items.model, SUM(Inventory.dr_qty) AS Qty, SUM(Inventory.dr_amt) AS Amt, Items.supply, Inventory.item
FROM Inventory LEFT OUTER JOIN FROM Inventory LEFT OUTER JOIN
Items ON Inventory.gcode = Items.gcode AND Inventory.item = Items.idx Items ON Inventory.gcode = Items.gcode AND Inventory.item = Items.idx
WHERE (Inventory.gcode = @gcode) AND (Inventory.pdate &lt;= @baseDate) AND (Items.idx = @item) WHERE (Inventory.gcode = @gcode) AND (Inventory.pdate &lt;= @baseDate) AND (Items.idx = @item)
GROUP BY Items.name, Items.sid, Items.model, Items.supply, Inventory.place</CommandText> GROUP BY Items.name, Items.sid, Items.model, Items.supply, Inventory.place, Inventory.item</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="GroupWare.dbo.Inventory" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.Inventory" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="baseDate" ColumnName="pdate" DataSourceName="GroupWare.dbo.Inventory" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@baseDate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="baseDate" ColumnName="pdate" DataSourceName="EE.dbo.Inventory" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@baseDate" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="item" ColumnName="idx" DataSourceName="GroupWare.dbo.Items" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@item" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="item" ColumnName="idx" DataSourceName="EE.dbo.Items" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@item" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</SelectCommand> </SelectCommand>
@@ -120,76 +121,76 @@ GROUP BY Items.name, Items.sid, Items.model, Items.supply, Inventory.place</Comm
<xs:element name="DSReport" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DSReport" msprop:Generator_UserDSName="DSReport"> <xs:element name="DSReport" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DSReport" msprop:Generator_UserDSName="DSReport">
<xs:complexType> <xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="PersonInvStock" msprop:Generator_TableClassName="PersonInvStockDataTable" msprop:Generator_TableVarName="tablePersonInvStock" msprop:Generator_TablePropName="PersonInvStock" msprop:Generator_RowDeletingName="PersonInvStockRowDeleting" msprop:Generator_RowChangingName="PersonInvStockRowChanging" msprop:Generator_RowEvHandlerName="PersonInvStockRowChangeEventHandler" msprop:Generator_RowDeletedName="PersonInvStockRowDeleted" msprop:Generator_UserTableName="PersonInvStock" msprop:Generator_RowChangedName="PersonInvStockRowChanged" msprop:Generator_RowEvArgName="PersonInvStockRowChangeEvent" msprop:Generator_RowClassName="PersonInvStockRow"> <xs:element name="PersonInvStock" msprop:Generator_TableClassName="PersonInvStockDataTable" msprop:Generator_TableVarName="tablePersonInvStock" msprop:Generator_RowChangedName="PersonInvStockRowChanged" msprop:Generator_TablePropName="PersonInvStock" msprop:Generator_RowDeletingName="PersonInvStockRowDeleting" msprop:Generator_RowChangingName="PersonInvStockRowChanging" msprop:Generator_RowEvHandlerName="PersonInvStockRowChangeEventHandler" msprop:Generator_RowDeletedName="PersonInvStockRowDeleted" msprop:Generator_RowClassName="PersonInvStockRow" msprop:Generator_UserTableName="PersonInvStock" msprop:Generator_RowEvArgName="PersonInvStockRowChangeEvent">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="username" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnusername" msprop:Generator_ColumnPropNameInRow="username" msprop:Generator_ColumnPropNameInTable="usernameColumn" msprop:Generator_UserColumnName="username" minOccurs="0"> <xs:element name="username" msdata:ReadOnly="true" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="username" msprop:Generator_ColumnVarNameInTable="columnusername" msprop:Generator_ColumnPropNameInTable="usernameColumn" msprop:Generator_UserColumnName="username" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="200" /> <xs:maxLength value="200" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="project" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnproject" msprop:Generator_ColumnPropNameInRow="project" msprop:Generator_ColumnPropNameInTable="projectColumn" msprop:Generator_UserColumnName="project" minOccurs="0"> <xs:element name="project" msdata:ReadOnly="true" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="project" msprop:Generator_ColumnVarNameInTable="columnproject" msprop:Generator_ColumnPropNameInTable="projectColumn" msprop:Generator_UserColumnName="project" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="200" /> <xs:maxLength value="200" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="pdate" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnpdate" msprop:Generator_ColumnPropNameInRow="pdate" msprop:Generator_ColumnPropNameInTable="pdateColumn" msprop:Generator_UserColumnName="pdate" minOccurs="0"> <xs:element name="pdate" msdata:ReadOnly="true" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="pdate" msprop:Generator_ColumnVarNameInTable="columnpdate" msprop:Generator_ColumnPropNameInTable="pdateColumn" msprop:Generator_UserColumnName="pdate" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="10" /> <xs:maxLength value="10" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="ItemName" msprop:Generator_ColumnVarNameInTable="columnItemName" msprop:Generator_ColumnPropNameInRow="ItemName" msprop:Generator_ColumnPropNameInTable="ItemNameColumn" msprop:Generator_UserColumnName="ItemName" minOccurs="0"> <xs:element name="ItemName" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="ItemName" msprop:Generator_ColumnVarNameInTable="columnItemName" msprop:Generator_ColumnPropNameInTable="ItemNameColumn" msprop:Generator_UserColumnName="ItemName" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="200" /> <xs:maxLength value="200" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="stock" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnstock" msprop:Generator_ColumnPropNameInRow="stock" msprop:Generator_ColumnPropNameInTable="stockColumn" msprop:Generator_UserColumnName="stock" type="xs:int" minOccurs="0" /> <xs:element name="stock" msdata:ReadOnly="true" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="stock" msprop:Generator_ColumnVarNameInTable="columnstock" msprop:Generator_ColumnPropNameInTable="stockColumn" msprop:Generator_UserColumnName="stock" type="xs:int" minOccurs="0" />
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="jagosummary" msprop:Generator_TableClassName="jagosummaryDataTable" msprop:Generator_TableVarName="tablejagosummary" msprop:Generator_RowChangedName="jagosummaryRowChanged" msprop:Generator_TablePropName="jagosummary" msprop:Generator_RowDeletingName="jagosummaryRowDeleting" msprop:Generator_RowChangingName="jagosummaryRowChanging" msprop:Generator_RowEvHandlerName="jagosummaryRowChangeEventHandler" msprop:Generator_RowDeletedName="jagosummaryRowDeleted" msprop:Generator_RowClassName="jagosummaryRow" msprop:Generator_UserTableName="jagosummary" msprop:Generator_RowEvArgName="jagosummaryRowChangeEvent"> <xs:element name="jagosummary" msprop:Generator_TableClassName="jagosummaryDataTable" msprop:Generator_TableVarName="tablejagosummary" msprop:Generator_TablePropName="jagosummary" msprop:Generator_RowDeletingName="jagosummaryRowDeleting" msprop:Generator_RowChangingName="jagosummaryRowChanging" msprop:Generator_RowEvHandlerName="jagosummaryRowChangeEventHandler" msprop:Generator_RowDeletedName="jagosummaryRowDeleted" msprop:Generator_UserTableName="jagosummary" msprop:Generator_RowChangedName="jagosummaryRowChanged" msprop:Generator_RowEvArgName="jagosummaryRowChangeEvent" msprop:Generator_RowClassName="jagosummaryRow">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" minOccurs="0" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" minOccurs="0" />
<xs:element name="lastDate" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnlastDate" msprop:Generator_ColumnPropNameInRow="lastDate" msprop:Generator_ColumnPropNameInTable="lastDateColumn" msprop:Generator_UserColumnName="lastDate" minOccurs="0"> <xs:element name="lastDate" msdata:ReadOnly="true" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="lastDate" msprop:Generator_ColumnVarNameInTable="columnlastDate" msprop:Generator_ColumnPropNameInTable="lastDateColumn" msprop:Generator_UserColumnName="lastDate" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="10" /> <xs:maxLength value="10" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" msprop:Generator_UserColumnName="name" minOccurs="0"> <xs:element name="name" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" msprop:Generator_UserColumnName="name" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="200" /> <xs:maxLength value="200" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="sid" msprop:Generator_ColumnVarNameInTable="columnsid" msprop:Generator_ColumnPropNameInRow="sid" msprop:Generator_ColumnPropNameInTable="sidColumn" msprop:Generator_UserColumnName="sid" minOccurs="0"> <xs:element name="sid" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="sid" msprop:Generator_ColumnVarNameInTable="columnsid" msprop:Generator_ColumnPropNameInTable="sidColumn" msprop:Generator_UserColumnName="sid" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="50" /> <xs:maxLength value="50" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="model" msprop:Generator_ColumnVarNameInTable="columnmodel" msprop:Generator_ColumnPropNameInRow="model" msprop:Generator_ColumnPropNameInTable="modelColumn" msprop:Generator_UserColumnName="model" minOccurs="0"> <xs:element name="model" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="model" msprop:Generator_ColumnVarNameInTable="columnmodel" msprop:Generator_ColumnPropNameInTable="modelColumn" msprop:Generator_UserColumnName="model" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="200" /> <xs:maxLength value="200" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="Qty" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnQty" msprop:Generator_ColumnPropNameInRow="Qty" msprop:Generator_ColumnPropNameInTable="QtyColumn" msprop:Generator_UserColumnName="Qty" type="xs:int" minOccurs="0" /> <xs:element name="Qty" msdata:ReadOnly="true" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="Qty" msprop:Generator_ColumnVarNameInTable="columnQty" msprop:Generator_ColumnPropNameInTable="QtyColumn" msprop:Generator_UserColumnName="Qty" type="xs:int" minOccurs="0" />
<xs:element name="Amt" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnAmt" msprop:Generator_ColumnPropNameInRow="Amt" msprop:Generator_ColumnPropNameInTable="AmtColumn" msprop:Generator_UserColumnName="Amt" type="xs:decimal" minOccurs="0" /> <xs:element name="Amt" msdata:ReadOnly="true" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="Amt" msprop:Generator_ColumnVarNameInTable="columnAmt" msprop:Generator_ColumnPropNameInTable="AmtColumn" msprop:Generator_UserColumnName="Amt" type="xs:decimal" minOccurs="0" />
<xs:element name="supply" msprop:Generator_ColumnVarNameInTable="columnsupply" msprop:Generator_ColumnPropNameInRow="supply" msprop:Generator_ColumnPropNameInTable="supplyColumn" msprop:Generator_UserColumnName="supply" minOccurs="0"> <xs:element name="supply" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="supply" msprop:Generator_ColumnVarNameInTable="columnsupply" msprop:Generator_ColumnPropNameInTable="supplyColumn" msprop:Generator_UserColumnName="supply" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="100" /> <xs:maxLength value="100" />
@@ -199,53 +200,54 @@ GROUP BY Items.name, Items.sid, Items.model, Items.supply, Inventory.place</Comm
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="jagosummaryPlace" msprop:Generator_TableClassName="jagosummaryPlaceDataTable" msprop:Generator_TableVarName="tablejagosummaryPlace" msprop:Generator_RowChangedName="jagosummaryPlaceRowChanged" msprop:Generator_TablePropName="jagosummaryPlace" msprop:Generator_RowDeletingName="jagosummaryPlaceRowDeleting" msprop:Generator_RowChangingName="jagosummaryPlaceRowChanging" msprop:Generator_RowEvHandlerName="jagosummaryPlaceRowChangeEventHandler" msprop:Generator_RowDeletedName="jagosummaryPlaceRowDeleted" msprop:Generator_RowClassName="jagosummaryPlaceRow" msprop:Generator_UserTableName="jagosummaryPlace" msprop:Generator_RowEvArgName="jagosummaryPlaceRowChangeEvent"> <xs:element name="jagosummaryPlace" msprop:Generator_TableClassName="jagosummaryPlaceDataTable" msprop:Generator_TableVarName="tablejagosummaryPlace" msprop:Generator_TablePropName="jagosummaryPlace" msprop:Generator_RowDeletingName="jagosummaryPlaceRowDeleting" msprop:Generator_RowChangingName="jagosummaryPlaceRowChanging" msprop:Generator_RowEvHandlerName="jagosummaryPlaceRowChangeEventHandler" msprop:Generator_RowDeletedName="jagosummaryPlaceRowDeleted" msprop:Generator_UserTableName="jagosummaryPlace" msprop:Generator_RowChangedName="jagosummaryPlaceRowChanged" msprop:Generator_RowEvArgName="jagosummaryPlaceRowChangeEvent" msprop:Generator_RowClassName="jagosummaryPlaceRow">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="place" msprop:Generator_ColumnVarNameInTable="columnplace" msprop:Generator_ColumnPropNameInRow="place" msprop:Generator_ColumnPropNameInTable="placeColumn" msprop:Generator_UserColumnName="place" minOccurs="0"> <xs:element name="place" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="place" msprop:Generator_ColumnVarNameInTable="columnplace" msprop:Generator_ColumnPropNameInTable="placeColumn" msprop:Generator_UserColumnName="place" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="100" /> <xs:maxLength value="100" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="lastDate" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnlastDate" msprop:Generator_ColumnPropNameInRow="lastDate" msprop:Generator_ColumnPropNameInTable="lastDateColumn" msprop:Generator_UserColumnName="lastDate" minOccurs="0"> <xs:element name="lastDate" msdata:ReadOnly="true" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="lastDate" msprop:Generator_ColumnVarNameInTable="columnlastDate" msprop:Generator_ColumnPropNameInTable="lastDateColumn" msprop:Generator_UserColumnName="lastDate" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="10" /> <xs:maxLength value="10" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" msprop:Generator_UserColumnName="name" minOccurs="0"> <xs:element name="name" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" msprop:Generator_UserColumnName="name" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="200" /> <xs:maxLength value="200" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="sid" msprop:Generator_ColumnVarNameInTable="columnsid" msprop:Generator_ColumnPropNameInRow="sid" msprop:Generator_ColumnPropNameInTable="sidColumn" msprop:Generator_UserColumnName="sid" minOccurs="0"> <xs:element name="sid" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="sid" msprop:Generator_ColumnVarNameInTable="columnsid" msprop:Generator_ColumnPropNameInTable="sidColumn" msprop:Generator_UserColumnName="sid" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="50" /> <xs:maxLength value="50" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="model" msprop:Generator_ColumnVarNameInTable="columnmodel" msprop:Generator_ColumnPropNameInRow="model" msprop:Generator_ColumnPropNameInTable="modelColumn" msprop:Generator_UserColumnName="model" minOccurs="0"> <xs:element name="model" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="model" msprop:Generator_ColumnVarNameInTable="columnmodel" msprop:Generator_ColumnPropNameInTable="modelColumn" msprop:Generator_UserColumnName="model" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="200" /> <xs:maxLength value="200" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="Qty" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnQty" msprop:Generator_ColumnPropNameInRow="Qty" msprop:Generator_ColumnPropNameInTable="QtyColumn" msprop:Generator_UserColumnName="Qty" type="xs:int" minOccurs="0" /> <xs:element name="Qty" msdata:ReadOnly="true" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="Qty" msprop:Generator_ColumnVarNameInTable="columnQty" msprop:Generator_ColumnPropNameInTable="QtyColumn" msprop:Generator_UserColumnName="Qty" type="xs:int" minOccurs="0" />
<xs:element name="Amt" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnAmt" msprop:Generator_ColumnPropNameInRow="Amt" msprop:Generator_ColumnPropNameInTable="AmtColumn" msprop:Generator_UserColumnName="Amt" type="xs:decimal" minOccurs="0" /> <xs:element name="Amt" msdata:ReadOnly="true" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="Amt" msprop:Generator_ColumnVarNameInTable="columnAmt" msprop:Generator_ColumnPropNameInTable="AmtColumn" msprop:Generator_UserColumnName="Amt" type="xs:decimal" minOccurs="0" />
<xs:element name="supply" msprop:Generator_ColumnVarNameInTable="columnsupply" msprop:Generator_ColumnPropNameInRow="supply" msprop:Generator_ColumnPropNameInTable="supplyColumn" msprop:Generator_UserColumnName="supply" minOccurs="0"> <xs:element name="supply" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="supply" msprop:Generator_ColumnVarNameInTable="columnsupply" msprop:Generator_ColumnPropNameInTable="supplyColumn" msprop:Generator_UserColumnName="supply" minOccurs="0">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:maxLength value="100" /> <xs:maxLength value="100" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="item" msprop:nullValue="-1" msprop:Generator_ColumnPropNameInRow="item" msprop:Generator_ColumnVarNameInTable="columnitem" msprop:Generator_ColumnPropNameInTable="itemColumn" msprop:Generator_UserColumnName="item" type="xs:int" minOccurs="0" />
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>

View File

@@ -4,10 +4,10 @@
Changes to this file may cause incorrect behavior and will be lost if Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated. the code is regenerated.
</autogenerated>--> </autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="77" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout"> <DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="1" ViewPortY="77" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes> <Shapes>
<Shape ID="DesignTable:PersonInvStock" ZOrder="3" X="67" Y="127" Height="229" Width="156" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" /> <Shape ID="DesignTable:PersonInvStock" ZOrder="3" X="67" Y="127" Height="229" Width="156" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:jagosummary" ZOrder="2" X="256" Y="131" Height="229" Width="214" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" /> <Shape ID="DesignTable:jagosummary" ZOrder="2" X="256" Y="131" Height="362" Width="214" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:jagosummaryPlace" ZOrder="1" X="509" Y="141" Height="305" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" /> <Shape ID="DesignTable:jagosummaryPlace" ZOrder="1" X="509" Y="141" Height="305" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
</Shapes> </Shapes>
<Connectors /> <Connectors />

View File

@@ -114,6 +114,9 @@
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
<DependentUpon>DSMail.xsd</DependentUpon> <DependentUpon>DSMail.xsd</DependentUpon>
</Compile> </Compile>
<Compile Include="DSReport.cs">
<DependentUpon>DSReport.xsd</DependentUpon>
</Compile>
<Compile Include="Mail\fAutoSendSetting.cs"> <Compile Include="Mail\fAutoSendSetting.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>

View File

@@ -30,19 +30,19 @@
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fInventory)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fInventory));
FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType21 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType22 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType23 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType24 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType25 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType26 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType27 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType18 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType28 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType29 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType20 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType30 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType();
this.bn = new System.Windows.Forms.BindingNavigator(this.components); this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
@@ -68,6 +68,8 @@
this.toolStripLabel4 = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel4 = new System.Windows.Forms.ToolStripLabel();
this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel();
this.dtED = new System.Windows.Forms.ToolStripTextBox(); this.dtED = new System.Windows.Forms.ToolStripTextBox();
this.toolStripLabel7 = new System.Windows.Forms.ToolStripLabel();
this.cmbPlace = new System.Windows.Forms.ToolStripComboBox();
this.toolStripLabel6 = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel6 = new System.Windows.Forms.ToolStripLabel();
this.cmbInvType = new System.Windows.Forms.ToolStripComboBox(); this.cmbInvType = new System.Windows.Forms.ToolStripComboBox();
this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel5 = new System.Windows.Forms.ToolStripLabel();
@@ -91,8 +93,9 @@
this.bs = new System.Windows.Forms.BindingSource(this.components); this.bs = new System.Windows.Forms.BindingSource(this.components);
this.dSInventory = new FCM0000.DSInventory(); this.dSInventory = new FCM0000.DSInventory();
this.ta = new FCM0000.DSInventoryTableAdapters.vInventoryTableAdapter(); this.ta = new FCM0000.DSInventoryTableAdapters.vInventoryTableAdapter();
this.toolStripLabel7 = new System.Windows.Forms.ToolStripLabel(); this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
this.cmbPlace = new System.Windows.Forms.ToolStripComboBox(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout(); this.bn.SuspendLayout();
this.toolStrip1.SuspendLayout(); this.toolStrip1.SuspendLayout();
@@ -340,6 +343,23 @@
this.dtED.Text = "1982-11-23"; this.dtED.Text = "1982-11-23";
this.dtED.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.dtED.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
// //
// toolStripLabel7
//
this.toolStripLabel7.Name = "toolStripLabel7";
this.toolStripLabel7.Size = new System.Drawing.Size(43, 34);
this.toolStripLabel7.Text = "저장소";
//
// cmbPlace
//
this.cmbPlace.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbPlace.Items.AddRange(new object[] {
"전체",
"입고",
"출고",
"정정"});
this.cmbPlace.Name = "cmbPlace";
this.cmbPlace.Size = new System.Drawing.Size(75, 37);
//
// toolStripLabel6 // toolStripLabel6
// //
this.toolStripLabel6.Name = "toolStripLabel6"; this.toolStripLabel6.Name = "toolStripLabel6";
@@ -409,6 +429,9 @@
// //
this.cm.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.cm.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.cm.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.cm.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.toolStripMenuItem3,
this.columnSizeToolStripMenuItem, this.columnSizeToolStripMenuItem,
this.exportListToolStripMenuItem, this.exportListToolStripMenuItem,
this.ToolStripMenuItem, this.ToolStripMenuItem,
@@ -418,7 +441,7 @@
this.toolStripMenuItem1, this.toolStripMenuItem1,
this.ToolStripMenuItem}); this.ToolStripMenuItem});
this.cm.Name = "contextMenuStrip1"; this.cm.Name = "contextMenuStrip1";
this.cm.Size = new System.Drawing.Size(299, 232); this.cm.Size = new System.Drawing.Size(299, 332);
// //
// columnSizeToolStripMenuItem // columnSizeToolStripMenuItem
// //
@@ -513,89 +536,89 @@
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "보관소"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "보관소";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "비고"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "비고";
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 30F; this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 30F;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType11; this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType21;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "pdate"; this.fpSpread1_Sheet1.Columns.Get(0).DataField = "pdate";
this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Label = "등록일"; this.fpSpread1_Sheet1.Columns.Get(0).Label = "등록일";
this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Width = 62F; this.fpSpread1_Sheet1.Columns.Get(0).Width = 62F;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType12; this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType22;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "invtype"; this.fpSpread1_Sheet1.Columns.Get(1).DataField = "invtype";
this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Label = "구분"; this.fpSpread1_Sheet1.Columns.Get(1).Label = "구분";
this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType13; this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType23;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "sid"; this.fpSpread1_Sheet1.Columns.Get(2).DataField = "sid";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Label = "SID"; this.fpSpread1_Sheet1.Columns.Get(2).Label = "SID";
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Width = 92F; this.fpSpread1_Sheet1.Columns.Get(2).Width = 92F;
this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType14; this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType24;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "itemName"; this.fpSpread1_Sheet1.Columns.Get(3).DataField = "itemName";
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Label = "품명"; this.fpSpread1_Sheet1.Columns.Get(3).Label = "품명";
this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType15; this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType25;
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "itemModel"; this.fpSpread1_Sheet1.Columns.Get(4).DataField = "itemModel";
this.fpSpread1_Sheet1.Columns.Get(4).Label = "모델명"; this.fpSpread1_Sheet1.Columns.Get(4).Label = "모델명";
this.fpSpread1_Sheet1.Columns.Get(4).Width = 77F; this.fpSpread1_Sheet1.Columns.Get(4).Width = 77F;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType16; this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType26;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "sid"; this.fpSpread1_Sheet1.Columns.Get(5).DataField = "sid";
this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Label = "SID"; this.fpSpread1_Sheet1.Columns.Get(5).Label = "SID";
this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Width = 77F; this.fpSpread1_Sheet1.Columns.Get(5).Width = 77F;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType17; this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType27;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "serial"; this.fpSpread1_Sheet1.Columns.Get(6).DataField = "serial";
this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Label = "S/N"; this.fpSpread1_Sheet1.Columns.Get(6).Label = "S/N";
this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Width = 83F; this.fpSpread1_Sheet1.Columns.Get(6).Width = 83F;
numberCellType4.DecimalPlaces = 0; numberCellType7.DecimalPlaces = 0;
numberCellType4.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; numberCellType7.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType4.MaximumValue = 2147483647D; numberCellType7.MaximumValue = 2147483647D;
numberCellType4.MinimumValue = -2147483648D; numberCellType7.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = numberCellType4; this.fpSpread1_Sheet1.Columns.Get(7).CellType = numberCellType7;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "dr_qty"; this.fpSpread1_Sheet1.Columns.Get(7).DataField = "dr_qty";
this.fpSpread1_Sheet1.Columns.Get(7).ForeColor = System.Drawing.Color.Blue; this.fpSpread1_Sheet1.Columns.Get(7).ForeColor = System.Drawing.Color.Blue;
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).Label = "수량"; this.fpSpread1_Sheet1.Columns.Get(7).Label = "수량";
this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).Width = 77F; this.fpSpread1_Sheet1.Columns.Get(7).Width = 77F;
numberCellType5.DecimalPlaces = 0; numberCellType8.DecimalPlaces = 0;
numberCellType5.MaximumValue = 999999999999999D; numberCellType8.MaximumValue = 999999999999999D;
numberCellType5.MinimumValue = -999999999999999D; numberCellType8.MinimumValue = -999999999999999D;
numberCellType5.NegativeRed = true; numberCellType8.NegativeRed = true;
numberCellType5.NullDisplay = "--"; numberCellType8.NullDisplay = "--";
numberCellType5.Separator = ","; numberCellType8.Separator = ",";
numberCellType5.ShowSeparator = true; numberCellType8.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = numberCellType5; this.fpSpread1_Sheet1.Columns.Get(8).CellType = numberCellType8;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "dr_amt"; this.fpSpread1_Sheet1.Columns.Get(8).DataField = "dr_amt";
this.fpSpread1_Sheet1.Columns.Get(8).ForeColor = System.Drawing.Color.Blue; this.fpSpread1_Sheet1.Columns.Get(8).ForeColor = System.Drawing.Color.Blue;
this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(8).Label = "금액"; this.fpSpread1_Sheet1.Columns.Get(8).Label = "금액";
this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Width = 75F; this.fpSpread1_Sheet1.Columns.Get(8).Width = 75F;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType18; this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType28;
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "userName"; this.fpSpread1_Sheet1.Columns.Get(9).DataField = "userName";
this.fpSpread1_Sheet1.Columns.Get(9).Label = "사용자"; this.fpSpread1_Sheet1.Columns.Get(9).Label = "사용자";
this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType19; this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType29;
this.fpSpread1_Sheet1.Columns.Get(10).DataField = "place"; this.fpSpread1_Sheet1.Columns.Get(10).DataField = "place";
this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(10).Label = "보관소"; this.fpSpread1_Sheet1.Columns.Get(10).Label = "보관소";
this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType20; this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType30;
this.fpSpread1_Sheet1.Columns.Get(11).DataField = "memo"; this.fpSpread1_Sheet1.Columns.Get(11).DataField = "memo";
this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(11).Label = "비고"; this.fpSpread1_Sheet1.Columns.Get(11).Label = "비고";
this.fpSpread1_Sheet1.Columns.Get(11).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(11).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(11).Width = 151F; this.fpSpread1_Sheet1.Columns.Get(11).Width = 151F;
numberCellType6.DecimalPlaces = 0; numberCellType9.DecimalPlaces = 0;
numberCellType6.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; numberCellType9.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType6.MaximumValue = 2147483647D; numberCellType9.MaximumValue = 2147483647D;
numberCellType6.MinimumValue = -2147483648D; numberCellType9.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType6; this.fpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType9;
this.fpSpread1_Sheet1.Columns.Get(12).DataField = "idx"; this.fpSpread1_Sheet1.Columns.Get(12).DataField = "idx";
this.fpSpread1_Sheet1.Columns.Get(12).Visible = false; this.fpSpread1_Sheet1.Columns.Get(12).Visible = false;
this.fpSpread1_Sheet1.DataAutoCellTypes = false; this.fpSpread1_Sheet1.DataAutoCellTypes = false;
@@ -620,22 +643,24 @@
// //
this.ta.ClearBeforeFill = true; this.ta.ClearBeforeFill = true;
// //
// toolStripLabel7 // toolStripMenuItem3
// //
this.toolStripLabel7.Name = "toolStripLabel7"; this.toolStripMenuItem3.Name = "toolStripMenuItem3";
this.toolStripLabel7.Size = new System.Drawing.Size(43, 34); this.toolStripMenuItem3.Size = new System.Drawing.Size(295, 6);
this.toolStripLabel7.Text = "저장소";
// //
// cmbPlace // 입고등록ToolStripMenuItem
// //
this.cmbPlace.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.ToolStripMenuItem.Name = "입고등록ToolStripMenuItem";
this.cmbPlace.Items.AddRange(new object[] { this.ToolStripMenuItem.Size = new System.Drawing.Size(298, 36);
"전체", this.ToolStripMenuItem.Text = "입고 등록";
"입고", this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
"출고", //
"정정"}); // 출고등록ToolStripMenuItem
this.cmbPlace.Name = "cmbPlace"; //
this.cmbPlace.Size = new System.Drawing.Size(75, 37); this.ToolStripMenuItem.Name = "출고등록ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(298, 36);
this.ToolStripMenuItem.Text = "출고 등록";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// fInventory // fInventory
// //
@@ -715,5 +740,8 @@
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripLabel toolStripLabel7; private System.Windows.Forms.ToolStripLabel toolStripLabel7;
private System.Windows.Forms.ToolStripComboBox cmbPlace; private System.Windows.Forms.ToolStripComboBox cmbPlace;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem3;
} }
} }

View File

@@ -182,7 +182,7 @@ namespace FCM0000
tbFind.SelectAll(); tbFind.SelectAll();
tbFind.Focus(); tbFind.Focus();
} }
catch (Exception eX) catch
{ {
tbFind.BackColor = Color.Red; tbFind.BackColor = Color.Red;
} }
@@ -417,5 +417,75 @@ namespace FCM0000
{ {
FPUtil.printsheet(this.fpSpread1, "재고등록현황"); FPUtil.printsheet(this.fpSpread1, "재고등록현황");
} }
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
//입고
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as DSInventory.vInventoryRow;
if(dr.item == -1)
{
FCOMMON.Util.MsgE("입력된 품목이 없습니다");
return;
}
var newdr = this.dSInventory.vInventory.NewvInventoryRow();
newdr.pdate = DateTime.Now.ToShortDateString();
newdr.invtype = "입고";
newdr.item = dr.item;
//newdr.ItemArray = dr.ItemArray;
newdr.itemModel = dr.itemModel;
newdr.itemName = dr.itemName;
newdr.place = dr.place;
newdr.sid = dr.sid;
var f = new finventoryAdd(newdr);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
this.dSInventory.vInventory.AddvInventoryRow(newdr);
int cnt = this.ta.Update(newdr);
newdr.AcceptChanges();
if (cnt != 1)
FCOMMON.Util.MsgE("자료가 추가되지 않았습니다.\n\n잠시 후 다시 시도하세요");
}
else newdr.Delete();
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
//출고
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as DSInventory.vInventoryRow;
if (dr.item == -1)
{
FCOMMON.Util.MsgE("입력된 품목이 없습니다");
return;
}
var newdr = this.dSInventory.vInventory.NewvInventoryRow();
newdr.pdate = DateTime.Now.ToShortDateString();
newdr.invtype = "출고";
newdr.item = dr.item;
//newdr.ItemArray = dr.ItemArray;
newdr.sid = dr.sid;
newdr.itemModel = dr.itemModel;
newdr.itemName = dr.itemName;
newdr.place = dr.place;
var f = new finventoryAdd(newdr);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
this.dSInventory.vInventory.AddvInventoryRow(newdr);
int cnt = this.ta.Update(newdr);
newdr.AcceptChanges();
if (cnt != 1)
FCOMMON.Util.MsgE("자료가 추가되지 않았습니다.\n\n잠시 후 다시 시도하세요");
}
else newdr.Delete();
}
} }
} }

View File

@@ -30,7 +30,7 @@
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fInventoryJagoList)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fInventoryJagoList));
FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType();
@@ -39,6 +39,7 @@
FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.NoPrinterPrintInfo noPrinterPrintInfo1 = new FarPoint.Win.Spread.NoPrinterPrintInfo(); FarPoint.Win.Spread.NoPrinterPrintInfo noPrinterPrintInfo1 = new FarPoint.Win.Spread.NoPrinterPrintInfo();
this.bn = new System.Windows.Forms.BindingNavigator(this.components); this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
@@ -57,31 +58,33 @@
this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
this.dtSD = new System.Windows.Forms.ToolStripTextBox(); this.dtSD = new System.Windows.Forms.ToolStripTextBox();
this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel();
this.cmbPlace = new System.Windows.Forms.ToolStripComboBox();
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.btSearch = new System.Windows.Forms.ToolStripButton(); this.btSearch = new System.Windows.Forms.ToolStripButton();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
this.cm = new System.Windows.Forms.ContextMenuStrip(this.components); this.cm = new System.Windows.Forms.ContextMenuStrip(this.components);
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
this.columnSizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.columnSizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.exportListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.exportListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.bs = new System.Windows.Forms.BindingSource(this.components); this.bs = new System.Windows.Forms.BindingSource(this.components);
this.dSReport = new FCM0000.DSReport(); this.dSReport = new FCM0000.DSReport();
this.ta = new FCM0000.DSReportTableAdapters.jagosummaryPlaceTableAdapter(); this.ta = new FCM0000.DSReportTableAdapters.jagosummaryPlaceTableAdapter();
this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.cmbPlace = new System.Windows.Forms.ToolStripComboBox();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout(); this.bn.SuspendLayout();
this.toolStrip1.SuspendLayout(); this.toolStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
this.cm.SuspendLayout(); this.cm.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dSReport)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dSReport)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// bn // bn
@@ -248,6 +251,18 @@
this.dtSD.Text = "1982-11-23"; this.dtSD.Text = "1982-11-23";
this.dtSD.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.dtSD.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
// //
// toolStripLabel2
//
this.toolStripLabel2.Name = "toolStripLabel2";
this.toolStripLabel2.Size = new System.Drawing.Size(43, 34);
this.toolStripLabel2.Text = "보관소";
//
// cmbPlace
//
this.cmbPlace.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbPlace.Name = "cmbPlace";
this.cmbPlace.Size = new System.Drawing.Size(120, 37);
//
// toolStripSeparator2 // toolStripSeparator2
// //
this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Name = "toolStripSeparator2";
@@ -283,7 +298,7 @@
this.fpSpread1_Sheet1}); this.fpSpread1_Sheet1});
this.fpSpread1.Size = new System.Drawing.Size(979, 517); this.fpSpread1.Size = new System.Drawing.Size(979, 517);
this.fpSpread1.TabIndex = 3; this.fpSpread1.TabIndex = 3;
this.fpSpread1.TitleInfo.CellType = textCellType6; this.fpSpread1.TitleInfo.CellType = textCellType7;
this.fpSpread1.TitleInfo.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.fpSpread1.TitleInfo.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.fpSpread1.TitleInfo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.fpSpread1.TitleInfo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.fpSpread1.TitleInfo.Text = "재고 현황"; this.fpSpread1.TitleInfo.Text = "재고 현황";
@@ -294,12 +309,33 @@
// //
this.cm.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.cm.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.cm.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.cm.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.ToolStripMenuItem,
this.toolStripMenuItem2,
this.columnSizeToolStripMenuItem, this.columnSizeToolStripMenuItem,
this.exportListToolStripMenuItem, this.exportListToolStripMenuItem,
this.ToolStripMenuItem, this.ToolStripMenuItem});
this.toolStripMenuItem2});
this.cm.Name = "contextMenuStrip1"; this.cm.Name = "contextMenuStrip1";
this.cm.Size = new System.Drawing.Size(243, 118); this.cm.Size = new System.Drawing.Size(243, 190);
//
// 입고등록ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "입고등록ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(242, 36);
this.ToolStripMenuItem.Text = "입고 등록";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 출고등록ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "출고등록ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(242, 36);
this.ToolStripMenuItem.Text = "출고 등록";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// toolStripMenuItem2
//
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(239, 6);
// //
// columnSizeToolStripMenuItem // columnSizeToolStripMenuItem
// //
@@ -340,10 +376,19 @@
this.ToolStripMenuItem.Text = "인쇄"; this.ToolStripMenuItem.Text = "인쇄";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// toolStripMenuItem2 // bs
// //
this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.bs.DataMember = "jagosummaryPlace";
this.toolStripMenuItem2.Size = new System.Drawing.Size(239, 6); this.bs.DataSource = this.dSReport;
//
// dSReport
//
this.dSReport.DataSetName = "DSReport";
this.dSReport.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// ta
//
this.ta.ClearBeforeFill = true;
// //
// fpSpread1_Sheet1 // fpSpread1_Sheet1
// //
@@ -351,7 +396,7 @@
this.fpSpread1_Sheet1.SheetName = "Sheet1"; this.fpSpread1_Sheet1.SheetName = "Sheet1";
// Formulas and custom names must be loaded with R1C1 reference style // Formulas and custom names must be loaded with R1C1 reference style
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1; this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
this.fpSpread1_Sheet1.ColumnCount = 8; this.fpSpread1_Sheet1.ColumnCount = 9;
this.fpSpread1_Sheet1.ActiveColumnIndex = -1; this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
this.fpSpread1_Sheet1.ActiveRowIndex = -1; this.fpSpread1_Sheet1.ActiveRowIndex = -1;
this.fpSpread1_Sheet1.AutoGenerateColumns = false; this.fpSpread1_Sheet1.AutoGenerateColumns = false;
@@ -422,6 +467,8 @@
this.fpSpread1_Sheet1.Columns.Get(7).CellType = numberCellType3; this.fpSpread1_Sheet1.Columns.Get(7).CellType = numberCellType3;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "idx"; this.fpSpread1_Sheet1.Columns.Get(7).DataField = "idx";
this.fpSpread1_Sheet1.Columns.Get(7).Visible = false; this.fpSpread1_Sheet1.Columns.Get(7).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType6;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "item";
this.fpSpread1_Sheet1.DataAutoCellTypes = false; this.fpSpread1_Sheet1.DataAutoCellTypes = false;
this.fpSpread1_Sheet1.DataAutoSizeColumns = false; this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
this.fpSpread1_Sheet1.DataSource = this.bs; this.fpSpread1_Sheet1.DataSource = this.bs;
@@ -453,32 +500,6 @@
this.fpSpread1_Sheet1.TitleInfo.Value = "재고현황"; this.fpSpread1_Sheet1.TitleInfo.Value = "재고현황";
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
// //
// bs
//
this.bs.DataMember = "jagosummaryPlace";
this.bs.DataSource = this.dSReport;
//
// dSReport
//
this.dSReport.DataSetName = "DSReport";
this.dSReport.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// ta
//
this.ta.ClearBeforeFill = true;
//
// toolStripLabel2
//
this.toolStripLabel2.Name = "toolStripLabel2";
this.toolStripLabel2.Size = new System.Drawing.Size(43, 34);
this.toolStripLabel2.Text = "보관소";
//
// cmbPlace
//
this.cmbPlace.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbPlace.Name = "cmbPlace";
this.cmbPlace.Size = new System.Drawing.Size(120, 37);
//
// fInventoryJagoList // fInventoryJagoList
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -497,9 +518,9 @@
this.toolStrip1.PerformLayout(); this.toolStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
this.cm.ResumeLayout(false); this.cm.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dSReport)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dSReport)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@@ -537,9 +558,11 @@
private System.Windows.Forms.ToolStripButton toolStripButton2; private System.Windows.Forms.ToolStripButton toolStripButton2;
private DSReport dSReport; private DSReport dSReport;
private DSReportTableAdapters.jagosummaryPlaceTableAdapter ta; private DSReportTableAdapters.jagosummaryPlaceTableAdapter ta;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripLabel toolStripLabel2; private System.Windows.Forms.ToolStripLabel toolStripLabel2;
private System.Windows.Forms.ToolStripComboBox cmbPlace; private System.Windows.Forms.ToolStripComboBox cmbPlace;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
} }
} }

View File

@@ -214,5 +214,93 @@ namespace FCM0000
{ {
FPUtil.printsheet(this.fpSpread1, "재고현황"); FPUtil.printsheet(this.fpSpread1, "재고현황");
} }
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
//입고
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as DSReport.jagosummaryPlaceRow;
var taInventory = new DSInventoryTableAdapters.vInventoryTableAdapter();
var vinventory = new DSInventory.vInventoryDataTable();
var newdr = vinventory.NewvInventoryRow();
newdr.item = dr.item;
newdr.invtype = "입고";
newdr.itemModel = dr.model;
newdr.itemName = dr.name;
newdr.place = dr.place;
newdr.sid = dr.sid;
newdr.gcode = FCOMMON.info.Login.gcode;
newdr.wuid = FCOMMON.info.Login.no;
newdr.uid = FCOMMON.info.Login.no;
newdr.wdate = DateTime.Now;
newdr.pdate = DateTime.Now.ToShortDateString();
newdr.cr_qty = 0;
newdr.cr_amt = 0;
newdr.dr_qty = 0;
newdr.dr_amt = 0;
//newdr.item = -1;
var f = new finventoryAdd(newdr);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
vinventory.AddvInventoryRow(newdr);
int cnt = taInventory.Update(newdr);
newdr.AcceptChanges();
if (cnt != 1)
FCOMMON.Util.MsgE("자료가 추가되지 않았습니다.\n\n잠시 후 다시 시도하세요");
}
else newdr.Delete();
this.RefreshData();
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
//입고
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as DSReport.jagosummaryPlaceRow;
var taInventory = new DSInventoryTableAdapters.vInventoryTableAdapter();
var vinventory = new DSInventory.vInventoryDataTable();
var newdr = vinventory.NewvInventoryRow();
newdr.item = dr.item;
newdr.invtype = "출고";
newdr.itemModel = dr.model;
newdr.itemName = dr.name;
newdr.place = dr.place;
newdr.sid = dr.sid;
newdr.gcode = FCOMMON.info.Login.gcode;
newdr.wuid = FCOMMON.info.Login.no;
newdr.uid = FCOMMON.info.Login.no;
newdr.wdate = DateTime.Now;
newdr.pdate = DateTime.Now.ToShortDateString();
newdr.cr_qty = 0;
newdr.cr_amt = 0;
newdr.dr_qty = 0;
newdr.dr_amt = 0;
// newdr.item = -1;
var f = new finventoryAdd(newdr);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
vinventory.AddvInventoryRow(newdr);
int cnt = taInventory.Update(newdr);
newdr.AcceptChanges();
if (cnt != 1)
FCOMMON.Util.MsgE("자료가 추가되지 않았습니다.\n\n잠시 후 다시 시도하세요");
}
else newdr.Delete();
this.RefreshData();
}
} }
} }

View File

@@ -1,326 +1,326 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
namespace FCM0000 namespace FCM0000
{ {
public partial class fInventoryUser : Form public partial class fInventoryUser : Form
{ {
public fInventoryUser() public fInventoryUser()
{ {
InitializeComponent(); InitializeComponent();
this.FormClosed += __Closed; this.FormClosed += __Closed;
this.dsMSSQL.InventoryUser.TableNewRow += Inventory_TableNewRow; this.dsMSSQL.InventoryUser.TableNewRow += Inventory_TableNewRow;
var invtypeList = new FCOMMON.keyValuedataTable(); var invtypeList = new FCOMMON.keyValuedataTable();
invtypeList.Add("I1", "입고"); invtypeList.Add("I1", "입고");
invtypeList.Add("I2", "입고(대여)"); invtypeList.Add("I2", "입고(대여)");
invtypeList.Add("O1", "출고"); invtypeList.Add("O1", "출고");
invtypeList.Add("O2", "출고(대여)"); invtypeList.Add("O2", "출고(대여)");
invtypeList.Add("ET", "기타"); invtypeList.Add("ET", "기타");
dvc_iffnvtype.DataSource = invtypeList.DataTable; dvc_iffnvtype.DataSource = invtypeList.DataTable;
dvc_iffnvtype.ValueMember = "key"; dvc_iffnvtype.ValueMember = "key";
dvc_iffnvtype.DisplayMember = "Value"; dvc_iffnvtype.DisplayMember = "Value";
this.dtSD.KeyDown += dtSD_KeyDown; this.dtSD.KeyDown += dtSD_KeyDown;
this.dtED.KeyDown += dtSD_KeyDown; this.dtED.KeyDown += dtSD_KeyDown;
} }
void dtSD_KeyDown(object sender, KeyEventArgs e) void dtSD_KeyDown(object sender, KeyEventArgs e)
{ {
if (e.KeyCode == Keys.Enter) if (e.KeyCode == Keys.Enter)
{ {
ToolStripTextBox tb = sender as ToolStripTextBox; ToolStripTextBox tb = sender as ToolStripTextBox;
var vale = tb.Text.Trim(); var vale = tb.Text.Trim();
var datestring = string.Empty; var datestring = string.Empty;
if (FCOMMON.Util.MakeDateString(vale, out datestring)) if (FCOMMON.Util.MakeDateString(vale, out datestring))
{ {
tb.Text = datestring; tb.Text = datestring;
if (e.KeyCode == Keys.Enter) if (e.KeyCode == Keys.Enter)
SendKeys.Send("{TAB}"); SendKeys.Send("{TAB}");
} }
else else
{ {
FCOMMON.Util.MsgE("날짜형식으로 입력하세요.\n\n18-01-01"); FCOMMON.Util.MsgE("날짜형식으로 입력하세요.\n\n18-01-01");
tb.SelectAll(); tb.SelectAll();
tb.Focus(); tb.Focus();
} }
} }
} }
void __Closed(object sender, FormClosedEventArgs e) void __Closed(object sender, FormClosedEventArgs e)
{ {
var form = this as Form; var form = this as Form;
FCOMMON.Util.SetFormStatus(ref form, this.Name, false); FCOMMON.Util.SetFormStatus(ref form, this.Name, false);
} }
private void __Load(object sender, EventArgs e) private void __Load(object sender, EventArgs e)
{ {
// TODO: 이 코드는 데이터를 'dsMSSQL.InventoryUser' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다. // TODO: 이 코드는 데이터를 'dsMSSQL.InventoryUser' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
var form = this as Form; var form = this as Form;
FCOMMON.Util.SetFormStatus(ref form, this.Name, true); FCOMMON.Util.SetFormStatus(ref form, this.Name, true);
this.Show(); this.Show();
Application.DoEvents(); Application.DoEvents();
//사용자이름 181030 //사용자이름 181030
this.tbName.Text = FCOMMON.info.Login.nameK; this.tbName.Text = FCOMMON.info.Login.nameK;
//마지막 자료를 가져온날을 찾는다. //마지막 자료를 가져온날을 찾는다.
var dateList = FCOMMON.DBM.getDateList("InventoryUser", "uid='" + FCOMMON.info.Login.no + "'"); var dateList = FCOMMON.DBM.getDateList("InventoryUser", "uid='" + FCOMMON.info.Login.no + "'");
dtED.Text = DateTime.Now.ToShortDateString(); dtED.Text = DateTime.Now.ToShortDateString();
if (dateList.Count > 0) dtSD.Text = dateList[dateList.Count - 1]; if (dateList.Count > 0) dtSD.Text = dateList[dateList.Count - 1];
else dtSD.Text = DateTime.Now.AddDays(-7).ToShortDateString(); else dtSD.Text = DateTime.Now.AddDays(-7).ToShortDateString();
btSearch.PerformClick(); btSearch.PerformClick();
} }
private void btSearch_Click(object sender, EventArgs e) private void btSearch_Click(object sender, EventArgs e)
{ {
try try
{ {
string sd = dtSD.Text; string sd = dtSD.Text;
string ed = dtED.Text; string ed = dtED.Text;
string name = "%"; string name = "%";
if (tbName.Text != "") name = tbName.Text.Trim(); if (tbName.Text != "") name = tbName.Text.Trim();
this.ta.FillByName(this.dsMSSQL.InventoryUser, sd, ed, name); this.ta.FillByName(this.dsMSSQL.InventoryUser, sd, ed, name);
this.dsMSSQL.InventoryUser.AcceptChanges(); this.dsMSSQL.InventoryUser.AcceptChanges();
dv1.AutoResizeColumns(); dv1.AutoResizeColumns();
} }
catch (Exception ex) catch (Exception ex)
{ {
FCOMMON.Util.MsgE(ex.Message); FCOMMON.Util.MsgE(ex.Message);
} }
} }
private void inventoryBindingNavigatorSaveItem_Click(object sender, EventArgs e) private void inventoryBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{ {
this.Validate(); this.Validate();
this.bs.EndEdit(); this.bs.EndEdit();
var dlg = FCOMMON.Util.MsgQ("변경된 사항을 저장 하시겠습니까?"); var dlg = FCOMMON.Util.MsgQ("변경된 사항을 저장 하시겠습니까?");
if (dlg != System.Windows.Forms.DialogResult.Yes) return; if (dlg != System.Windows.Forms.DialogResult.Yes) return;
try try
{ {
this.tam.UpdateAll(this.dsMSSQL); this.tam.UpdateAll(this.dsMSSQL);
} }
catch (Exception ex) catch (Exception ex)
{ {
FCOMMON.Util.MsgE(ex.Message); FCOMMON.Util.MsgE(ex.Message);
} }
} }
void Inventory_TableNewRow(object sender, DataTableNewRowEventArgs e) void Inventory_TableNewRow(object sender, DataTableNewRowEventArgs e)
{ {
e.Row["wuid"] = FCOMMON.info.Login.no; e.Row["wuid"] = FCOMMON.info.Login.no;
e.Row["uid"] = FCOMMON.info.Login.no; e.Row["uid"] = FCOMMON.info.Login.no;
e.Row["wdate"] = DateTime.Now; e.Row["wdate"] = DateTime.Now;
e.Row["pdate"] = DateTime.Now.ToShortDateString(); e.Row["pdate"] = DateTime.Now.ToShortDateString();
e.Row["dr_qty"] = 0; e.Row["dr_qty"] = 0;
e.Row["dr_amt"] = 0; e.Row["dr_amt"] = 0;
e.Row["invtype"] = "I1"; e.Row["invtype"] = "I1";
} }
private void toolStripTextBox1_KeyDown(object sender, KeyEventArgs e) private void toolStripTextBox1_KeyDown(object sender, KeyEventArgs e)
{ {
if (e.KeyCode == Keys.Enter) if (e.KeyCode == Keys.Enter)
{ {
string inputstr = tbFind.Text.Trim(); string inputstr = tbFind.Text.Trim();
if (inputstr == "") if (inputstr == "")
{ {
bs.Filter = ""; bs.Filter = "";
tbFind.BackColor = Color.White; tbFind.BackColor = Color.White;
} }
else else
{ {
string[] collist = new string[] { "projectName", "itemName", "memo", "serial" }; string[] collist = new string[] { "projectName", "itemName", "memo", "serial" };
System.Text.StringBuilder filter = new StringBuilder(); System.Text.StringBuilder filter = new StringBuilder();
foreach (var col in collist) foreach (var col in collist)
{ {
if (filter.Length > 0) filter.Append(" or "); if (filter.Length > 0) filter.Append(" or ");
filter.Append(col + " like '%" + inputstr + "%'"); filter.Append(col + " like '%" + inputstr + "%'");
} }
try try
{ {
bs.Filter = filter.ToString(); bs.Filter = filter.ToString();
tbFind.BackColor = Color.Lime; tbFind.BackColor = Color.Lime;
tbFind.SelectAll(); tbFind.SelectAll();
tbFind.Focus(); tbFind.Focus();
} }
catch (Exception eX) catch
{ {
tbFind.BackColor = Color.Red; tbFind.BackColor = Color.Red;
} }
} }
} }
} }
private void autoColumnsSizeToolStripMenuItem_Click(object sender, EventArgs e) private void autoColumnsSizeToolStripMenuItem_Click(object sender, EventArgs e)
{ {
dv1.AutoResizeColumns(); dv1.AutoResizeColumns();
} }
private void dv1_CellEndEdit(object sender, DataGridViewCellEventArgs e) private void dv1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{ {
if (e.ColumnIndex < 0 || e.RowIndex < 0) return; if (e.ColumnIndex < 0 || e.RowIndex < 0) return;
var col = dv1.Columns[e.ColumnIndex]; var col = dv1.Columns[e.ColumnIndex];
switch (col.DataPropertyName) switch (col.DataPropertyName)
{ {
case "itemName": case "itemName":
var valuen = dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value; var valuen = dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
if (valuen != null) if (valuen != null)
{ {
string inputtext = valuen.ToString().Trim(); string inputtext = valuen.ToString().Trim();
if (inputtext.isEmpty()) if (inputtext.isEmpty())
{ {
dv1.Rows[e.RowIndex].Cells["dvc_itemName"].Value = inputtext; dv1.Rows[e.RowIndex].Cells["dvc_itemName"].Value = inputtext;
} }
else else
{ {
//검색을 실행해서 보여준다. //검색을 실행해서 보여준다.
var SearchDT = taItem.GetSearch("%" + inputtext + "%", FCOMMON.info.Login.gcode); var SearchDT = taItem.GetSearch("%" + inputtext + "%", FCOMMON.info.Login.gcode);
if (SearchDT == null || SearchDT.Rows.Count < 1) if (SearchDT == null || SearchDT.Rows.Count < 1)
{ {
FCOMMON.Util.MsgE("검색 결과가 없습니다."); FCOMMON.Util.MsgE("검색 결과가 없습니다.");
return; return;
} }
else else
{ {
//검색된 결과를 표시해서 보여준다. //검색된 결과를 표시해서 보여준다.
var f = new fLovItem("%" + inputtext + "%"); var f = new fLovItem("%" + inputtext + "%");
if(f.ShowDialog() == System.Windows.Forms.DialogResult.OK) if(f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{ {
dv1.Rows[e.RowIndex].Cells["dvc_item"].Value = f.item; dv1.Rows[e.RowIndex].Cells["dvc_item"].Value = f.item;
dv1.Rows[e.RowIndex].Cells["dvc_itemName"].Value = f.itemName; dv1.Rows[e.RowIndex].Cells["dvc_itemName"].Value = f.itemName;
} }
} }
} }
} }
break; break;
case "item": case "item":
var value = dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value; var value = dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
if (value != null) if (value != null)
{ {
int idx = (int)value; int idx = (int)value;
if (idx != -1) if (idx != -1)
{ {
var item = this.taItem.GetbyIDX(idx); var item = this.taItem.GetbyIDX(idx);
if (item.Count == 1) if (item.Count == 1)
{ {
//1개만 찾았다면 그것을 사용한다. //1개만 찾았다면 그것을 사용한다.
var itemnameValue = item[0]["name"]; var itemnameValue = item[0]["name"];
if (itemnameValue != null) if (itemnameValue != null)
dv1.Rows[e.RowIndex].Cells["dvc_itemName"].Value = itemnameValue.ToString(); dv1.Rows[e.RowIndex].Cells["dvc_itemName"].Value = itemnameValue.ToString();
} }
else else
{ {
FCOMMON.Util.MsgE("해당 아이템이 존재하지 않습니다."); FCOMMON.Util.MsgE("해당 아이템이 존재하지 않습니다.");
dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = DBNull.Value; dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = DBNull.Value;
} }
} }
} }
break; break;
case "project": case "project":
var valuep = dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value; var valuep = dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
if (valuep != null) if (valuep != null)
{ {
int idx = (int)valuep; int idx = (int)valuep;
if (idx != -1) if (idx != -1)
{ {
var item = this.taPrj.GetData(idx); var item = this.taPrj.GetData(idx);
if (item.Count == 1) if (item.Count == 1)
{ {
//1개만 찾았다면 그것을 사용한다. //1개만 찾았다면 그것을 사용한다.
var itemnameValue = item[0]["name"]; var itemnameValue = item[0]["name"];
if (itemnameValue != null) if (itemnameValue != null)
dv1.Rows[e.RowIndex].Cells["dvc_projectName"].Value = itemnameValue.ToString(); dv1.Rows[e.RowIndex].Cells["dvc_projectName"].Value = itemnameValue.ToString();
} }
else else
{ {
FCOMMON.Util.MsgE("해당 프로젝트가 존재하지 않습니다."); FCOMMON.Util.MsgE("해당 프로젝트가 존재하지 않습니다.");
dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = DBNull.Value; dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = DBNull.Value;
} }
} }
} }
break; break;
case "projectName": case "projectName":
var valuepn = dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value; var valuepn = dv1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
if (valuepn != null) if (valuepn != null)
{ {
string inputtext = valuepn.ToString().Trim(); string inputtext = valuepn.ToString().Trim();
if (inputtext.isEmpty()) if (inputtext.isEmpty())
{ {
dv1.Rows[e.RowIndex].Cells["dvc_projectname"].Value = inputtext; dv1.Rows[e.RowIndex].Cells["dvc_projectname"].Value = inputtext;
} }
else else
{ {
//검색을 실행해서 보여준다. //검색을 실행해서 보여준다.
var SearchDT = this.taPrj.GetSearch("%" + inputtext + "%",FCOMMON.info.Login.gcode); var SearchDT = this.taPrj.GetSearch("%" + inputtext + "%",FCOMMON.info.Login.gcode);
if (SearchDT == null || SearchDT.Rows.Count < 1) if (SearchDT == null || SearchDT.Rows.Count < 1)
{ {
FCOMMON.Util.MsgE("검색 결과가 없습니다."); FCOMMON.Util.MsgE("검색 결과가 없습니다.");
return; return;
} }
else else
{ {
//검색된 결과를 표시해서 보여준다. //검색된 결과를 표시해서 보여준다.
var f = new fLovProject("%" + inputtext + "%"); var f = new fLovProject("%" + inputtext + "%");
if(f.ShowDialog() == System.Windows.Forms.DialogResult.OK) if(f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{ {
dv1.Rows[e.RowIndex].Cells["dvc_project"].Value = f.Index; dv1.Rows[e.RowIndex].Cells["dvc_project"].Value = f.Index;
dv1.Rows[e.RowIndex].Cells["dvc_projectname"].Value = f.Title; dv1.Rows[e.RowIndex].Cells["dvc_projectname"].Value = f.Title;
} }
} }
} }
} }
break; break;
} }
} }
private void toolStripLabel1_Click(object sender, EventArgs e) private void toolStripLabel1_Click(object sender, EventArgs e)
{ {
//시작일(inventory 에 uid 가 내것인 데이터) //시작일(inventory 에 uid 가 내것인 데이터)
var dataList = FCOMMON.DBM.getDateList("inventoryUser", "uid='" + FCOMMON.info.Login.no + "'", true); var dataList = FCOMMON.DBM.getDateList("inventoryUser", "uid='" + FCOMMON.info.Login.no + "'", true);
var f = new FCOMMON.fLovDateList(dataList); var f = new FCOMMON.fLovDateList(dataList);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{ {
dtSD.Text = f.selectedDate; dtSD.Text = f.selectedDate;
} }
} }
private void toolStripLabel2_Click(object sender, EventArgs e) private void toolStripLabel2_Click(object sender, EventArgs e)
{ {
var dataList = FCOMMON.DBM.getDateList("inventoryUser", "uid='" + FCOMMON.info.Login.no + "'", true); var dataList = FCOMMON.DBM.getDateList("inventoryUser", "uid='" + FCOMMON.info.Login.no + "'", true);
var f = new FCOMMON.fLovDateList(dataList); var f = new FCOMMON.fLovDateList(dataList);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{ {
dtED.Text = f.selectedDate; dtED.Text = f.selectedDate;
btSearch.PerformClick(); btSearch.PerformClick();
} }
} }
private void toolStripButton1_Click(object sender, EventArgs e) private void toolStripButton1_Click(object sender, EventArgs e)
{ {
var f = new Inventory.RepInvStockUser(this.tbName.Text.Trim()); var f = new Inventory.RepInvStockUser(this.tbName.Text.Trim());
f.MdiParent = this.MdiParent; f.MdiParent = this.MdiParent;
f.Show(); f.Show();
} }
private void toolStripLabel3_Click(object sender, EventArgs e) private void toolStripLabel3_Click(object sender, EventArgs e)
{ {
tbFind.Text = string.Empty; tbFind.Text = string.Empty;
btFind.PerformClick(); btFind.PerformClick();
} }
} }
} }

View File

@@ -71,9 +71,11 @@ namespace FCM0000
///입력된 데이터를 적용한다. ///입력된 데이터를 적용한다.
if (dr.pdate == "") dr.pdate = DateTime.Now.ToShortDateString();
dtPdate.Value = DateTime.Parse(dr.pdate); dtPdate.Value = DateTime.Parse(dr.pdate);
dtPdate.Value = DateTime.Parse(dr.pdate); dtPdate.Value = DateTime.Parse(dr.pdate);
// cmbRequest.Text = dr.userName; // cmbRequest.Text = dr.userName;
tbPumIDX.Text = dr.item.ToString();
tbSID.Text = dr.sid; tbSID.Text = dr.sid;
tbSID.Tag = tbSID.Text; tbSID.Tag = tbSID.Text;
tbPumIDX.Text = dr.item.ToString(); tbPumIDX.Text = dr.item.ToString();
@@ -233,6 +235,13 @@ namespace FCM0000
FCOMMON.DBM.UpdateItemSID(int.Parse(tbPumIDX.Text), tbSID.Text); FCOMMON.DBM.UpdateItemSID(int.Parse(tbPumIDX.Text), tbSID.Text);
} }
if(cmbPlace.Text.Trim() == "")
{
FCOMMON.Util.MsgE("보관소를 입력하세요");
cmbPlace.Focus();
return false;
}
dr.itemName = tbPumName.Text; dr.itemName = tbPumName.Text;
dr.itemModel = tbPumModel.Text; dr.itemModel = tbPumModel.Text;
dr.item = int.Parse( tbPumIDX.Text ); dr.item = int.Parse( tbPumIDX.Text );

View File

@@ -1,297 +1,297 @@
namespace FCM0000.Item namespace FCM0000.Item
{ {
partial class fItemAdd partial class fItemAdd
{ {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
/// </summary> /// </summary>
private System.ComponentModel.IContainer components = null; private System.ComponentModel.IContainer components = null;
/// <summary> /// <summary>
/// Clean up any resources being used. /// Clean up any resources being used.
/// </summary> /// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) protected override void Dispose(bool disposing)
{ {
if (disposing && (components != null)) if (disposing && (components != null))
{ {
components.Dispose(); components.Dispose();
} }
base.Dispose(disposing); base.Dispose(disposing);
} }
#region Windows Form Designer generated code #region Windows Form Designer generated code
/// <summary> /// <summary>
/// Required method for Designer support - do not modify /// Required method for Designer support - do not modify
/// the contents of this method with the code editor. /// the contents of this method with the code editor.
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.Windows.Forms.Label nameLabel; System.Windows.Forms.Label nameLabel;
System.Windows.Forms.Label sidLabel; System.Windows.Forms.Label sidLabel;
System.Windows.Forms.Label modelLabel; System.Windows.Forms.Label modelLabel;
System.Windows.Forms.Label manuLabel; System.Windows.Forms.Label manuLabel;
System.Windows.Forms.Label supplyLabel; System.Windows.Forms.Label supplyLabel;
System.Windows.Forms.Label memoLabel; System.Windows.Forms.Label memoLabel;
System.Windows.Forms.Label priceLabel; System.Windows.Forms.Label priceLabel;
System.Windows.Forms.Label label1; System.Windows.Forms.Label label1;
this.ta = new FCM0000.dsMSSQLTableAdapters.ItemsTableAdapter(); this.ta = new FCM0000.dsMSSQLTableAdapters.ItemsTableAdapter();
this.tbName = new System.Windows.Forms.TextBox(); this.tbName = new System.Windows.Forms.TextBox();
this.tbSid = new System.Windows.Forms.TextBox(); this.tbSid = new System.Windows.Forms.TextBox();
this.tbModel = new System.Windows.Forms.TextBox(); this.tbModel = new System.Windows.Forms.TextBox();
this.tbManu = new System.Windows.Forms.TextBox(); this.tbManu = new System.Windows.Forms.TextBox();
this.tbSupply = new System.Windows.Forms.TextBox(); this.tbSupply = new System.Windows.Forms.TextBox();
this.tbMemo = new System.Windows.Forms.TextBox(); this.tbMemo = new System.Windows.Forms.TextBox();
this.tbPrice = new System.Windows.Forms.TextBox(); this.tbPrice = new System.Windows.Forms.TextBox();
this.tbSupplyIdx = new System.Windows.Forms.TextBox(); this.tbSupplyIdx = new System.Windows.Forms.TextBox();
this.tbUnit = new System.Windows.Forms.TextBox(); this.tbUnit = new System.Windows.Forms.TextBox();
this.btOK = new System.Windows.Forms.Button(); this.btOK = new System.Windows.Forms.Button();
this.dsMSSQL = new FCM0000.dsMSSQL(); this.dsMSSQL = new FCM0000.dsMSSQL();
nameLabel = new System.Windows.Forms.Label(); nameLabel = new System.Windows.Forms.Label();
sidLabel = new System.Windows.Forms.Label(); sidLabel = new System.Windows.Forms.Label();
modelLabel = new System.Windows.Forms.Label(); modelLabel = new System.Windows.Forms.Label();
manuLabel = new System.Windows.Forms.Label(); manuLabel = new System.Windows.Forms.Label();
supplyLabel = new System.Windows.Forms.Label(); supplyLabel = new System.Windows.Forms.Label();
memoLabel = new System.Windows.Forms.Label(); memoLabel = new System.Windows.Forms.Label();
priceLabel = new System.Windows.Forms.Label(); priceLabel = new System.Windows.Forms.Label();
label1 = new System.Windows.Forms.Label(); label1 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// nameLabel // nameLabel
// //
nameLabel.AutoSize = true; nameLabel.AutoSize = true;
nameLabel.Location = new System.Drawing.Point(34, 17); nameLabel.Location = new System.Drawing.Point(34, 17);
nameLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); nameLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
nameLabel.Name = "nameLabel"; nameLabel.Name = "nameLabel";
nameLabel.Size = new System.Drawing.Size(55, 30); nameLabel.Size = new System.Drawing.Size(55, 30);
nameLabel.TabIndex = 0; nameLabel.TabIndex = 0;
nameLabel.Text = "품명"; nameLabel.Text = "품명";
// //
// sidLabel // sidLabel
// //
sidLabel.AutoSize = true; sidLabel.AutoSize = true;
sidLabel.Location = new System.Drawing.Point(44, 231); sidLabel.Location = new System.Drawing.Point(44, 231);
sidLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); sidLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
sidLabel.Name = "sidLabel"; sidLabel.Name = "sidLabel";
sidLabel.Size = new System.Drawing.Size(45, 30); sidLabel.Size = new System.Drawing.Size(45, 30);
sidLabel.TabIndex = 10; sidLabel.TabIndex = 10;
sidLabel.Text = "SID"; sidLabel.Text = "SID";
// //
// modelLabel // modelLabel
// //
modelLabel.AutoSize = true; modelLabel.AutoSize = true;
modelLabel.Location = new System.Drawing.Point(13, 63); modelLabel.Location = new System.Drawing.Point(13, 63);
modelLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); modelLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
modelLabel.Name = "modelLabel"; modelLabel.Name = "modelLabel";
modelLabel.Size = new System.Drawing.Size(76, 30); modelLabel.Size = new System.Drawing.Size(76, 30);
modelLabel.TabIndex = 8; modelLabel.TabIndex = 8;
modelLabel.Text = "모델명"; modelLabel.Text = "모델명";
// //
// manuLabel // manuLabel
// //
manuLabel.AutoSize = true; manuLabel.AutoSize = true;
manuLabel.Location = new System.Drawing.Point(13, 147); manuLabel.Location = new System.Drawing.Point(13, 147);
manuLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); manuLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
manuLabel.Name = "manuLabel"; manuLabel.Name = "manuLabel";
manuLabel.Size = new System.Drawing.Size(76, 30); manuLabel.Size = new System.Drawing.Size(76, 30);
manuLabel.TabIndex = 6; manuLabel.TabIndex = 6;
manuLabel.Text = "제조사"; manuLabel.Text = "제조사";
// //
// supplyLabel // supplyLabel
// //
supplyLabel.AutoSize = true; supplyLabel.AutoSize = true;
supplyLabel.Location = new System.Drawing.Point(13, 273); supplyLabel.Location = new System.Drawing.Point(13, 273);
supplyLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); supplyLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
supplyLabel.Name = "supplyLabel"; supplyLabel.Name = "supplyLabel";
supplyLabel.Size = new System.Drawing.Size(76, 30); supplyLabel.Size = new System.Drawing.Size(76, 30);
supplyLabel.TabIndex = 12; supplyLabel.TabIndex = 12;
supplyLabel.Text = "공급처"; supplyLabel.Text = "공급처";
// //
// memoLabel // memoLabel
// //
memoLabel.AutoSize = true; memoLabel.AutoSize = true;
memoLabel.Location = new System.Drawing.Point(34, 318); memoLabel.Location = new System.Drawing.Point(34, 318);
memoLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); memoLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
memoLabel.Name = "memoLabel"; memoLabel.Name = "memoLabel";
memoLabel.Size = new System.Drawing.Size(55, 30); memoLabel.Size = new System.Drawing.Size(55, 30);
memoLabel.TabIndex = 15; memoLabel.TabIndex = 15;
memoLabel.Text = "비고"; memoLabel.Text = "비고";
// //
// priceLabel // priceLabel
// //
priceLabel.AutoSize = true; priceLabel.AutoSize = true;
priceLabel.Location = new System.Drawing.Point(34, 188); priceLabel.Location = new System.Drawing.Point(34, 188);
priceLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); priceLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
priceLabel.Name = "priceLabel"; priceLabel.Name = "priceLabel";
priceLabel.Size = new System.Drawing.Size(55, 30); priceLabel.Size = new System.Drawing.Size(55, 30);
priceLabel.TabIndex = 8; priceLabel.TabIndex = 8;
priceLabel.Text = "단가"; priceLabel.Text = "단가";
// //
// ta // label1
// //
this.ta.ClearBeforeFill = true; label1.AutoSize = true;
// label1.Location = new System.Drawing.Point(34, 101);
// tbName label1.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
// label1.Name = "label1";
this.tbName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); label1.Size = new System.Drawing.Size(55, 30);
this.tbName.Location = new System.Drawing.Point(97, 17); label1.TabIndex = 4;
this.tbName.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); label1.Text = "단위";
this.tbName.Name = "tbName"; //
this.tbName.Size = new System.Drawing.Size(561, 35); // ta
this.tbName.TabIndex = 2; //
// this.ta.ClearBeforeFill = true;
// tbSid //
// // tbName
this.tbSid.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); //
this.tbSid.Location = new System.Drawing.Point(97, 228); this.tbName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.tbSid.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); this.tbName.Location = new System.Drawing.Point(97, 17);
this.tbSid.Name = "tbSid"; this.tbName.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.tbSid.Size = new System.Drawing.Size(561, 35); this.tbName.Name = "tbName";
this.tbSid.TabIndex = 11; this.tbName.Size = new System.Drawing.Size(561, 35);
this.tbSid.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.tbName.TabIndex = 2;
// //
// tbModel // tbSid
// //
this.tbModel.BackColor = System.Drawing.SystemColors.Window; this.tbSid.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.tbModel.Location = new System.Drawing.Point(97, 58); this.tbSid.Location = new System.Drawing.Point(97, 228);
this.tbModel.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); this.tbSid.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.tbModel.Name = "tbModel"; this.tbSid.Name = "tbSid";
this.tbModel.Size = new System.Drawing.Size(561, 35); this.tbSid.Size = new System.Drawing.Size(561, 35);
this.tbModel.TabIndex = 3; this.tbSid.TabIndex = 11;
// this.tbSid.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
// tbManu //
// // tbModel
this.tbManu.Location = new System.Drawing.Point(97, 144); //
this.tbManu.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); this.tbModel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(128)))));
this.tbManu.Name = "tbManu"; this.tbModel.Location = new System.Drawing.Point(97, 58);
this.tbManu.Size = new System.Drawing.Size(561, 35); this.tbModel.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.tbManu.TabIndex = 7; this.tbModel.Name = "tbModel";
// this.tbModel.Size = new System.Drawing.Size(561, 35);
// tbSupply this.tbModel.TabIndex = 3;
// //
this.tbSupply.Location = new System.Drawing.Point(97, 270); // tbManu
this.tbSupply.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); //
this.tbSupply.Name = "tbSupply"; this.tbManu.Location = new System.Drawing.Point(97, 144);
this.tbSupply.Size = new System.Drawing.Size(449, 35); this.tbManu.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.tbSupply.TabIndex = 13; this.tbManu.Name = "tbManu";
// this.tbManu.Size = new System.Drawing.Size(561, 35);
// tbMemo this.tbManu.TabIndex = 7;
// //
this.tbMemo.Location = new System.Drawing.Point(97, 311); // tbSupply
this.tbMemo.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); //
this.tbMemo.Name = "tbMemo"; this.tbSupply.Location = new System.Drawing.Point(97, 270);
this.tbMemo.Size = new System.Drawing.Size(561, 35); this.tbSupply.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.tbMemo.TabIndex = 16; this.tbSupply.Name = "tbSupply";
this.tbMemo.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.tbSupply.Size = new System.Drawing.Size(449, 35);
// this.tbSupply.TabIndex = 13;
// tbPrice //
// // tbMemo
this.tbPrice.Location = new System.Drawing.Point(97, 185); //
this.tbPrice.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); this.tbMemo.Location = new System.Drawing.Point(97, 311);
this.tbPrice.Name = "tbPrice"; this.tbMemo.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.tbPrice.Size = new System.Drawing.Size(561, 35); this.tbMemo.Name = "tbMemo";
this.tbPrice.TabIndex = 9; this.tbMemo.Size = new System.Drawing.Size(561, 35);
this.tbPrice.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.tbMemo.TabIndex = 16;
// this.tbMemo.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
// tbSupplyIdx //
// // tbPrice
this.tbSupplyIdx.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); //
this.tbSupplyIdx.Enabled = false; this.tbPrice.Location = new System.Drawing.Point(97, 185);
this.tbSupplyIdx.Location = new System.Drawing.Point(556, 270); this.tbPrice.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.tbSupplyIdx.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); this.tbPrice.Name = "tbPrice";
this.tbSupplyIdx.Name = "tbSupplyIdx"; this.tbPrice.Size = new System.Drawing.Size(561, 35);
this.tbSupplyIdx.Size = new System.Drawing.Size(102, 35); this.tbPrice.TabIndex = 9;
this.tbSupplyIdx.TabIndex = 14; this.tbPrice.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.tbSupplyIdx.Text = "-1"; //
this.tbSupplyIdx.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // tbSupplyIdx
// //
// tbUnit this.tbSupplyIdx.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
// this.tbSupplyIdx.Enabled = false;
this.tbUnit.Location = new System.Drawing.Point(97, 100); this.tbSupplyIdx.Location = new System.Drawing.Point(556, 270);
this.tbUnit.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); this.tbSupplyIdx.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.tbUnit.Name = "tbUnit"; this.tbSupplyIdx.Name = "tbSupplyIdx";
this.tbUnit.Size = new System.Drawing.Size(561, 35); this.tbSupplyIdx.Size = new System.Drawing.Size(102, 35);
this.tbUnit.TabIndex = 5; this.tbSupplyIdx.TabIndex = 14;
this.tbUnit.Text = "EA"; this.tbSupplyIdx.Text = "-1";
this.tbUnit.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.tbSupplyIdx.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
// //
// label1 // tbUnit
// //
label1.AutoSize = true; this.tbUnit.Location = new System.Drawing.Point(97, 100);
label1.Location = new System.Drawing.Point(34, 101); this.tbUnit.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
label1.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); this.tbUnit.Name = "tbUnit";
label1.Name = "label1"; this.tbUnit.Size = new System.Drawing.Size(561, 35);
label1.Size = new System.Drawing.Size(55, 30); this.tbUnit.TabIndex = 5;
label1.TabIndex = 4; this.tbUnit.Text = "EA";
label1.Text = "단위"; this.tbUnit.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
// //
// btOK // btOK
// //
this.btOK.Location = new System.Drawing.Point(97, 357); this.btOK.Location = new System.Drawing.Point(97, 357);
this.btOK.Name = "btOK"; this.btOK.Name = "btOK";
this.btOK.Size = new System.Drawing.Size(561, 40); this.btOK.Size = new System.Drawing.Size(561, 40);
this.btOK.TabIndex = 17; this.btOK.TabIndex = 17;
this.btOK.Text = "확인"; this.btOK.Text = "확인";
this.btOK.UseVisualStyleBackColor = true; this.btOK.UseVisualStyleBackColor = true;
this.btOK.Click += new System.EventHandler(this.btOK_Click); this.btOK.Click += new System.EventHandler(this.btOK_Click);
// //
// dsMSSQL // dsMSSQL
// //
this.dsMSSQL.DataSetName = "dsMSSQL"; this.dsMSSQL.DataSetName = "dsMSSQL";
this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
// //
// fItemAdd // fItemAdd
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 30F); this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 30F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(669, 409); this.ClientSize = new System.Drawing.Size(669, 409);
this.Controls.Add(this.btOK); this.Controls.Add(this.btOK);
this.Controls.Add(nameLabel); this.Controls.Add(nameLabel);
this.Controls.Add(this.tbName); this.Controls.Add(this.tbName);
this.Controls.Add(sidLabel); this.Controls.Add(sidLabel);
this.Controls.Add(this.tbSid); this.Controls.Add(this.tbSid);
this.Controls.Add(label1); this.Controls.Add(label1);
this.Controls.Add(modelLabel); this.Controls.Add(modelLabel);
this.Controls.Add(this.tbModel); this.Controls.Add(this.tbModel);
this.Controls.Add(manuLabel); this.Controls.Add(manuLabel);
this.Controls.Add(this.tbManu); this.Controls.Add(this.tbManu);
this.Controls.Add(supplyLabel); this.Controls.Add(supplyLabel);
this.Controls.Add(this.tbSupply); this.Controls.Add(this.tbSupply);
this.Controls.Add(memoLabel); this.Controls.Add(memoLabel);
this.Controls.Add(this.tbMemo); this.Controls.Add(this.tbMemo);
this.Controls.Add(priceLabel); this.Controls.Add(priceLabel);
this.Controls.Add(this.tbPrice); this.Controls.Add(this.tbPrice);
this.Controls.Add(this.tbSupplyIdx); this.Controls.Add(this.tbSupplyIdx);
this.Controls.Add(this.tbUnit); this.Controls.Add(this.tbUnit);
this.Font = new System.Drawing.Font("맑은 고딕", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.Font = new System.Drawing.Font("맑은 고딕", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8); this.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
this.MaximizeBox = false; this.MaximizeBox = false;
this.MinimizeBox = false; this.MinimizeBox = false;
this.Name = "fItemAdd"; this.Name = "fItemAdd";
this.Text = "품목 추가"; this.Text = "품목 추가";
this.Load += new System.EventHandler(this.fItemAdd_Load); this.Load += new System.EventHandler(this.fItemAdd_Load);
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
} }
#endregion #endregion
private dsMSSQLTableAdapters.ItemsTableAdapter ta; private dsMSSQLTableAdapters.ItemsTableAdapter ta;
private System.Windows.Forms.Button btOK; private System.Windows.Forms.Button btOK;
private dsMSSQL dsMSSQL; private dsMSSQL dsMSSQL;
public System.Windows.Forms.TextBox tbName; public System.Windows.Forms.TextBox tbName;
public System.Windows.Forms.TextBox tbSid; public System.Windows.Forms.TextBox tbSid;
public System.Windows.Forms.TextBox tbModel; public System.Windows.Forms.TextBox tbModel;
public System.Windows.Forms.TextBox tbManu; public System.Windows.Forms.TextBox tbManu;
public System.Windows.Forms.TextBox tbSupply; public System.Windows.Forms.TextBox tbSupply;
public System.Windows.Forms.TextBox tbMemo; public System.Windows.Forms.TextBox tbMemo;
public System.Windows.Forms.TextBox tbPrice; public System.Windows.Forms.TextBox tbPrice;
public System.Windows.Forms.TextBox tbSupplyIdx; public System.Windows.Forms.TextBox tbSupplyIdx;
public System.Windows.Forms.TextBox tbUnit; public System.Windows.Forms.TextBox tbUnit;
} }
} }

View File

@@ -1,102 +1,109 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
namespace FCM0000.Item namespace FCM0000.Item
{ {
public partial class fItemAdd : FCOMMON.fBase public partial class fItemAdd : FCOMMON.fBase
{ {
public int newIDX = -1; public int newIDX = -1;
public fItemAdd() public fItemAdd()
{ {
InitializeComponent(); InitializeComponent();
foreach (Control ctl in this.Controls) foreach (Control ctl in this.Controls)
{ {
if (ctl.GetType() == typeof(TextBox) || ctl.GetType() == typeof(ComboBox)) if (ctl.GetType() == typeof(TextBox) || ctl.GetType() == typeof(ComboBox))
{ {
ctl.KeyDown += ctl_KeyDown; ctl.KeyDown += ctl_KeyDown;
} }
} }
} }
void ctl_KeyDown(object sender, KeyEventArgs e) void ctl_KeyDown(object sender, KeyEventArgs e)
{ {
if (e.KeyCode == Keys.Enter) if (e.KeyCode == Keys.Enter)
{ {
Control ctl = sender as Control; Control ctl = sender as Control;
string nm = ctl.Name.ToLower(); string nm = ctl.Name.ToLower();
string search = ctl.Text.Trim(); string search = ctl.Text.Trim();
SendKeys.Send("{TAB}"); SendKeys.Send("{TAB}");
} }
} }
private void fItemAdd_Load(object sender, EventArgs e) private void fItemAdd_Load(object sender, EventArgs e)
{ {
} }
private void btOK_Click(object sender, EventArgs e) private void btOK_Click(object sender, EventArgs e)
{ {
if(tbName.Text.Trim()=="") if(tbName.Text.Trim()=="")
{ {
FCOMMON.Util.MsgE("품명은 필수 입니다"); FCOMMON.Util.MsgE("품명은 필수 입니다");
return; tbName.Focus();
} return;
var pumName = tbName.Text.Trim(); }
var pumModel = tbModel.Text.Trim(); if(tbModel.Text.Trim() == "")
var searchKey = pumName + pumModel; {
var cnt = (int)(ta.ExistCheck(FCOMMON.info.Login.gcode, searchKey)); FCOMMON.Util.MsgE("모델은 필수 입니다");
if(cnt > 0) tbModel.Focus();
{ return;
FCOMMON.Util.MsgE("동일 품명 모델의 정보가 존재 합니다"); }
return; var pumName = tbName.Text.Trim();
} var pumModel = tbModel.Text.Trim();
if (tbSupplyIdx.Text == "") tbSupplyIdx.Text = "-1"; var searchKey = pumName + pumModel;
var newdr = this.dsMSSQL.Items.NewItemsRow(); var cnt = (int)(ta.ExistCheck(FCOMMON.info.Login.gcode, searchKey));
newdr.gcode = FCOMMON.info.Login.gcode; if(cnt > 0)
newdr.wdate = DateTime.Now; {
newdr.wuid = FCOMMON.info.Login.no; FCOMMON.Util.MsgE("동일 품명 모델의 정보가 존재 합니다");
newdr.name = tbName.Text.Trim(); return;
newdr.sid = tbSid.Text.Trim(); }
newdr.model = tbModel.Text.Trim(); if (tbSupplyIdx.Text == "") tbSupplyIdx.Text = "-1";
newdr.manu = tbManu.Text.Trim(); var newdr = this.dsMSSQL.Items.NewItemsRow();
newdr.supply = tbSupply.Text.Trim(); newdr.gcode = FCOMMON.info.Login.gcode;
newdr.supplyidx = int.Parse(tbSupplyIdx.Text.Trim()); newdr.wdate = DateTime.Now;
newdr.memo = tbMemo.Text.Trim(); newdr.wuid = FCOMMON.info.Login.no;
newdr.cate = "--"; newdr.name = tbName.Text.Trim();
int price; newdr.sid = tbSid.Text.Trim();
int.TryParse(tbPrice.Text, out price); newdr.model = tbModel.Text.Trim();
newdr.price = price; newdr.manu = tbManu.Text.Trim();
newdr.scale = 1; newdr.supply = tbSupply.Text.Trim();
newdr.unit = tbUnit.Text.Trim(); newdr.supplyidx = int.Parse(tbSupplyIdx.Text.Trim());
if (newdr.unit == "") newdr.unit = "EA"; newdr.memo = tbMemo.Text.Trim();
newdr.disable = false; newdr.cate = "--";
newdr.import = ""; int price;
this.dsMSSQL.Items.AddItemsRow(newdr); int.TryParse(tbPrice.Text, out price);
try newdr.price = price;
{ newdr.scale = 1;
var cnt2 = ta.Update(dsMSSQL.Items); newdr.unit = tbUnit.Text.Trim();
if (cnt2 == 0) if (newdr.unit == "") newdr.unit = "EA";
{ newdr.disable = false;
FCOMMON.Util.MsgE("추가 실패"); newdr.import = "";
} this.dsMSSQL.Items.AddItemsRow(newdr);
else try
{ {
newIDX = (int)(ta.ReadIDX(FCOMMON.info.Login.gcode, searchKey)); var cnt2 = ta.Update(dsMSSQL.Items);
DialogResult = System.Windows.Forms.DialogResult.OK; if (cnt2 == 0)
} {
} FCOMMON.Util.MsgE("추가 실패");
catch (Exception eX) }
{ else
FCOMMON.Util.MsgE(eX.Message); {
newIDX = -1; newIDX = (int)(ta.ReadIDX(FCOMMON.info.Login.gcode, searchKey));
} DialogResult = System.Windows.Forms.DialogResult.OK;
} }
} }
} catch (Exception eX)
{
FCOMMON.Util.MsgE(eX.Message);
newIDX = -1;
}
}
}
}

View File

@@ -1,150 +1,150 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0 Version 2.0
The primary goals of this format is to allow a simple XML format The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes various data types are done through the TypeConverter classes
associated with the data types. associated with the data types.
Example: Example:
... ado.net/XML headers & schema ... ... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader> <resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, 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="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="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value> <value>[base64 mime encoded serialized .NET Framework object]</value>
</data> </data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <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> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment> <comment>This is a comment</comment>
</data> </data>
There are any number of "resheader" rows that contain simple There are any number of "resheader" rows that contain simple
name/value pairs. name/value pairs.
Each data row contains a name, and value. The row also contains a Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture. text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the Classes that don't support this are serialized and stored with the
mimetype set. mimetype set.
The mimetype is used for serialized objects, and tells the The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly: extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below. read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64 mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64 mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter : using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding. : 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: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:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true"> <xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType> <xsd:complexType>
<xsd:choice maxOccurs="unbounded"> <xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata"> <xsd:element name="metadata">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" /> <xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" /> <xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="assembly"> <xsd:element name="assembly">
<xsd:complexType> <xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="data"> <xsd:element name="data">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <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:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <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="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" /> <xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="resheader"> <xsd:element name="resheader">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" /> <xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
</xsd:choice> </xsd:choice>
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
</xsd:schema> </xsd:schema>
<resheader name="resmimetype"> <resheader name="resmimetype">
<value>text/microsoft-resx</value> <value>text/microsoft-resx</value>
</resheader> </resheader>
<resheader name="version"> <resheader name="version">
<value>2.0</value> <value>2.0</value>
</resheader> </resheader>
<resheader name="reader"> <resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="nameLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="nameLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="sidLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="sidLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="modelLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="modelLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="manuLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="manuLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="supplyLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="supplyLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="memoLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="memoLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="priceLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="priceLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>122, 17</value> <value>False</value>
</metadata> </metadata>
<metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>False</value> <value>122, 17</value>
</metadata> </metadata>
<metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
</root> </root>

View File

@@ -81,6 +81,7 @@
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.memoTextBox = new System.Windows.Forms.TextBox(); this.memoTextBox = new System.Windows.Forms.TextBox();
@@ -114,7 +115,6 @@
this.taPurchase = new FCM0000.dsMSSQLTableAdapters.PurchaseTableAdapter(); this.taPurchase = new FCM0000.dsMSSQLTableAdapters.PurchaseTableAdapter();
this.bsStaff = new System.Windows.Forms.BindingSource(this.components); this.bsStaff = new System.Windows.Forms.BindingSource(this.components);
this.taStaff = new FCM0000.dsMSSQLTableAdapters.StaffTableAdapter(); this.taStaff = new FCM0000.dsMSSQLTableAdapters.StaffTableAdapter();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout(); this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
@@ -122,12 +122,12 @@
this.cm1.SuspendLayout(); this.cm1.SuspendLayout();
this.toolStrip1.SuspendLayout(); this.toolStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
this.panIMage.SuspendLayout(); this.panIMage.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.toolStrip2.SuspendLayout(); this.toolStrip2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bsStaff)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bsStaff)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// bn // bn
@@ -438,11 +438,13 @@
// //
this.cmbSort.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbSort.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbSort.Items.AddRange(new object[] { this.cmbSort.Items.AddRange(new object[] {
"idx", "--",
"idx",
"sid", "sid",
"sid,name", "sid,name",
"name", "name",
"cate"}); "cate"
});
this.cmbSort.Name = "cmbSort"; this.cmbSort.Name = "cmbSort";
this.cmbSort.Size = new System.Drawing.Size(100, 37); this.cmbSort.Size = new System.Drawing.Size(100, 37);
this.cmbSort.SelectedIndexChanged += new System.EventHandler(this.cmbSort_SelectedIndexChanged); this.cmbSort.SelectedIndexChanged += new System.EventHandler(this.cmbSort_SelectedIndexChanged);
@@ -485,6 +487,120 @@
this.fpSpread1.Size = new System.Drawing.Size(877, 551); this.fpSpread1.Size = new System.Drawing.Size(877, 551);
this.fpSpread1.TabIndex = 3; this.fpSpread1.TabIndex = 3;
// //
// fpSpread1_Sheet1
//
this.fpSpread1_Sheet1.Reset();
this.fpSpread1_Sheet1.SheetName = "Sheet1";
// Formulas and custom names must be loaded with R1C1 reference style
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
this.fpSpread1_Sheet1.ColumnCount = 11;
this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
this.fpSpread1_Sheet1.ActiveRowIndex = -1;
this.fpSpread1_Sheet1.AutoGenerateColumns = false;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "IDX";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "분류";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "품명";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "SID#";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "모델명";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "매입가";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "제조사";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "규격";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "단위";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "공급처";
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 42F;
this.fpSpread1_Sheet1.Columns.Get(0).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType1.DecimalPlaces = 0;
numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType1.MaximumValue = 2147483647D;
numberCellType1.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = numberCellType1;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "idx";
this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Label = "IDX";
this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Width = 88F;
this.fpSpread1_Sheet1.Columns.Get(1).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType1;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "cate";
this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Label = "분류";
this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Width = 113F;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType2;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "name";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(2).Label = "품명";
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Width = 113F;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType3;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "sid";
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Label = "SID#";
this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Width = 113F;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType4;
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "model";
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(4).Label = "모델명";
this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).Width = 113F;
currencyCellType1.DecimalPlaces = 0;
currencyCellType1.MaximumValue = new decimal(new int[] {
10000000,
0,
0,
0});
currencyCellType1.MinimumValue = new decimal(new int[] {
10000000,
0,
0,
-2147483648});
currencyCellType1.NegativeRed = true;
currencyCellType1.NullDisplay = "--";
currencyCellType1.Separator = ",";
currencyCellType1.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = currencyCellType1;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "price";
this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(5).Label = "매입가";
this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Width = 123F;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType5;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "manu";
this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(6).Label = "제조사";
this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Width = 113F;
numberCellType2.MaximumValue = 999999999999999D;
numberCellType2.MinimumValue = -999999999999999D;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = numberCellType2;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "scale";
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).Label = "규격";
this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).Width = 84F;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType6;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "unit";
this.fpSpread1_Sheet1.Columns.Get(8).Label = "단위";
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType7;
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "supply";
this.fpSpread1_Sheet1.Columns.Get(9).Tag = "supplyname";
this.fpSpread1_Sheet1.Columns.Get(9).Visible = false;
comboBoxCellType1.AllowEditorVerticalAlign = true;
comboBoxCellType1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
comboBoxCellType1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
comboBoxCellType1.ButtonAlign = FarPoint.Win.ButtonAlign.Right;
comboBoxCellType1.EditorValue = FarPoint.Win.Spread.CellType.EditorValue.ItemData;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = comboBoxCellType1;
this.fpSpread1_Sheet1.Columns.Get(10).DataField = "supplyidx";
this.fpSpread1_Sheet1.Columns.Get(10).Label = "공급처";
this.fpSpread1_Sheet1.Columns.Get(10).Tag = "supply";
this.fpSpread1_Sheet1.DataAutoCellTypes = false;
this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
this.fpSpread1_Sheet1.DataSource = this.bs;
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
// panel1 // panel1
// //
this.panel1.Dock = System.Windows.Forms.DockStyle.Right; this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
@@ -623,6 +739,7 @@
this.lvSupplyDamdang.Dock = System.Windows.Forms.DockStyle.Bottom; this.lvSupplyDamdang.Dock = System.Windows.Forms.DockStyle.Bottom;
this.lvSupplyDamdang.FullRowSelect = true; this.lvSupplyDamdang.FullRowSelect = true;
this.lvSupplyDamdang.GridLines = true; this.lvSupplyDamdang.GridLines = true;
this.lvSupplyDamdang.HideSelection = false;
this.lvSupplyDamdang.Location = new System.Drawing.Point(3, 301); this.lvSupplyDamdang.Location = new System.Drawing.Point(3, 301);
this.lvSupplyDamdang.Name = "lvSupplyDamdang"; this.lvSupplyDamdang.Name = "lvSupplyDamdang";
this.lvSupplyDamdang.Size = new System.Drawing.Size(376, 80); this.lvSupplyDamdang.Size = new System.Drawing.Size(376, 80);
@@ -667,6 +784,7 @@
this.lvInDate.Dock = System.Windows.Forms.DockStyle.Bottom; this.lvInDate.Dock = System.Windows.Forms.DockStyle.Bottom;
this.lvInDate.FullRowSelect = true; this.lvInDate.FullRowSelect = true;
this.lvInDate.GridLines = true; this.lvInDate.GridLines = true;
this.lvInDate.HideSelection = false;
this.lvInDate.Location = new System.Drawing.Point(3, 403); this.lvInDate.Location = new System.Drawing.Point(3, 403);
this.lvInDate.Name = "lvInDate"; this.lvInDate.Name = "lvInDate";
this.lvInDate.Size = new System.Drawing.Size(376, 80); this.lvInDate.Size = new System.Drawing.Size(376, 80);
@@ -719,6 +837,7 @@
this.lvOrder.Dock = System.Windows.Forms.DockStyle.Bottom; this.lvOrder.Dock = System.Windows.Forms.DockStyle.Bottom;
this.lvOrder.FullRowSelect = true; this.lvOrder.FullRowSelect = true;
this.lvOrder.GridLines = true; this.lvOrder.GridLines = true;
this.lvOrder.HideSelection = false;
this.lvOrder.Location = new System.Drawing.Point(3, 505); this.lvOrder.Location = new System.Drawing.Point(3, 505);
this.lvOrder.Name = "lvOrder"; this.lvOrder.Name = "lvOrder";
this.lvOrder.Size = new System.Drawing.Size(376, 80); this.lvOrder.Size = new System.Drawing.Size(376, 80);
@@ -764,120 +883,6 @@
// //
this.taStaff.ClearBeforeFill = true; this.taStaff.ClearBeforeFill = true;
// //
// fpSpread1_Sheet1
//
this.fpSpread1_Sheet1.Reset();
this.fpSpread1_Sheet1.SheetName = "Sheet1";
// Formulas and custom names must be loaded with R1C1 reference style
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
this.fpSpread1_Sheet1.ColumnCount = 11;
this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
this.fpSpread1_Sheet1.ActiveRowIndex = -1;
this.fpSpread1_Sheet1.AutoGenerateColumns = false;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "IDX";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "분류";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "품명";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "SID#";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "모델명";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "매입가";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "제조사";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "규격";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 8).Value = "단위";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "공급처";
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 42F;
this.fpSpread1_Sheet1.Columns.Get(0).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType1.DecimalPlaces = 0;
numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType1.MaximumValue = 2147483647D;
numberCellType1.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = numberCellType1;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "idx";
this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Label = "IDX";
this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Width = 88F;
this.fpSpread1_Sheet1.Columns.Get(1).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType1;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "cate";
this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Label = "분류";
this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Width = 113F;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType2;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "name";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(2).Label = "품명";
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Width = 113F;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType3;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "sid";
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Label = "SID#";
this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Width = 113F;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType4;
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "model";
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(4).Label = "모델명";
this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).Width = 113F;
currencyCellType1.DecimalPlaces = 0;
currencyCellType1.MaximumValue = new decimal(new int[] {
10000000,
0,
0,
0});
currencyCellType1.MinimumValue = new decimal(new int[] {
10000000,
0,
0,
-2147483648});
currencyCellType1.NegativeRed = true;
currencyCellType1.NullDisplay = "--";
currencyCellType1.Separator = ",";
currencyCellType1.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = currencyCellType1;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "price";
this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(5).Label = "매입가";
this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Width = 123F;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType5;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "manu";
this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(6).Label = "제조사";
this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Width = 113F;
numberCellType2.MaximumValue = 999999999999999D;
numberCellType2.MinimumValue = -999999999999999D;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = numberCellType2;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "scale";
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).Label = "규격";
this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).Width = 84F;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType6;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "unit";
this.fpSpread1_Sheet1.Columns.Get(8).Label = "단위";
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType7;
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "supply";
this.fpSpread1_Sheet1.Columns.Get(9).Tag = "supplyname";
this.fpSpread1_Sheet1.Columns.Get(9).Visible = false;
comboBoxCellType1.AllowEditorVerticalAlign = true;
comboBoxCellType1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
comboBoxCellType1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
comboBoxCellType1.ButtonAlign = FarPoint.Win.ButtonAlign.Right;
comboBoxCellType1.EditorValue = FarPoint.Win.Spread.CellType.EditorValue.ItemData;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = comboBoxCellType1;
this.fpSpread1_Sheet1.Columns.Get(10).DataField = "supplyidx";
this.fpSpread1_Sheet1.Columns.Get(10).Label = "공급처";
this.fpSpread1_Sheet1.Columns.Get(10).Tag = "supply";
this.fpSpread1_Sheet1.DataAutoCellTypes = false;
this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
this.fpSpread1_Sheet1.DataSource = this.bs;
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
// fItems // fItems
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -900,6 +905,7 @@
this.toolStrip1.ResumeLayout(false); this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout(); this.toolStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
this.groupBox1.ResumeLayout(false); this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout(); this.groupBox1.PerformLayout();
this.panIMage.ResumeLayout(false); this.panIMage.ResumeLayout(false);
@@ -908,7 +914,6 @@
this.toolStrip2.ResumeLayout(false); this.toolStrip2.ResumeLayout(false);
this.toolStrip2.PerformLayout(); this.toolStrip2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.bsStaff)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bsStaff)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();

View File

@@ -54,7 +54,7 @@ namespace FCM0000
cy.EditorValueChanged += cy_EditorValueChanged; cy.EditorValueChanged += cy_EditorValueChanged;
this.cmbSort.SelectedIndex = 2; this.cmbSort.SelectedIndex = 0;
refreshData(); refreshData();
} }
@@ -85,6 +85,7 @@ namespace FCM0000
e.Row["wuid"] = FCOMMON.info.Login.no; e.Row["wuid"] = FCOMMON.info.Login.no;
e.Row["wdate"] = DateTime.Now; e.Row["wdate"] = DateTime.Now;
e.Row["gcode"] = FCOMMON.info.Login.gcode; e.Row["gcode"] = FCOMMON.info.Login.gcode;
if(this.cmbCate.SelectedIndex > 0) e.Row["cate"] = this.cmbCate.Text.Trim();
} }
private void itemsBindingNavigatorSaveItem_Click(object sender, EventArgs e) private void itemsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{ {
@@ -97,7 +98,8 @@ namespace FCM0000
try try
{ {
this.tam.UpdateAll(this.dsMSSQL); var cnt = this.tam.UpdateAll(this.dsMSSQL);
FCOMMON.Util.MsgI(cnt.ToString() + "건의 자료가 저장 되었습니다");
} }
catch (Exception ex) catch (Exception ex)
{ {
@@ -158,7 +160,7 @@ namespace FCM0000
bs.Filter = filter; bs.Filter = filter;
tbFind.BackColor = Color.Lime; tbFind.BackColor = Color.Lime;
} }
catch (Exception ex) catch
{ {
tbFind.BackColor = Color.Pink; tbFind.BackColor = Color.Pink;
} }
@@ -218,7 +220,7 @@ namespace FCM0000
var img1 = FCOMMON.DBM.GetImageData("Items", "image", dr.idx); var img1 = FCOMMON.DBM.GetImageData("Items", "image", dr.idx);
if (img1 != null) this.pictureBox1.Image = img1; if (img1 != null) this.pictureBox1.Image = img1;
else this.pictureBox1.Image = null; else this.pictureBox1.Image = null;
} catch (Exception ex) } catch
{ {
this.pictureBox1.Image = null; this.pictureBox1.Image = null;
} }
@@ -313,7 +315,8 @@ namespace FCM0000
private void cmbSort_SelectedIndexChanged(object sender, EventArgs e) private void cmbSort_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.bs.Sort = cmbSort.Text; if (cmbSort.Text == "--") this.bs.Sort = "";
else this.bs.Sort = cmbSort.Text;
} }
private void toolStripButton3_Click(object sender, EventArgs e) private void toolStripButton3_Click(object sender, EventArgs e)

View File

@@ -223,19 +223,19 @@
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAL1SURBVEhLtVZbTxNBFCZeYrxEjY8++KKiMfHFRAgvCv4H YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAL1SURBVEhLtVZbTxNBFCZeYrxEjY8++KKiMfHFRAgvCv4H
o/4Bn9RoDBETzcQgRmjLtrbQVuwFygKloZZud5dLJYZCdxce5NpCQMrFpLyYlKeSCFl7mmlizEB3YPsl o/4Bn9RoDBETzcQgRmjLtrbQVuwFygKloZZud5dLJYZCdxceoAIthDuYlBcDPpVEyNrTTBNjBroD2y/5
XyY7e+b7MufMnN0yPfDC5D/52ui8/q6lpwZGeMav9Mf93t6jjE947hVkMTCeXI/OpLfHUlsqjPDsys0z MtnZM9+XOWfm7JbogRcm/8nXRuf1d01dVTDCM36lP+53dx9lfMJzryCLgdHUWjSR3h5Z/q3CCM+u7DzT
nZFnCKEjeMnh0dQerPIOKJKS2tqZ/q2qe1FJZXbcvBT/0B6uwksPDsYnPgpP/lwnGe3FoLSwZmaFh1iC HnmGEDqClxweDa3BCm+fIilLWzuJX6q6F5WlzR03L8U/tIYr8NKDg/GJj8Lji2sko70YlGZXzazwEEvQ
HgZ3+HZIWVwliRdjcGL5VxN7gJ1DTSG9JFGthLRT1xwOUrGaFqO8ktmBA4cltcHDSwMkMVp6eVnEksXx w+AO3w4pcysk8UIMji38bGAPsHOoKaSXJKqVkHbqmsNBKlTTQpQXN3fgwGFJbfDwUh9JjJZeXhaxZGG8
0tBxOhhLbJCEaAlXTfM9r238cu3b7OY2SYiW4kw6W9vovoql9wdq7bo3lsoQhWgZW8moyNpdjaX3R53x NLSdDsaS6yQhWsJV03zPq+u/XPv2Y2ObJERLIZHOVNe7r2Lp/YGaO+6NLG8RhWgZW9pSkbWzEkvvjxrj
c/nAzGaWJERLcSqdrTO1XcHS+wMh5ymoDUmIln3x5BpVL4feSxKipUeUeSypDXD/oPeSxLRSTmX+mDv4 51IxsZEhCdFSmEhnakwtV7D0/kDIeQpqQxKiZU88tUrVy6H3koRo6RFlHktqA9w/6L0kMa2Ulzf/mNv4
J1hSG6DjuMTDdS6PII1Td67cgmNGT/9wv7xIFC3G0MTyBnWvfmqxnGjuCHFcfFb1RyfV8MQSUXwvwteJ J1hSG6DjuMTDdS6PII1Sd67sgmNGT+9grzxHFC3E0NjCOnWvfmqxnGhsC3FcfEr1R8fV8Ng8UXwvwteJ
6eYfYDltgBNt8H4VOWlWFZSEysXn1CZPKObi4hL0XpJRgVBTSK/BFarEctqAGM/53E5jEWkubwqj0R0a 6eQfYDltgBNt8H4VOWlKFZSkysWn1QZPKObi4hL0XpJRnlBTSK/BFSrHctqAGM/57E5jEWk6Zwqj0R3q
hAxAreDAuUVZgCsiTqez8AcCY1BKrkJPhoNEX1NT2wUry49G5Pm8KS/Nq80+boh0B2EOmgyyd1fDeOB/ hwxAreDAuUVZgCsiTKYz8AcCY1BKrUBPhoNEX1NTywUryw9H5JmcKS/NqI0+boB0B2EOmgyyd1bCeOB/
LmTtumjt4hWhYKrMq2Y2MopstjM4RH/UW7yXbX5+is8ZgimYmzvDk5ABHKI/Guy+G3b/4FzeML/ThGpj LmTtuGjt4BUhb6rMqGY2MoxstjM4RH/UWryXbX5+ks8agimYm9vD45ABHKI/6uy+G3Z//3TOMLfTpGpj
+SnIAA7RH+8dPbccgWiiYAq0B8QfyNx+CYfoj3pH5x1H3/DSf6aJ3OerHIfoj1cfnedaA9HFf03bgtHk +UnIAA7RH+8dXbccgWgybwq0B8QJZG69hEP0R62j/Y6jZ3D+P9Nk9vNVikP0x6uPznPNgejcv6YtwWjq
G6v/Jg4pDd4yrsrAiLxbMHXldo4+sRX4denw2Ok8zvi4770j0q6zb2ihoYW9i1+VHmCOTN4KZPGdxVMl jdV/E4cUB28ZV3lgSNrNm7qyO0ef2DL8unh47HQeZ3zc9+6h+K6zZ2C2rom9i18VH2COTN4yZPGdxVNF
RlnZX9i+Wt0gvITgAAAAAElFTkSuQmCC RknJX+KoWsB5oN9wAAAAAElFTkSuQmCC
</value> </value>
</data> </data>
<metadata name="cm1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="cm1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
@@ -282,25 +282,25 @@
<data name="toolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="toolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAQjSURBVEhLtVdbT1NZGD3RMfoTHI2JxrvvOibz4KvRiYhi YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAQgSURBVEhLtVdbT1NZGD3RmehPcJyYaLz7PqOJD74anYgo
KgplSqvUKyqVKkgOVkXaA7SjRWS0gxVs8YIadKgUG0Da0lJHYCaZeqetipcoBby8aafrsDc9QlU6HFey pqJQLK1SryhWKiA52BmR9gCtThFRURBsvaETVCrFBpC2tFQFNBHvPUXFS5QCo75p7TrsTY9QlcpxJTs9
05N8a3+r+/JdNpMo1q27MHHV3qvT1hY0/rSmoPHnpPwbM5axzT8Qs7iQsE3zZKVubmtFt2O3yR/Mqbrf ybf2t7ov32UzsWLVqrPjl+36b/LK3Pr5K3LrF8blXJ2yiG38hZilhYxtmKUocnObSjsdO8q7AhnH7/ey
x9YGPx2s643kmvwfUjWOFYQqDiRs80z5bz7rvrMP3ugawhHO1j9qHL7yMrJB0/QLmTJ+SHUulcp8/yln Vv7T3pqeUOaxux8SdY4lhCoNZGzjVOUBn3X3yYdvDXXBEGfrGzH+ufgqtEbX8BeZMnbIDS6NpvLBM84W
iy9Ix0hhqbbNkX2yOzBypBU7Q2sLbEmENho4w0ydu7LQ2vteKIAV51qDAzsq/3FvMXZaFYaOUwqD17TJ XZCO4cJyfYsj/XAnP3wkFTi7V+ba4ghtJHCGqQZ3WZ6l571YACvOtAb6t5bdcW80t1tVprajKpO3fL3J
4KlPYW8uIdOZbRXdjcJ5GCpz4EU650onlPiAaFF970c6SdfQH1GbHz7LLPVWSoqa5hHaFzFaOByRlrTX U5vAXvuTTGc2l3bWi+dhaCr4l8mcK5lQogOi+bXPP9JJhrq+kLby0fPUIm+ZLL9hFqF9FSOFgyF5YWst
E3N8YHuFK9X+2RfJOuZrTeNaZxHKNxFvxXnWwPuMYtdOQvkcuEhDZxoTles7Li/f0TCZUMYEKqy2BsLF MUcHtle8Uv2V3lDaQV9zEtc8jVC+i2grzrL436cUuLYRypfARRo804io0th2YfHWugmEMipQYa2VDxZc
1/uGxVVn/KG4C1AYPLX0ImF7s47fbklUFIAwzjStuE2uNHa6qTB8Ksp81YQ2hI0ax3yEDCXhTBPZXiE2 7h0S11R0dUddgMrkOU0vErY37d8bTbGKAhDGmSYVtCjV5nY3FYZPVbGvitAGsVbnmI2QoSScaSzbK8ba
HnW2pHGu9fherWlZCF/Ur+rM4xepGvtcngjIODdH4xS/sjLvSWJKGElq20zyyUOh9/4RC8mo72giIiaG /c6mJM61Gt/LdU1z4Yv61VQ8eZmos88UiICCc3M0TvGrKPYeJqaYEae1TSWfAlRG7/FISIZ9hxMRMTEM
QUai/yrf0jO4RvivxglEQq6lZ4D631LeZecNiFukQWrYWdHl4g0iYvuJvz3UP7T43L4y79r0/ebH/dSg MhL9VzkW/8AK8b8aIxAJmRZ/P/W/saTDLhgQt0iD1LCttMMlGCTElkO3PdQ/tITcvjT70u9ZlU/6qEFt
NN6pJXzRoDx25zz1v9/c048iwySz9qUH60LDCSNT76skfNEAn9Q/iktynn0pg/JWWBf8rsKbDB2/U/+F vnWa8CWD+uCtM9R/VqW/D0WGiWftC/bWBIYSRqrRV0b4kgE+qX8Ul/hs+wIG5S2vhv+pwutNbUeo/7zz
l4IfkwsaFvNbLTz8LKNP/K0u77xI/edU3etbobo+ldm8+fYk4eXCRSB80SC8XHtO3e3BheYNyhOdN6kh /Mf43Lo/hK0WH36a2Sf9Vpe0n6P+UVKXaC5PYjZsuPGr+HLhIhC+ZBBfroyj9/y40IJBfaj9GjVkWvh+
1xIYEDOcUtnmBfmW4CD1v7Wiq4mYoodf4ikRBjmCnph4jEwKiUBe5j0tTE5SzqUlJoZJOeCYn1P96BX9 KcMpkW2ck2MJDFD/m0o7GogpfPiFnkJxkCPoiUnA8KQQC5TF3mPi5CTnXHpiYpiEPY7ZO6sev6b/Cmku
V0hzKUduLYIN6Q9pkCcmCLRM6up7z6nfPTWPXqcU3ZhDzEOQ671WJHJKihYJV+rRFunemge9SPyENmZE Yd/1ebAh/SENCsQYgZZJW3X/BfWbUf34TUL+1RnEPAil0WtFIqekcJFwJe5vku+qftiDxE9oo0Y4SUyE
k8QU+Ij5DKPa1RBzDBKdY/buqn+fUGGUNLUlEMZ3osIQlek99Sit1F9OlT8kiXakhPI5MrROZWFd6C0l j4jPIKpdNTFHIDM4pu84cfcpFUZJ01r4IL5jFYaowuipRWml/nae6OqWhTtSQvkSKXqnOq8m8D8l0xGL
05GIMLZXafzLKRRlLwXfSUvasgklPjJK26/FLtrYhSUa+0J5qdeEMxUeGdqoDM759WqXrm2V4EyFohhC MLZXbb7pFIuy5/l38sKWdEKJjpSi1kuRizZ6YZnOPldZ5C3HmYqPDG1UCuf8drVL1jfLcKZiUQyxMBo7
YTR2aPDQ6KHhU5Z3nUecHrAEBuntpQMrhehw3MYDWk+0oPFaU7SshMaglUVLKxQYPcIRVfRM03Vtu8i0 NHho9NDwqUs6ziBO91j4AXp76cBKIToUt9GA1hMtaLTWFC0roTFoZdHSigVGjmBIEz7TZEPLdjJt7PiW
8eNrwlgxQkam7zj3xYv0f4HnCp4teL6g0iD3Zpv8AWS/X7l2reSQYzahigsUcTzU8GBDZUvOs/3IsuwE MFaMkFEY20599SL9KPBcwbMFzxdUGuTe9PIuHtlvHdeql/3tmE6o0gJFHA81PNhQ2eKzbb+xLDuOmEcJ
Yh4jGOY/gmD0WF7YCuoAAAAASUVORK5CYII= hvkMi1v0OLU4S10AAAAASUVORK5CYII=
</value> </value>
</data> </data>
<data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@@ -345,18 +345,18 @@
<data name="toolStripButton9.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="toolStripButton9.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAKQSURBVDhPzZLbSltBGIX3GxT6GB4uJAYRRY2IgheiICoa YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAKQSURBVDhPzZLbSptBFIX/Nyj0MTxcSAwiihoRBS9EQVQ0
cjIxB9SgqIgEo9SoeAyJOZukNI2goAiVpooUL6xREInSmNgqtH2DUij0Qr/O3pS+QjuwmL2ZWetf6/9H 5GRiDqhBUREJRqlR8RgSczZJaRpBQREqTRUpXlijIBKlMbFVaPsGpVDohX6d/6f0FdqBxczArLXX2nuk
+j9WKBTyrK+vZ5eWlnILCwvXbrf7dnJy8n5kZOTr0NDQt4mJifvFxUXvn+tSb2+vqrOz87nyE4lEnoXD /2OFQiHP+vp6dmlpKbewsHDtdrtvJycn70dGRr4ODQ19m5iYuF9cXPT+eS719vaqOjs7nyuXSCTyLBwO
YS4uLjg/P+fs7IzT01Nifje/vrzmx3sNHpcdv9/H4OCgTqvVfhdA4Kmvr08tiQqf9/b2uLm5YX9/n1Qq c3Fxwfn5OWdnZ5yenhLzu/n15TU/3mvwuOz4/T4GBwd1Wq32uwACT319fWpJVPi8t7fHzc0N+/v7pFIp
RTKZJJPJIAsnEglOTk7Y2dlhdHQUu92Ow+HAarXS0dFRlIQqx8fHbG1tKfvDwwPFYpF8Ps/l5aUiODc3 kskkmUwGWTiRSHBycsLOzg6jo6PY7XYcDgdWq5WOjo6iJFQ5Pj5ma2tL2R8eHigWi+TzeS4vLxXBubk5
h4jJwcEB8Xic1dVVRCQaGhqQZEWZfHR0RCb7CXv0I7pgHq1Af+iaV28+EAwGEf1Adiq7stlszM7OUldX REwODg6Ix+Osrq4iItHQ0IAkK8rko6MjMtlP2KMf0QXzaAX6Q9e8evOBYDCI6AeyU9mVzWZjdnaWuro6
hyRbicViFAoFHIJsitwyECtg3ixgEN/9oRy7u7vodDq2t7fx+Xzo9XpcLhc1NTVIFouFjY0NcrkcupAg JNlKLBajUCjgEGRT5JaBWAHzZgGDOPeHcuzu7qLT6dje3sbn86HX63G5XNTU1CBZLBY2NjbI5XLoQoIc
x+9wJO+wJ+6wxIrow7ek02m6urqUOMvLy3R3dzM+Pk51dTWSyWRibW2NbDarCFhEZZnseHmHNV7EFC0o v8ORvMOeuMMSK6IP35JOp+nq6lLiLC8v093dzfj4ONXV1Ugmk4m1tTWy2awiYBGVZbLj5R3WeBFTtKA4
Dtvb25WGejwe2traGB4epqqqCslgMCBmz+HhIeZgDmO0iHVTQJAHxG6LXrGyskJrayvRaJSZmRlaWlqU bG9vVxrq8Xhoa2tjeHiYqqoqJIPBgJg9h4eHmIM5jNEi1k0BQR4Quy16xcrKCq2trUSjUWZmZmhpaVGm
aajVaiQ52/T0tGItkH4nRK4wREV20Qdb5IoX/hRi3mg0GgKBgJK9sbERs9mMSqVCkvM4nU5lrlNTU4pd oVarkeRs09PTirVA+p0QucIQFdlFH2yRK174U4h5o9FoCAQCSvbGxkbMZjMqlQpJzuN0OpW5Tk1NKXbl
udN+v5/5+Xl6enqUcckEr9fL2NgYRqMR8RqpqKhAEnaclZWVP4Wdx+bm5qempialWn19PbW1tYizp/Ly Tvv9fubn5+np6VHGJRO8Xi9jY2MYjUbEb6SiogJJ2HEKpZ/CzmNzc/NTU1OTUq2+vp7a2loqKyufysvL
8seysrLH0tLSvygpKZHxVnnO/3BJ0m/YoNHXr+e51AAAAABJRU5ErkJggg== H8vKyh5LS0v/oqSkRMZb5Tv/wyVJvwHWadHUEgctIgAAAABJRU5ErkJggg==
</value> </value>
</data> </data>
<metadata name="taPurchase.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="taPurchase.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">

View File

@@ -36,10 +36,10 @@
System.Windows.Forms.Label label1; System.Windows.Forms.Label label1;
System.Windows.Forms.Label label2; System.Windows.Forms.Label label2;
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fLovItem)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fLovItem));
FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType();
this.bn = new System.Windows.Forms.BindingNavigator(this.components); this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bs = new System.Windows.Forms.BindingSource(this.components); this.bs = new System.Windows.Forms.BindingSource(this.components);
this.dsMSSQL = new FCM0000.dsMSSQL(); this.dsMSSQL = new FCM0000.dsMSSQL();
@@ -56,6 +56,7 @@
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
this.tbFind = new System.Windows.Forms.ToolStripTextBox(); this.tbFind = new System.Windows.Forms.ToolStripTextBox();
this.btFind = new System.Windows.Forms.ToolStripButton(); this.btFind = new System.Windows.Forms.ToolStripButton();
this.btAdd = new System.Windows.Forms.ToolStripButton();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.linkLabel1 = new System.Windows.Forms.LinkLabel(); this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.pictureBox1 = new System.Windows.Forms.PictureBox();
@@ -75,7 +76,6 @@
this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.resetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.btAdd = new System.Windows.Forms.ToolStripButton();
manuLabel = new System.Windows.Forms.Label(); manuLabel = new System.Windows.Forms.Label();
supplyLabel = new System.Windows.Forms.Label(); supplyLabel = new System.Windows.Forms.Label();
memoLabel = new System.Windows.Forms.Label(); memoLabel = new System.Windows.Forms.Label();
@@ -306,6 +306,15 @@
this.btFind.Text = "toolStripButton1"; this.btFind.Text = "toolStripButton1";
this.btFind.Click += new System.EventHandler(this.btFind_Click); this.btFind.Click += new System.EventHandler(this.btFind_Click);
// //
// btAdd
//
this.btAdd.Image = ((System.Drawing.Image)(resources.GetObject("btAdd.Image")));
this.btAdd.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btAdd.Name = "btAdd";
this.btAdd.Size = new System.Drawing.Size(89, 34);
this.btAdd.Text = "품목추가";
this.btAdd.Click += new System.EventHandler(this.btAdd_Click);
//
// panel1 // panel1
// //
this.panel1.BackColor = System.Drawing.Color.Gray; this.panel1.BackColor = System.Drawing.Color.Gray;
@@ -516,23 +525,23 @@
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "모델"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "모델";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "SID"; this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "SID";
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 27F; this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 27F;
numberCellType3.DecimalPlaces = 0; numberCellType1.DecimalPlaces = 0;
numberCellType3.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType3.MaximumValue = 2147483647D; numberCellType1.MaximumValue = 2147483647D;
numberCellType3.MinimumValue = -2147483648D; numberCellType1.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = numberCellType3; this.fpSpread1_Sheet1.Columns.Get(0).CellType = numberCellType1;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "idx"; this.fpSpread1_Sheet1.Columns.Get(0).DataField = "idx";
this.fpSpread1_Sheet1.Columns.Get(0).Label = "IDX"; this.fpSpread1_Sheet1.Columns.Get(0).Label = "IDX";
this.fpSpread1_Sheet1.Columns.Get(0).Width = 99F; this.fpSpread1_Sheet1.Columns.Get(0).Width = 99F;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType7; this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType1;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "name"; this.fpSpread1_Sheet1.Columns.Get(1).DataField = "name";
this.fpSpread1_Sheet1.Columns.Get(1).Label = "품명"; this.fpSpread1_Sheet1.Columns.Get(1).Label = "품명";
this.fpSpread1_Sheet1.Columns.Get(1).Width = 154F; this.fpSpread1_Sheet1.Columns.Get(1).Width = 154F;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType8; this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType2;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "model"; this.fpSpread1_Sheet1.Columns.Get(2).DataField = "model";
this.fpSpread1_Sheet1.Columns.Get(2).Label = "모델"; this.fpSpread1_Sheet1.Columns.Get(2).Label = "모델";
this.fpSpread1_Sheet1.Columns.Get(2).Width = 154F; this.fpSpread1_Sheet1.Columns.Get(2).Width = 154F;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType9; this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType3;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "sid"; this.fpSpread1_Sheet1.Columns.Get(3).DataField = "sid";
this.fpSpread1_Sheet1.Columns.Get(3).Label = "SID"; this.fpSpread1_Sheet1.Columns.Get(3).Label = "SID";
this.fpSpread1_Sheet1.Columns.Get(3).Width = 154F; this.fpSpread1_Sheet1.Columns.Get(3).Width = 154F;
@@ -541,15 +550,6 @@
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false; this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
// //
// btAdd
//
this.btAdd.Image = ((System.Drawing.Image)(resources.GetObject("btAdd.Image")));
this.btAdd.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btAdd.Name = "btAdd";
this.btAdd.Size = new System.Drawing.Size(89, 34);
this.btAdd.Text = "품목추가";
this.btAdd.Click += new System.EventHandler(this.btAdd_Click);
//
// fLovItem // fLovItem
// //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;

View File

@@ -1,223 +1,223 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
namespace FCM0000 namespace FCM0000
{ {
public partial class fLovItem : Form public partial class fLovItem : Form
{ {
string fn_fpcolsize = ""; string fn_fpcolsize = "";
public string itemName { get; set; } public string itemName { get; set; }
public int item { get; set; } public int item { get; set; }
public string itemmodel { get; set; } public string itemmodel { get; set; }
public decimal itemprice { get; set; } public decimal itemprice { get; set; }
public string SID { get; set; } public string SID { get; set; }
public string itemUnit { get; set; } public string itemUnit { get; set; }
public string itemSupply { get; set; } public string itemSupply { get; set; }
public int itemSupplyidx { get; set; } public int itemSupplyidx { get; set; }
public fLovItem(string search_) public fLovItem(string search_)
{ {
InitializeComponent(); InitializeComponent();
fn_fpcolsize = System.IO.Path.Combine(FCOMMON.Util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini"); fn_fpcolsize = System.IO.Path.Combine(FCOMMON.Util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
//initial value //initial value
itemName = string.Empty; itemName = string.Empty;
item = -1; item = -1;
itemmodel = string.Empty; itemmodel = string.Empty;
itemprice = 0; itemprice = 0;
SID = string.Empty; SID = string.Empty;
itemUnit = "EA"; itemUnit = "EA";
itemSupply = string.Empty; itemSupply = string.Empty;
itemSupplyidx = -1; itemSupplyidx = -1;
this.KeyPreview = true; this.KeyPreview = true;
this.KeyDown += (s1, e1) => this.KeyDown += (s1, e1) =>
{ {
if (e1.KeyCode == Keys.Escape) this.Close(); if (e1.KeyCode == Keys.Escape) this.Close();
}; };
this.tbFind.KeyDown += (s1, e1) => { if (e1.KeyCode == Keys.Enter) Find(); }; this.tbFind.KeyDown += (s1, e1) => { if (e1.KeyCode == Keys.Enter) Find(); };
this.fpSpread1.KeyDown += (s1, e1) => { btOK.PerformClick(); }; this.fpSpread1.KeyDown += (s1, e1) => { btOK.PerformClick(); };
this.fpSpread1.CellDoubleClick += (s1, e1) => { btOK.PerformClick(); }; this.fpSpread1.CellDoubleClick += (s1, e1) => { btOK.PerformClick(); };
this.tbFind.Text = search_; this.tbFind.Text = search_;
} }
private void fLovItem_Load(object sender, EventArgs e) private void fLovItem_Load(object sender, EventArgs e)
{ {
refreshData(this.tbFind.Text); refreshData(this.tbFind.Text);
this.Show(); this.Show();
Application.DoEvents(); Application.DoEvents();
if (this.bs.Count >0) fpSpread1.Focus(); if (this.bs.Count >0) fpSpread1.Focus();
else else
{ {
tbFind.Focus(); tbFind.Focus();
tbFind.SelectAll(); tbFind.SelectAll();
} }
} }
void refreshData(string search) void refreshData(string search)
{ {
//search data //search data
this.ta.FillSearch(this.dsMSSQL.Items, "%" + search + "%", FCOMMON.info.Login.gcode); this.ta.FillSearch(this.dsMSSQL.Items, "%" + search + "%", FCOMMON.info.Login.gcode);
FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize); FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
} }
private void itemsBindingNavigatorSaveItem_Click(object sender, EventArgs e) private void itemsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{ {
var drv = bs.Current as DataRowView; var drv = bs.Current as DataRowView;
if (drv == null) if (drv == null)
{ {
itemName = string.Empty; itemName = string.Empty;
item = -1; item = -1;
itemmodel = string.Empty; itemmodel = string.Empty;
itemprice = 0; itemprice = 0;
itemSupply = string.Empty; itemSupply = string.Empty;
itemSupplyidx = -1; itemSupplyidx = -1;
itemUnit = "EA"; itemUnit = "EA";
SID = string.Empty; SID = string.Empty;
return; return;
} }
else else
{ {
var dr = drv.Row as dsMSSQL.ItemsRow; var dr = drv.Row as dsMSSQL.ItemsRow;
item = dr.idx; item = dr.idx;
if (dr.IsnameNull()) itemName = string.Empty; if (dr.IsnameNull()) itemName = string.Empty;
else itemName = dr.name; else itemName = dr.name;
if (dr.IsmodelNull()) itemmodel = string.Empty; if (dr.IsmodelNull()) itemmodel = string.Empty;
else itemmodel = dr.model; else itemmodel = dr.model;
if (dr.IspriceNull()) itemprice = 0; if (dr.IspriceNull()) itemprice = 0;
else itemprice = dr.price; else itemprice = dr.price;
if (dr.IssupplyNull()) itemSupply = string.Empty; if (dr.IssupplyNull()) itemSupply = string.Empty;
else itemSupply = dr.supply; else itemSupply = dr.supply;
if (dr.IssupplyidxNull()) itemSupplyidx = -1; if (dr.IssupplyidxNull()) itemSupplyidx = -1;
else itemSupplyidx = dr.supplyidx; else itemSupplyidx = dr.supplyidx;
if (dr.IsunitNull()) itemUnit = "EA"; if (dr.IsunitNull()) itemUnit = "EA";
else itemUnit = dr.unit; else itemUnit = dr.unit;
SID = dr.sid; SID = dr.sid;
} }
if (itemName.isEmpty() || item == -1) DialogResult = System.Windows.Forms.DialogResult.Cancel; if (itemName.isEmpty() || item == -1) DialogResult = System.Windows.Forms.DialogResult.Cancel;
else DialogResult = System.Windows.Forms.DialogResult.OK; else DialogResult = System.Windows.Forms.DialogResult.OK;
} }
private void bs_CurrentChanged(object sender, EventArgs e) private void bs_CurrentChanged(object sender, EventArgs e)
{ {
var drv = this.bs.Current as DataRowView; var drv = this.bs.Current as DataRowView;
var img = this.pictureBox1.Image; var img = this.pictureBox1.Image;
if (drv == null) if (drv == null)
{ {
this.pictureBox1.Image = null; this.pictureBox1.Image = null;
} }
else else
{ {
try try
{ {
var dr = drv.Row as dsMSSQL.ItemsRow; var dr = drv.Row as dsMSSQL.ItemsRow;
var img1 = FCOMMON.DBM.GetImageData("Items", "image", dr.idx); var img1 = FCOMMON.DBM.GetImageData("Items", "image", dr.idx);
if (img1 != null) this.pictureBox1.Image = img1; if (img1 != null) this.pictureBox1.Image = img1;
else this.pictureBox1.Image = null; else this.pictureBox1.Image = null;
} }
catch (Exception ex) catch
{ {
this.pictureBox1.Image = null; this.pictureBox1.Image = null;
} }
} }
if (img != null) img.Dispose(); if (img != null) img.Dispose();
} }
private void dv_KeyDown(object sender, KeyEventArgs e) private void dv_KeyDown(object sender, KeyEventArgs e)
{ {
if (e.KeyCode == Keys.Enter) if (e.KeyCode == Keys.Enter)
{ {
btOK.PerformClick(); btOK.PerformClick();
} }
} }
private void dv_DoubleClick(object sender, EventArgs e) private void dv_DoubleClick(object sender, EventArgs e)
{ {
btOK.PerformClick(); btOK.PerformClick();
} }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{ {
var drv = this.bs.Current as DataRowView; var drv = this.bs.Current as DataRowView;
if (drv == null) return; if (drv == null) return;
var dr = drv.Row as dsMSSQL.ItemsRow; var dr = drv.Row as dsMSSQL.ItemsRow;
if (dr.RowState == DataRowState.Deleted || dr.RowState == DataRowState.Detached || if (dr.RowState == DataRowState.Deleted || dr.RowState == DataRowState.Detached ||
dr.RowState == DataRowState.Added) dr.RowState == DataRowState.Added)
{ {
FCOMMON.Util.MsgE("이미지는 등록 완료된 아이템만 가능합니다. 먼저 저장한 후 다시 시도하세요."); FCOMMON.Util.MsgE("이미지는 등록 완료된 아이템만 가능합니다. 먼저 저장한 후 다시 시도하세요.");
return; return;
} }
OpenFileDialog od = new OpenFileDialog(); OpenFileDialog od = new OpenFileDialog();
if (od.ShowDialog() != System.Windows.Forms.DialogResult.OK) return; if (od.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;
var image = Image.FromFile(od.FileName); var image = Image.FromFile(od.FileName);
if (!FCOMMON.DBM.setImageData(image, "Items", "image", dr.idx)) if (!FCOMMON.DBM.setImageData(image, "Items", "image", dr.idx))
{ {
FCOMMON.Util.MsgE("등록 실패"); FCOMMON.Util.MsgE("등록 실패");
} }
else else
{ {
this.pictureBox1.Image = Image.FromFile(od.FileName); this.pictureBox1.Image = Image.FromFile(od.FileName);
} }
} }
private void resetToolStripMenuItem_Click(object sender, EventArgs e) private void resetToolStripMenuItem_Click(object sender, EventArgs e)
{ {
foreach (FarPoint.Win.Spread.Column col in this.fpSpread1.ActiveSheet.Columns) foreach (FarPoint.Win.Spread.Column col in this.fpSpread1.ActiveSheet.Columns)
{ {
col.Width = 100; col.Width = 100;
} }
} }
private void saveToolStripMenuItem_Click(object sender, EventArgs e) private void saveToolStripMenuItem_Click(object sender, EventArgs e)
{ {
FPUtil.ColsizeSave(this.fpSpread1, fn_fpcolsize); FPUtil.ColsizeSave(this.fpSpread1, fn_fpcolsize);
} }
private void loadToolStripMenuItem_Click(object sender, EventArgs e) private void loadToolStripMenuItem_Click(object sender, EventArgs e)
{ {
FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize); FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
} }
private void btFind_Click(object sender, EventArgs e) private void btFind_Click(object sender, EventArgs e)
{ {
Find(); Find();
} }
void Find() void Find()
{ {
var search = tbFind.Text.Trim(); var search = tbFind.Text.Trim();
refreshData(search); refreshData(search);
tbFind.SelectAll(); tbFind.SelectAll();
tbFind.Focus(); tbFind.Focus();
} }
private void btAdd_Click(object sender, EventArgs e) private void btAdd_Click(object sender, EventArgs e)
{ {
var f = new Item.fItemAdd(); var f = new Item.fItemAdd();
if(f.ShowDialog() == System.Windows.Forms.DialogResult.OK) if(f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{ {
itemName = f.tbName.Text.Trim(); itemName = f.tbName.Text.Trim();
item = f.newIDX; item = f.newIDX;
itemmodel = f.tbModel.Text.Trim(); itemmodel = f.tbModel.Text.Trim();
decimal price; decimal price;
decimal.TryParse(f.tbPrice.Text.Replace(",",""),out price); decimal.TryParse(f.tbPrice.Text.Replace(",",""),out price);
itemprice =price;// decimal.Parse(f.tbPrice.Text.Trim().Replace(",","")); itemprice =price;// decimal.Parse(f.tbPrice.Text.Trim().Replace(",",""));
SID = f.tbSid.Text.Trim(); SID = f.tbSid.Text.Trim();
itemUnit = f.tbUnit.Text.Trim(); itemUnit = f.tbUnit.Text.Trim();
itemSupply = f.tbSupply.Text.Trim(); itemSupply = f.tbSupply.Text.Trim();
itemSupplyidx = int.Parse(f.tbSupplyIdx.Text); itemSupplyidx = int.Parse(f.tbSupplyIdx.Text);
DialogResult = System.Windows.Forms.DialogResult.OK; DialogResult = System.Windows.Forms.DialogResult.OK;
} }
} }
} }
} }

View File

@@ -1,293 +1,289 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0 Version 2.0
The primary goals of this format is to allow a simple XML format The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes various data types are done through the TypeConverter classes
associated with the data types. associated with the data types.
Example: Example:
... ado.net/XML headers & schema ... ... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader> <resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, 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="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="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value> <value>[base64 mime encoded serialized .NET Framework object]</value>
</data> </data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <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> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment> <comment>This is a comment</comment>
</data> </data>
There are any number of "resheader" rows that contain simple There are any number of "resheader" rows that contain simple
name/value pairs. name/value pairs.
Each data row contains a name, and value. The row also contains a Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture. text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the Classes that don't support this are serialized and stored with the
mimetype set. mimetype set.
The mimetype is used for serialized objects, and tells the The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly: extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below. read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64 mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64 mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter : using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding. : 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: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:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true"> <xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType> <xsd:complexType>
<xsd:choice maxOccurs="unbounded"> <xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata"> <xsd:element name="metadata">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" /> <xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" /> <xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="assembly"> <xsd:element name="assembly">
<xsd:complexType> <xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="data"> <xsd:element name="data">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <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:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <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="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" /> <xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="resheader"> <xsd:element name="resheader">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" /> <xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
</xsd:choice> </xsd:choice>
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
</xsd:schema> </xsd:schema>
<resheader name="resmimetype"> <resheader name="resmimetype">
<value>text/microsoft-resx</value> <value>text/microsoft-resx</value>
</resheader> </resheader>
<resheader name="version"> <resheader name="version">
<value>2.0</value> <value>2.0</value>
</resheader> </resheader>
<resheader name="reader"> <resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="manuLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="manuLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="supplyLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="supplyLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="memoLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="memoLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="priceLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="priceLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="bn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="bn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>321, 17</value> <value>321, 17</value>
</metadata> </metadata>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
<metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>216, 17</value> <value>216, 17</value>
</metadata> </metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77 wwAADsMBx2+oZAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0 wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0
v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg
UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA
Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu
lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII= lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII=
</value> </value>
</data> </data>
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w wwAADsMBx2+oZAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f 5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f
Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+ Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+
08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC 08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC
</value> </value>
</data> </data>
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78 wwAADsMBx2+oZAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
oAc0QjgAAAAASUVORK5CYII= oAc0QjgAAAAASUVORK5CYII=
</value> </value>
</data> </data>
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+// wwAADsMBx2+oZAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B
twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA
kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG
WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9 WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9
8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg== 8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg==
</value> </value>
</data> </data>
<data name="btOK.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="btOK.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABGdBTUEAALGPC/xhBQAABgZJREFUaEPV
YQUAAAYGSURBVGhD1ZhbU1tVFMc76otvXp68fAxv38AXvJXSi6MQKIrOoKNlRrklxmqhuZSEAaatY5/s mFtTW1UUxzvqi29enrx8DG/fwBe8ldKLoxAois6go2VGuSXGaqG5lIQBpq1jn+yI5dJi2o6NWiB1VBhA
iOXSYtqOjVogdVQYQEcLVSCVhgJNIKH6VPRlu/6nOene+6wkJwde8vCb5Kxz9tr/fV977Xr+vYqyhjWW RwtVIJWGAk0gofpU9GW7/qc56d77rCQnB17y8JvkrHP22v99X3vtev69irKGNZYTrLGcYI3lBGssFa/X
E6yxnGCN5QRrLBWv13ufq+3Ycy63v9XlDgy73MFZ+t0k/stC/w3bUG17oKXWHXgWZThfpcIa7VLv9T1J e5+r7dhzLre/1eUODLvcwVn63ST+y0L/DdtQbXugpdYdeBZlOF+lwhrtUu/1PUnCOknYCiFKocYduFnj
wjpJ2AohSqHGHbhZ4wl0VLd1PcH5tgtrLEZ1S8ej1NvHSci/ujAHbBF9B71dj3B1FYM1FoIq20+ks5Xv CXRUt3U9wfm2C2ssRnVLx6PU28dJyL+6MAdsEX0HvV2PcHUVgzUWgirbT6Szle8YNCIbxF6uzkKwRg6a
GDQiG8Rers5CsEYOmrMPZHudFdDwSViET58VF69Mil//iIvEalKk0rcN8P+Xa4vGO3yDbzkfBp5gL+ri sw9ke50V0PBJWIRPnxUXr0yKX/+Ii8RqUqTStw3w/5dri8Y7fINvOR8GnmAv6uI0cLBGnar3ux6scQfP
NHCwRp2q97serHEHz3MVvnu0T5yPTYhbGxmRvv2PLfAtGtN07KTFX5YI6uS06LBGGfQGJ/7gx12i/5sx cxW+e7RPnI9NiFsbGZG+/Y8t8C0a03TspMVflgjq5LTosEYZ9AYn/uDHXaL/mzGxtm5fuA5GZzB6xfCl
sbZuX7gORmcwesXwpfsnInZGgjXKcNPmnc4+MX1tgRXlhOm5BdF4tFepA9Ca6OE0ybBGE3KCBas4bQ6f +ycidkaCNcpw0+adzj4xfW2BFeWE6bkF0Xi0V6kD0Jro4TTJsEYTcoIFqzhtDp8S8eU1Vsh88i/RPzsk
EvHlNVbIfPIv0T87JFpiblEffVtUfr3PAP9h+2p2WCwkl9iyi8urhm+9vtr24B5OmwlrBNjWsDPIztBL WmJuUR99W1R+vc8A/2H7anZYLCSX2LKLy6uGb72+2vbgHk6bCWsE2NawM8jO0Euc+MXUkghOhsWLI7tF
nPjF1JIITobFiyO7RcW5lwvywsgr4vCPR8Sft65b/VAjmJFIY9vmNALWCPSpU+8NsdPm28VRURnZx4ot xbmXC/LCyCvi8I9HxJ+3rlv9UCOYkUhj2+Y0AtYI9KlT7w2x0+bbxVFRGdnHii3Ensh+8V18zOJvam7e
xJ7IfvFdfMzib2pu3rImCk0l1nj3hFUPKSxYvbIvrw4aPcoJtAPKXpq/bPE7EI0pDSC26ry+xzmtFgPI siYKTSXWePeEVQ8pLFi9si+vDho9ygm0A8pemr9s8TsQjSkNILbqvL7HOa0WA8iGBzkH2Cr13QY9vx3x
hgc5B9gq9d0GPb8d8eDQ6AdiNb2u+AXJ9KY4FDwhN4DwH+G0WgxVVQP3UwEltsE+L1ewkLzhaNrINI01 4NDoB2I1va74Bcn0pjgUPCE3gPAf4bRaDFVVA/dTASW2wT4vV7CQvOFo2sg0jTWL1YxVvMmF2KQk3iDB
i9WMVbzJhdikJN4gwQWAygO4G1XeK4hTUz+kfD93saLskq/nZTDibx4OyQ0Q1W2+Z3S9ygOgoUJInCuE BYDKA7gbVd4riFNTP6R8P3exouySr+dlMOJvHg7JDRDVbb5ndL3KA6ChQkicK4SjX3aMrdLObpOPfOJP
o192jK3Szm6Tj3ziT86cMkZWtoVPDysNcLUHPtT1Kg+APqR4/l4hHPmy0/6rQ6wwO+QTf2Lmc+P9mVm1 zpwyRla2hU8PKw1wtQc+1PUqD4A+pHj+XiEc+bLT/qtDrDA75BN/YuZz4/2ZWbWzLoxPKA2g3WhQ16s8
sy6MTygNoN1oUNerPIDsxSNXCIGZ7LSVDiRdmElDtJG1g3xzvnf6s9w3rbGPlHcIAGUtNDt+1/UqD4A+ gOzFI1cIgZnstJUOJF2YSUO0kbWDfHO+d/qz3DetsY+UdwgAZS00O37X9SoPgD7MyIUSaynFad2lBkWY
zMiFEmspxWndpQZFmAnWxcbm38ZU0N8V63kTnNjy+xsUxcpacLDqepUHQB8q+z+2NNkpt/uY4s1v5EbY CdbFxubfxlTQ3xXreROc2PL7GxTFylpwsOp6lQdAHyr7P7Y02Sm3+5jizW/kRtgVD+Bb/ia1sak0gNjS
FQ/gW/4mtbGpNIDY0vUqD4A+KqkBBy6+LlbS6igBTA0700amKnJA+c5pAwpOofroW5aK8wlNZtIWWz7x 9SoPgD4qqQEHLr4uVtLqKAFMDTvTRqYqckD5zmkDCk6h+uhblorzCU1m0hZbPvHgjZ2ZQuoixkKSneZb
4I2dmULqIsZCkp3mW8SYKtxIyHDTRkZfxDMOF3HBbRQhMVc5KNSIYuLBwNw5pYyjbRR5G7mQfpAhni90 xJgq3EjIcNNGRl/EMw4XccFtFCExVzko1Ihi4sHA3DmljKNtFHkbuZB+kCGeL3SQcY2wI/6lkUrLQRb6
kHGNsCP+pZFKy0EW+sLBQYakk1yICyX8EyFWhIncCDviQXCyW6mDCyXq2nxP6XqVB4CAiYbqplxQn0a4 wsFBhqSTXIgLJfwTIVaEidwIO+JBcLJbqYMLJerafE/pepUHgICJhuqmXFCfRrjAIJ7nhJhgYfdMHWff
wCCe54SYYGH3TB1n3+lg94mnEkodjoM5gIyZXBjZA1zA5QpGr/+wrZjIBCH59/FxxTe2zyYtnK71BD7l 6WD3iacSSh2OgzmAjJlcGNkDXMDlCkav/7CtmMgEIfn38XHFN7bPJi2crvUEPuW0WgwA6T4qhIxZzgGy
tFoMAOk+KoSMWc4BsgdyJQBx0XYvNLhD637PRMcV8cSdki40gAr1yU5wzUP2QK8M18Ji04kD0+ZyPGbx B3IlAHHRdi80uEPrfs9ExxXxxJ2SLjSACvXJTnDNQ/ZArwzXwmLTiQPT5nI8ZvE3NTtP11f1SknrspvT
NzU7T9dX9UpJ67Kb0whYI8Clngqvy45w4cbFW690KbUiuqf6jJ2EEyuDXu/4KWCZ8yDPpT71anPnw5xG CFgjwKWeCq/LjnDhxsVbr3QptSK6p/qMnYQTK4Ne7/gpYJnzIM+lPvVqc+fDnEbAGk1oMe/VnBmpD64R
wBpNaDHv1ZwZqQ+uEQDbIELi1pjHOFURdgD8xyE1MHfWslWa5EuruNqDuzltJqxRBrlK3Sl6CdkDTogT ANsgQuLWmMc4VRF2APzHITUwd9ayVZrkS6u42oO7OW0mrFEGuUrdKXoJ2QNOiBMwbRo7rYktl8cf5jTJ
MG0aO62JLZfHH+Y0ybBGGaT3yFlEd441geyBHuyVAspiwepzPssI7uecJhnWqINEKzm0NAIge4A9u5Qc sEYZpPfIWUR3jjWB7IEe7JUCymLB6nM+ywju55wmGdaog0QrObQ0AiB7gD27lBwpvkUZfauUGNmx5K4J
Kb5FGX2rlBjZseSuCUaC1kQPU5kBTk3cYRG/IABEJIkeBvgPG7IbCA/0E1YGO46dnjdhjYVArpIqSukV RoLWRA9TmQFOTdxhEb8gAEQkiR4G+A8bshsID/QTVgY7jp2eN2GNhUCukipK6RVvH3+y2ILlYI3FwLaW
bx9/stiC5WCNxcC2lh0N5bBzyB30ussbeoirqxis0S44HZExIxHLmig7JBAevNYaeozzbRfWWCoIspB0 HQ3lsHPIHfS6yxt6iKurGKzRLjgdkTEjEcuaKDskEB681hp6jPNtF9ZYKgiykHSixjQjZsfFgwTiZofr
osY0I2bHxYME4maH6ynIUCj8m/GOQmK6ND3NBWZOYI3lBGssJ1hjOcEay4eKXf8DEq1Ek5YKoVUAAAAA KchQKPyb8Y5CYro0Pc0FZk5gjeUEaywnWGM5wRrLh4pd/wMSrUSTlgqhVQAAAABJRU5ErkJggg==
SUVORK5CYII= </value>
</value> </data>
</data> <data name="btFind.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<data name="btFind.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>
<value> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE3SURBVDhPnZIxS8NQFEb7W/wLjh0Fl9a1SxBHBekkWFd1
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE3SURBVDhPnZIxS8NQFEb7W/wLjh0Fl9a1SxBHBekkWFd1 qYg4Ci5dndSCg2AHl4LQSaRSKDqoFUE7VAjUmvTKueWmL2mw2gunL7zmO+/mJhmZoTJusdF868vpXUfO
qYg4Ci5dndSCg2AHl4LQSaRSKDqoFUE7VAjUmvTKueWmL2mw2gunL7zmO+/mJhmZoTJusdF868vpXUfO b5/lpPEox9f3SvnsRtk8uojxHQ7HEgSEkXS6vrz3xqtdu+xdfUiheEBsJOGCk/mz/hROUHsIIrp+qIKY
b5/lpPEox9f3SvnsRtk8uojxHQ7HEgSEkXS6vrz3xqtdu+xdfUiheEBsJOGCk/mz/hROUHsIIrp+qIKY hB/a9r+CVAG4Auj5g7iA5/1NACaptgIVLHkb0wWVw13ZL60p2+uerqkCJs1mMgwUU6d1k/xJwI10RZj1
hB/a9r+CVAG4Auj5g7iA5/1NACaptgIVLHkb0wWVw13ZL60p2+uerqkCJs1mMgwUU6d1k/xJwI10RZj1 9TPUN7Wam9dgTMC75QR7TjCBkRQs5Jd1jQS8c1ewtZLTPcQW/peADpC44cudgnjZOQ1OCGjTwkwaGBon
9TPUN7Wam9dgTMC75QR7TjCBkRQs5Jd1jQS8c1ewtZLTPcQW/peADpC44cudgnjZOQ1OCGjTwkwaGBon GoSrpcVIQqmAj6LZftFBup9vWiUlUQdIDCbsQrsGZRJKBbOXyA++SlEsu6QjvQAAAABJRU5ErkJggg==
GoSrpcVIQqmAj6LZftFBup9vWiUlUQdIDCbsQrsGZRJKBbOXyA++SlEsu6QjvQAAAABJRU5ErkJggg== </value>
</value> </data>
</data> <data name="btAdd.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<data name="btAdd.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>
<value> iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAK7SURBVGhD7Zm5bhRBEIZXXAEhR8TxEhYWjpwha3uY7pG8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAK9SURBVGhD7Zm7btRAFIZX3ApKLhWXl0BEpEqHImw0Yymr AuGcV8Ai2cyQG8tYPIFB3S3ZmISAZwCZB+CIwBADCVTNlpNWNZ6ao70jzSf90kpbU/3Puo/q8mhgYKA5
IOh5BSKa7bL0IUoiniBEHksJoaHIMxDBA3CpIKEGGviPOWlGZ4iPL5O15E/6pU32+Mw/Y8/M8exoYGCg k5eTs5kzS8rrx5nXVlnzMbPmZ+bzP6Xg89iZw/I7iLlri9vT6fQMPX56aK9vgPGnoK+ZN39lyr/AyzxZ
OePX4/Ops/NJYZ6nhckTZz/i7x/4/LsUPuN/H8rvEPMwz+5NJpNzfPnZYQpzC+ZeQF/Twv7RyXxBZ6aL scV1SpeOld3Vq5nNd8Y+/82bqy7MMfZ6O9vLrlD6boFp8AB+vR+cmSaCFzlStrhPw7TPws7D88qZF9zg
eXaT08VjcXvpeurMFgz8ks1VF+WANtLd9Bqn7xaM3GPoWDLTROjEUZJnj7iZ9rmz9fQinuNXUuNtCm1s bQrGeI5j0bDtAH/ei8rnb7gBO5EzBzgmDd+M8pdPaf5YzryF3e0C2ahPimkTEy5uslEPWFRrXOK00vfI
UlvcbDvg9l7GCL2VGuxEzu5Tm9x8M8qRj2n+RM6+w+p2iW3UJ8ZjExJNbrZRD0yqJ1LiuDLLbEeHdfYq jgzjzOWxNd/5pCkFO16dLRb3eT5hesE03iJb1cDTsekhFcLFVFXpZS+7SfZOpiwPmEQShXAxEmHZQfb+
Rv+7nDSmsOLVWWJpnZcTxhcGcp1tVYN2Rzx/jTYpHymmqkovu+lttnc6ZXkgJNLIR4rRCJ2Ysr3/Q0UW DxZZWKdwSSQK4WJEgnoLi0ayGQcCl9gEQoVwMVLBWlgkm3FmJTGfQKIQLkYsZ9bJZhwIcuzDQoVwMWI5
1SlSEo18pBiVUG9R0cg2wyBwXkyglI8UoxXmwhzbDINbhZJYTqCRjxSjlrMrbDMMgpx4sVI+Uoxazu6w 84psxpldPJiHhQrhYsSy5gPZjCMplduCy80JD1ayGUey/7cFl5uVNb/IZpzev0D/p1DvF3Hft9F5Psjg
zTC4TXjxEC5WykeKUcvZQ7YZRlMqt4WUWxJtrGwzjGb9bwsptyhnf7LNML3vQP8fod5P4t4vozO8kT0o gvOIbMbBphP3sFQhXIxYtrhFNuNgMQeL5TObQKAQLkYiWJufKnfzsHTlkkgUwsXIpDfI3snM24UG93+1
zDO2GYYOnaSLtfKRYtTKs7tsMwwVc5gHn8UECvlIMRrB06fKp3lUukpJNPKRYnQyq2zvdGbthYbW/2Qv r66RvWqU7T4u2alIb5Kt6tzZXb00D5d6mAlHtfum2KvkkqaUcsWE7NQDe5Vc4hSCzeQZ2agP3kNhKnlu
ucH2qoEObIjJzkRmjW1V5/720hXaOOSE8YSBPKp9bkpnlVLSmEpcNmY79cBd2JQSxxBG/yXbqA+9h6IT gG6lXy+/Wz5HNpqBjVY4xg/4gdqX8vl+a83dY7DJm2JnwmnT2i/Pgb3Kbnan/FvjBVsV7Jtiuw8PGN6M
hdRAtzJvFg4WLrCNZtBBK1aCfbmh9oWR32vtcPcEPuTtfGWix6a1kZfArV3uZnUy3xpP2Krwuek6bTCy QGUOvYnbNqVPB56OWHbUqZ1mz+gN8QnbBVhkYdMJFvo61ux48cCbHZYjs5IEPjvzHr/Dkhiryrn4N+vA
GYXKHGaNlm1OHw/aHXHLp+iMunb6d41ZVe+wXcAF4BxGcwXagQ5h7hidox/wUJLgs7Pv6TsqiamqnImf QO8Zjf4BUd5rbZRXqi0AAAAASUVORK5CYII=
WQcGes9o9BfCYWu7q2s5swAAAABJRU5ErkJggg== </value>
</value> </data>
</data> <metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>81, 17</value>
<value>216, 17</value> </metadata>
</metadata> <metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>143, 17</value>
<value>81, 17</value> </metadata>
</metadata> <metadata name="cm1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<metadata name="tam.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>539, 17</value>
<value>143, 17</value> </metadata>
</metadata> <data name="saveToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<metadata name="cm1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>
<value>539, 17</value> R0lGODlhEAAQAIQAAJXD9Iasxm6MqnSn2lZtjVaRyEpXbYu767TX/2KZztvr/4Gy5KrT/3ut32+gzlFh
</metadata> e+r0/0RNX9/u/9Ln+8Xg//n8/4e36CkxQz9GVkSCvKjL35/N/Je91K7T5bDS4////yH/C05FVFNDQVBF
<metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> Mi4wAwEBAAAh+QQAAAAAACwAAAAAEAAQAAAIuQA/CBxIsKDACRwScggQwIGAhwIICBDYQcEEgwg+bNjw
<value>614, 17</value> QKCHCQgkQBgpQcKBCg0AEBCoAaRIkhIsVBigUiAHCgwkKNjJU8GAAx0/3NwIAMABCwsaDHCwIGgAChuK
</metadata> HjiQdMDSAQYEPpWKtKqDBA6yfgiAwGhXpUsTJIgg0AGCo0nRfi1QgO0HAQyQNpCrtkAGDAIFbKi69GsC
<data name="saveToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> un8FEohqdEFavxkyXAhMoPKDBwYMRIiAAcOFoAZDCwwIADs=
<value> </value>
R0lGODlhEAAQAIQAAJXD9Iasxm6MqnSn2lZtjVaRyEpXbYu767TX/2KZztvr/4Gy5KrT/3ut32+gzlFh </data>
e+r0/0RNX9/u/9Ln+8Xg//n8/4e36CkxQz9GVkSCvKjL35/N/Je91K7T5bDS4////yH/C05FVFNDQVBF <data name="loadToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
Mi4wAwEBAAAh+QQAAAAAACwAAAAAEAAQAAAIuQA/CBxIsKDACRwScggQwIGAhwIICBDYQcEEgwg+bNjw <value>
QKCHCQgkQBgpQcKBCg0AEBCoAaRIkhIsVBigUiAHCgwkKNjJU8GAAx0/3NwIAMABCwsaDHCwIGgAChuK R0lGODlhEAAQAIQfAJfL/OTs9HWVsW6aUqnT+6bnZldwkYiux7TZ/O3z+UlVa/P2+ZfTW36wWJDLV4m7
HjiQdMDSAQYEPpWKtKqDBA6yfgiAwGhXpUsTJIgg0AGCo0nRfi1QgO0HAQyQNpCrtkAGDAIFbKi69GsC 69nn78bi/qjL3qDP+VJhe4rAVa7S40NLXJ3bYJrA1ikxQz5FVdDU22OPRf///////yH/C05FVFNDQVBF
un8FEohqdEFavxkyXAhMoPKDBwYMRIiAAcOFoAZDCwwIADs= Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIwQA9CBxIcOCHgx4gWLAgIUOGAwcESBTgAaEFCAEGaBwQ
</value> IGOABwYqerCQsYBJBho7JHgAUqCEDjAxYGBQgYHKBAsoCMzQIUIEmA6CdkCAIOfOBT5/MnBQYSgBozCj
</data> SoVJ4KkCDx1MFhhKFEFVAhMCXM1aAANMoh2qTgh7AWvZmQ6igp0AIEDbDg0aLA06YC4AABA2eBjgYcHG
<data name="loadToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> vmv/Akgg2IMBDgsSdJwcAEICDhoECjDAmQIFBQouXNiwQYPOgqgLBgQAOw==
<value> </value>
R0lGODlhEAAQAIQfAJfL/OTs9HWVsW6aUqnT+6bnZldwkYiux7TZ/O3z+UlVa/P2+ZfTW36wWJDLV4m7 </data>
69nn78bi/qjL3qDP+VJhe4rAVa7S40NLXJ3bYJrA1ikxQz5FVdDU22OPRf///////yH/C05FVFNDQVBF <data name="resetToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIwQA9CBxIcOCHgx4gWLAgIUOGAwcESBTgAaEFCAEGaBwQ <value>
IGOABwYqerCQsYBJBho7JHgAUqCEDjAxYGBQgYHKBAsoCMzQIUIEmA6CdkCAIOfOBT5/MnBQYSgBozCj R0lGODlhEAAQAIQfALnik2aXQv7+/dPut73llbfala3LmW6gSWqdQ2eYRGqaSLfck568iYrUQN7yzF6R
SoVJ4KkCDx1MFhhKFEFVAhMCXM1aAANMoh2qTgh7AWvZmQ6igp0AIEDbDg0aLA06YC4AABA2eBjgYcHG PLTXlYjUP8XwmYfQQLbYl4jRQGiaQsPumNbyu7nglNPzsLXYlf7+/lCHK////////yH/C05FVFNDQVBF
vmv/Akgg2IMBDgsSdJwcAEICDhoECjDAmQIFBQouXNiwQYPOgqgLBgQAOw== Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIlgA/CBzooaAHgQUHEvSgIEAABQUfHFTIwQECDAMwYDhg
</value> oENCgRw8dBgAAECFBgsweJxYsAODDjApTIhAwCMHkCItGOxwgUCGlQQTeAgJsyhQg0iTGvzQ0qhND0IX
</data> dtBwQcJKDxZsIhQpIcIECkVffmwpYUGDCiUheBQg1cCBAgU2QFDg4KZCDxIZOoQ48S7LpQoDCx4cEAA7
<data name="resetToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> </value>
<value> </data>
R0lGODlhEAAQAIQfALnik2aXQv7+/dPut73llbfala3LmW6gSWqdQ2eYRGqaSLfck568iYrUQN7yzF6R <metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
PLTXlYjUP8XwmYfQQLbYl4jRQGiaQsPumNbyu7nglNPzsLXYlf7+/lCHK////////yH/C05FVFNDQVBF <value>614, 17</value>
Mi4wAwEBAAAh+QQBAAAfACwAAAAAEAAQAAAIlgA/CBzooaAHgQUHEvSgIEAABQUfHFTIwQECDAMwYDhg </metadata>
oENCgRw8dBgAAECFBgsweJxYsAODDjApTIhAwCMHkCItGOxwgUCGlQQTeAgJsyhQg0iTGvzQ0qhND0IX
dtBwQcJKDxZsIhQpIcIECkVffmwpYUGDCiUheBQg1cCBAgU2QFDg4KZCDxIZOoQ48S7LpQoDCx4cEAA7
</value>
</data>
</root> </root>

View File

@@ -1,127 +1,127 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
namespace FCM0000 namespace FCM0000
{ {
public partial class fUserAuth : FCOMMON.fBase public partial class fUserAuth : FCOMMON.fBase
{ {
string fn_fpcolsize1 = ""; string fn_fpcolsize1 = "";
public fUserAuth() public fUserAuth()
{ {
InitializeComponent(); InitializeComponent();
fn_fpcolsize1 = FCOMMON.Util.MakeFilePath(FCOMMON.Util.CurrentPath, "formSetting", "fp1_" + this.Name + ".ini"); fn_fpcolsize1 = FCOMMON.Util.MakeFilePath(FCOMMON.Util.CurrentPath, "formSetting", "fp1_" + this.Name + ".ini");
} }
private void __Load(object sender, EventArgs e) private void __Load(object sender, EventArgs e)
{ {
refreshData(); refreshData();
this.dSUser.Auth.TableNewRow += Customs_TableNewRow; this.dSUser.Auth.TableNewRow += Customs_TableNewRow;
} }
void Customs_TableNewRow(object sender, DataTableNewRowEventArgs e) void Customs_TableNewRow(object sender, DataTableNewRowEventArgs e)
{ {
e.Row["gcode"] = FCOMMON.info.Login.gcode; e.Row["gcode"] = FCOMMON.info.Login.gcode;
//e.Row["wdate"] = DateTime.Now; //e.Row["wdate"] = DateTime.Now;
//e.Row["cid"] = selcectIDX; //e.Row["cid"] = selcectIDX;
} }
void refreshData() void refreshData()
{ {
try try
{ {
this.ta.Fill(this.dSUser.Auth,FCOMMON.info.Login.gcode); this.ta.Fill(this.dSUser.Auth,FCOMMON.info.Login.gcode);
FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize1); FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize1);
}catch (Exception ex) }catch (Exception ex)
{ {
FCOMMON.Util.MsgE(ex.Message); FCOMMON.Util.MsgE(ex.Message);
} }
} }
private void customsBindingNavigatorSaveItem_Click(object sender, EventArgs e) private void customsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{ {
this.Validate(); this.Validate();
this.bs.EndEdit(); this.bs.EndEdit();
int cnt = this.ta.Update(this.dSUser.Auth); int cnt = this.ta.Update(this.dSUser.Auth);
if (cnt < 1) if (cnt < 1)
{ {
FCOMMON.Util.MsgI("변경된 내역이 없습니다."); FCOMMON.Util.MsgI("변경된 내역이 없습니다.");
} }
else FCOMMON.Util.MsgI(string.Format("{0} 건의 자료가 업데이트 되었습니다.",cnt)); else FCOMMON.Util.MsgI(string.Format("{0} 건의 자료가 업데이트 되었습니다.",cnt));
} }
private void btFind_Click(object sender, EventArgs e) private void btFind_Click(object sender, EventArgs e)
{ {
var search = tbFind.Text.Trim(); var search = tbFind.Text.Trim();
search = search.Replace("*", "x"); search = search.Replace("*", "x");
if (tbFind.Text != search) tbFind.Text = search; if (tbFind.Text != search) tbFind.Text = search;
try try
{ {
if (search.isEmpty()) if (search.isEmpty())
{ {
this.bs.Filter = ""; this.bs.Filter = "";
tbFind.BackColor = Color.White; tbFind.BackColor = Color.White;
} }
else else
{ {
search = search.Replace("'", "''"); search = search.Replace("'", "''");
string filter = "user like ?"; string filter = "user like ?";
filter = filter.Replace("?", "'%" + search + "%'"); filter = filter.Replace("?", "'%" + search + "%'");
this.bs.Filter = filter; this.bs.Filter = filter;
tbFind.BackColor = Color.Lime; tbFind.BackColor = Color.Lime;
} }
tbFind.SelectAll(); tbFind.SelectAll();
tbFind.Focus(); tbFind.Focus();
} }
catch (Exception ex) catch (Exception ex)
{ {
this.tbFind.BackColor = Color.Tomato; this.tbFind.BackColor = Color.Tomato;
FCOMMON.Util.MsgE(ex.Message); FCOMMON.Util.MsgE(ex.Message);
} }
} }
private void tbFind_KeyDown(object sender, KeyEventArgs e) private void tbFind_KeyDown(object sender, KeyEventArgs e)
{ {
if (e.KeyCode == Keys.Enter) btFind.PerformClick(); if (e.KeyCode == Keys.Enter) btFind.PerformClick();
} }
private void saveToolStripMenuItem_Click(object sender, EventArgs e) private void saveToolStripMenuItem_Click(object sender, EventArgs e)
{ {
FCOMMON.Util.FPColsizeSave(this.fpSpread1, fn_fpcolsize1); FCOMMON.Util.FPColsizeSave(this.fpSpread1, fn_fpcolsize1);
} }
private void loadToolStripMenuItem_Click(object sender, EventArgs e) private void loadToolStripMenuItem_Click(object sender, EventArgs e)
{ {
FCOMMON.Util.FPColSizeLoad(ref this.fpSpread1, fn_fpcolsize1); FCOMMON.Util.FPColSizeLoad(ref this.fpSpread1, fn_fpcolsize1);
} }
private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
{ {
var drv = this.bs.Current as DataRowView; var drv = this.bs.Current as DataRowView;
if (drv == null) return; if (drv == null) return;
var dr = drv.Row as DSUser.UserGroupRow; var dr = drv.Row as DSUser.UserGroupRow;
if (dr.RowState == DataRowState.Added || dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Deleted) this.bs.RemoveCurrent(); if (dr.RowState == DataRowState.Added || dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Deleted) this.bs.RemoveCurrent();
var dlg =FCOMMON.Util.MsgQ("다음 자료를 삭제하시겠습니까?"); var dlg =FCOMMON.Util.MsgQ("다음 자료를 삭제하시겠습니까?");
if(dlg == System.Windows.Forms.DialogResult.Yes) if(dlg == System.Windows.Forms.DialogResult.Yes)
{ {
this.bs.RemoveCurrent(); this.bs.RemoveCurrent();
} }
} }
private int selcectIDX = -1; // private int selcectIDX = -1;
} }
} }

View File

@@ -1,172 +1,172 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
namespace FCM0000 namespace FCM0000
{ {
public partial class fUserGroup : FCOMMON.fBase public partial class fUserGroup : FCOMMON.fBase
{ {
string fn_fpcolsize1 = ""; string fn_fpcolsize1 = "";
public fUserGroup() public fUserGroup()
{ {
InitializeComponent(); InitializeComponent();
fn_fpcolsize1 = FCOMMON.Util.MakeFilePath(FCOMMON.Util.CurrentPath, "formSetting", "fp1_" + this.Name + ".ini"); fn_fpcolsize1 = FCOMMON.Util.MakeFilePath(FCOMMON.Util.CurrentPath, "formSetting", "fp1_" + this.Name + ".ini");
} }
private void __Load(object sender, EventArgs e) private void __Load(object sender, EventArgs e)
{ {
refreshData(); refreshData();
this.dSUser.UserGroup.TableNewRow += Customs_TableNewRow; this.dSUser.UserGroup.TableNewRow += Customs_TableNewRow;
} }
void Customs_TableNewRow(object sender, DataTableNewRowEventArgs e) void Customs_TableNewRow(object sender, DataTableNewRowEventArgs e)
{ {
//e.Row["wuid"] = FCOMMON.info.Login.no; //e.Row["wuid"] = FCOMMON.info.Login.no;
//e.Row["wdate"] = DateTime.Now; //e.Row["wdate"] = DateTime.Now;
//e.Row["cid"] = selcectIDX; //e.Row["cid"] = selcectIDX;
} }
void refreshData() void refreshData()
{ {
try try
{ {
this.ta.Fill(this.dSUser.UserGroup); this.ta.Fill(this.dSUser.UserGroup);
FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize1); FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize1);
}catch (Exception ex) }catch (Exception ex)
{ {
FCOMMON.Util.MsgE(ex.Message); FCOMMON.Util.MsgE(ex.Message);
} }
} }
private void customsBindingNavigatorSaveItem_Click(object sender, EventArgs e) private void customsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{ {
this.Validate(); this.Validate();
this.bs.EndEdit(); this.bs.EndEdit();
int cnt = this.ta.Update(this.dSUser.UserGroup); int cnt = this.ta.Update(this.dSUser.UserGroup);
if (cnt < 1) if (cnt < 1)
{ {
FCOMMON.Util.MsgI("변경된 내역이 없습니다."); FCOMMON.Util.MsgI("변경된 내역이 없습니다.");
} }
else FCOMMON.Util.MsgI(string.Format("{0} 건의 자료가 업데이트 되었습니다.",cnt)); else FCOMMON.Util.MsgI(string.Format("{0} 건의 자료가 업데이트 되었습니다.",cnt));
} }
private void toolStripButton1_Click(object sender, EventArgs e) private void toolStripButton1_Click(object sender, EventArgs e)
{ {
refreshData(); refreshData();
} }
private void autoResizeColummsToolStripMenuItem_Click(object sender, EventArgs e) private void autoResizeColummsToolStripMenuItem_Click(object sender, EventArgs e)
{ {
this.fpSpread1.ActiveSheet.DataAutoSizeColumns = true; this.fpSpread1.ActiveSheet.DataAutoSizeColumns = true;
for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++) for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
this.fpSpread1.ActiveSheet.SetRowHeight(i, 25); this.fpSpread1.ActiveSheet.SetRowHeight(i, 25);
} }
private void btFind_Click(object sender, EventArgs e) private void btFind_Click(object sender, EventArgs e)
{ {
var search = tbFind.Text.Trim(); var search = tbFind.Text.Trim();
search = search.Replace("*", "x"); search = search.Replace("*", "x");
if (tbFind.Text != search) tbFind.Text = search; if (tbFind.Text != search) tbFind.Text = search;
try try
{ {
if (search.isEmpty()) if (search.isEmpty())
{ {
this.bs.Filter = ""; this.bs.Filter = "";
tbFind.BackColor = Color.White; tbFind.BackColor = Color.White;
} }
else else
{ {
search = search.Replace("'", "''"); search = search.Replace("'", "''");
string filter = "dept like ?"; string filter = "dept like ?";
filter = filter.Replace("?", "'%" + search + "%'"); filter = filter.Replace("?", "'%" + search + "%'");
this.bs.Filter = filter; this.bs.Filter = filter;
tbFind.BackColor = Color.Lime; tbFind.BackColor = Color.Lime;
} }
tbFind.SelectAll(); tbFind.SelectAll();
tbFind.Focus(); tbFind.Focus();
} }
catch (Exception ex) catch (Exception ex)
{ {
this.tbFind.BackColor = Color.Tomato; this.tbFind.BackColor = Color.Tomato;
FCOMMON.Util.MsgE(ex.Message); FCOMMON.Util.MsgE(ex.Message);
} }
} }
private void tbFind_KeyDown(object sender, KeyEventArgs e) private void tbFind_KeyDown(object sender, KeyEventArgs e)
{ {
if (e.KeyCode == Keys.Enter) btFind.PerformClick(); if (e.KeyCode == Keys.Enter) btFind.PerformClick();
} }
private void autoToolStripMenuItem_Click(object sender, EventArgs e) private void autoToolStripMenuItem_Click(object sender, EventArgs e)
{ {
this.fpSpread1.ActiveSheet.DataAutoSizeColumns = true; this.fpSpread1.ActiveSheet.DataAutoSizeColumns = true;
for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++) for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
this.fpSpread1.ActiveSheet.SetRowHeight(i, 25); this.fpSpread1.ActiveSheet.SetRowHeight(i, 25);
} }
private void resetToolStripMenuItem_Click(object sender, EventArgs e) private void resetToolStripMenuItem_Click(object sender, EventArgs e)
{ {
foreach (FarPoint.Win.Spread.Column col in this.fpSpread1.ActiveSheet.Columns) foreach (FarPoint.Win.Spread.Column col in this.fpSpread1.ActiveSheet.Columns)
{ {
col.Width = 100; col.Width = 100;
} }
} }
private void saveToolStripMenuItem_Click(object sender, EventArgs e) private void saveToolStripMenuItem_Click(object sender, EventArgs e)
{ {
FCOMMON.Util.FPColsizeSave(this.fpSpread1, fn_fpcolsize1); FCOMMON.Util.FPColsizeSave(this.fpSpread1, fn_fpcolsize1);
} }
private void loadToolStripMenuItem_Click(object sender, EventArgs e) private void loadToolStripMenuItem_Click(object sender, EventArgs e)
{ {
FCOMMON.Util.FPColSizeLoad(ref this.fpSpread1, fn_fpcolsize1); FCOMMON.Util.FPColSizeLoad(ref this.fpSpread1, fn_fpcolsize1);
} }
private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
{ {
var drv = this.bs.Current as DataRowView; var drv = this.bs.Current as DataRowView;
if (drv == null) return; if (drv == null) return;
var dr = drv.Row as DSUser.UserGroupRow; var dr = drv.Row as DSUser.UserGroupRow;
if (dr.RowState == DataRowState.Added || dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Deleted) this.bs.RemoveCurrent(); if (dr.RowState == DataRowState.Added || dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Deleted) this.bs.RemoveCurrent();
var dlg =FCOMMON.Util.MsgQ("다음 자료를 삭제하시겠습니까?"); var dlg =FCOMMON.Util.MsgQ("다음 자료를 삭제하시겠습니까?");
if(dlg == System.Windows.Forms.DialogResult.Yes) if(dlg == System.Windows.Forms.DialogResult.Yes)
{ {
this.bs.RemoveCurrent(); this.bs.RemoveCurrent();
} }
} }
private int selcectIDX = -1; //private int selcectIDX = -1;
private void bs_CurrentChanged(object sender, EventArgs e) private void bs_CurrentChanged(object sender, EventArgs e)
{ {
} }
private void ToolStripMenuItem_Click(object sender, EventArgs e) private void ToolStripMenuItem_Click(object sender, EventArgs e)
{ {
var drv = this.bs.Current as DataRowView; var drv = this.bs.Current as DataRowView;
if (drv == null) return; if (drv == null) return;
var dr = drv.Row as DSUser.UserGroupRow; var dr = drv.Row as DSUser.UserGroupRow;
var f = new fUserGroupPermission(dr.permission); var f = new fUserGroupPermission(dr.permission);
if(f.ShowDialog() == System.Windows.Forms.DialogResult.OK) if(f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{ {
dr.permission = f.permission; dr.permission = f.permission;
dr.EndEdit(); dr.EndEdit();
} }
} }
} }
} }

View File

@@ -1,130 +1,130 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
namespace FCM0000 namespace FCM0000
{ {
public partial class fHolidaytable : Form public partial class fHolidaytable : Form
{ {
public string Title { get; set; } public string Title { get; set; }
DataTable dt; // DataTable dt;
public fHolidaytable() public fHolidaytable()
{ {
InitializeComponent(); InitializeComponent();
this.StartPosition = FormStartPosition.CenterScreen; this.StartPosition = FormStartPosition.CenterScreen;
this.KeyPreview = true; this.KeyPreview = true;
this.KeyDown += (s1, e1) => { if (e1.KeyCode == Keys.Escape) this.Close(); }; this.KeyDown += (s1, e1) => { if (e1.KeyCode == Keys.Escape) this.Close(); };
this.FormClosed += fHolidaytable_FormClosed; this.FormClosed += fHolidaytable_FormClosed;
} }
void fHolidaytable_FormClosed(object sender, FormClosedEventArgs e) void fHolidaytable_FormClosed(object sender, FormClosedEventArgs e)
{ {
} }
private void fLovItem_Load(object sender, EventArgs e) private void fLovItem_Load(object sender, EventArgs e)
{ {
this.textBox1.Text = DateTime.Now.ToString("yyyy-MM"); this.textBox1.Text = DateTime.Now.ToString("yyyy-MM");
refreshData(); refreshData();
//if(dv.Columns.Count > 1) //if(dv.Columns.Count > 1)
// this.dv.Columns[1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; // this.dv.Columns[1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
//else //else
// this.dv.Columns[0].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; // this.dv.Columns[0].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
} }
void refreshData() void refreshData()
{ {
string month = textBox1.Text.Trim() + "%"; string month = textBox1.Text.Trim() + "%";
this.ta.Fill(this.dsMSSQL.HolidayLIst, month); this.ta.Fill(this.dsMSSQL.HolidayLIst, month);
if (this.dsMSSQL.HolidayLIst.Rows.Count < 1) if (this.dsMSSQL.HolidayLIst.Rows.Count < 1)
{ {
//자료를 추가해야함 //자료를 추가해야함
DateTime sdt = DateTime.Parse(textBox1.Text.Trim() + "-01"); DateTime sdt = DateTime.Parse(textBox1.Text.Trim() + "-01");
DateTime edt = sdt.AddMonths(1).AddDays(-1); DateTime edt = sdt.AddMonths(1).AddDays(-1);
var ts = edt - sdt; var ts = edt - sdt;
for (int i = sdt.Day; i <= edt.Day; i++) for (int i = sdt.Day; i <= edt.Day; i++)
{ {
DateTime dayvalue = DateTime.Parse(textBox1.Text.Trim() + "-" + i.ToString("00")); DateTime dayvalue = DateTime.Parse(textBox1.Text.Trim() + "-" + i.ToString("00"));
var newdr = this.dsMSSQL.HolidayLIst.NewHolidayLIstRow(); var newdr = this.dsMSSQL.HolidayLIst.NewHolidayLIstRow();
newdr.wuid = FCOMMON.info.Login.no; newdr.wuid = FCOMMON.info.Login.no;
newdr.wdate = DateTime.Now; newdr.wdate = DateTime.Now;
newdr.pdate = dayvalue.ToShortDateString();// textBox1.Text.Trim() + "-" + i.ToString("00"); newdr.pdate = dayvalue.ToShortDateString();// textBox1.Text.Trim() + "-" + i.ToString("00");
if (dayvalue.DayOfWeek == DayOfWeek.Saturday ) if (dayvalue.DayOfWeek == DayOfWeek.Saturday )
{ {
newdr.free = true; newdr.free = true;
newdr.memo = "토요일"; newdr.memo = "토요일";
} }
else if (dayvalue.DayOfWeek == DayOfWeek.Sunday) else if (dayvalue.DayOfWeek == DayOfWeek.Sunday)
{ {
newdr.free = true; newdr.free = true;
newdr.memo = "일요일"; newdr.memo = "일요일";
} }
else else
{ {
newdr.free = false; newdr.free = false;
newdr.memo = ""; newdr.memo = "";
} }
this.dsMSSQL.HolidayLIst.AddHolidayLIstRow(newdr); this.dsMSSQL.HolidayLIst.AddHolidayLIstRow(newdr);
} }
} }
refreshStatus(); refreshStatus();
} }
void refreshStatus() void refreshStatus()
{ {
var smsg = "근무일수 : {0} / 휴일 : {1}"; var smsg = "근무일수 : {0} / 휴일 : {1}";
int freeday =this.dsMSSQL.HolidayLIst.Where(t=>t.free==true).Count(); int freeday =this.dsMSSQL.HolidayLIst.Where(t=>t.free==true).Count();
int workday = this.dsMSSQL.HolidayLIst.Rows.Count - freeday; int workday = this.dsMSSQL.HolidayLIst.Rows.Count - freeday;
lbStatus.Text = string.Format(smsg, workday, freeday); lbStatus.Text = string.Format(smsg, workday, freeday);
} }
private void bs_CurrentChanged(object sender, EventArgs e) private void bs_CurrentChanged(object sender, EventArgs e)
{ {
} }
private void dv_KeyDown(object sender, KeyEventArgs e) private void dv_KeyDown(object sender, KeyEventArgs e)
{ {
} }
private void itemsBindingNavigatorSaveItem_Click(object sender, EventArgs e) private void itemsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{ {
this.Validate(); this.Validate();
this.bs.EndEdit(); this.bs.EndEdit();
try try
{ {
ta.Update(this.dsMSSQL.HolidayLIst); ta.Update(this.dsMSSQL.HolidayLIst);
this.dsMSSQL.HolidayLIst.AcceptChanges(); this.dsMSSQL.HolidayLIst.AcceptChanges();
refreshStatus(); refreshStatus();
} }
catch (Exception ex) catch (Exception ex)
{ {
FCOMMON.Util.MsgE(ex.Message); FCOMMON.Util.MsgE(ex.Message);
} }
} }
private void dv_DoubleClick(object sender, EventArgs e) private void dv_DoubleClick(object sender, EventArgs e)
{ {
btSave.PerformClick(); btSave.PerformClick();
} }
private void btrefresh_Click(object sender, EventArgs e) private void btrefresh_Click(object sender, EventArgs e)
{ {
refreshData(); refreshData();
} }
private void textBox1_KeyDown(object sender, KeyEventArgs e) private void textBox1_KeyDown(object sender, KeyEventArgs e)
{ {
if (e.KeyCode == Keys.Enter) if (e.KeyCode == Keys.Enter)
btrefresh.PerformClick(); btrefresh.PerformClick();
} }
} }
} }

View File

@@ -116,7 +116,7 @@ namespace FCOMMON
cmd.ExecuteNonQuery(); cmd.ExecuteNonQuery();
retval = true; retval = true;
} }
catch (Exception ex) catch
{ {
} }
@@ -269,14 +269,14 @@ namespace FCOMMON
/// <returns></returns> /// <returns></returns>
public static Boolean addProjectHistory(int ProjectIdx, string pdate, string Message) public static Boolean addProjectHistory(int ProjectIdx, string pdate, string Message)
{ {
var cn = getCn(); var cn = getCn();
cn.Open(); cn.Open();
string sql = string sql =
"insert into ProjectsHistory(pidx,pdate,remark,wuid,wdate)" + "insert into ProjectsHistory(pidx,pdate,remark,wuid,wdate)" +
" values(@pidx,@pdate,@remark,@wuid,@wdate)"; " values(@pidx,@pdate,@remark,@wuid,@wdate)";
var cmd = new SqlCommand(sql, cn); var cmd = new SqlCommand(sql, cn);
cmd.Parameters.Add(new SqlParameter("pidx", ProjectIdx)); cmd.Parameters.Add(new SqlParameter("pidx", ProjectIdx));
cmd.Parameters.Add(new SqlParameter("pdate", pdate)); cmd.Parameters.Add(new SqlParameter("pdate", pdate));
@@ -519,7 +519,7 @@ namespace FCOMMON
retval.svalue = string.Empty; retval.svalue = string.Empty;
retval.grp = string.Empty; retval.grp = string.Empty;
var cn = getCn(); var cn = getCn();
cn.Open(); cn.Open();
var sql = "select isnull(code,''),isnull(memo,'')" + var sql = "select isnull(code,''),isnull(memo,'')" +
@@ -543,11 +543,11 @@ namespace FCOMMON
return retval; return retval;
} }
public static Boolean insertCommonCode(string GroupCode, string code,string memo,string svalue="")
public static Boolean insertCommonCode(string GroupCode, string code, string memo, string svalue = "")
{ {
var cn = getCn(); var cn = getCn();
cn.Open(); cn.Open();
var sql = "insert into common(gcode,grp,code,svalue,memo,wuid,wdate)" + var sql = "insert into common(gcode,grp,code,svalue,memo,wuid,wdate)" +
@@ -557,13 +557,13 @@ namespace FCOMMON
var cmd = new SqlCommand(sql, cn); var cmd = new SqlCommand(sql, cn);
cmd.Parameters.Add(new SqlParameter("gcode", FCOMMON.info.Login.gcode)); cmd.Parameters.Add(new SqlParameter("gcode", FCOMMON.info.Login.gcode));
cmd.Parameters.Add(new SqlParameter("grp", GroupCode)); cmd.Parameters.Add(new SqlParameter("grp", GroupCode));
cmd.Parameters.Add(new SqlParameter("code", code)); cmd.Parameters.Add(new SqlParameter("code", code));
cmd.Parameters.Add(new SqlParameter("memo", memo)); cmd.Parameters.Add(new SqlParameter("memo", memo));
cmd.Parameters.Add(new SqlParameter("svalue", svalue)); cmd.Parameters.Add(new SqlParameter("svalue", svalue));
cmd.Parameters.Add(new SqlParameter("wuid", FCOMMON.info.Login.no)); cmd.Parameters.Add(new SqlParameter("wuid", FCOMMON.info.Login.no));
cmd.Parameters.Add(new SqlParameter("wdate", DateTime.Now)); cmd.Parameters.Add(new SqlParameter("wdate", DateTime.Now));
var da = cmd.ExecuteNonQuery(); var da = cmd.ExecuteNonQuery();
cmd.Dispose(); cmd.Dispose();
cn.Close(); cn.Close();
cn.Dispose(); cn.Dispose();
@@ -577,7 +577,7 @@ namespace FCOMMON
retval.title = string.Empty; retval.title = string.Empty;
retval.svalue = string.Empty; retval.svalue = string.Empty;
retval.grp = string.Empty; retval.grp = string.Empty;
var cn = getCn(); var cn = getCn();
cn.Open(); cn.Open();
var sql = "select isnull(code,''),isnull(memo,'')" + var sql = "select isnull(code,''),isnull(memo,'')" +
@@ -652,6 +652,38 @@ namespace FCOMMON
else return null; else return null;
} }
public static System.Data.DataTable getProcessList()
{
System.Data.DataTable retval = new System.Data.DataTable();
retval.Columns.Add("Code");
retval.Columns.Add("Value");
var cn = getCn();
cn.Open();
var sql = "select isnull(processs,'') as process" +
" from Users" +
" where processs is not null and gcode='{0}'" +
" group by processs" +
" order by process";
sql = string.Format(sql, FCOMMON.info.Login.gcode);
var cmd = new SqlCommand(sql, cn);
var rdr = cmd.ExecuteReader();
var cnt = 0;
while (rdr.Read())
{
retval.Rows.Add(new string[] { cnt.ToString(), rdr[0].ToString() });
cnt += 1;
}
rdr.Close();
cmd.Dispose();
cn.Close();
cn.Dispose();
return retval;
}
public static System.Data.DataTable getUserProjectList(string userName) public static System.Data.DataTable getUserProjectList(string userName)
{ {
@@ -662,7 +694,7 @@ namespace FCOMMON
var cn = getCn(); var cn = getCn();
cn.Open(); cn.Open();
var sql = "select idx,isnull(name,''),pdate from Projects" + var sql = "select idx,isnull(name,''),pdate from Projects" +
" where gcode='{0}'" + " where gcode='{0}'" +
" and isnull(userManager,'') like '%{1}%'" + " and isnull(userManager,'') like '%{1}%'" +
" or isnull(userMain,'') like '%{1}%'" + " or isnull(userMain,'') like '%{1}%'" +
@@ -740,7 +772,7 @@ namespace FCOMMON
cn.Open(); cn.Open();
var sql = "select isnull(place,'')" + var sql = "select isnull(place,'')" +
" from Inventory " + " from Inventory " +
" where gcode = '{0}'" + " where gcode = '{0}'" +
" order by place"; " order by place";
sql = string.Format(sql, gcode); sql = string.Format(sql, gcode);
var cmd = new SqlCommand(sql, cn); var cmd = new SqlCommand(sql, cn);
@@ -832,7 +864,7 @@ namespace FCOMMON
cn.Close(); cn.Close();
cn.Dispose(); cn.Dispose();
} }
catch (Exception ex) catch
{ {
work = 0; work = 0;
total = 0; total = 0;
@@ -855,7 +887,7 @@ namespace FCOMMON
var cmd2 = new SqlCommand("", cn); var cmd2 = new SqlCommand("", cn);
cmd2.CommandText = string.Format("select count(*) from Items " + cmd2.CommandText = string.Format("select count(*) from Items " +
" where ISNULL(REPLACE(name, ' ', '') + REPLACE(model, ' ', ''), '') = '{0}'", pumname.Replace(" ","").Replace("'", "''") + model.Replace(" ","").Replace("'", "''")); " where ISNULL(REPLACE(name, ' ', '') + REPLACE(model, ' ', ''), '') = '{0}'", pumname.Replace(" ", "").Replace("'", "''") + model.Replace(" ", "").Replace("'", "''"));
var cnt = int.Parse(cmd2.ExecuteScalar().ToString()); var cnt = int.Parse(cmd2.ExecuteScalar().ToString());
if (cnt == 0) if (cnt == 0)
{ {
@@ -896,14 +928,16 @@ namespace FCOMMON
//} //}
//else retval = -1; //else retval = -1;
} }
//{ //{
cmd2.CommandText = string.Format("select min(idx) from Items where gcode='" + FCOMMON.info.Login.gcode +"' and ISNULL(REPLACE(name, ' ', '') + REPLACE(model, ' ', ''), '') = '{0}'", pumname.Replace(" ", "").Replace("'", "''") + model.Replace(" ","").Replace("'", "''")); cmd2.CommandText = string.Format("select min(idx) from Items where gcode='" + FCOMMON.info.Login.gcode + "' and ISNULL(REPLACE(name, ' ', '') + REPLACE(model, ' ', ''), '') = '{0}'", pumname.Replace(" ", "").Replace("'", "''") + model.Replace(" ", "").Replace("'", "''"));
var itemdata = cmd2.ExecuteScalar(); var itemdata = cmd2.ExecuteScalar();
if(itemdata == DBNull.Value || itemdata == null) if (itemdata == DBNull.Value || itemdata == null)
{ {
retval = -1; retval = -1;
} else { }
else
{
var strItem = itemdata.ToString(); var strItem = itemdata.ToString();
if (strItem == "") retval = -1; if (strItem == "") retval = -1;
else retval = int.Parse(strItem); else retval = int.Parse(strItem);

View File

@@ -43,6 +43,7 @@ namespace FCOMMON
public string nameK; public string nameK;
public string dept; public string dept;
public string email; public string email;
public string process;
public int level; public int level;
public string gcode; public string gcode;
public int gpermission; public int gpermission;

View File

@@ -1,226 +1,226 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
namespace FCOMMON namespace FCOMMON
{ {
public partial class fFTPExplorer : Form public partial class fFTPExplorer : Form
{ {
string homePath = string.Empty; string homePath = string.Empty;
string curPath = string.Empty; string curPath = string.Empty;
arUtil.FTPClient.FTPClient ftp; arUtil.FTPClient.FTPClient ftp;
string fn = "ftpExplorer.ini"; string fn = "ftpExplorer.ini";
public fFTPExplorer(string title,string path,string ip,string id,string pw,int port=21,Boolean passvie=true) public fFTPExplorer(string title,string path,string ip,string id,string pw,int port=21,Boolean passvie=true)
{ {
InitializeComponent(); InitializeComponent();
this.Text = string.Format("[FTP] {0}",title); this.Text = string.Format("[FTP] {0}",title);
this.KeyPreview = true; this.KeyPreview = true;
this.KeyDown += (s1, e1) => { this.KeyDown += (s1, e1) => {
if (e1.KeyCode == Keys.Escape) this.Close(); if (e1.KeyCode == Keys.Escape) this.Close();
}; };
this.listView1.DoubleClick += listView1_DoubleClick; this.listView1.DoubleClick += listView1_DoubleClick;
this.tbpath.KeyDown += (s1, e1) => { this.tbpath.KeyDown += (s1, e1) => {
if (e1.KeyCode == Keys.Enter) if (e1.KeyCode == Keys.Enter)
btQuery.PerformClick(); btQuery.PerformClick();
}; };
this.FormClosed += __Closed; this.FormClosed += __Closed;
ftp = new arUtil.FTPClient.FTPClient(ip, id, pw, port, passvie); ftp = new arUtil.FTPClient.FTPClient(ip, id, pw, port, passvie);
curPath = path; curPath = path;
homePath = path; homePath = path;
//홈폴더가 없으면 생성을 한다. //홈폴더가 없으면 생성을 한다.
var list = ftp.directoryListSimple(homePath); var list = ftp.directoryListSimple(homePath);
if(list.Length == 1) if(list.Length == 1)
{ {
//폴더를 생성해준다. //폴더를 생성해준다.
ftp.createDirectory(homePath); ftp.createDirectory(homePath);
//하위폴더 //하위폴더
string[] subdir = new string[] { "Source","Document","Draw"}; string[] subdir = new string[] { "Source","Document","Draw"};
foreach (var dir in subdir) foreach (var dir in subdir)
ftp.createDirectory(ftp.PathCombine(homePath, dir)); ftp.createDirectory(ftp.PathCombine(homePath, dir));
} }
this.listView1.DragDrop += listView1_DragDrop; this.listView1.DragDrop += listView1_DragDrop;
this.listView1.DragEnter += listView1_DragEnter; this.listView1.DragEnter += listView1_DragEnter;
this.listView1.DragOver += listView1_DragOver; this.listView1.DragOver += listView1_DragOver;
} }
void __Closed(object sender, FormClosedEventArgs e) void __Closed(object sender, FormClosedEventArgs e)
{ {
//listview column width //listview column width
arUtil.INIHelper ini = new arUtil.INIHelper(fn); arUtil.INIHelper ini = new arUtil.INIHelper(fn);
for (int i = 0; i < this.listView1.Columns.Count; i++) for (int i = 0; i < this.listView1.Columns.Count; i++)
{ {
var curwidth = this.listView1.Columns[i].Width; var curwidth = this.listView1.Columns[i].Width;
ini.set_Data("colsize", "index_" + i.ToString(), curwidth.ToString()); ini.set_Data("colsize", "index_" + i.ToString(), curwidth.ToString());
} }
ini.Flush(); ini.Flush();
//string item = "ftp_lv_col_"; //string item = "ftp_lv_col_";
//for (int i = 0; i < this.listView1.Columns.Count; i++) //for (int i = 0; i < this.listView1.Columns.Count; i++)
//{ //{
// var curwidth = this.listView1.Columns[i].Width; // var curwidth = this.listView1.Columns[i].Width;
// Pub.setting.Xml.set_Data(item + i.ToString(),curwidth.ToString()); // Pub.setting.Xml.set_Data(item + i.ToString(),curwidth.ToString());
//} //}
//Pub.setting.Save(); //Pub.setting.Save();
} }
private void __Load(object sender, EventArgs e) private void __Load(object sender, EventArgs e)
{ {
this.tbpath.Text = this.curPath;// Pub.setting.ftp_path; this.tbpath.Text = this.curPath;// Pub.setting.ftp_path;
if (this.tbpath.Text == "") tbpath.Text = "/"; if (this.tbpath.Text == "") tbpath.Text = "/";
timer1.Start(); timer1.Start();
//listview column width //listview column width
string item = "ftp_lv_col_"; //string item = "ftp_lv_col_";
if (System.IO.File.Exists(fn) == false) return; if (System.IO.File.Exists(fn) == false) return;
arUtil.INIHelper ini = new arUtil.INIHelper(fn); arUtil.INIHelper ini = new arUtil.INIHelper(fn);
for (int i = 0; i < this.listView1.Columns.Count; i++) for (int i = 0; i < this.listView1.Columns.Count; i++)
{ {
var cwid = ini.get_Data("colsize", "index_" + i.ToString(), "0"); var cwid = ini.get_Data("colsize", "index_" + i.ToString(), "0");
this.listView1.Columns[i].Width = int.Parse(cwid); this.listView1.Columns[i].Width = int.Parse(cwid);
} }
btQuery.PerformClick(); btQuery.PerformClick();
} }
void listView1_DragOver(object sender, DragEventArgs e) void listView1_DragOver(object sender, DragEventArgs e)
{ {
this.Cursor = Cursors.Hand; this.Cursor = Cursors.Hand;
} }
void listView1_DragEnter(object sender, DragEventArgs e) void listView1_DragEnter(object sender, DragEventArgs e)
{ {
e.Effect = DragDropEffects.All; e.Effect = DragDropEffects.All;
} }
void listView1_DragDrop(object sender, DragEventArgs e) void listView1_DragDrop(object sender, DragEventArgs e)
{ {
string[] files = (string[])e.Data.GetData(DataFormats.FileDrop, false); string[] files = (string[])e.Data.GetData(DataFormats.FileDrop, false);
if (files.Length < 1) return; if (files.Length < 1) return;
string msg = string.Format("{0}건의 파일을 업로드 하시겠습니까?",files.Length); string msg = string.Format("{0}건의 파일을 업로드 하시겠습니까?",files.Length);
if (FCOMMON.Util.MsgQ(msg) != System.Windows.Forms.DialogResult.Yes) return; if (FCOMMON.Util.MsgQ(msg) != System.Windows.Forms.DialogResult.Yes) return;
foreach(var fileName in files) foreach(var fileName in files)
{ {
System.IO.FileInfo fi = new System.IO.FileInfo(fileName); System.IO.FileInfo fi = new System.IO.FileInfo(fileName);
string remote = tbpath.Text + "/" + fi.Name; string remote = tbpath.Text + "/" + fi.Name;
ftp.Upload(remote, fi.FullName); ftp.Upload(remote, fi.FullName);
} }
btQuery.PerformClick(); btQuery.PerformClick();
} }
void listView1_DoubleClick(object sender, EventArgs e) void listView1_DoubleClick(object sender, EventArgs e)
{ {
var path = listView1.SelectedItems[0].Text; var path = listView1.SelectedItems[0].Text;
var newpath = string.Empty; var newpath = string.Empty;
if (path == "..") if (path == "..")
{ {
if( this.homePath.Replace("/","") == curPath.Replace("/","")) if( this.homePath.Replace("/","") == curPath.Replace("/",""))
{ {
FCOMMON.Util.MsgE("홈 디렉토리 입니다."); FCOMMON.Util.MsgE("홈 디렉토리 입니다.");
return; return;
} else newpath = ftp.getParent(curPath); } else newpath = ftp.getParent(curPath);
} }
else else
newpath = ftp.PathCombine(curPath, path); newpath = ftp.PathCombine(curPath, path);
search(newpath); search(newpath);
} }
private void button1_Click(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e)
{ {
if (this.tbpath.Text == "/") this.tbpath.Text = homePath; if (this.tbpath.Text == "/") this.tbpath.Text = homePath;
search(this.tbpath.Text); search(this.tbpath.Text);
tbpath.Focus(); tbpath.Focus();
tbpath.SelectAll(); tbpath.SelectAll();
} }
void search(string path) void search(string path)
{ {
if (path == "") path = "/"; if (path == "") path = "/";
curPath = path; curPath = path;
tbpath.Text = curPath; tbpath.Text = curPath;
this.listView1.Items.Clear(); this.listView1.Items.Clear();
this.progressBar1.Value = 0; this.progressBar1.Value = 0;
// var list = ftp.directoryListSimple("/201"); // var list = ftp.directoryListSimple("/201");
var lvup = listView1.Items.Add(".."); var lvup = listView1.Items.Add("..");
lvup.SubItems.Add(""); lvup.SubItems.Add("");
lvup.SubItems.Add(""); lvup.SubItems.Add("");
lvup.SubItems.Add(""); lvup.SubItems.Add("");
var ftpdir = ftp.ListDirectoryDetail(path); var ftpdir = ftp.ListDirectoryDetail(path);
if(ftpdir == null) if(ftpdir == null)
{ {
//Util.MsgE(ftp.errorMessage); //Util.MsgE(ftp.errorMessage);
return; return;
} }
this.progressBar1.Maximum = ftpdir.Count; this.progressBar1.Maximum = ftpdir.Count;
var OrderData = ftpdir.OrderBy(t => t.FileType).OrderBy(t=>t.Filename); var OrderData = ftpdir.OrderBy(t => t.FileType).OrderBy(t=>t.Filename);
foreach (var item in OrderData) foreach (var item in OrderData)
{ {
this.progressBar1.Value += 1; this.progressBar1.Value += 1;
if (item.Filename == ".") continue; if (item.Filename == ".") continue;
var lv = listView1.Items.Add(item.Filename); var lv = listView1.Items.Add(item.Filename);
lv.SubItems.Add(item.FileType.ToString()); lv.SubItems.Add(item.FileType.ToString());
lv.SubItems.Add(item.Size.ToString()); lv.SubItems.Add(item.Size.ToString());
lv.SubItems.Add(item.FileDateTime.ToString()); lv.SubItems.Add(item.FileDateTime.ToString());
if (item.FileType == arUtil.FTPClient.FTPfileInfo.DirectoryEntryTypes.Directory) lv.ForeColor = Color.Blue; if (item.FileType == arUtil.FTPClient.FTPfileInfo.DirectoryEntryTypes.Directory) lv.ForeColor = Color.Blue;
} }
} }
private void timer1_Tick(object sender, EventArgs e) private void timer1_Tick(object sender, EventArgs e)
{ {
this.lbPath.Text = curPath; this.lbPath.Text = curPath;
} }
private void uploadToolStripMenuItem_Click(object sender, EventArgs e) private void uploadToolStripMenuItem_Click(object sender, EventArgs e)
{ {
OpenFileDialog od = new OpenFileDialog(); OpenFileDialog od = new OpenFileDialog();
if (od.ShowDialog() != System.Windows.Forms.DialogResult.OK) return; if (od.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;
//이파일을 현재 위치에 업로드 한다. //이파일을 현재 위치에 업로드 한다.
System.IO.FileInfo fi = new System.IO.FileInfo(od.FileName); System.IO.FileInfo fi = new System.IO.FileInfo(od.FileName);
string newfile = ftp.PathFileCombine(curPath, fi.Name); string newfile = ftp.PathFileCombine(curPath, fi.Name);
if (!ftp.Upload(newfile, od.FileName)) if (!ftp.Upload(newfile, od.FileName))
Util.MsgE("upload error"); Util.MsgE("upload error");
search(curPath); search(curPath);
} }
private void downLoadToolStripMenuItem_Click(object sender, EventArgs e) private void downLoadToolStripMenuItem_Click(object sender, EventArgs e)
{ {
if (this.listView1.SelectedItems.Count < 1) return; if (this.listView1.SelectedItems.Count < 1) return;
//이파일을 현재 위치에 업로드 한다. //이파일을 현재 위치에 업로드 한다.
var selfile = this.listView1.SelectedItems[0]; var selfile = this.listView1.SelectedItems[0];
var remotefile = ftp.PathFileCombine(curPath, selfile.Text); var remotefile = ftp.PathFileCombine(curPath, selfile.Text);
var onlyfilename = remotefile.Substring(remotefile.LastIndexOf("/")+1); var onlyfilename = remotefile.Substring(remotefile.LastIndexOf("/")+1);
SaveFileDialog od = new SaveFileDialog(); SaveFileDialog od = new SaveFileDialog();
od.Filter = "All files|*.*"; od.Filter = "All files|*.*";
od.FilterIndex = 1; od.FilterIndex = 1;
od.FileName = onlyfilename; od.FileName = onlyfilename;
if (od.ShowDialog() != System.Windows.Forms.DialogResult.OK) return; if (od.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;
System.IO.FileInfo fi = new System.IO.FileInfo(od.FileName); System.IO.FileInfo fi = new System.IO.FileInfo(od.FileName);
string newfile = ftp.PathFileCombine(curPath, fi.Name); string newfile = ftp.PathFileCombine(curPath, fi.Name);
if (!ftp.Download(remotefile,od.FileName)) if (!ftp.Download(remotefile,od.FileName))
Util.MsgE("Download error"); Util.MsgE("Download error");
search(curPath); search(curPath);
} }
} }
} }

View File

@@ -1,41 +1,42 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
namespace FCOMMON namespace FCOMMON
{ {
public partial class fSelectMonth : Form public partial class fSelectMonth : Form
{ {
public int selectmon = -1; public int selectmon { get; set; }
public fSelectMonth() public fSelectMonth()
{ {
InitializeComponent(); InitializeComponent();
this.KeyDown += (s1,e1)=>{ if (e1.KeyCode == Keys.Escape) this.Close(); }; selectmon = -1;
} this.KeyDown += (s1,e1)=>{ if (e1.KeyCode == Keys.Escape) this.Close(); };
}
private void fSelectMonth_Load(object sender, EventArgs e)
{ private void fSelectMonth_Load(object sender, EventArgs e)
for(int i = 1 ; i <=12;i++) {
{ for(int i = 1 ; i <=12;i++)
Button newbt = new Button(); {
newbt.Text = string.Format("{0}월",i); Button newbt = new Button();
newbt.Tag = i; newbt.Text = string.Format("{0}월",i);
newbt.Click += newbt_Click; newbt.Tag = i;
newbt.Dock = DockStyle.Fill; newbt.Click += newbt_Click;
tableLayoutPanel1.Controls.Add(newbt); newbt.Dock = DockStyle.Fill;
} tableLayoutPanel1.Controls.Add(newbt);
} }
}
void newbt_Click(object sender, EventArgs e)
{ void newbt_Click(object sender, EventArgs e)
var bt = sender as Button; {
selectmon = int.Parse(bt.Tag.ToString()); var bt = sender as Button;
DialogResult = System.Windows.Forms.DialogResult.OK; selectmon = int.Parse(bt.Tag.ToString());
} DialogResult = System.Windows.Forms.DialogResult.OK;
} }
} }
}

View File

@@ -1,83 +1,83 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
using Emgu.CV; using Emgu.CV;
using Emgu.CV.Structure; using Emgu.CV.Structure;
using Emgu.CV.CvEnum; using Emgu.CV.CvEnum;
namespace FCOMMON namespace FCOMMON
{ {
public partial class fWebCamera : Form public partial class fWebCamera : Form
{ {
VideoCapture _capture; VideoCapture _capture;
public Bitmap bmp = null; public Bitmap bmp = null;
public fWebCamera(int idx = 0) public fWebCamera(int idx = 0)
{ {
InitializeComponent(); InitializeComponent();
this._capture = new VideoCapture(idx); this._capture = new VideoCapture(idx);
//capture.SetCaptureProperty(CapProp.FrameWidth, 648); //capture.SetCaptureProperty(CapProp.FrameWidth, 648);
//_capture.SetCaptureProperty(CapProp.FrameHeight, 480); //_capture.SetCaptureProperty(CapProp.FrameHeight, 480);
this._capture.ImageGrabbed += capture_ImageGrabbed; this._capture.ImageGrabbed += capture_ImageGrabbed;
this.FormClosing += fWebCamera_FormClosing; this.FormClosing += fWebCamera_FormClosing;
} }
void fWebCamera_FormClosing(object sender, FormClosingEventArgs e) void fWebCamera_FormClosing(object sender, FormClosingEventArgs e)
{ {
this._capture.ImageGrabbed -= capture_ImageGrabbed; this._capture.ImageGrabbed -= capture_ImageGrabbed;
if (this._capture.IsOpened) this._capture.Stop(); if (this._capture.IsOpened) this._capture.Stop();
this._capture.Dispose(); this._capture.Dispose();
} }
private void fWebCamera_Load(object sender, EventArgs e) private void fWebCamera_Load(object sender, EventArgs e)
{ {
srcimage = new Mat(); srcimage = new Mat();
this._capture.Start(); this._capture.Start();
this.imageBox1.Image = srcimage; this.imageBox1.Image = srcimage;
} }
Mat srcimage; Mat srcimage;
DateTime lastimage = DateTime.Now; DateTime lastimage = DateTime.Now;
void capture_ImageGrabbed(object sender, EventArgs e) void capture_ImageGrabbed(object sender, EventArgs e)
{ {
if (this._capture.Retrieve(srcimage, 0)) if (this._capture.Retrieve(srcimage, 0))
{ {
lastimage = DateTime.Now; lastimage = DateTime.Now;
if (srcimage != null && srcimage.Width > 10 && srcimage.Height > 10) if (srcimage != null && srcimage.Width > 10 && srcimage.Height > 10)
{ {
if (this.Disposing || this.IsDisposed) return; if (this.Disposing || this.IsDisposed) return;
try try
{ {
this.imageBox1.Image = srcimage; this.imageBox1.Image = srcimage;
this.imageBox1.Invalidate(); this.imageBox1.Invalidate();
}catch (Exception ex) } catch
{ {
} }
//var img = this.pictureBox1.Image; //var img = this.pictureBox1.Image;
//if (img != null) img.Dispose(); //if (img != null) img.Dispose();
} }
} }
} }
private void button1_Click(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e)
{ {
_capture.Stop(); _capture.Stop();
while(true) while(true)
{ {
var ts = DateTime.Now - lastimage; var ts = DateTime.Now - lastimage;
if (ts.TotalSeconds >= 1.0) if (ts.TotalSeconds >= 1.0)
break; break;
Application.DoEvents(); Application.DoEvents();
} }
bmp = srcimage.Bitmap; bmp = srcimage.Bitmap;
DialogResult = System.Windows.Forms.DialogResult.OK; DialogResult = System.Windows.Forms.DialogResult.OK;
} }
} }
} }

View File

@@ -1,354 +1,354 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
namespace FEQ0000 namespace FEQ0000
{ {
public partial class fImpEquipment : Form public partial class fImpEquipment : Form
{ {
DataTable dt = null; DataTable dt = null;
DataTable dtExcel = new DataTable(); DataTable dtExcel = new DataTable();
fEquipment.eTabletype imptype = fEquipment.eTabletype.MOLD; fEquipment.eTabletype imptype = fEquipment.eTabletype.MOLD;
public fImpEquipment(fEquipment.eTabletype type_) public fImpEquipment(fEquipment.eTabletype type_)
{ {
InitializeComponent(); InitializeComponent();
this.FormClosed += __Closed; this.FormClosed += __Closed;
imptype = type_; imptype = type_;
switch (imptype) switch (imptype)
{ {
case fEquipment.eTabletype.FOL: case fEquipment.eTabletype.FOL:
dt = new dsEQ.EquipmentFDataTable(); dt = new dsEQ.EquipmentFDataTable();
break; break;
case fEquipment.eTabletype.MOLD: case fEquipment.eTabletype.MOLD:
dt = new dsEQ.EquipmentMEDataTable(); dt = new dsEQ.EquipmentMEDataTable();
break; break;
case fEquipment.eTabletype.BUMP: case fEquipment.eTabletype.BUMP:
dt = new dsEQ.EquipmentBDataTable(); dt = new dsEQ.EquipmentBDataTable();
break; break;
} }
} }
private void __Load(object sender, EventArgs e) private void __Load(object sender, EventArgs e)
{ {
this.Text = string.Format("Data Import({0})", this.imptype); this.Text = string.Format("Data Import({0})", this.imptype);
var form = this as Form; var form = this as Form;
FCOMMON.Util.SetFormStatus(ref form, this.Name, true); FCOMMON.Util.SetFormStatus(ref form, this.Name, true);
this.Show(); this.Show();
Application.DoEvents(); Application.DoEvents();
} }
void __Closed(object sender, FormClosedEventArgs e) void __Closed(object sender, FormClosedEventArgs e)
{ {
var form = this as Form; var form = this as Form;
FCOMMON.Util.SetFormStatus(ref form, this.Name, false); FCOMMON.Util.SetFormStatus(ref form, this.Name, false);
} }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{ {
OpenFileDialog od = new OpenFileDialog(); OpenFileDialog od = new OpenFileDialog();
od.Filter = "excel|*.xlsx|all files|*.*"; od.Filter = "excel|*.xlsx|all files|*.*";
od.InitialDirectory = FCOMMON.Util.CurrentPath + "model"; od.InitialDirectory = FCOMMON.Util.CurrentPath + "model";
od.FilterIndex = 1; od.FilterIndex = 1;
od.RestoreDirectory = true; od.RestoreDirectory = true;
if (od.ShowDialog() != System.Windows.Forms.DialogResult.OK) return; if (od.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;
textBox1.Text = od.FileName; textBox1.Text = od.FileName;
} }
private string[] getCSVFormat(string line) private string[] getCSVFormat(string line)
{ {
List<string> datas = new List<string>(); List<string> datas = new List<string>();
var charlist = line.ToCharArray(); var charlist = line.ToCharArray();
int c = 0; // int c = 0;
System.Text.StringBuilder sb = new StringBuilder(); System.Text.StringBuilder sb = new StringBuilder();
Boolean findCom = false; Boolean findCom = false;
foreach (var ch in charlist) foreach (var ch in charlist)
{ {
if (ch == '"') if (ch == '"')
{ {
if (findCom == false) if (findCom == false)
findCom = true; findCom = true;
else findCom = false; else findCom = false;
} }
else if (ch == ',') else if (ch == ',')
{ {
if (findCom) if (findCom)
{ {
sb.Append(ch); sb.Append(ch);
} }
else else
{ {
datas.Add(sb.ToString()); datas.Add(sb.ToString());
sb.Clear(); sb.Clear();
findCom = false; findCom = false;
} }
} }
else sb.Append(ch); else sb.Append(ch);
} }
return datas.ToArray(); return datas.ToArray();
} }
private void button1_Click(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e)
{ {
if(textBox1.Text.isEmpty()) if(textBox1.Text.isEmpty())
{ {
FCOMMON.Util.MsgE("파일을 선택하세요"); FCOMMON.Util.MsgE("파일을 선택하세요");
textBox1.Focus(); textBox1.Focus();
return; return;
} }
if(!System.IO.File.Exists(textBox1.Text)) if(!System.IO.File.Exists(textBox1.Text))
{ {
FCOMMON.Util.MsgE("입력하신 파일이 존재하지 않습니다."); FCOMMON.Util.MsgE("입력하신 파일이 존재하지 않습니다.");
textBox1.Focus(); textBox1.Focus();
textBox1.SelectAll(); textBox1.SelectAll();
return; return;
} }
dtExcel.Columns.Clear(); dtExcel.Columns.Clear();
dtExcel.Rows.Clear(); dtExcel.Rows.Clear();
dtExcel.AcceptChanges(); dtExcel.AcceptChanges();
libxl.Book book;// = new libxl.BinBook(); libxl.Book book;// = new libxl.BinBook();
book = new libxl.XmlBook(); book = new libxl.XmlBook();
book.setKey(FCOMMON.info.libxlCompany, FCOMMON.info.libxlKey); book.setKey(FCOMMON.info.libxlCompany, FCOMMON.info.libxlKey);
try try
{ {
book.load(textBox1.Text); book.load(textBox1.Text);
}catch (Exception ex) }catch (Exception ex)
{ {
FCOMMON.Util.MsgE(ex.Message); FCOMMON.Util.MsgE(ex.Message);
return; return;
} }
int sheetNum = (int)numericUpDown1.Value; int sheetNum = (int)numericUpDown1.Value;
if (sheetNum >= book.sheetCount()) if (sheetNum >= book.sheetCount())
{ {
FCOMMON.Util.MsgE("입력한 시트 번호는 존재하지 않습니다."); FCOMMON.Util.MsgE("입력한 시트 번호는 존재하지 않습니다.");
book = null; book = null;
return; return;
} }
var sheet = book.getSheet(sheetNum); var sheet = book.getSheet(sheetNum);
var MaxRow = sheet.lastRow(); var MaxRow = sheet.lastRow();
var MinRow = sheet.firstRow(); var MinRow = sheet.firstRow();
var MaxCol = sheet.lastCol(); var MaxCol = sheet.lastCol();
var MinCol = sheet.firstCol(); var MinCol = sheet.firstCol();
List<string> cols = new List<string>(); List<string> cols = new List<string>();
bool firstRow = true; bool firstRow = true;
try{ try{
for (int r = MinRow; r <= MaxRow; r++) for (int r = MinRow; r <= MaxRow; r++)
{ {
DataRow dr = null; DataRow dr = null;
if (firstRow ==false) dr = dtExcel.NewRow(); if (firstRow ==false) dr = dtExcel.NewRow();
Boolean nullColumn = false; Boolean nullColumn = false;
for (int c = MinCol; c <= MaxCol; c++) for (int c = MinCol; c <= MaxCol; c++)
{ {
var strVallue = sheet.readStr(r, c); var strVallue = sheet.readStr(r, c);
if (strVallue.isEmpty() && c == MinCol) if (strVallue.isEmpty() && c == MinCol)
{ {
//첫줄 첫행이 빈값이면 처리하지 않는다. //첫줄 첫행이 빈값이면 처리하지 않는다.
nullColumn = true; nullColumn = true;
break; break;
} }
if (firstRow) if (firstRow)
{ {
cols.Add(strVallue); cols.Add(strVallue);
this.dtExcel.Columns.Add(strVallue); this.dtExcel.Columns.Add(strVallue);
} }
else else
{ {
if (!cols[c].isEmpty()) if (!cols[c].isEmpty())
dr[cols[c]] = strVallue; dr[cols[c]] = strVallue;
} }
} }
if (nullColumn) continue; //줄처리를 못한 경우 넘어감 if (nullColumn) continue; //줄처리를 못한 경우 넘어감
if (firstRow) firstRow = false; if (firstRow) firstRow = false;
if (dr != null) dtExcel.Rows.Add(dr); if (dr != null) dtExcel.Rows.Add(dr);
} }
dtExcel.AcceptChanges(); dtExcel.AcceptChanges();
} }
catch(Exception ex) catch(Exception ex)
{ {
FCOMMON.Util.MsgE("불러오는 중 오류 발생\n" + ex.Message); FCOMMON.Util.MsgE("불러오는 중 오류 발생\n" + ex.Message);
} }
// //
book = null; book = null;
this.bs.DataSource = dtExcel; this.bs.DataSource = dtExcel;
this.dataGridView1.DataSource = dtExcel; this.dataGridView1.DataSource = dtExcel;
this.bn.BindingSource = this.bs; this.bn.BindingSource = this.bs;
if(this.bs.Count < 1) if(this.bs.Count < 1)
{ {
FCOMMON.Util.MsgE("입력된 자료가 없습니다.\n\n지정된 엑셀의 1번째 칸에 값이 없다면 입력되지 않습니다."); FCOMMON.Util.MsgE("입력된 자료가 없습니다.\n\n지정된 엑셀의 1번째 칸에 값이 없다면 입력되지 않습니다.");
} }
} }
private void button2_Click(object sender, EventArgs e) private void button2_Click(object sender, EventArgs e)
{ {
var ta = new dsEQTableAdapters.LineCodeTableAdapter(); var ta = new dsEQTableAdapters.LineCodeTableAdapter();
var lineTd = ta.GetData(); var lineTd = ta.GetData();
lineTd.AcceptChanges(); lineTd.AcceptChanges();
//12,13 //12,13
foreach (DataRow dr in dt.Rows) foreach (DataRow dr in dt.Rows)
{ {
var linecode = dr[12].ToString(); var linecode = dr[12].ToString();
var linedesc = dr[13].ToString(); var linedesc = dr[13].ToString();
var codeDrows = lineTd.Select("code='" + linecode + "'"); var codeDrows = lineTd.Select("code='" + linecode + "'");
if (codeDrows.Length == 0) if (codeDrows.Length == 0)
{ {
var newdr = lineTd.NewLineCodeRow(); var newdr = lineTd.NewLineCodeRow();
newdr.code = linecode; newdr.code = linecode;
newdr.memo = linedesc; newdr.memo = linedesc;
var linebuf = linedesc.Split('-'); var linebuf = linedesc.Split('-');
if (linebuf.Length > 1) if (linebuf.Length > 1)
{ {
newdr.team = linebuf[0]; newdr.team = linebuf[0];
newdr.part = linebuf[1]; newdr.part = linebuf[1];
} }
else else
{ {
newdr.team = linedesc; newdr.team = linedesc;
} }
newdr.wuid = FCOMMON.info.Login.no; newdr.wuid = FCOMMON.info.Login.no;
newdr.wdate = DateTime.Now; newdr.wdate = DateTime.Now;
lineTd.AddLineCodeRow(newdr); lineTd.AddLineCodeRow(newdr);
} }
} }
ta.Update(lineTd); ta.Update(lineTd);
lineTd.AcceptChanges(); lineTd.AcceptChanges();
FCOMMON.Util.MsgE("test"); FCOMMON.Util.MsgE("test");
} }
private void button3_Click(object sender, EventArgs e) private void button3_Click(object sender, EventArgs e)
{ {
if(dtExcel == null || dtExcel.Rows.Count < 1) if(dtExcel == null || dtExcel.Rows.Count < 1)
{ {
FCOMMON.Util.MsgE("등록 가능한 자료가 없습니다."); FCOMMON.Util.MsgE("등록 가능한 자료가 없습니다.");
return; return;
} }
System.Text.StringBuilder sb = new StringBuilder(); System.Text.StringBuilder sb = new StringBuilder();
sb.AppendLine("다음 자료를 추가하시겠습니까?"); sb.AppendLine("다음 자료를 추가하시겠습니까?");
sb.AppendLine(); sb.AppendLine();
sb.AppendLine("등록일 : " + dateTimePicker1.Value.ToShortDateString()); sb.AppendLine("등록일 : " + dateTimePicker1.Value.ToShortDateString());
sb.AppendLine(); sb.AppendLine();
sb.AppendLine("해당 일자에 등록된 자료가 있다면 삭제 됩니다."); sb.AppendLine("해당 일자에 등록된 자료가 있다면 삭제 됩니다.");
sb.AppendLine("'저장 완료' 메세지가 나올때 까지 기다려 주세요."); sb.AppendLine("'저장 완료' 메세지가 나올때 까지 기다려 주세요.");
sb.AppendLine(); sb.AppendLine();
sb.AppendLine("실행 하려면 '예' 를 누르세요"); sb.AppendLine("실행 하려면 '예' 를 누르세요");
var dlg = FCOMMON.Util.MsgQ(sb.ToString()); var dlg = FCOMMON.Util.MsgQ(sb.ToString());
if (dlg != System.Windows.Forms.DialogResult.Yes) return; if (dlg != System.Windows.Forms.DialogResult.Yes) return;
//라인코드를 읽어서 값을 기록해준다. //라인코드를 읽어서 값을 기록해준다.
var taLine = new dsEQTableAdapters.LineCodeTableAdapter(); var taLine = new dsEQTableAdapters.LineCodeTableAdapter();
var lineTd = taLine.GetData(); var lineTd = taLine.GetData();
lineTd.AcceptChanges(); lineTd.AcceptChanges();
dt.Clear(); dt.Clear();
dt.AcceptChanges(); dt.AcceptChanges();
var dateStr = this.dateTimePicker1.Value.ToShortDateString(); var dateStr = this.dateTimePicker1.Value.ToShortDateString();
this.progressBar1.Value = 0; this.progressBar1.Value = 0;
this.progressBar1.Maximum = dtExcel.Rows.Count; this.progressBar1.Maximum = dtExcel.Rows.Count;
//12,13 //12,13
foreach (DataRow dr in dtExcel.Rows) foreach (DataRow dr in dtExcel.Rows)
{ {
this.progressBar1.Value += 1; this.progressBar1.Value += 1;
var linecode = dr[12].ToString(); var linecode = dr[12].ToString();
var linedesc = dr[13].ToString(); var linedesc = dr[13].ToString();
var lineT = string.Empty; var lineT = string.Empty;
var lineP = string.Empty; var lineP = string.Empty;
//없는 라인코드는 추가 //없는 라인코드는 추가
var lineDrows = lineTd.Select("code='" + linecode + "'"); var lineDrows = lineTd.Select("code='" + linecode + "'");
if (lineDrows.Length == 0) if (lineDrows.Length == 0)
{ {
var linebuf = linedesc.Split('-'); var linebuf = linedesc.Split('-');
if (linebuf.Length > 1) if (linebuf.Length > 1)
{ {
lineT = linebuf[0]; lineT = linebuf[0];
lineP = linebuf[1]; lineP = linebuf[1];
} }
else else
{ {
lineT = linedesc; lineT = linedesc;
lineP = string.Empty; lineP = string.Empty;
} }
var newli = lineTd.NewLineCodeRow(); var newli = lineTd.NewLineCodeRow();
newli.code = linecode; newli.code = linecode;
newli.team = lineT; newli.team = lineT;
newli.part = lineP; newli.part = lineP;
newli.memo = linedesc; newli.memo = linedesc;
newli.except = false; newli.except = false;
newli.wuid = FCOMMON.info.Login.no; newli.wuid = FCOMMON.info.Login.no;
newli.wdate = DateTime.Now; newli.wdate = DateTime.Now;
lineTd.AddLineCodeRow(newli); lineTd.AddLineCodeRow(newli);
} }
else else
{ {
var lineDr = lineDrows[0] as dsEQ.LineCodeRow; var lineDr = lineDrows[0] as dsEQ.LineCodeRow;
lineT = lineDr.team; lineT = lineDr.team;
lineP = lineDr.part; lineP = lineDr.part;
} }
//데이터추가 //데이터추가
var newdr = dt.NewRow(); var newdr = dt.NewRow();
newdr["pdate"] = dateTimePicker1.Value.ToShortDateString(); newdr["pdate"] = dateTimePicker1.Value.ToShortDateString();
newdr["asset"] = dr[6].ToString(); newdr["asset"] = dr[6].ToString();
newdr["grp"] = dr[0].ToString(); newdr["grp"] = dr[0].ToString();
newdr["type"] = dr[2].ToString(); newdr["type"] = dr[2].ToString();
newdr["model"] = dr[3].ToString(); newdr["model"] = dr[3].ToString();
newdr["linecode"] = linecode; newdr["linecode"] = linecode;
newdr["lineT"] = lineT; newdr["lineT"] = lineT;
newdr["lineP"] = lineP; newdr["lineP"] = lineP;
newdr["serial"] = dr[7].ToString(); newdr["serial"] = dr[7].ToString();
newdr["manu"] = dr[9].ToString(); newdr["manu"] = dr[9].ToString();
newdr["primary"] = true; newdr["primary"] = true;
newdr["wuid"] = FCOMMON.info.Login.no; newdr["wuid"] = FCOMMON.info.Login.no;
newdr["wdate"] = DateTime.Now; newdr["wdate"] = DateTime.Now;
newdr["except"] = false; newdr["except"] = false;
newdr["memo"] = string.Empty; newdr["memo"] = string.Empty;
if (imptype == fEquipment.eTabletype.BUMP) newdr["param1"] = "8\""; if (imptype == fEquipment.eTabletype.BUMP) newdr["param1"] = "8\"";
else newdr["param1"] = string.Empty; else newdr["param1"] = string.Empty;
dt.Rows.Add(newdr); dt.Rows.Add(newdr);
} }
taLine.Update(lineTd); taLine.Update(lineTd);
lineTd.AcceptChanges(); lineTd.AcceptChanges();
switch (imptype) switch (imptype)
{ {
case fEquipment.eTabletype.MOLD: case fEquipment.eTabletype.MOLD:
var taE = new dsEQTableAdapters.EquipmentMETableAdapter(); var taE = new dsEQTableAdapters.EquipmentMETableAdapter();
taE.DeleteData(dateStr); taE.DeleteData(dateStr);
taE.Update((dsEQ.EquipmentMEDataTable)dt); taE.Update((dsEQ.EquipmentMEDataTable)dt);
break; break;
case fEquipment.eTabletype.BUMP: case fEquipment.eTabletype.BUMP:
var taB = new dsEQTableAdapters.EquipmentBTableAdapter(); var taB = new dsEQTableAdapters.EquipmentBTableAdapter();
taB.DeleteData(dateStr); taB.DeleteData(dateStr);
taB.Update((dsEQ.EquipmentBDataTable)dt); taB.Update((dsEQ.EquipmentBDataTable)dt);
break; break;
case fEquipment.eTabletype.FOL: case fEquipment.eTabletype.FOL:
var taF = new dsEQTableAdapters.EquipmentFTableAdapter(); var taF = new dsEQTableAdapters.EquipmentFTableAdapter();
taF.DeleteData(dateStr); taF.DeleteData(dateStr);
taF.Update((dsEQ.EquipmentFDataTable)dt); taF.Update((dsEQ.EquipmentFDataTable)dt);
break; break;
} }
dt.AcceptChanges(); dt.AcceptChanges();
FCOMMON.Util.MsgI("Save OK"); FCOMMON.Util.MsgI("Save OK");
} }
} }
} }

View File

@@ -30,31 +30,31 @@
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchase)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fPurchase));
FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType20 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType21 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType22 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType23 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType24 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType25 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType26 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType27 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType28 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType10 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType29 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType11 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType30 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType12 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType31 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType13 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType32 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType14 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType33 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType15 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType34 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType10 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType16 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType35 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType17 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType36 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType18 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType37 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType19 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType38 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType1 = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType2 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
this.dsPurchase = new FEQ0000.dsPurchase(); this.dsPurchase = new FEQ0000.dsPurchase();
this.bs = new System.Windows.Forms.BindingSource(this.components); this.bs = new System.Windows.Forms.BindingSource(this.components);
this.ta = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter(); this.ta = new FEQ0000.dsPurchaseTableAdapters.PurchaseTableAdapter();
@@ -120,6 +120,8 @@
this.btViewDel = new System.Windows.Forms.ToolStripButton(); this.btViewDel = new System.Windows.Forms.ToolStripButton();
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.toolStripLabel4 = new System.Windows.Forms.ToolStripLabel();
this.cmbSort = new System.Windows.Forms.ToolStripComboBox();
((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsPurchase)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
@@ -187,7 +189,7 @@
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem; this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn.Name = "bn"; this.bn.Name = "bn";
this.bn.PositionItem = this.bindingNavigatorPositionItem; this.bn.PositionItem = this.bindingNavigatorPositionItem;
this.bn.Size = new System.Drawing.Size(1028, 26); this.bn.Size = new System.Drawing.Size(1184, 26);
this.bn.TabIndex = 0; this.bn.TabIndex = 0;
this.bn.Text = "bindingNavigator1"; this.bn.Text = "bindingNavigator1";
// //
@@ -495,6 +497,8 @@
this.dtSD, this.dtSD,
this.lbEnd, this.lbEnd,
this.dtED, this.dtED,
this.toolStripLabel4,
this.cmbSort,
this.toolStripSeparator2, this.toolStripSeparator2,
this.toolStripLabel1, this.toolStripLabel1,
this.cmbState, this.cmbState,
@@ -509,7 +513,7 @@
this.btViewDel}); this.btViewDel});
this.toolStrip1.Location = new System.Drawing.Point(0, 0); this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(1028, 37); this.toolStrip1.Size = new System.Drawing.Size(1184, 37);
this.toolStrip1.TabIndex = 3; this.toolStrip1.TabIndex = 3;
this.toolStrip1.Text = "toolStrip1"; this.toolStrip1.Text = "toolStrip1";
// //
@@ -611,8 +615,8 @@
this.toolStripDropDownButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton1.Image"))); this.toolStripDropDownButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton1.Image")));
this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripDropDownButton1.Name = "toolStripDropDownButton1"; this.toolStripDropDownButton1.Name = "toolStripDropDownButton1";
this.toolStripDropDownButton1.Size = new System.Drawing.Size(116, 34); this.toolStripDropDownButton1.Size = new System.Drawing.Size(81, 34);
this.toolStripDropDownButton1.Text = "Quick Menu"; this.toolStripDropDownButton1.Text = "Quick";
// //
// 금일입고품목ToolStripMenuItem // 금일입고품목ToolStripMenuItem
// //
@@ -667,7 +671,7 @@
this.fpSpread1.Name = "fpSpread1"; this.fpSpread1.Name = "fpSpread1";
this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] { this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
this.fpSpread1_Sheet1}); this.fpSpread1_Sheet1});
this.fpSpread1.Size = new System.Drawing.Size(1028, 602); this.fpSpread1.Size = new System.Drawing.Size(1184, 602);
this.fpSpread1.StatusBarVisible = true; this.fpSpread1.StatusBarVisible = true;
this.fpSpread1.TabIndex = 4; this.fpSpread1.TabIndex = 4;
// //
@@ -712,7 +716,7 @@
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 37F; this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 37F;
this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoSort = true; this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType1; this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType20;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "pdate"; this.fpSpread1_Sheet1.Columns.Get(0).DataField = "pdate";
this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Label = "등록일"; this.fpSpread1_Sheet1.Columns.Get(0).Label = "등록일";
@@ -720,7 +724,7 @@
this.fpSpread1_Sheet1.Columns.Get(0).Width = 77F; this.fpSpread1_Sheet1.Columns.Get(0).Width = 77F;
this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(1).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.fpSpread1_Sheet1.Columns.Get(1).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType2; this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType21;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "state"; this.fpSpread1_Sheet1.Columns.Get(1).DataField = "state";
this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Label = "상태"; this.fpSpread1_Sheet1.Columns.Get(1).Label = "상태";
@@ -728,164 +732,164 @@
this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Width = 49F; this.fpSpread1_Sheet1.Columns.Get(1).Width = 49F;
this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType3; this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType22;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "place"; this.fpSpread1_Sheet1.Columns.Get(2).DataField = "place";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Label = "보관소"; this.fpSpread1_Sheet1.Columns.Get(2).Label = "보관소";
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(3).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType4; this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType23;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "process"; this.fpSpread1_Sheet1.Columns.Get(3).DataField = "process";
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Label = "공정"; this.fpSpread1_Sheet1.Columns.Get(3).Label = "공정";
this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Width = 49F; this.fpSpread1_Sheet1.Columns.Get(3).Width = 49F;
this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType5; this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType24;
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "requestName"; this.fpSpread1_Sheet1.Columns.Get(4).DataField = "requestName";
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(4).Label = "요청"; this.fpSpread1_Sheet1.Columns.Get(4).Label = "요청";
this.fpSpread1_Sheet1.Columns.Get(4).Width = 37F; this.fpSpread1_Sheet1.Columns.Get(4).Width = 37F;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType6; this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType25;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "sc"; this.fpSpread1_Sheet1.Columns.Get(5).DataField = "sc";
this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Label = "SC#"; this.fpSpread1_Sheet1.Columns.Get(5).Label = "SC#";
this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Width = 24F; this.fpSpread1_Sheet1.Columns.Get(5).Width = 24F;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType7; this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType26;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "orderno"; this.fpSpread1_Sheet1.Columns.Get(6).DataField = "orderno";
this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Label = "CR/CF#"; this.fpSpread1_Sheet1.Columns.Get(6).Label = "CR/CF#";
this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Width = 43F; this.fpSpread1_Sheet1.Columns.Get(6).Width = 43F;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType8; this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType27;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "receiveName"; this.fpSpread1_Sheet1.Columns.Get(7).DataField = "receiveName";
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(7).Label = "수령"; this.fpSpread1_Sheet1.Columns.Get(7).Label = "수령";
this.fpSpread1_Sheet1.Columns.Get(7).Width = 33F; this.fpSpread1_Sheet1.Columns.Get(7).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(8).AllowAutoSort = true; this.fpSpread1_Sheet1.Columns.Get(8).AllowAutoSort = true;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType9; this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType28;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "sid"; this.fpSpread1_Sheet1.Columns.Get(8).DataField = "sid";
this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Label = "SID#"; this.fpSpread1_Sheet1.Columns.Get(8).Label = "SID#";
this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Width = 51F; this.fpSpread1_Sheet1.Columns.Get(8).Width = 51F;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType10; this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType29;
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "pumname"; this.fpSpread1_Sheet1.Columns.Get(9).DataField = "pumname";
this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(9).Label = "품명"; this.fpSpread1_Sheet1.Columns.Get(9).Label = "품명";
this.fpSpread1_Sheet1.Columns.Get(9).Width = 33F; this.fpSpread1_Sheet1.Columns.Get(9).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(10).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.fpSpread1_Sheet1.Columns.Get(10).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType1.DecimalPlaces = 0; numberCellType6.DecimalPlaces = 0;
numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; numberCellType6.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType1.MaximumValue = 2147483647D; numberCellType6.MaximumValue = 2147483647D;
numberCellType1.MinimumValue = -2147483648D; numberCellType6.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType1; this.fpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType6;
this.fpSpread1_Sheet1.Columns.Get(10).DataField = "pumidx"; this.fpSpread1_Sheet1.Columns.Get(10).DataField = "pumidx";
this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(10).Label = "*"; this.fpSpread1_Sheet1.Columns.Get(10).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(10).Width = 14F; this.fpSpread1_Sheet1.Columns.Get(10).Width = 14F;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType11; this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType30;
this.fpSpread1_Sheet1.Columns.Get(11).DataField = "pumscale"; this.fpSpread1_Sheet1.Columns.Get(11).DataField = "pumscale";
this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(11).Label = "규격"; this.fpSpread1_Sheet1.Columns.Get(11).Label = "규격";
this.fpSpread1_Sheet1.Columns.Get(11).Width = 33F; this.fpSpread1_Sheet1.Columns.Get(11).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType12; this.fpSpread1_Sheet1.Columns.Get(12).CellType = textCellType31;
this.fpSpread1_Sheet1.Columns.Get(12).DataField = "dept"; this.fpSpread1_Sheet1.Columns.Get(12).DataField = "dept";
this.fpSpread1_Sheet1.Columns.Get(12).Label = "장비\r\n제조사"; this.fpSpread1_Sheet1.Columns.Get(12).Label = "장비\r\n제조사";
this.fpSpread1_Sheet1.Columns.Get(12).Width = 45F; this.fpSpread1_Sheet1.Columns.Get(12).Width = 45F;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType12; this.fpSpread1_Sheet1.Columns.Get(13).CellType = textCellType31;
this.fpSpread1_Sheet1.Columns.Get(13).DataField = "manuproc"; this.fpSpread1_Sheet1.Columns.Get(13).DataField = "manuproc";
this.fpSpread1_Sheet1.Columns.Get(13).Label = "제조\r\n공정"; this.fpSpread1_Sheet1.Columns.Get(13).Label = "제조\r\n공정";
this.fpSpread1_Sheet1.Columns.Get(13).Width = 33F; this.fpSpread1_Sheet1.Columns.Get(13).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = textCellType12; this.fpSpread1_Sheet1.Columns.Get(14).CellType = textCellType31;
this.fpSpread1_Sheet1.Columns.Get(14).DataField = "asset"; this.fpSpread1_Sheet1.Columns.Get(14).DataField = "asset";
this.fpSpread1_Sheet1.Columns.Get(14).Label = "장비\r\n모델"; this.fpSpread1_Sheet1.Columns.Get(14).Label = "장비\r\n모델";
this.fpSpread1_Sheet1.Columns.Get(14).Width = 33F; this.fpSpread1_Sheet1.Columns.Get(14).Width = 33F;
numberCellType2.DecimalPlaces = 0; numberCellType7.DecimalPlaces = 0;
numberCellType2.NegativeRed = true; numberCellType7.NegativeRed = true;
numberCellType2.NullDisplay = "--"; numberCellType7.NullDisplay = "--";
numberCellType2.Separator = ","; numberCellType7.Separator = ",";
numberCellType2.ShowSeparator = true; numberCellType7.ShowSeparator = true;
numberCellType2.ShrinkToFit = true; numberCellType7.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType2; this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType7;
this.fpSpread1_Sheet1.Columns.Get(15).DataField = "pumqty"; this.fpSpread1_Sheet1.Columns.Get(15).DataField = "pumqty";
this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(15).Label = "수량"; this.fpSpread1_Sheet1.Columns.Get(15).Label = "수량";
this.fpSpread1_Sheet1.Columns.Get(15).Width = 33F; this.fpSpread1_Sheet1.Columns.Get(15).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType13; this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType32;
this.fpSpread1_Sheet1.Columns.Get(16).DataField = "pumunit"; this.fpSpread1_Sheet1.Columns.Get(16).DataField = "pumunit";
this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(16).Label = "단위"; this.fpSpread1_Sheet1.Columns.Get(16).Label = "단위";
this.fpSpread1_Sheet1.Columns.Get(16).Width = 33F; this.fpSpread1_Sheet1.Columns.Get(16).Width = 33F;
numberCellType3.DecimalPlaces = 0; numberCellType8.DecimalPlaces = 0;
numberCellType3.NegativeRed = true; numberCellType8.NegativeRed = true;
numberCellType3.NullDisplay = "--"; numberCellType8.NullDisplay = "--";
numberCellType3.Separator = ","; numberCellType8.Separator = ",";
numberCellType3.ShowSeparator = true; numberCellType8.ShowSeparator = true;
numberCellType3.ShrinkToFit = true; numberCellType8.ShrinkToFit = true;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType3; this.fpSpread1_Sheet1.Columns.Get(17).CellType = numberCellType8;
this.fpSpread1_Sheet1.Columns.Get(17).DataField = "pumprice"; this.fpSpread1_Sheet1.Columns.Get(17).DataField = "pumprice";
this.fpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; this.fpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(17).Label = "단가"; this.fpSpread1_Sheet1.Columns.Get(17).Label = "단가";
this.fpSpread1_Sheet1.Columns.Get(17).Width = 33F; this.fpSpread1_Sheet1.Columns.Get(17).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType3; this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType8;
this.fpSpread1_Sheet1.Columns.Get(18).DataField = "pumamt"; this.fpSpread1_Sheet1.Columns.Get(18).DataField = "pumamt";
this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; this.fpSpread1_Sheet1.Columns.Get(18).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(18).Label = "합계금액"; this.fpSpread1_Sheet1.Columns.Get(18).Label = "합계금액";
this.fpSpread1_Sheet1.Columns.Get(18).Width = 33F; this.fpSpread1_Sheet1.Columns.Get(18).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(19).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(19).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = textCellType14; this.fpSpread1_Sheet1.Columns.Get(19).CellType = textCellType33;
this.fpSpread1_Sheet1.Columns.Get(19).DataField = "supply"; this.fpSpread1_Sheet1.Columns.Get(19).DataField = "supply";
this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(19).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(19).Label = "공급업체"; this.fpSpread1_Sheet1.Columns.Get(19).Label = "공급업체";
this.fpSpread1_Sheet1.Columns.Get(19).Width = 49F; this.fpSpread1_Sheet1.Columns.Get(19).Width = 49F;
this.fpSpread1_Sheet1.Columns.Get(20).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.fpSpread1_Sheet1.Columns.Get(20).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType4.DecimalPlaces = 0; numberCellType9.DecimalPlaces = 0;
numberCellType4.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; numberCellType9.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType4.MaximumValue = 2147483647D; numberCellType9.MaximumValue = 2147483647D;
numberCellType4.MinimumValue = -2147483648D; numberCellType9.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType4; this.fpSpread1_Sheet1.Columns.Get(20).CellType = numberCellType9;
this.fpSpread1_Sheet1.Columns.Get(20).DataField = "supplyidx"; this.fpSpread1_Sheet1.Columns.Get(20).DataField = "supplyidx";
this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(20).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(20).Label = "*"; this.fpSpread1_Sheet1.Columns.Get(20).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(20).Width = 14F; this.fpSpread1_Sheet1.Columns.Get(20).Width = 14F;
this.fpSpread1_Sheet1.Columns.Get(21).CellType = textCellType15; this.fpSpread1_Sheet1.Columns.Get(21).CellType = textCellType34;
this.fpSpread1_Sheet1.Columns.Get(21).DataField = "project"; this.fpSpread1_Sheet1.Columns.Get(21).DataField = "project";
this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(21).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(21).Label = "관련프로젝트"; this.fpSpread1_Sheet1.Columns.Get(21).Label = "관련프로젝트";
this.fpSpread1_Sheet1.Columns.Get(21).Width = 45F; this.fpSpread1_Sheet1.Columns.Get(21).Width = 45F;
this.fpSpread1_Sheet1.Columns.Get(22).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.fpSpread1_Sheet1.Columns.Get(22).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType5.DecimalPlaces = 0; numberCellType10.DecimalPlaces = 0;
numberCellType5.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; numberCellType10.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType5.MaximumValue = 2147483647D; numberCellType10.MaximumValue = 2147483647D;
numberCellType5.MinimumValue = -2147483648D; numberCellType10.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(22).CellType = numberCellType5; this.fpSpread1_Sheet1.Columns.Get(22).CellType = numberCellType10;
this.fpSpread1_Sheet1.Columns.Get(22).DataField = "projectidx"; this.fpSpread1_Sheet1.Columns.Get(22).DataField = "projectidx";
this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(22).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(22).Label = "*"; this.fpSpread1_Sheet1.Columns.Get(22).Label = "*";
this.fpSpread1_Sheet1.Columns.Get(22).Width = 14F; this.fpSpread1_Sheet1.Columns.Get(22).Width = 14F;
this.fpSpread1_Sheet1.Columns.Get(23).CellType = textCellType16; this.fpSpread1_Sheet1.Columns.Get(23).CellType = textCellType35;
this.fpSpread1_Sheet1.Columns.Get(23).DataField = "edate"; this.fpSpread1_Sheet1.Columns.Get(23).DataField = "edate";
this.fpSpread1_Sheet1.Columns.Get(23).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(23).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(23).Label = "입고예정"; this.fpSpread1_Sheet1.Columns.Get(23).Label = "입고예정";
this.fpSpread1_Sheet1.Columns.Get(23).Width = 33F; this.fpSpread1_Sheet1.Columns.Get(23).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType17; this.fpSpread1_Sheet1.Columns.Get(24).CellType = textCellType36;
this.fpSpread1_Sheet1.Columns.Get(24).DataField = "indate"; this.fpSpread1_Sheet1.Columns.Get(24).DataField = "indate";
this.fpSpread1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(24).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(24).Label = "입고일"; this.fpSpread1_Sheet1.Columns.Get(24).Label = "입고일";
this.fpSpread1_Sheet1.Columns.Get(24).Width = 33F; this.fpSpread1_Sheet1.Columns.Get(24).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(25).CellType = textCellType18; this.fpSpread1_Sheet1.Columns.Get(25).CellType = textCellType37;
this.fpSpread1_Sheet1.Columns.Get(25).DataField = "po"; this.fpSpread1_Sheet1.Columns.Get(25).DataField = "po";
this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(25).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(25).Label = "PO#"; this.fpSpread1_Sheet1.Columns.Get(25).Label = "PO#";
this.fpSpread1_Sheet1.Columns.Get(25).Width = 32F; this.fpSpread1_Sheet1.Columns.Get(25).Width = 32F;
this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType19; this.fpSpread1_Sheet1.Columns.Get(26).CellType = textCellType38;
this.fpSpread1_Sheet1.Columns.Get(26).DataField = "bigo"; this.fpSpread1_Sheet1.Columns.Get(26).DataField = "bigo";
this.fpSpread1_Sheet1.Columns.Get(26).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(26).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(26).Label = "비고"; this.fpSpread1_Sheet1.Columns.Get(26).Label = "비고";
this.fpSpread1_Sheet1.Columns.Get(26).Width = 33F; this.fpSpread1_Sheet1.Columns.Get(26).Width = 33F;
this.fpSpread1_Sheet1.Columns.Get(27).CellType = checkBoxCellType1; this.fpSpread1_Sheet1.Columns.Get(27).CellType = checkBoxCellType2;
this.fpSpread1_Sheet1.Columns.Get(27).DataField = "isdel"; this.fpSpread1_Sheet1.Columns.Get(27).DataField = "isdel";
this.fpSpread1_Sheet1.Columns.Get(27).Label = "삭제됨"; this.fpSpread1_Sheet1.Columns.Get(27).Label = "삭제됨";
this.fpSpread1_Sheet1.Columns.Get(27).Tag = "isdel"; this.fpSpread1_Sheet1.Columns.Get(27).Tag = "isdel";
@@ -896,11 +900,27 @@
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false; this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
// //
// toolStripLabel4
//
this.toolStripLabel4.Name = "toolStripLabel4";
this.toolStripLabel4.Size = new System.Drawing.Size(31, 34);
this.toolStripLabel4.Text = "정렬";
//
// cmbSort
//
this.cmbSort.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbSort.Items.AddRange(new object[] {
"등록일",
"완료일",
"S/C"});
this.cmbSort.Name = "cmbSort";
this.cmbSort.Size = new System.Drawing.Size(90, 37);
//
// fPurchase // fPurchase
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1028, 665); this.ClientSize = new System.Drawing.Size(1184, 665);
this.Controls.Add(this.fpSpread1); this.Controls.Add(this.fpSpread1);
this.Controls.Add(this.toolStrip1); this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.bn); this.Controls.Add(this.bn);
@@ -990,5 +1010,7 @@
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripButton toolStripButton2; private System.Windows.Forms.ToolStripButton toolStripButton2;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1; private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
private System.Windows.Forms.ToolStripLabel toolStripLabel4;
private System.Windows.Forms.ToolStripComboBox cmbSort;
} }
} }

View File

@@ -82,6 +82,7 @@ namespace FEQ0000
{ {
this.cmDate.SelectedIndex = 0; this.cmDate.SelectedIndex = 0;
this.tbRequest.Text = string.Empty; //양진원 FCOMMON.info.Login.nameK; this.tbRequest.Text = string.Empty; //양진원 FCOMMON.info.Login.nameK;
this.cmbSort.SelectedIndex = 0;
this.dtSD.Text = DateTime.Now.AddDays(-30).ToShortDateString(); this.dtSD.Text = DateTime.Now.AddDays(-30).ToShortDateString();
this.dtED.Text = DateTime.Now.AddDays(10).ToShortDateString(); this.dtED.Text = DateTime.Now.AddDays(10).ToShortDateString();
@@ -150,6 +151,7 @@ namespace FEQ0000
string dateField = "pdate"; string dateField = "pdate";
if (cmDate.SelectedIndex == 1) dateField = "indate"; if (cmDate.SelectedIndex == 1) dateField = "indate";
else if (cmDate.SelectedIndex == 2) dateField = "expdate"; else if (cmDate.SelectedIndex == 2) dateField = "expdate";
System.Data.SqlClient.SqlDataAdapter da = new System.Data.SqlClient.SqlDataAdapter(); System.Data.SqlClient.SqlDataAdapter da = new System.Data.SqlClient.SqlDataAdapter();
System.Data.SqlClient.SqlCommand cmd = new System.Data.SqlClient.SqlCommand(); System.Data.SqlClient.SqlCommand cmd = new System.Data.SqlClient.SqlCommand();
@@ -180,6 +182,11 @@ namespace FEQ0000
} }
} }
// else cmd.CommandText += " and (state < '04' or state > '07')"; // else cmd.CommandText += " and (state < '04' or state > '07')";
if (cmbSort.SelectedIndex == 1) dateField = "edate";
else if (cmbSort.SelectedIndex == 2) dateField = "sc";
cmd.CommandText += " ORDER BY " + dateField + " DESC, idx DESC"; cmd.CommandText += " ORDER BY " + dateField + " DESC, idx DESC";
cmd.Parameters.Add(new System.Data.SqlClient.SqlParameter("@sd", dtSD.Text)); cmd.Parameters.Add(new System.Data.SqlClient.SqlParameter("@sd", dtSD.Text));

View File

@@ -337,6 +337,6 @@
<value>579, 23</value> <value>579, 23</value>
</metadata> </metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>63</value> <value>65</value>
</metadata> </metadata>
</root> </root>

View File

@@ -84,6 +84,7 @@
this.tam = new FPJ0000.dsPRJTableAdapters.TableAdapterManager(); this.tam = new FPJ0000.dsPRJTableAdapters.TableAdapterManager();
this.ta = new FPJ0000.dsPRJTableAdapters.JobReportTableAdapter(); this.ta = new FPJ0000.dsPRJTableAdapters.JobReportTableAdapter();
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.lbStt = new System.Windows.Forms.ToolStripLabel(); this.lbStt = new System.Windows.Forms.ToolStripLabel();
this.dtSD = new System.Windows.Forms.ToolStripTextBox(); this.dtSD = new System.Windows.Forms.ToolStripTextBox();
@@ -95,15 +96,14 @@
this.cmbUser = new System.Windows.Forms.ToolStripComboBox(); this.cmbUser = new System.Windows.Forms.ToolStripComboBox();
this.btSearch = new System.Windows.Forms.ToolStripButton(); this.btSearch = new System.Windows.Forms.ToolStripButton();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout(); this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
this.cm.SuspendLayout(); this.cm.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
this.toolStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
this.toolStrip1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// bn // bn
@@ -299,6 +299,7 @@
// btReport // btReport
// //
this.btReport.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.btReport.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.btReport.Enabled = false;
this.btReport.Image = ((System.Drawing.Image)(resources.GetObject("btReport.Image"))); this.btReport.Image = ((System.Drawing.Image)(resources.GetObject("btReport.Image")));
this.btReport.ImageTransparentColor = System.Drawing.Color.Magenta; this.btReport.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btReport.Name = "btReport"; this.btReport.Name = "btReport";
@@ -319,6 +320,7 @@
// toolStripButton1 // toolStripButton1
// //
this.toolStripButton1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.toolStripButton1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripButton1.Enabled = false;
this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image"))); this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1"; this.toolStripButton1.Name = "toolStripButton1";
@@ -474,104 +476,6 @@
this.fpSpread1.StatusBarVisible = true; this.fpSpread1.StatusBarVisible = true;
this.fpSpread1.TabIndex = 2; this.fpSpread1.TabIndex = 2;
// //
// toolStrip1
//
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(30, 30);
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.lbStt,
this.dtSD,
this.lbEnd,
this.dtED,
this.lbTime,
this.toolStripSeparator2,
this.toolStripLabel3,
this.cmbUser,
this.btSearch,
this.toolStripButton2});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(1142, 37);
this.toolStrip1.TabIndex = 4;
this.toolStrip1.Text = "toolStrip1";
//
// lbStt
//
this.lbStt.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbStt.ForeColor = System.Drawing.Color.Blue;
this.lbStt.Name = "lbStt";
this.lbStt.Size = new System.Drawing.Size(31, 34);
this.lbStt.Text = "기간";
this.lbStt.Click += new System.EventHandler(this.lbStt_Click);
//
// dtSD
//
this.dtSD.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.dtSD.Name = "dtSD";
this.dtSD.ReadOnly = true;
this.dtSD.Size = new System.Drawing.Size(90, 37);
this.dtSD.Text = "1982-11-23";
this.dtSD.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// lbEnd
//
this.lbEnd.Name = "lbEnd";
this.lbEnd.Size = new System.Drawing.Size(15, 34);
this.lbEnd.Text = "~";
//
// dtED
//
this.dtED.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.dtED.Name = "dtED";
this.dtED.ReadOnly = true;
this.dtED.Size = new System.Drawing.Size(90, 37);
this.dtED.Text = "1982-11-23";
this.dtED.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// lbTime
//
this.lbTime.Name = "lbTime";
this.lbTime.Size = new System.Drawing.Size(29, 34);
this.lbTime.Text = "{0}h";
//
// toolStripSeparator2
//
this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(6, 37);
//
// toolStripLabel3
//
this.toolStripLabel3.Name = "toolStripLabel3";
this.toolStripLabel3.Size = new System.Drawing.Size(43, 34);
this.toolStripLabel3.Text = "사용자";
this.toolStripLabel3.Click += new System.EventHandler(this.toolStripLabel3_Click);
//
// cmbUser
//
this.cmbUser.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbUser.Name = "cmbUser";
this.cmbUser.Size = new System.Drawing.Size(200, 37);
this.cmbUser.SelectedIndexChanged += new System.EventHandler(this.cmbUser_SelectedIndexChanged);
this.cmbUser.Click += new System.EventHandler(this.cmbUser_Click);
//
// btSearch
//
this.btSearch.Image = ((System.Drawing.Image)(resources.GetObject("btSearch.Image")));
this.btSearch.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btSearch.Name = "btSearch";
this.btSearch.Size = new System.Drawing.Size(80, 34);
this.btSearch.Text = "조회(&R)";
this.btSearch.Click += new System.EventHandler(this.btSearch_Click);
//
// toolStripButton2
//
this.toolStripButton2.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton2.Name = "toolStripButton2";
this.toolStripButton2.Size = new System.Drawing.Size(65, 34);
this.toolStripButton2.Text = "닫기";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
//
// fpSpread1_Sheet1 // fpSpread1_Sheet1
// //
this.fpSpread1_Sheet1.Reset(); this.fpSpread1_Sheet1.Reset();
@@ -670,6 +574,102 @@
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false; this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
// //
// toolStrip1
//
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(30, 30);
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.lbStt,
this.dtSD,
this.lbEnd,
this.dtED,
this.lbTime,
this.toolStripSeparator2,
this.toolStripLabel3,
this.cmbUser,
this.btSearch,
this.toolStripButton2});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(1142, 37);
this.toolStrip1.TabIndex = 4;
this.toolStrip1.Text = "toolStrip1";
//
// lbStt
//
this.lbStt.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbStt.ForeColor = System.Drawing.Color.Blue;
this.lbStt.Name = "lbStt";
this.lbStt.Size = new System.Drawing.Size(31, 34);
this.lbStt.Text = "기간";
this.lbStt.Click += new System.EventHandler(this.lbStt_Click);
//
// dtSD
//
this.dtSD.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.dtSD.Name = "dtSD";
this.dtSD.Size = new System.Drawing.Size(90, 37);
this.dtSD.Text = "1982-11-23";
this.dtSD.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// lbEnd
//
this.lbEnd.Name = "lbEnd";
this.lbEnd.Size = new System.Drawing.Size(15, 34);
this.lbEnd.Text = "~";
//
// dtED
//
this.dtED.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.dtED.Name = "dtED";
this.dtED.Size = new System.Drawing.Size(90, 37);
this.dtED.Text = "1982-11-23";
this.dtED.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// lbTime
//
this.lbTime.Name = "lbTime";
this.lbTime.Size = new System.Drawing.Size(29, 34);
this.lbTime.Text = "{0}h";
//
// toolStripSeparator2
//
this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(6, 37);
//
// toolStripLabel3
//
this.toolStripLabel3.Name = "toolStripLabel3";
this.toolStripLabel3.Size = new System.Drawing.Size(43, 34);
this.toolStripLabel3.Text = "사용자";
this.toolStripLabel3.Click += new System.EventHandler(this.toolStripLabel3_Click);
//
// cmbUser
//
this.cmbUser.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbUser.Name = "cmbUser";
this.cmbUser.Size = new System.Drawing.Size(200, 37);
this.cmbUser.SelectedIndexChanged += new System.EventHandler(this.cmbUser_SelectedIndexChanged);
this.cmbUser.Click += new System.EventHandler(this.cmbUser_Click);
//
// btSearch
//
this.btSearch.Image = ((System.Drawing.Image)(resources.GetObject("btSearch.Image")));
this.btSearch.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btSearch.Name = "btSearch";
this.btSearch.Size = new System.Drawing.Size(80, 34);
this.btSearch.Text = "조회(&R)";
this.btSearch.Click += new System.EventHandler(this.btSearch_Click);
//
// toolStripButton2
//
this.toolStripButton2.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton2.Name = "toolStripButton2";
this.toolStripButton2.Size = new System.Drawing.Size(65, 34);
this.toolStripButton2.Text = "닫기";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
//
// fJobReport // fJobReport
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -689,9 +689,9 @@
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
this.cm.ResumeLayout(false); this.cm.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
this.toolStrip1.ResumeLayout(false); this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout(); this.toolStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();

View File

@@ -40,29 +40,15 @@ namespace FPJ0000
if (FCOMMON.info.Login.no == "dev") namestr = "김치균(395552)"; if (FCOMMON.info.Login.no == "dev") namestr = "김치균(395552)";
this.cmbUser.Items.Clear(); this.cmbUser.Items.Clear();
this.cmbUser.Items.Add(namestr); this.cmbUser.Items.Add(namestr);
try var taUserList = new dsReportTableAdapters.ProcessUserListTableAdapter();
var processStr = "%";
if (FCOMMON.info.Login.process != "") processStr = FCOMMON.info.Login.process;
var dtUserList = taUserList.GetData(processStr);
foreach(dsReport.ProcessUserListRow dr in dtUserList)
{ {
var cn = FCOMMON.DBM.getCn(); string cmbdata = string.Format("{1}({0})", dr.id, dr.name);
cn.Open(); this.cmbUser.Items.Add(cmbdata);
string sql = "select uid,dbo.getUserName(uid) as uname " +
" from JobReport" +
" where gcode='{1}' and uid <> '{0}'" +
" group by uid " +
" order by uname";
sql = string.Format(sql, FCOMMON.info.Login.no, FCOMMON.info.Login.gcode);
var cmd = new System.Data.SqlClient.SqlCommand(sql, cn);
var rdr = cmd.ExecuteReader();
while (rdr.Read())
{
string cmbdata = string.Format("{1}({0})", rdr["uid"].ToString(), rdr["uname"].ToString());
this.cmbUser.Items.Add(cmbdata);
}
cmd.Dispose();
cn.Close();
cn.Dispose();
}catch (Exception ex)
{
FCOMMON.Util.MsgE("User List Error\n\n"+ex.Message);
} }
//var userList = FCOMMON.DBM.getGroupList("name + '(' + id + ')'", "Users", "[level] > 0 and [level] < 10", false, false); //var userList = FCOMMON.DBM.getGroupList("name + '(' + id + ')'", "Users", "[level] > 0 and [level] < 10", false, false);

View File

@@ -29,18 +29,21 @@
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
Microsoft.Reporting.WinForms.ReportDataSource reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.bs = new System.Windows.Forms.BindingSource(this.components); this.bs = new System.Windows.Forms.BindingSource(this.components);
this.dsReport = new FPJ0000.dsReport(); this.dsReport = new FPJ0000.dsReport();
this.reportViewer1 = new Microsoft.Reporting.WinForms.ReportViewer();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.linkLabel1 = new System.Windows.Forms.LinkLabel(); this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.btRefresh = new System.Windows.Forms.Button(); this.btRefresh = new System.Windows.Forms.Button();
this.tbMon = new System.Windows.Forms.TextBox(); this.tbMon = new System.Windows.Forms.TextBox();
this.ta = new FPJ0000.dsReportTableAdapters.JobReportDayTableAdapter(); this.ta = new FPJ0000.dsReportTableAdapters.JobReportDayTableAdapter();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.tbProcess = new System.Windows.Forms.ComboBox();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dsReport)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsReport)).BeginInit();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// bs // bs
@@ -53,20 +56,10 @@
this.dsReport.DataSetName = "dsReport"; this.dsReport.DataSetName = "dsReport";
this.dsReport.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; this.dsReport.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
// //
// reportViewer1
//
this.reportViewer1.Dock = System.Windows.Forms.DockStyle.Fill;
reportDataSource1.Name = "DataSet1";
reportDataSource1.Value = this.bs;
this.reportViewer1.LocalReport.DataSources.Add(reportDataSource1);
this.reportViewer1.LocalReport.ReportEmbeddedResource = "FPJ0000.JobReport.rJobReportDay.rdlc";
this.reportViewer1.Location = new System.Drawing.Point(0, 42);
this.reportViewer1.Name = "reportViewer1";
this.reportViewer1.Size = new System.Drawing.Size(721, 544);
this.reportViewer1.TabIndex = 1;
//
// panel1 // panel1
// //
this.panel1.Controls.Add(this.tbProcess);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.linkLabel1); this.panel1.Controls.Add(this.linkLabel1);
this.panel1.Controls.Add(this.btRefresh); this.panel1.Controls.Add(this.btRefresh);
this.panel1.Controls.Add(this.tbMon); this.panel1.Controls.Add(this.tbMon);
@@ -74,9 +67,18 @@
this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Padding = new System.Windows.Forms.Padding(5); this.panel1.Padding = new System.Windows.Forms.Padding(5);
this.panel1.Size = new System.Drawing.Size(721, 42); this.panel1.Size = new System.Drawing.Size(751, 42);
this.panel1.TabIndex = 0; this.panel1.TabIndex = 0;
// //
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(198, 15);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(29, 12);
this.label1.TabIndex = 3;
this.label1.Text = "공정";
//
// linkLabel1 // linkLabel1
// //
this.linkLabel1.AutoSize = true; this.linkLabel1.AutoSize = true;
@@ -91,7 +93,7 @@
// btRefresh // btRefresh
// //
this.btRefresh.Dock = System.Windows.Forms.DockStyle.Right; this.btRefresh.Dock = System.Windows.Forms.DockStyle.Right;
this.btRefresh.Location = new System.Drawing.Point(641, 5); this.btRefresh.Location = new System.Drawing.Point(671, 5);
this.btRefresh.Name = "btRefresh"; this.btRefresh.Name = "btRefresh";
this.btRefresh.Size = new System.Drawing.Size(75, 32); this.btRefresh.Size = new System.Drawing.Size(75, 32);
this.btRefresh.TabIndex = 2; this.btRefresh.TabIndex = 2;
@@ -103,7 +105,7 @@
// //
this.tbMon.Location = new System.Drawing.Point(66, 10); this.tbMon.Location = new System.Drawing.Point(66, 10);
this.tbMon.Name = "tbMon"; this.tbMon.Name = "tbMon";
this.tbMon.Size = new System.Drawing.Size(100, 21); this.tbMon.Size = new System.Drawing.Size(115, 21);
this.tbMon.TabIndex = 1; this.tbMon.TabIndex = 1;
this.tbMon.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.tbMon.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
// //
@@ -111,12 +113,39 @@
// //
this.ta.ClearBeforeFill = true; this.ta.ClearBeforeFill = true;
// //
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.AllowUserToResizeColumns = false;
this.dataGridView1.AllowUserToResizeRows = false;
dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.dataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 42);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.ReadOnly = true;
this.dataGridView1.RowHeadersVisible = false;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(751, 546);
this.dataGridView1.TabIndex = 2;
//
// tbProcess
//
this.tbProcess.FormattingEnabled = true;
this.tbProcess.Location = new System.Drawing.Point(233, 10);
this.tbProcess.Name = "tbProcess";
this.tbProcess.Size = new System.Drawing.Size(158, 20);
this.tbProcess.TabIndex = 5;
this.tbProcess.SelectedIndexChanged += new System.EventHandler(this.tbProcess_SelectedIndexChanged);
//
// rJobReportDay // rJobReportDay
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(721, 586); this.ClientSize = new System.Drawing.Size(751, 588);
this.Controls.Add(this.reportViewer1); this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.panel1); this.Controls.Add(this.panel1);
this.Name = "rJobReportDay"; this.Name = "rJobReportDay";
this.Text = "일/개인별 근무시간 집계(+OT 포함)"; this.Text = "일/개인별 근무시간 집계(+OT 포함)";
@@ -125,13 +154,12 @@
((System.ComponentModel.ISupportInitialize)(this.dsReport)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dsReport)).EndInit();
this.panel1.ResumeLayout(false); this.panel1.ResumeLayout(false);
this.panel1.PerformLayout(); this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
#endregion #endregion
private Microsoft.Reporting.WinForms.ReportViewer reportViewer1;
private dsReport dsReport; private dsReport dsReport;
private System.Windows.Forms.BindingSource bs; private System.Windows.Forms.BindingSource bs;
private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Panel panel1;
@@ -139,5 +167,8 @@
private System.Windows.Forms.TextBox tbMon; private System.Windows.Forms.TextBox tbMon;
private System.Windows.Forms.LinkLabel linkLabel1; private System.Windows.Forms.LinkLabel linkLabel1;
private dsReportTableAdapters.JobReportDayTableAdapter ta; private dsReportTableAdapters.JobReportDayTableAdapter ta;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox tbProcess;
} }
} }

View File

@@ -11,16 +11,30 @@ namespace FPJ0000.JobReport
{ {
public partial class rJobReportDay : Form public partial class rJobReportDay : Form
{ {
Boolean binit = false;
public rJobReportDay() public rJobReportDay()
{ {
InitializeComponent(); InitializeComponent();
this.WindowState = FormWindowState.Maximized; this.WindowState = FormWindowState.Maximized;
} }
private void rJobReport_Load(object sender, EventArgs e) private void rJobReport_Load(object sender, EventArgs e)
{ {
this.tbProcess.Items.Clear();
tbProcess.Items.Add("전체");
var taProcess = new dsReportTableAdapters.ProcessListTableAdapter();
var dtProcessList = taProcess.GetData(FCOMMON.info.Login.gcode);
foreach (dsReport.ProcessListRow dr in dtProcessList.Rows)
tbProcess.Items.Add(dr.processs);
this.tbProcess.Text = FCOMMON.info.Login.process;
if (tbProcess.SelectedIndex < 0) tbProcess.SelectedIndex = 0;
this.tbMon.Text = DateTime.Now.ToString("yyyy-MM"); this.tbMon.Text = DateTime.Now.ToString("yyyy-MM");
refrehData(); refrehData();
binit = true;
} }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
@@ -34,13 +48,82 @@ namespace FPJ0000.JobReport
void refrehData() void refrehData()
{ {
this.ta.Fill(this.dsReport.JobReportDay, tbMon.Text, FCOMMON.info.Login.gcode); this.ta.Fill(this.dsReport.JobReportDay, tbMon.Text, FCOMMON.info.Login.gcode);
this.reportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout); //this.reportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout);
this.reportViewer1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.PageWidth; //this.reportViewer1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.PageWidth;
this.reportViewer1.RefreshReport(); //this.reportViewer1.RefreshReport();
//그리드뷰 생성
this.dataGridView1.Rows.Clear();
this.dataGridView1.Columns.Clear();
var Process = tbProcess.Text.Trim();
if (Process == "%" || tbProcess.SelectedIndex == 0) Process = "";
//날짜에 해당하는 열을 먼저 생성한다
dataGridView1.Columns.Add("dvcu_damdang", "사원명");
// dataGridView1.Columns.Add("dvcu_process", "공정");
var daylist = dsReport.JobReportDay.GroupBy(t => t.pdate);
foreach (var dayitem in daylist)
{
this.dataGridView1.Columns.Add("dvcu_pdate", dayitem.Key.Substring(8, 2));
this.dataGridView1.Columns[this.dataGridView1.Columns.Count -1].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
}
dataGridView1.Columns.Add("dvcu_sum", "합계");
this.dataGridView1.Columns[this.dataGridView1.Columns.Count - 1].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
foreach (var item in dsReport.JobReportDay.Where(t=>t.processs.Contains(Process)).OrderBy(t => t.uname + t.uid).GroupBy(t => t.uname))
{
//사용자별로 데이터를 가져온다.
var username = item.Key;
var userid = item.FirstOrDefault().uid;
List<string> rowdata = new List<string>();
rowdata.Add(username);
// rowdata.Add(item.FirstOrDefault().processs);
//이 사용자의 데이터를 날짜별로 정렬해서 가져온다.
var sum = 0.0;
for (int i = 1; i < this.dataGridView1.Columns.Count-1; i++)
{
var col = this.dataGridView1.Columns[i];
var daydata = dsReport.JobReportDay.Where(t => t.uid == userid && t.pdate.EndsWith(col.HeaderText)).FirstOrDefault();
if (daydata != null)
{
sum += daydata.hrs + daydata.ot;
rowdata.Add((daydata.hrs + daydata.ot).ToString("N1"));
}
else rowdata.Add("--");
}
rowdata.Add(sum.ToString("N1"));
this.dataGridView1.Rows.Add(rowdata.ToArray());
}
foreach(DataGridViewRow dvrow in this.dataGridView1.Rows)
{
for(int i = 1;i < this.dataGridView1.ColumnCount-1;i++)
{
var cellvalue = "--";
if(dvrow.Cells[i].Value != null) cellvalue= dvrow.Cells[i].Value.ToString();
if (cellvalue == "--") dvrow.Cells[i].Style.ForeColor = Color.Gray;
else
{
var hrs = double.Parse(cellvalue);
if (hrs > 8.0) dvrow.Cells[i].Style.ForeColor = Color.Blue;
else if (hrs < 8.0) dvrow.Cells[i].Style.ForeColor = Color.Red;
else dvrow.Cells[i].Style.ForeColor = Color.Black;
}
}
}
this.dataGridView1.AutoResizeColumns();
} }
private void button1_Click(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e)
{ {
refrehData(); refrehData();
} }
private void tbProcess_SelectedIndexChanged(object sender, EventArgs e)
{
if (tbProcess.SelectedIndex >= 0) refrehData();
}
} }
} }

View File

@@ -123,6 +123,9 @@
<metadata name="dsReport.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="dsReport.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
<metadata name="dsReport.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>245, 17</value> <value>245, 17</value>
</metadata> </metadata>

View File

@@ -342,7 +342,7 @@ namespace FPJ0000
tbFind.BackColor = SystemColors.Window; tbFind.BackColor = SystemColors.Window;
} }
} }
catch (Exception ex) catch
{ {
this.bsPart.Filter = ""; this.bsPart.Filter = "";
tbFind.BackColor = Color.HotPink; tbFind.BackColor = Color.HotPink;

View File

@@ -47,6 +47,7 @@
System.Windows.Forms.Label label8; System.Windows.Forms.Label label8;
System.Windows.Forms.Label label9; System.Windows.Forms.Label label9;
System.Windows.Forms.Label label5; System.Windows.Forms.Label label5;
System.Windows.Forms.Label label7;
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fProjectData)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fProjectData));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.tbIdx = new System.Windows.Forms.TextBox(); this.tbIdx = new System.Windows.Forms.TextBox();
@@ -102,6 +103,7 @@
this.textBox2 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox();
this.arLabel2 = new arCtl.arLabel(); this.arLabel2 = new arCtl.arLabel();
this.panel5 = new System.Windows.Forms.Panel(); this.panel5 = new System.Windows.Forms.Panel();
this.textBox5 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox(); this.textBox3 = new System.Windows.Forms.TextBox();
this.arLabel3 = new arCtl.arLabel(); this.arLabel3 = new arCtl.arLabel();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
@@ -152,6 +154,7 @@
label8 = new System.Windows.Forms.Label(); label8 = new System.Windows.Forms.Label();
label9 = new System.Windows.Forms.Label(); label9 = new System.Windows.Forms.Label();
label5 = new System.Windows.Forms.Label(); label5 = new System.Windows.Forms.Label();
label7 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dsPRJ)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsPRJ)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
@@ -338,6 +341,15 @@
label5.TabIndex = 88; label5.TabIndex = 88;
label5.Text = "분류"; label5.Text = "분류";
// //
// label7
//
label7.AutoSize = true;
label7.Location = new System.Drawing.Point(387, 62);
label7.Name = "label7";
label7.Size = new System.Drawing.Size(29, 12);
label7.TabIndex = 89;
label7.Text = "공정";
//
// tbIdx // tbIdx
// //
this.tbIdx.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "idx", true)); this.tbIdx.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "idx", true));
@@ -944,6 +956,8 @@
// panel5 // panel5
// //
this.panel5.BackColor = System.Drawing.Color.Gainsboro; this.panel5.BackColor = System.Drawing.Color.Gainsboro;
this.panel5.Controls.Add(label7);
this.panel5.Controls.Add(this.textBox5);
this.panel5.Controls.Add(label8); this.panel5.Controls.Add(label8);
this.panel5.Controls.Add(this.textBox3); this.panel5.Controls.Add(this.textBox3);
this.panel5.Controls.Add(this.arLabel3); this.panel5.Controls.Add(this.arLabel3);
@@ -958,6 +972,15 @@
this.panel5.Size = new System.Drawing.Size(547, 88); this.panel5.Size = new System.Drawing.Size(547, 88);
this.panel5.TabIndex = 85; this.panel5.TabIndex = 85;
// //
// textBox5
//
this.textBox5.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "userprocess", true));
this.textBox5.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.textBox5.Location = new System.Drawing.Point(423, 58);
this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(113, 21);
this.textBox5.TabIndex = 90;
//
// textBox3 // textBox3
// //
this.textBox3.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "userhw2", true)); this.textBox3.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bs, "userhw2", true));
@@ -1626,5 +1649,6 @@
private System.Windows.Forms.LinkLabel linkLabel3; private System.Windows.Forms.LinkLabel linkLabel3;
private System.Windows.Forms.LinkLabel linkLabel5; private System.Windows.Forms.LinkLabel linkLabel5;
private System.Windows.Forms.LinkLabel linkLabel4; private System.Windows.Forms.LinkLabel linkLabel4;
private System.Windows.Forms.TextBox textBox5;
} }
} }

View File

@@ -171,6 +171,9 @@
<metadata name="label5.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="label5.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="label7.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>100, 17</value> <value>100, 17</value>
</metadata> </metadata>

View File

@@ -90,6 +90,7 @@
this.ta = new FPJ0000.dsPRJTableAdapters.ProjectsTableAdapter(); this.ta = new FPJ0000.dsPRJTableAdapters.ProjectsTableAdapter();
this.tam = new FPJ0000.dsPRJTableAdapters.TableAdapterManager(); this.tam = new FPJ0000.dsPRJTableAdapters.TableAdapterManager();
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel();
this.cmbYearS = new System.Windows.Forms.ToolStripComboBox(); this.cmbYearS = new System.Windows.Forms.ToolStripComboBox();
@@ -141,20 +142,21 @@
this.taHist = new FPJ0000.dsPRJTableAdapters.ProjectsHistoryTableAdapter(); this.taHist = new FPJ0000.dsPRJTableAdapters.ProjectsHistoryTableAdapter();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.panel3 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); this.toolStripLabel7 = new System.Windows.Forms.ToolStripLabel();
this.cmbProcess = new System.Windows.Forms.ToolStripComboBox();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout(); this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).BeginInit();
this.cm.SuspendLayout(); this.cm.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
this.toolStrip1.SuspendLayout(); this.toolStrip1.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout();
this.panel4.SuspendLayout(); this.panel4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bsHist)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bsHist)).BeginInit();
this.tableLayoutPanel2.SuspendLayout(); this.tableLayoutPanel2.SuspendLayout();
this.panel3.SuspendLayout(); this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// bn // bn
@@ -516,6 +518,171 @@
this.fpSpread1.StatusBarVisible = true; this.fpSpread1.StatusBarVisible = true;
this.fpSpread1.TabIndex = 2; this.fpSpread1.TabIndex = 2;
// //
// fpSpread1_Sheet1
//
this.fpSpread1_Sheet1.Reset();
this.fpSpread1_Sheet1.SheetName = "Sheet1";
// Formulas and custom names must be loaded with R1C1 reference style
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
this.fpSpread1_Sheet1.ColumnCount = 18;
this.fpSpread1_Sheet1.ColumnHeader.RowCount = 2;
this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
this.fpSpread1_Sheet1.ActiveRowIndex = -1;
this.fpSpread1_Sheet1.AutoGenerateColumns = false;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "IDX";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "상태";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "분류";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "파트";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "공정";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "요청";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "담당";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).ColumnSpan = 3;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "협업";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "자산번호";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "프로젝트";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).Value = "대수";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).Value = "Original\r\n($K)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).StyleName = " ";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "Input\r\n($K)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "Effect\r\n($K)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "CR/CF#";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "비고";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 7).Value = "H/W";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 8).Value = "전장";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 9).Value = "S/W";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 10).Value = "Asset No.";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 16).Value = "CR/CF#";
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 46F;
this.fpSpread1_Sheet1.Columns.Get(0).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType1.DecimalPlaces = 0;
numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType1.MaximumValue = 2147483647D;
numberCellType1.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = numberCellType1;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "idx";
this.fpSpread1_Sheet1.Columns.Get(0).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Locked = true;
this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType1;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "status";
this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Tag = "state";
this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Width = 78F;
this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType2;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "category";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType3;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "part";
this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType4;
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "process";
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).Width = 78F;
this.fpSpread1_Sheet1.Columns.Get(5).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType5;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "reqstaff";
this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Width = 78F;
this.fpSpread1_Sheet1.Columns.Get(6).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType6;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "userManager";
this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Width = 78F;
this.fpSpread1_Sheet1.Columns.Get(7).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType7;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "usermain";
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).Label = "H/W";
this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).Width = 78F;
this.fpSpread1_Sheet1.Columns.Get(8).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType8;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "userhw2";
this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Label = "전장";
this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType9;
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "usersub";
this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).Label = "S/W";
this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).Width = 78F;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType10;
this.fpSpread1_Sheet1.Columns.Get(10).DataField = "asset";
this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(10).Label = "Asset No.";
this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(10).Width = 78F;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType11;
this.fpSpread1_Sheet1.Columns.Get(11).DataField = "name";
this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(11).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(11).Width = 78F;
numberCellType2.DecimalPlaces = 0;
numberCellType2.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType2.MaximumValue = 2147483647D;
numberCellType2.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType2;
this.fpSpread1_Sheet1.Columns.Get(12).DataField = "cnt";
this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(12).Width = 59F;
numberCellType3.MaximumValue = 999999999999999D;
numberCellType3.MinimumValue = -999999999999999D;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = numberCellType3;
this.fpSpread1_Sheet1.Columns.Get(13).DataField = "costo";
this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(13).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
numberCellType4.MaximumValue = 999999999999999D;
numberCellType4.MinimumValue = -999999999999999D;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType4;
this.fpSpread1_Sheet1.Columns.Get(14).DataField = "costn";
this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(14).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(15).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType5.MaximumValue = 999999999999999D;
numberCellType5.MinimumValue = -999999999999999D;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType5;
this.fpSpread1_Sheet1.Columns.Get(15).DataField = "coste";
this.fpSpread1_Sheet1.Columns.Get(15).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType12;
this.fpSpread1_Sheet1.Columns.Get(16).DataField = "orderno";
this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(16).Label = "CR/CF#";
this.fpSpread1_Sheet1.Columns.Get(16).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = textCellType13;
this.fpSpread1_Sheet1.Columns.Get(17).DataField = "memo";
this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
this.fpSpread1_Sheet1.DataSource = this.bs;
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
//
// toolStrip1 // toolStrip1
// //
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(20, 20); this.toolStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
@@ -540,6 +707,8 @@
this.toolStripButton2, this.toolStripButton2,
this.btViewDel, this.btViewDel,
this.toolStripSeparator4, this.toolStripSeparator4,
this.toolStripLabel7,
this.cmbProcess,
this.toolStripLabel5, this.toolStripLabel5,
this.cmbSort}); this.cmbSort});
this.toolStrip1.Location = new System.Drawing.Point(0, 0); this.toolStrip1.Location = new System.Drawing.Point(0, 0);
@@ -557,6 +726,7 @@
// cmbYearS // cmbYearS
// //
this.cmbYearS.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbYearS.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbYearS.DropDownWidth = 70;
this.cmbYearS.Name = "cmbYearS"; this.cmbYearS.Name = "cmbYearS";
this.cmbYearS.Size = new System.Drawing.Size(75, 27); this.cmbYearS.Size = new System.Drawing.Size(75, 27);
// //
@@ -569,6 +739,7 @@
// cmbYearE // cmbYearE
// //
this.cmbYearE.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbYearE.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbYearE.DropDownWidth = 70;
this.cmbYearE.Name = "cmbYearE"; this.cmbYearE.Name = "cmbYearE";
this.cmbYearE.Size = new System.Drawing.Size(75, 27); this.cmbYearE.Size = new System.Drawing.Size(75, 27);
// //
@@ -677,7 +848,7 @@
// //
this.tbRequest.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.tbRequest.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.tbRequest.Name = "tbRequest"; this.tbRequest.Name = "tbRequest";
this.tbRequest.Size = new System.Drawing.Size(70, 27); this.tbRequest.Size = new System.Drawing.Size(60, 27);
this.tbRequest.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.tbRequest.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.tbRequest.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbRequest_KeyDown); this.tbRequest.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbRequest_KeyDown);
// //
@@ -735,7 +906,7 @@
"Requestor", "Requestor",
"Process"}); "Process"});
this.cmbSort.Name = "cmbSort"; this.cmbSort.Name = "cmbSort";
this.cmbSort.Size = new System.Drawing.Size(100, 27); this.cmbSort.Size = new System.Drawing.Size(80, 27);
this.cmbSort.SelectedIndexChanged += new System.EventHandler(this.toolStripComboBox1_SelectedIndexChanged); this.cmbSort.SelectedIndexChanged += new System.EventHandler(this.toolStripComboBox1_SelectedIndexChanged);
// //
// label1 // label1
@@ -1084,170 +1255,27 @@
this.panel3.Size = new System.Drawing.Size(1384, 218); this.panel3.Size = new System.Drawing.Size(1384, 218);
this.panel3.TabIndex = 7; this.panel3.TabIndex = 7;
// //
// fpSpread1_Sheet1 // toolStripLabel7
// //
this.fpSpread1_Sheet1.Reset(); this.toolStripLabel7.Name = "toolStripLabel7";
this.fpSpread1_Sheet1.SheetName = "Sheet1"; this.toolStripLabel7.Size = new System.Drawing.Size(31, 24);
// Formulas and custom names must be loaded with R1C1 reference style this.toolStripLabel7.Text = "공정";
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1; //
this.fpSpread1_Sheet1.ColumnCount = 18; // cmbProcess
this.fpSpread1_Sheet1.ColumnHeader.RowCount = 2; //
this.fpSpread1_Sheet1.ActiveColumnIndex = -1; this.cmbProcess.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.fpSpread1_Sheet1.ActiveRowIndex = -1; this.cmbProcess.Items.AddRange(new object[] {
this.fpSpread1_Sheet1.AutoGenerateColumns = false; "---",
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).RowSpan = 2; "Origin Cost",
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "IDX"; "Input Cost",
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).RowSpan = 2; "Effect Cost",
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "상태"; "Asset No",
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).RowSpan = 2; "Project",
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 2).Value = "분류"; "Champion",
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).RowSpan = 2; "Requestor",
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "파트"; "Process"});
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).RowSpan = 2; this.cmbProcess.Name = "cmbProcess";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 4).Value = "공정"; this.cmbProcess.Size = new System.Drawing.Size(80, 27);
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 5).Value = "요청";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 6).Value = "담당";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).ColumnSpan = 3;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 7).Value = "협업";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 10).Value = "자산번호";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 11).Value = "프로젝트";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 12).Value = "대수";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 13).Value = "Original\r\n($K)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).StyleName = " ";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 14).Value = "Input\r\n($K)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 15).Value = "Effect\r\n($K)";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 16).Value = "CR/CF#";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).RowSpan = 2;
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 17).Value = "비고";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 7).Value = "H/W";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 8).Value = "전장";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 9).Value = "S/W";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 10).Value = "Asset No.";
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(1, 16).Value = "CR/CF#";
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 46F;
this.fpSpread1_Sheet1.Columns.Get(0).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType1.DecimalPlaces = 0;
numberCellType1.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType1.MaximumValue = 2147483647D;
numberCellType1.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = numberCellType1;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "idx";
this.fpSpread1_Sheet1.Columns.Get(0).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(0).Locked = true;
this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType1;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "status";
this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Tag = "state";
this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(1).Width = 78F;
this.fpSpread1_Sheet1.Columns.Get(2).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType2;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "category";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType3;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "part";
this.fpSpread1_Sheet1.Columns.Get(4).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType4;
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "process";
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).Width = 78F;
this.fpSpread1_Sheet1.Columns.Get(5).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType5;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "reqstaff";
this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Width = 78F;
this.fpSpread1_Sheet1.Columns.Get(6).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType6;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "userManager";
this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Width = 78F;
this.fpSpread1_Sheet1.Columns.Get(7).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType7;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "usermain";
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).Label = "H/W";
this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(7).Width = 78F;
this.fpSpread1_Sheet1.Columns.Get(8).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = textCellType8;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "userhw2";
this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Label = "전장";
this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = textCellType9;
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "usersub";
this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).Label = "S/W";
this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).Width = 78F;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = textCellType10;
this.fpSpread1_Sheet1.Columns.Get(10).DataField = "asset";
this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(10).Label = "Asset No.";
this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(10).Width = 78F;
this.fpSpread1_Sheet1.Columns.Get(11).CellType = textCellType11;
this.fpSpread1_Sheet1.Columns.Get(11).DataField = "name";
this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(11).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(11).Width = 78F;
numberCellType2.DecimalPlaces = 0;
numberCellType2.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType2.MaximumValue = 2147483647D;
numberCellType2.MinimumValue = -2147483648D;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType2;
this.fpSpread1_Sheet1.Columns.Get(12).DataField = "cnt";
this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(12).Width = 59F;
numberCellType3.MaximumValue = 999999999999999D;
numberCellType3.MinimumValue = -999999999999999D;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = numberCellType3;
this.fpSpread1_Sheet1.Columns.Get(13).DataField = "costo";
this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(13).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
numberCellType4.MaximumValue = 999999999999999D;
numberCellType4.MinimumValue = -999999999999999D;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = numberCellType4;
this.fpSpread1_Sheet1.Columns.Get(14).DataField = "costn";
this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(14).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(15).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType5.MaximumValue = 999999999999999D;
numberCellType5.MinimumValue = -999999999999999D;
this.fpSpread1_Sheet1.Columns.Get(15).CellType = numberCellType5;
this.fpSpread1_Sheet1.Columns.Get(15).DataField = "coste";
this.fpSpread1_Sheet1.Columns.Get(15).ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType12;
this.fpSpread1_Sheet1.Columns.Get(16).DataField = "orderno";
this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(16).Label = "CR/CF#";
this.fpSpread1_Sheet1.Columns.Get(16).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = textCellType13;
this.fpSpread1_Sheet1.Columns.Get(17).DataField = "memo";
this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
this.fpSpread1_Sheet1.DataSource = this.bs;
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
// //
// fProjectList // fProjectList
// //
@@ -1269,6 +1297,7 @@
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
this.cm.ResumeLayout(false); this.cm.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
this.toolStrip1.ResumeLayout(false); this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout(); this.toolStrip1.PerformLayout();
this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false);
@@ -1277,7 +1306,6 @@
((System.ComponentModel.ISupportInitialize)(this.bsHist)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bsHist)).EndInit();
this.tableLayoutPanel2.ResumeLayout(false); this.tableLayoutPanel2.ResumeLayout(false);
this.panel3.ResumeLayout(false); this.panel3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@@ -1379,5 +1407,7 @@
private System.Windows.Forms.ToolStripLabel toolStripLabel6; private System.Windows.Forms.ToolStripLabel toolStripLabel6;
private System.Windows.Forms.ToolStripComboBox cmbCate; private System.Windows.Forms.ToolStripComboBox cmbCate;
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1; private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
private System.Windows.Forms.ToolStripLabel toolStripLabel7;
private System.Windows.Forms.ToolStripComboBox cmbProcess;
} }
} }

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -24,8 +24,8 @@ WHERE (idx = @Original_idx)</CommandText>
<DbCommand CommandType="Text" ModifiedByUser="true"> <DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>INSERT INTO Projects <CommandText>INSERT INTO Projects
(status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate, (status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate,
progress, import, asset, isdel, path, userhw2, orderno, gcode, category) progress, import, asset, isdel, path, userhw2, orderno, gcode, category, userprocess)
VALUES (@status,@pdate,@name,@usermain,@usersub,@reqstaff,@sdate,@edate,@odate,@memo,@wuid,@wdate,@rev,@pidx,@userManager,@level,@part,@process,@costo,@costn,@cnt,@remark_req,@remark_ans,@ddate,@progress,@import,@asset,@isdel,@path,@userhw2,@orderno,@gcode,@category); VALUES (@status,@pdate,@name,@usermain,@usersub,@reqstaff,@sdate,@edate,@odate,@memo,@wuid,@wdate,@rev,@pidx,@userManager,@level,@part,@process,@costo,@costn,@cnt,@remark_req,@remark_ans,@ddate,@progress,@import,@asset,@isdel,@path,@userhw2,@orderno,@gcode,@category,@userprocess);
SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate, progress, import, asset, isdel, path, userhw2 FROM Projects WHERE (idx = SCOPE_IDENTITY()) ORDER BY (CASE WHEN [status] = '검토' THEN '0' WHEN ([status] = '진행') THEN '1' WHEN ([status] = '보류') THEN '2' WHEN ([status] = '완료') THEN '3' WHEN ([status] = '취소') THEN '9' ELSE '5' END)</CommandText> SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate, progress, import, asset, isdel, path, userhw2 FROM Projects WHERE (idx = SCOPE_IDENTITY()) ORDER BY (CASE WHEN [status] = '검토' THEN '0' WHEN ([status] = '진행') THEN '1' WHEN ([status] = '보류') THEN '2' WHEN ([status] = '완료') THEN '3' WHEN ([status] = '취소') THEN '9' ELSE '5' END)</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="status" ColumnName="status" DataSourceName="EE.dbo.Projects" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@status" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="status" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="status" ColumnName="status" DataSourceName="EE.dbo.Projects" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@status" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="status" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -61,13 +61,14 @@ SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odat
<Parameter AllowDbNull="true" AutogeneratedName="orderno" ColumnName="orderno" DataSourceName="EE.dbo.Projects" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@orderno" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="orderno" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="orderno" ColumnName="orderno" DataSourceName="EE.dbo.Projects" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@orderno" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="orderno" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.Projects" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.Projects" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="category" ColumnName="category" DataSourceName="EE.dbo.Projects" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@category" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="category" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="category" ColumnName="category" DataSourceName="EE.dbo.Projects" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@category" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="category" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="userprocess" ColumnName="userprocess" DataSourceName="EE.dbo.Projects" DataTypeServer="nvarchar(100)" DbType="String" Direction="Input" ParameterName="@userprocess" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumn="userprocess" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</InsertCommand> </InsertCommand>
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate, <CommandText>SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate,
progress, import, asset, isdel, path, userhw2, orderno, dbo.getLastHistory(idx) AS lasthistory, gcode, category progress, import, asset, isdel, path, userhw2, orderno, dbo.getLastHistory(idx) AS lasthistory, gcode, category, userprocess
FROM Projects FROM Projects
WHERE (status LIKE @state) AND (ISNULL(userManager, '') LIKE @username OR WHERE (status LIKE @state) AND (ISNULL(userManager, '') LIKE @username OR
ISNULL(usermain, '') LIKE @username OR ISNULL(usermain, '') LIKE @username OR
@@ -87,8 +88,8 @@ ORDER BY (CASE WHEN [status] = '검토' THEN '0' WHEN ([status] = '진행') THEN
SET status = @status, pdate = @pdate, name = @name, usermain = @usermain, usersub = @usersub, reqstaff = @reqstaff, sdate = @sdate, edate = @edate, odate = @odate, memo = @memo, SET status = @status, pdate = @pdate, name = @name, usermain = @usermain, usersub = @usersub, reqstaff = @reqstaff, sdate = @sdate, edate = @edate, odate = @odate, memo = @memo,
wuid = @wuid, wdate = @wdate, rev = @rev, pidx = @pidx, userManager = @userManager, level = @level, part = @part, process = @process, costo = @costo, costn = @costn, cnt = @cnt, wuid = @wuid, wdate = @wdate, rev = @rev, pidx = @pidx, userManager = @userManager, level = @level, part = @part, process = @process, costo = @costo, costn = @costn, cnt = @cnt,
remark_req = @remark_req, remark_ans = @remark_ans, ddate = @ddate, progress = @progress, import = @import, asset = @asset, isdel = @isdel, path = @path, userhw2 = @userhw2, remark_req = @remark_req, remark_ans = @remark_ans, ddate = @ddate, progress = @progress, import = @import, asset = @asset, isdel = @isdel, path = @path, userhw2 = @userhw2,
orderno = @orderno, category = @category orderno = @orderno, category = @category, userprocess = @userprocess
WHERE (idx = @Original_idx); WHERE (idx = @Original_idx);
SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate, progress, import, asset, isdel, path, userhw2 FROM Projects WHERE (idx = @idx) ORDER BY (CASE WHEN [status] = '검토' THEN '0' WHEN ([status] = '진행') THEN '1' WHEN ([status] = '보류') THEN '2' WHEN ([status] = '완료') THEN '3' WHEN ([status] = '취소') THEN '9' ELSE '5' END)</CommandText> SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate, progress, import, asset, isdel, path, userhw2 FROM Projects WHERE (idx = @idx) ORDER BY (CASE WHEN [status] = '검토' THEN '0' WHEN ([status] = '진행') THEN '1' WHEN ([status] = '보류') THEN '2' WHEN ([status] = '완료') THEN '3' WHEN ([status] = '취소') THEN '9' ELSE '5' END)</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="status" ColumnName="status" DataSourceName="EE.dbo.Projects" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@status" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="status" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="status" ColumnName="status" DataSourceName="EE.dbo.Projects" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@status" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="status" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -123,6 +124,7 @@ SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odat
<Parameter AllowDbNull="true" AutogeneratedName="userhw2" ColumnName="userhw2" DataSourceName="EE.dbo.Projects" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@userhw2" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="userhw2" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="userhw2" ColumnName="userhw2" DataSourceName="EE.dbo.Projects" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@userhw2" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="userhw2" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="orderno" ColumnName="orderno" DataSourceName="EE.dbo.Projects" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@orderno" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="orderno" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="orderno" ColumnName="orderno" DataSourceName="EE.dbo.Projects" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@orderno" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="orderno" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="category" ColumnName="category" DataSourceName="EE.dbo.Projects" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@category" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="category" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="true" AutogeneratedName="category" ColumnName="category" DataSourceName="EE.dbo.Projects" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@category" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="category" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="userprocess" ColumnName="userprocess" DataSourceName="EE.dbo.Projects" DataTypeServer="nvarchar(100)" DbType="String" Direction="Input" ParameterName="@userprocess" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumn="userprocess" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="Original_idx" ColumnName="idx" DataSourceName="EE.dbo.Projects" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="Original_idx" ColumnName="idx" DataSourceName="EE.dbo.Projects" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="EE.dbo.Projects" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" /> <Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="EE.dbo.Projects" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters> </Parameters>
@@ -166,6 +168,7 @@ SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odat
<Mapping SourceColumn="lasthistory" DataSetColumn="lasthistory" /> <Mapping SourceColumn="lasthistory" DataSetColumn="lasthistory" />
<Mapping SourceColumn="gcode" DataSetColumn="gcode" /> <Mapping SourceColumn="gcode" DataSetColumn="gcode" />
<Mapping SourceColumn="category" DataSetColumn="category" /> <Mapping SourceColumn="category" DataSetColumn="category" />
<Mapping SourceColumn="userprocess" DataSetColumn="userprocess" />
</Mappings> </Mappings>
<Sources> <Sources>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteImport" Modifier="Public" Name="DeleteImport" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteImport"> <DbSource ConnectionRef="gwcs (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteImport" Modifier="Public" Name="DeleteImport" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteImport">
@@ -189,7 +192,7 @@ WHERE (import = 1) AND (gcode = @gcode)</CommandText>
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true"> <DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT asset, cnt, costn, costo, ddate, edate, idx, import, isdel, level, memo, name, odate, orderno, part, path, pdate, pidx, process, progress, remark_ans, remark_req, reqstaff, rev, sdate, status, <CommandText>SELECT asset, cnt, costn, costo, ddate, edate, idx, import, isdel, level, memo, name, odate, orderno, part, path, pdate, pidx, process, progress, remark_ans, remark_req, reqstaff, rev, sdate, status,
userManager, userhw2, usermain, usersub, wdate, wuid, dbo.getLastHistory(idx) AS lasthistory, gcode, category userManager, userhw2, usermain, usersub, wdate, wuid, dbo.getLastHistory(idx) AS lasthistory, gcode, category, userprocess
FROM Projects FROM Projects
WHERE (idx = @idx)</CommandText> WHERE (idx = @idx)</CommandText>
<Parameters> <Parameters>
@@ -202,7 +205,7 @@ WHERE (idx = @idx)</CommandText>
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true"> <DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate, <CommandText>SELECT idx, status, pdate, name, usermain, usersub, reqstaff, sdate, edate, odate, memo, wuid, wdate, rev, pidx, userManager, level, part, process, costo, costn, cnt, remark_req, remark_ans, ddate,
progress, import, asset, isdel, path, userhw2, orderno, dbo.getLastHistory(idx) AS lasthistory, gcode, category progress, import, asset, isdel, path, userhw2, orderno, dbo.getLastHistory(idx) AS lasthistory, gcode, category, userprocess
FROM Projects FROM Projects
WHERE (ISNULL(name, N'') LIKE @search OR WHERE (ISNULL(name, N'') LIKE @search OR
ISNULL(memo, N'') LIKE @search) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode)</CommandText> ISNULL(memo, N'') LIKE @search) AND (ISNULL(isdel, 0) = 0) AND (gcode = @gcode)</CommandText>
@@ -1076,7 +1079,7 @@ WHERE (pidx = @pidx)</CommandText>
<xs:element name="dsPRJ" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsPRJ" msprop:Generator_UserDSName="dsPRJ"> <xs:element name="dsPRJ" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsPRJ" msprop:Generator_UserDSName="dsPRJ">
<xs:complexType> <xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Projects" msprop:Generator_TableClassName="ProjectsDataTable" msprop:Generator_TableVarName="tableProjects" msprop:Generator_RowChangedName="ProjectsRowChanged" msprop:Generator_TablePropName="Projects" msprop:Generator_RowDeletingName="ProjectsRowDeleting" msprop:Generator_RowChangingName="ProjectsRowChanging" msprop:Generator_RowEvHandlerName="ProjectsRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsRowDeleted" msprop:Generator_RowClassName="ProjectsRow" msprop:Generator_UserTableName="Projects" msprop:Generator_RowEvArgName="ProjectsRowChangeEvent"> <xs:element name="Projects" msprop:Generator_TableClassName="ProjectsDataTable" msprop:Generator_TableVarName="tableProjects" msprop:Generator_TablePropName="Projects" msprop:Generator_RowDeletingName="ProjectsRowDeleting" msprop:Generator_RowChangingName="ProjectsRowChanging" msprop:Generator_RowEvHandlerName="ProjectsRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsRowDeleted" msprop:Generator_UserTableName="Projects" msprop:Generator_RowChangedName="ProjectsRowChanged" msprop:Generator_RowEvArgName="ProjectsRowChangeEvent" msprop:Generator_RowClassName="ProjectsRow">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1259,10 +1262,17 @@ WHERE (pidx = @pidx)</CommandText>
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="userprocess" msprop:Generator_ColumnVarNameInTable="columnuserprocess" msprop:Generator_ColumnPropNameInRow="userprocess" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInTable="userprocessColumn" msprop:Generator_UserColumnName="userprocess" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="100" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="ProjectsIOMap" msprop:Generator_TableClassName="ProjectsIOMapDataTable" msprop:Generator_TableVarName="tableProjectsIOMap" msprop:Generator_RowChangedName="ProjectsIOMapRowChanged" msprop:Generator_TablePropName="ProjectsIOMap" msprop:Generator_RowDeletingName="ProjectsIOMapRowDeleting" msprop:Generator_RowChangingName="ProjectsIOMapRowChanging" msprop:Generator_RowEvHandlerName="ProjectsIOMapRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsIOMapRowDeleted" msprop:Generator_RowClassName="ProjectsIOMapRow" msprop:Generator_UserTableName="ProjectsIOMap" msprop:Generator_RowEvArgName="ProjectsIOMapRowChangeEvent"> <xs:element name="ProjectsIOMap" msprop:Generator_TableClassName="ProjectsIOMapDataTable" msprop:Generator_TableVarName="tableProjectsIOMap" msprop:Generator_TablePropName="ProjectsIOMap" msprop:Generator_RowDeletingName="ProjectsIOMapRowDeleting" msprop:Generator_RowChangingName="ProjectsIOMapRowChanging" msprop:Generator_RowEvHandlerName="ProjectsIOMapRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsIOMapRowDeleted" msprop:Generator_UserTableName="ProjectsIOMap" msprop:Generator_RowChangedName="ProjectsIOMapRowChanged" msprop:Generator_RowEvArgName="ProjectsIOMapRowChangeEvent" msprop:Generator_RowClassName="ProjectsIOMapRow">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1306,7 +1316,7 @@ WHERE (pidx = @pidx)</CommandText>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="ProjectsMailList" msprop:Generator_TableClassName="ProjectsMailListDataTable" msprop:Generator_TableVarName="tableProjectsMailList" msprop:Generator_RowChangedName="ProjectsMailListRowChanged" msprop:Generator_TablePropName="ProjectsMailList" msprop:Generator_RowDeletingName="ProjectsMailListRowDeleting" msprop:Generator_RowChangingName="ProjectsMailListRowChanging" msprop:Generator_RowEvHandlerName="ProjectsMailListRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsMailListRowDeleted" msprop:Generator_RowClassName="ProjectsMailListRow" msprop:Generator_UserTableName="ProjectsMailList" msprop:Generator_RowEvArgName="ProjectsMailListRowChangeEvent"> <xs:element name="ProjectsMailList" msprop:Generator_TableClassName="ProjectsMailListDataTable" msprop:Generator_TableVarName="tableProjectsMailList" msprop:Generator_TablePropName="ProjectsMailList" msprop:Generator_RowDeletingName="ProjectsMailListRowDeleting" msprop:Generator_RowChangingName="ProjectsMailListRowChanging" msprop:Generator_RowEvHandlerName="ProjectsMailListRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsMailListRowDeleted" msprop:Generator_UserTableName="ProjectsMailList" msprop:Generator_RowChangedName="ProjectsMailListRowChanged" msprop:Generator_RowEvArgName="ProjectsMailListRowChangeEvent" msprop:Generator_RowClassName="ProjectsMailListRow">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1351,7 +1361,7 @@ WHERE (pidx = @pidx)</CommandText>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="ProjectsPart" msprop:Generator_TableClassName="ProjectsPartDataTable" msprop:Generator_TableVarName="tableProjectsPart" msprop:Generator_RowChangedName="ProjectsPartRowChanged" msprop:Generator_TablePropName="ProjectsPart" msprop:Generator_RowDeletingName="ProjectsPartRowDeleting" msprop:Generator_RowChangingName="ProjectsPartRowChanging" msprop:Generator_RowEvHandlerName="ProjectsPartRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsPartRowDeleted" msprop:Generator_RowClassName="ProjectsPartRow" msprop:Generator_UserTableName="ProjectsPart" msprop:Generator_RowEvArgName="ProjectsPartRowChangeEvent"> <xs:element name="ProjectsPart" msprop:Generator_TableClassName="ProjectsPartDataTable" msprop:Generator_TableVarName="tableProjectsPart" msprop:Generator_TablePropName="ProjectsPart" msprop:Generator_RowDeletingName="ProjectsPartRowDeleting" msprop:Generator_RowChangingName="ProjectsPartRowChanging" msprop:Generator_RowEvHandlerName="ProjectsPartRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsPartRowDeleted" msprop:Generator_UserTableName="ProjectsPart" msprop:Generator_RowChangedName="ProjectsPartRowChanged" msprop:Generator_RowEvArgName="ProjectsPartRowChangeEvent" msprop:Generator_RowClassName="ProjectsPartRow">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1459,7 +1469,7 @@ WHERE (pidx = @pidx)</CommandText>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="JobReport" msprop:Generator_TableClassName="JobReportDataTable" msprop:Generator_TableVarName="tableJobReport" msprop:Generator_RowChangedName="JobReportRowChanged" msprop:Generator_TablePropName="JobReport" msprop:Generator_RowDeletingName="JobReportRowDeleting" msprop:Generator_RowChangingName="JobReportRowChanging" msprop:Generator_RowEvHandlerName="JobReportRowChangeEventHandler" msprop:Generator_RowDeletedName="JobReportRowDeleted" msprop:Generator_RowClassName="JobReportRow" msprop:Generator_UserTableName="JobReport" msprop:Generator_RowEvArgName="JobReportRowChangeEvent"> <xs:element name="JobReport" msprop:Generator_TableClassName="JobReportDataTable" msprop:Generator_TableVarName="tableJobReport" msprop:Generator_TablePropName="JobReport" msprop:Generator_RowDeletingName="JobReportRowDeleting" msprop:Generator_RowChangingName="JobReportRowChanging" msprop:Generator_RowEvHandlerName="JobReportRowChangeEventHandler" msprop:Generator_RowDeletedName="JobReportRowDeleted" msprop:Generator_UserTableName="JobReport" msprop:Generator_RowChangedName="JobReportRowChanged" msprop:Generator_RowEvArgName="JobReportRowChangeEvent" msprop:Generator_RowClassName="JobReportRow">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1570,7 +1580,7 @@ WHERE (pidx = @pidx)</CommandText>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="ProjectsSchedule" msprop:Generator_TableClassName="ProjectsScheduleDataTable" msprop:Generator_TableVarName="tableProjectsSchedule" msprop:Generator_RowChangedName="ProjectsScheduleRowChanged" msprop:Generator_TablePropName="ProjectsSchedule" msprop:Generator_RowDeletingName="ProjectsScheduleRowDeleting" msprop:Generator_RowChangingName="ProjectsScheduleRowChanging" msprop:Generator_RowEvHandlerName="ProjectsScheduleRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsScheduleRowDeleted" msprop:Generator_RowClassName="ProjectsScheduleRow" msprop:Generator_UserTableName="ProjectsSchedule" msprop:Generator_RowEvArgName="ProjectsScheduleRowChangeEvent"> <xs:element name="ProjectsSchedule" msprop:Generator_TableClassName="ProjectsScheduleDataTable" msprop:Generator_TableVarName="tableProjectsSchedule" msprop:Generator_TablePropName="ProjectsSchedule" msprop:Generator_RowDeletingName="ProjectsScheduleRowDeleting" msprop:Generator_RowChangingName="ProjectsScheduleRowChanging" msprop:Generator_RowEvHandlerName="ProjectsScheduleRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsScheduleRowDeleted" msprop:Generator_UserTableName="ProjectsSchedule" msprop:Generator_RowChangedName="ProjectsScheduleRowChanged" msprop:Generator_RowEvArgName="ProjectsScheduleRowChangeEvent" msprop:Generator_RowClassName="ProjectsScheduleRow">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1604,7 +1614,7 @@ WHERE (pidx = @pidx)</CommandText>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="ProjectsHistory" msprop:Generator_TableClassName="ProjectsHistoryDataTable" msprop:Generator_TableVarName="tableProjectsHistory" msprop:Generator_RowChangedName="ProjectsHistoryRowChanged" msprop:Generator_TablePropName="ProjectsHistory" msprop:Generator_RowDeletingName="ProjectsHistoryRowDeleting" msprop:Generator_RowChangingName="ProjectsHistoryRowChanging" msprop:Generator_RowEvHandlerName="ProjectsHistoryRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsHistoryRowDeleted" msprop:Generator_RowClassName="ProjectsHistoryRow" msprop:Generator_UserTableName="ProjectsHistory" msprop:Generator_RowEvArgName="ProjectsHistoryRowChangeEvent"> <xs:element name="ProjectsHistory" msprop:Generator_TableClassName="ProjectsHistoryDataTable" msprop:Generator_TableVarName="tableProjectsHistory" msprop:Generator_TablePropName="ProjectsHistory" msprop:Generator_RowDeletingName="ProjectsHistoryRowDeleting" msprop:Generator_RowChangingName="ProjectsHistoryRowChanging" msprop:Generator_RowEvHandlerName="ProjectsHistoryRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsHistoryRowDeleted" msprop:Generator_UserTableName="ProjectsHistory" msprop:Generator_RowChangedName="ProjectsHistoryRowChanged" msprop:Generator_RowEvArgName="ProjectsHistoryRowChangeEvent" msprop:Generator_RowClassName="ProjectsHistoryRow">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />

View File

@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated> <!--<autogenerated>
This code was generated by a tool to store the dataset designer's layout information. This code was generated by a tool to store the dataset designer's layout information.
Changes to this file may cause incorrect behavior and will be lost if Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated. the code is regenerated.
</autogenerated>--> </autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout"> <DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes> <Shapes>
<Shape ID="DesignTable:Projects" ZOrder="8" X="70" Y="70" Height="362" Width="226" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" /> <Shape ID="DesignTable:Projects" ZOrder="8" X="70" Y="70" Height="514" Width="275" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="389" />
<Shape ID="DesignTable:ProjectsIOMap" ZOrder="7" X="366" Y="70" Height="229" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" /> <Shape ID="DesignTable:ProjectsIOMap" ZOrder="7" X="366" Y="70" Height="229" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:ProjectsMailList" ZOrder="6" X="667" Y="70" Height="248" Width="237" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" /> <Shape ID="DesignTable:ProjectsMailList" ZOrder="6" X="667" Y="70" Height="248" Width="237" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
<Shape ID="DesignTable:ProjectsPart" ZOrder="5" X="974" Y="70" Height="343" Width="215" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" /> <Shape ID="DesignTable:ProjectsPart" ZOrder="5" X="974" Y="70" Height="343" Width="215" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:JobReport" ZOrder="4" X="1259" Y="70" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" /> <Shape ID="DesignTable:JobReport" ZOrder="4" X="1259" Y="70" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:ProjectsSchedule" ZOrder="3" X="1629" Y="70" Height="267" Width="244" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" /> <Shape ID="DesignTable:ProjectsSchedule" ZOrder="3" X="1629" Y="70" Height="267" Width="244" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
<Shape ID="DesignTable:ProjectsHistory" ZOrder="2" X="1943" Y="70" Height="267" Width="251" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" /> <Shape ID="DesignTable:ProjectsHistory" ZOrder="2" X="1943" Y="70" Height="267" Width="251" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignSources:QueriesTableAdapter" ZOrder="1" X="2264" Y="70" Height="48" Width="271" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="16" /> <Shape ID="DesignSources:QueriesTableAdapter" ZOrder="1" X="2264" Y="70" Height="48" Width="271" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="16" />
</Shapes> </Shapes>
<Connectors /> <Connectors />
</DiagramLayout> </DiagramLayout>

File diff suppressed because it is too large Load Diff

View File

@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated> <!--<autogenerated>
This code was generated by a tool. This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated. the code is regenerated.
</autogenerated>--> </autogenerated>-->
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource"> <DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TableUISettings /> <TableUISettings />
</DataSetUISetting> </DataSetUISetting>

View File

@@ -1,144 +1,266 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dsReport" targetNamespace="http://tempuri.org/dsReport.xsd" xmlns:mstns="http://tempuri.org/dsReport.xsd" xmlns="http://tempuri.org/dsReport.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified"> <xs:schema id="dsReport" targetNamespace="http://tempuri.org/dsReport.xsd" xmlns:mstns="http://tempuri.org/dsReport.xsd" xmlns="http://tempuri.org/dsReport.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation> <xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource"> <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource"> <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections> <Connections>
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="gwcs" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="gwcs (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.FPJ0000.Properties.Settings.GlobalReference.Default.gwcs" Provider="System.Data.SqlClient" /> <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="gwcs" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="gwcs (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.FPJ0000.Properties.Settings.GlobalReference.Default.gwcs" Provider="System.Data.SqlClient" />
</Connections> </Connections>
<Tables> <Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="jobReportTableAdapter" GeneratorDataComponentClassName="jobReportTableAdapter" Name="jobReport" UserDataComponentName="jobReportTableAdapter"> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="jobReportTableAdapter" GeneratorDataComponentClassName="jobReportTableAdapter" Name="jobReport" UserDataComponentName="jobReportTableAdapter">
<MainSource> <MainSource>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.vUserWorkTimeList" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill"> <DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.vUserWorkTimeList" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT yymm, total, uid, uname, hrs, ot <CommandText>SELECT yymm, total, uid, uname, hrs, ot
FROM vUserWorkTimeList FROM vUserWorkTimeList
WHERE (SUBSTRING(yymm, 1, 4) = @yyyy) AND (gcode = @gcode) WHERE (SUBSTRING(yymm, 1, 4) = @yyyy) AND (gcode = @gcode)
ORDER BY yymm</CommandText> ORDER BY yymm</CommandText>
<Parameters> <Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="yyyy" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@yyyy" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="yyyy" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@yyyy" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="GroupWare.dbo.vUserWorkTimeList" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="GroupWare.dbo.vUserWorkTimeList" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters> </Parameters>
</DbCommand> </DbCommand>
</SelectCommand> </SelectCommand>
</DbSource> </DbSource>
</MainSource> </MainSource>
<Mappings> <Mappings>
<Mapping SourceColumn="yymm" DataSetColumn="yymm" /> <Mapping SourceColumn="yymm" DataSetColumn="yymm" />
<Mapping SourceColumn="total" DataSetColumn="total" /> <Mapping SourceColumn="total" DataSetColumn="total" />
<Mapping SourceColumn="uid" DataSetColumn="uid" /> <Mapping SourceColumn="uid" DataSetColumn="uid" />
<Mapping SourceColumn="uname" DataSetColumn="uname" /> <Mapping SourceColumn="uname" DataSetColumn="uname" />
<Mapping SourceColumn="hrs" DataSetColumn="hrs" /> <Mapping SourceColumn="hrs" DataSetColumn="hrs" />
<Mapping SourceColumn="ot" DataSetColumn="ot" /> <Mapping SourceColumn="ot" DataSetColumn="ot" />
</Mappings> </Mappings>
<Sources /> <Sources />
</TableAdapter> </TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="JobReportDayTableAdapter" GeneratorDataComponentClassName="JobReportDayTableAdapter" Name="JobReportDay" UserDataComponentName="JobReportDayTableAdapter"> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="JobReportDayTableAdapter" GeneratorDataComponentClassName="JobReportDayTableAdapter" Name="JobReportDay" UserDataComponentName="JobReportDayTableAdapter">
<MainSource> <MainSource>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.JobReport" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill"> <DbSource ConnectionRef="gwcs (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false"> <DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT uid, dbo.getUserName(uid) AS uname, pdate, SUM(hrs) AS hrs, SUM(ot) AS ot <CommandText>SELECT ISNULL(Users.processs, '') AS processs, JobReport.uid, Users.name AS uname, JobReport.pdate, SUM(JobReport.hrs) AS hrs, SUM(JobReport.ot) AS ot
FROM JobReport FROM JobReport LEFT OUTER JOIN
WHERE (SUBSTRING(pdate, 1, 7) = @yymm) AND (uid &lt;&gt; '') AND (gcode = @gcode) Users ON JobReport.uid = Users.id
GROUP BY uid, pdate WHERE (SUBSTRING(JobReport.pdate, 1, 7) = @yymm) AND (JobReport.uid &lt;&gt; '') AND (JobReport.gcode = @gcode)
ORDER BY pdate, uname</CommandText> GROUP BY JobReport.uid, JobReport.pdate, Users.name, Users.processs
<Parameters> ORDER BY processs, JobReport.pdate, uname</CommandText>
<Parameter AllowDbNull="false" AutogeneratedName="yymm" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@yymm" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="GroupWare.dbo.JobReport" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" /> <Parameter AllowDbNull="false" AutogeneratedName="yymm" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@yymm" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters> <Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.JobReport" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
</DbCommand> </Parameters>
</SelectCommand> </DbCommand>
</DbSource> </SelectCommand>
</MainSource> </DbSource>
<Mappings> </MainSource>
<Mapping SourceColumn="uid" DataSetColumn="uid" /> <Mappings>
<Mapping SourceColumn="uname" DataSetColumn="uname" /> <Mapping SourceColumn="uid" DataSetColumn="uid" />
<Mapping SourceColumn="pdate" DataSetColumn="pdate" /> <Mapping SourceColumn="uname" DataSetColumn="uname" />
<Mapping SourceColumn="hrs" DataSetColumn="hrs" /> <Mapping SourceColumn="pdate" DataSetColumn="pdate" />
<Mapping SourceColumn="ot" DataSetColumn="ot" /> <Mapping SourceColumn="hrs" DataSetColumn="hrs" />
</Mappings> <Mapping SourceColumn="ot" DataSetColumn="ot" />
<Sources /> <Mapping SourceColumn="processs" DataSetColumn="processs" />
</TableAdapter> </Mappings>
</Tables> <Sources />
<Sources /> </TableAdapter>
</DataSource> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProcessListTableAdapter" GeneratorDataComponentClassName="ProcessListTableAdapter" Name="ProcessList" UserDataComponentName="ProcessListTableAdapter">
</xs:appinfo> <MainSource>
</xs:annotation> <DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.Users" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<xs:element name="dsReport" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsReport" msprop:Generator_UserDSName="dsReport"> <SelectCommand>
<xs:complexType> <DbCommand CommandType="Text" ModifiedByUser="false">
<xs:choice minOccurs="0" maxOccurs="unbounded"> <CommandText>SELECT processs
<xs:element name="jobReport" msprop:Generator_TableClassName="jobReportDataTable" msprop:Generator_TableVarName="tablejobReport" msprop:Generator_RowChangedName="jobReportRowChanged" msprop:Generator_TablePropName="jobReport" msprop:Generator_RowDeletingName="jobReportRowDeleting" msprop:Generator_RowChangingName="jobReportRowChanging" msprop:Generator_RowEvHandlerName="jobReportRowChangeEventHandler" msprop:Generator_RowDeletedName="jobReportRowDeleted" msprop:Generator_RowClassName="jobReportRow" msprop:Generator_UserTableName="jobReport" msprop:Generator_RowEvArgName="jobReportRowChangeEvent"> FROM Users
<xs:complexType> WHERE (ISNULL(processs, N'') &lt;&gt; '') AND (gcode = @gcode)
<xs:sequence> GROUP BY processs
<xs:element name="yymm" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnyymm" msprop:Generator_ColumnPropNameInRow="yymm" msprop:Generator_ColumnPropNameInTable="yymmColumn" msprop:Generator_UserColumnName="yymm" minOccurs="0"> ORDER BY processs</CommandText>
<xs:simpleType> <Parameters>
<xs:restriction base="xs:string"> <Parameter AllowDbNull="true" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.Users" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
<xs:maxLength value="22" /> </Parameters>
</xs:restriction> </DbCommand>
</xs:simpleType> </SelectCommand>
</xs:element> </DbSource>
<xs:element name="total" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columntotal" msprop:Generator_ColumnPropNameInRow="total" msprop:Generator_ColumnPropNameInTable="totalColumn" msprop:Generator_UserColumnName="total" type="xs:int" minOccurs="0" /> </MainSource>
<xs:element name="uid" msprop:Generator_ColumnVarNameInTable="columnuid" msprop:Generator_ColumnPropNameInRow="uid" msprop:Generator_ColumnPropNameInTable="uidColumn" msprop:Generator_UserColumnName="uid" minOccurs="0"> <Mappings>
<xs:simpleType> <Mapping SourceColumn="processs" DataSetColumn="processs" />
<xs:restriction base="xs:string"> </Mappings>
<xs:maxLength value="20" /> <Sources />
</xs:restriction> </TableAdapter>
</xs:simpleType> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProcessUserListTableAdapter" GeneratorDataComponentClassName="ProcessUserListTableAdapter" Name="ProcessUserList" UserDataComponentName="ProcessUserListTableAdapter">
</xs:element> <MainSource>
<xs:element name="uname" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnuname" msprop:Generator_ColumnPropNameInRow="uname" msprop:Generator_ColumnPropNameInTable="unameColumn" msprop:Generator_UserColumnName="uname" minOccurs="0"> <DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.Users" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<xs:simpleType> <DeleteCommand>
<xs:restriction base="xs:string"> <DbCommand CommandType="Text" ModifiedByUser="false">
<xs:maxLength value="200" /> <CommandText>DELETE FROM [Users] WHERE (((@IsNull_id = 1 AND [id] IS NULL) OR ([id] = @Original_id)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)))</CommandText>
</xs:restriction> <Parameters>
</xs:simpleType> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="true" SourceVersion="Original" />
</xs:element> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_id" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Original" />
<xs:element name="hrs" msprop:Generator_ColumnVarNameInTable="columnhrs" msprop:Generator_ColumnPropNameInRow="hrs" msprop:Generator_ColumnPropNameInTable="hrsColumn" msprop:Generator_UserColumnName="hrs" type="xs:double" minOccurs="0" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="true" SourceVersion="Original" />
<xs:element name="ot" msprop:Generator_ColumnVarNameInTable="columnot" msprop:Generator_ColumnPropNameInRow="ot" msprop:Generator_ColumnPropNameInTable="otColumn" msprop:Generator_UserColumnName="ot" type="xs:double" minOccurs="0" /> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Original" />
</xs:sequence> </Parameters>
</xs:complexType> </DbCommand>
</xs:element> </DeleteCommand>
<xs:element name="JobReportDay" msprop:Generator_TableClassName="JobReportDayDataTable" msprop:Generator_TableVarName="tableJobReportDay" msprop:Generator_RowChangedName="JobReportDayRowChanged" msprop:Generator_TablePropName="JobReportDay" msprop:Generator_RowDeletingName="JobReportDayRowDeleting" msprop:Generator_RowChangingName="JobReportDayRowChanging" msprop:Generator_RowEvHandlerName="JobReportDayRowChangeEventHandler" msprop:Generator_RowDeletedName="JobReportDayRowDeleted" msprop:Generator_RowClassName="JobReportDayRow" msprop:Generator_UserTableName="JobReportDay" msprop:Generator_RowEvArgName="JobReportDayRowChangeEvent"> <SelectCommand>
<xs:complexType> <DbCommand CommandType="Text" ModifiedByUser="false">
<xs:sequence> <CommandText>SELECT Users.id, Users.name
<xs:element name="uid" msprop:Generator_ColumnVarNameInTable="columnuid" msprop:Generator_ColumnPropNameInRow="uid" msprop:Generator_ColumnPropNameInTable="uidColumn" msprop:Generator_UserColumnName="uid" minOccurs="0"> FROM Users RIGHT OUTER JOIN
<xs:simpleType> JobReport ON Users.id = JobReport.uid
<xs:restriction base="xs:string"> WHERE (Users.processs LIKE @process) AND (Users.id &lt;&gt; 'dev') AND (Users.id &lt;&gt; 'test')
<xs:maxLength value="20" /> GROUP BY Users.id, Users.name
</xs:restriction> ORDER BY Users.name</CommandText>
</xs:simpleType> <Parameters>
</xs:element> <Parameter AllowDbNull="true" AutogeneratedName="process" ColumnName="processs" DataSourceName="EE.dbo.Users" DataTypeServer="nvarchar(100)" DbType="String" Direction="Input" ParameterName="@process" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumn="processs" SourceColumnNullMapping="false" SourceVersion="Current" />
<xs:element name="uname" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnuname" msprop:Generator_ColumnPropNameInRow="uname" msprop:Generator_ColumnPropNameInTable="unameColumn" msprop:Generator_UserColumnName="uname" minOccurs="0"> </Parameters>
<xs:simpleType> </DbCommand>
<xs:restriction base="xs:string"> </SelectCommand>
<xs:maxLength value="200" /> <UpdateCommand>
</xs:restriction> <DbCommand CommandType="Text" ModifiedByUser="false">
</xs:simpleType> <CommandText>UPDATE [Users] SET [id] = @id, [name] = @name WHERE (((@IsNull_id = 1 AND [id] IS NULL) OR ([id] = @Original_id)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)));
</xs:element> SELECT Users.id, Users.name FROM Users RIGHT OUTER JOIN JobReport ON Users.id = JobReport.uid WHERE (JobReport.idx = @idx) AND (Users.id = @id) GROUP BY Users.id, Users.name ORDER BY Users.name</CommandText>
<xs:element name="pdate" msprop:Generator_ColumnVarNameInTable="columnpdate" msprop:Generator_ColumnPropNameInRow="pdate" msprop:Generator_ColumnPropNameInTable="pdateColumn" msprop:Generator_UserColumnName="pdate" minOccurs="0"> <Parameters>
<xs:simpleType> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@id" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Current" />
<xs:restriction base="xs:string"> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Current" />
<xs:maxLength value="10" /> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="true" SourceVersion="Original" />
</xs:restriction> <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_id" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Original" />
</xs:simpleType> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="true" SourceVersion="Original" />
</xs:element> <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Original" />
<xs:element name="hrs" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnhrs" msprop:Generator_ColumnPropNameInRow="hrs" msprop:Generator_ColumnPropNameInTable="hrsColumn" msprop:Generator_UserColumnName="hrs" type="xs:double" minOccurs="0" /> <Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="EE.dbo.JobReport" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
<xs:element name="ot" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnot" msprop:Generator_ColumnPropNameInRow="ot" msprop:Generator_ColumnPropNameInTable="otColumn" msprop:Generator_UserColumnName="ot" type="xs:double" minOccurs="0" /> </Parameters>
</xs:sequence> </DbCommand>
</xs:complexType> </UpdateCommand>
</xs:element> </DbSource>
</xs:choice> </MainSource>
</xs:complexType> <Mappings>
<xs:unique name="Constraint1" msdata:PrimaryKey="true"> <Mapping SourceColumn="id" DataSetColumn="id" />
<xs:selector xpath=".//mstns:jobReport" /> <Mapping SourceColumn="name" DataSetColumn="name" />
<xs:field xpath="mstns:yymm" /> </Mappings>
<xs:field xpath="mstns:uid" /> <Sources />
</xs:unique> </TableAdapter>
<xs:unique name="JobReportDay_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true"> </Tables>
<xs:selector xpath=".//mstns:JobReportDay" /> <Sources />
<xs:field xpath="mstns:uid" /> </DataSource>
<xs:field xpath="mstns:pdate" /> </xs:appinfo>
</xs:unique> </xs:annotation>
</xs:element> <xs:element name="dsReport" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsReport" msprop:Generator_UserDSName="dsReport">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="jobReport" msprop:Generator_TableClassName="jobReportDataTable" msprop:Generator_TableVarName="tablejobReport" msprop:Generator_RowChangedName="jobReportRowChanged" msprop:Generator_TablePropName="jobReport" msprop:Generator_RowDeletingName="jobReportRowDeleting" msprop:Generator_RowChangingName="jobReportRowChanging" msprop:Generator_RowEvHandlerName="jobReportRowChangeEventHandler" msprop:Generator_RowDeletedName="jobReportRowDeleted" msprop:Generator_RowClassName="jobReportRow" msprop:Generator_UserTableName="jobReport" msprop:Generator_RowEvArgName="jobReportRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="yymm" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnyymm" msprop:Generator_ColumnPropNameInRow="yymm" msprop:Generator_ColumnPropNameInTable="yymmColumn" msprop:Generator_UserColumnName="yymm">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="22" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="total" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columntotal" msprop:Generator_ColumnPropNameInRow="total" msprop:Generator_ColumnPropNameInTable="totalColumn" msprop:Generator_UserColumnName="total" type="xs:int" minOccurs="0" />
<xs:element name="uid" msprop:Generator_ColumnVarNameInTable="columnuid" msprop:Generator_ColumnPropNameInRow="uid" msprop:Generator_ColumnPropNameInTable="uidColumn" msprop:Generator_UserColumnName="uid">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="uname" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnuname" msprop:Generator_ColumnPropNameInRow="uname" msprop:Generator_ColumnPropNameInTable="unameColumn" msprop:Generator_UserColumnName="uname" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="200" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="hrs" msprop:Generator_ColumnVarNameInTable="columnhrs" msprop:Generator_ColumnPropNameInRow="hrs" msprop:Generator_ColumnPropNameInTable="hrsColumn" msprop:Generator_UserColumnName="hrs" type="xs:double" minOccurs="0" />
<xs:element name="ot" msprop:Generator_ColumnVarNameInTable="columnot" msprop:Generator_ColumnPropNameInRow="ot" msprop:Generator_ColumnPropNameInTable="otColumn" msprop:Generator_UserColumnName="ot" type="xs:double" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="JobReportDay" msprop:Generator_TableClassName="JobReportDayDataTable" msprop:Generator_TableVarName="tableJobReportDay" msprop:Generator_RowChangedName="JobReportDayRowChanged" msprop:Generator_TablePropName="JobReportDay" msprop:Generator_RowDeletingName="JobReportDayRowDeleting" msprop:Generator_RowChangingName="JobReportDayRowChanging" msprop:Generator_RowEvHandlerName="JobReportDayRowChangeEventHandler" msprop:Generator_RowDeletedName="JobReportDayRowDeleted" msprop:Generator_RowClassName="JobReportDayRow" msprop:Generator_UserTableName="JobReportDay" msprop:Generator_RowEvArgName="JobReportDayRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="uid" msprop:Generator_ColumnVarNameInTable="columnuid" msprop:Generator_ColumnPropNameInRow="uid" msprop:Generator_ColumnPropNameInTable="uidColumn" msprop:Generator_UserColumnName="uid">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="uname" msdata:ReadOnly="true" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="uname" msprop:Generator_ColumnVarNameInTable="columnuname" msprop:Generator_ColumnPropNameInTable="unameColumn" msprop:Generator_UserColumnName="uname" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="200" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="pdate" msprop:Generator_ColumnVarNameInTable="columnpdate" msprop:Generator_ColumnPropNameInRow="pdate" msprop:Generator_ColumnPropNameInTable="pdateColumn" msprop:Generator_UserColumnName="pdate">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="hrs" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnhrs" msprop:Generator_ColumnPropNameInRow="hrs" msprop:Generator_ColumnPropNameInTable="hrsColumn" msprop:Generator_UserColumnName="hrs" type="xs:double" minOccurs="0" />
<xs:element name="ot" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnot" msprop:Generator_ColumnPropNameInRow="ot" msprop:Generator_ColumnPropNameInTable="otColumn" msprop:Generator_UserColumnName="ot" type="xs:double" minOccurs="0" />
<xs:element name="processs" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="processs" msprop:Generator_ColumnVarNameInTable="columnprocesss" msprop:Generator_ColumnPropNameInTable="processsColumn" msprop:Generator_UserColumnName="processs" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="100" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ProcessList" msprop:Generator_TableClassName="ProcessListDataTable" msprop:Generator_TableVarName="tableProcessList" msprop:Generator_RowChangedName="ProcessListRowChanged" msprop:Generator_TablePropName="ProcessList" msprop:Generator_RowDeletingName="ProcessListRowDeleting" msprop:Generator_RowChangingName="ProcessListRowChanging" msprop:Generator_RowEvHandlerName="ProcessListRowChangeEventHandler" msprop:Generator_RowDeletedName="ProcessListRowDeleted" msprop:Generator_RowClassName="ProcessListRow" msprop:Generator_UserTableName="ProcessList" msprop:Generator_RowEvArgName="ProcessListRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="processs" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="processs" msprop:Generator_ColumnVarNameInTable="columnprocesss" msprop:Generator_ColumnPropNameInTable="processsColumn" msprop:Generator_UserColumnName="processs">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="100" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ProcessUserList" msprop:Generator_TableClassName="ProcessUserListDataTable" msprop:Generator_TableVarName="tableProcessUserList" msprop:Generator_RowChangedName="ProcessUserListRowChanged" msprop:Generator_TablePropName="ProcessUserList" msprop:Generator_RowDeletingName="ProcessUserListRowDeleting" msprop:Generator_RowChangingName="ProcessUserListRowChanging" msprop:Generator_RowEvHandlerName="ProcessUserListRowChangeEventHandler" msprop:Generator_RowDeletedName="ProcessUserListRowDeleted" msprop:Generator_RowClassName="ProcessUserListRow" msprop:Generator_UserTableName="ProcessUserList" msprop:Generator_RowEvArgName="ProcessUserListRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="id" msprop:Generator_ColumnVarNameInTable="columnid" msprop:Generator_ColumnPropNameInRow="id" msprop:Generator_ColumnPropNameInTable="idColumn" msprop:Generator_UserColumnName="id" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" msprop:Generator_UserColumnName="name" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="100" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:jobReport" />
<xs:field xpath="mstns:yymm" />
<xs:field xpath="mstns:uid" />
</xs:unique>
<xs:unique name="JobReportDay_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:JobReportDay" />
<xs:field xpath="mstns:uid" />
<xs:field xpath="mstns:pdate" />
</xs:unique>
<xs:unique name="ProcessList_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:ProcessList" />
<xs:field xpath="mstns:processs" />
</xs:unique>
<xs:unique name="ProcessUserList_Constraint1" msdata:ConstraintName="Constraint1">
<xs:selector xpath=".//mstns:ProcessUserList" />
<xs:field xpath="mstns:id" />
</xs:unique>
</xs:element>
</xs:schema> </xs:schema>

View File

@@ -1,12 +1,15 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated> <!--<autogenerated>
This code was generated by a tool to store the dataset designer's layout information. This code was generated by a tool to store the dataset designer's layout information.
Changes to this file may cause incorrect behavior and will be lost if Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated. the code is regenerated.
</autogenerated>--> </autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-1" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout"> <DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes> <Shapes>
<Shape ID="DesignTable:jobReport" ZOrder="1" X="70" Y="70" Height="191" Width="200" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" /> <Shape ID="DesignTable:jobReport" ZOrder="4" X="70" Y="70" Height="419" Width="200" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="273" />
</Shapes> <Shape ID="DesignTable:JobReportDay" ZOrder="3" X="335" Y="164" Height="394" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="326" />
<Connectors /> <Shape ID="DesignTable:ProcessList" ZOrder="2" X="587" Y="65" Height="190" Width="177" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:ProcessUserList" ZOrder="1" X="619" Y="303" Height="115" Width="177" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
</Shapes>
<Connectors />
</DiagramLayout> </DiagramLayout>