This commit is contained in:
chi
2022-05-10 11:18:06 +09:00
parent 2d737c8256
commit 8d83d4a768
70 changed files with 596 additions and 511 deletions

View File

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

View File

@@ -12,7 +12,7 @@ namespace Project.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.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())));
@@ -33,26 +33,5 @@ namespace Project.Properties {
return ((string)(this["gwcs"])); 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("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\\Temp\\PMP\\SPMaster.mdb")]
public string PMPCS {
get {
return ((string)(this["PMPCS"]));
}
}
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.141.18.50;Initial Catalog=S1ACCESS300;Persist Security Info=True;U" +
"ser ID=amkoruser;Password=AmkorUser!")]
public string csAccess {
get {
return ((string)(this["csAccess"]));
}
}
} }
} }

View File

@@ -10,21 +10,5 @@
&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=Amkor123!</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>
<Setting Name="PMPCS" 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;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Temp\PMP\SPMaster.mdb&lt;/ConnectionString&gt;
&lt;ProviderName&gt;System.Data.OleDb&lt;/ProviderName&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Temp\PMP\SPMaster.mdb</Value>
</Setting>
<Setting Name="csAccess" 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.141.18.50;Initial Catalog=S1ACCESS300;Persist Security Info=True;User ID=amkoruser;Password=AmkorUser!&lt;/ConnectionString&gt;
&lt;ProviderName&gt;System.Data.SqlClient&lt;/ProviderName&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Data Source=10.141.18.50;Initial Catalog=S1ACCESS300;Persist Security Info=True;User ID=amkoruser;Password=AmkorUser!</Value>
</Setting>
</Settings> </Settings>
</SettingsFile> </SettingsFile>

View File

@@ -506,9 +506,20 @@ namespace Project
public static void RunExplorer(string arg) public static void RunExplorer(string arg)
{ {
System.Diagnostics.ProcessStartInfo si = new ProcessStartInfo("explorer"); if(arg.StartsWith("http"))
si.Arguments = arg; {
System.Diagnostics.Process.Start(si); System.Diagnostics.Process.Start(arg);
}
else
{
System.Diagnostics.ProcessStartInfo si = new ProcessStartInfo("explorer");
si.Arguments = arg;
System.Diagnostics.Process.Start(si);
}
} }
#region "watchdog" #region "watchdog"

View File

@@ -2,17 +2,24 @@
<configuration> <configuration>
<configSections></configSections> <configSections></configSections>
<connectionStrings> <connectionStrings>
<add name="Project.Properties.Settings.gwcs" connectionString="Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!" providerName="System.Data.SqlClient" /> <add name="Project.Properties.Settings.gwcs" connectionString="Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser;Password=Amkor123!"
<add name="Project.Properties.Settings.PMPCS" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Temp\PMP\SPMaster.mdb" providerName="System.Data.OleDb" /> providerName="System.Data.SqlClient" />
<add name="Project.Properties.Settings.csAccess" connectionString="Data Source=10.141.18.50;Initial Catalog=S1ACCESS300;Persist Security Info=True;User ID=amkoruser;Password=AmkorUser!" providerName="System.Data.SqlClient" /> <add name="EEEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;"
<add name="EEEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /> providerName="System.Data.EntityClient" />
<add name="EEEntities1" connectionString="metadata=res://*/ModelMain.csdl|res://*/ModelMain.ssdl|res://*/ModelMain.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;user id=eeuser;password=Amkor123!;connect timeout=30;encrypt=False;trustservercertificate=False;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /> <add name="EEEntities1" connectionString="metadata=res://*/ModelMain.csdl|res://*/ModelMain.ssdl|res://*/ModelMain.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;user id=eeuser;password=Amkor123!;connect timeout=30;encrypt=False;trustservercertificate=False;MultipleActiveResultSets=True;App=EntityFramework&quot;"
<add name="EEEntitiesMain" connectionString="metadata=res://*/AdoNetEFMain.csdl|res://*/AdoNetEFMain.ssdl|res://*/AdoNetEFMain.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;user id=eeuser;password=Amkor123!;connect timeout=30;encrypt=False;trustservercertificate=False;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /> providerName="System.Data.EntityClient" />
<add name="S1ACCESS300Entities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.141.18.50;initial catalog=S1ACCESS300;persist security info=True;user id=amkoruser;password=AmkorUser!;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /> <add name="EEEntitiesMain" connectionString="metadata=res://*/AdoNetEFMain.csdl|res://*/AdoNetEFMain.ssdl|res://*/AdoNetEFMain.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;user id=eeuser;password=Amkor123!;connect timeout=30;encrypt=False;trustservercertificate=False;MultipleActiveResultSets=True;App=EntityFramework&quot;"
<add name="EEEntitiesPurchase" connectionString="metadata=res://*/ModelPurchase.csdl|res://*/ModelPurchase.ssdl|res://*/ModelPurchase.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /> providerName="System.Data.EntityClient" />
<add name="EEEntitiesCommon" connectionString="metadata=res://*/ModelCommon.csdl|res://*/ModelCommon.ssdl|res://*/ModelCommon.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /> <add name="S1ACCESS300Entities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.141.18.50;initial catalog=S1ACCESS300;persist security info=True;user id=amkoruser;password=AmkorUser!;MultipleActiveResultSets=True;App=EntityFramework&quot;"
<add name="EEEntitiesJobreport" connectionString="metadata=res://*/ModelJobreport.csdl|res://*/ModelJobreport.ssdl|res://*/ModelJobreport.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /> providerName="System.Data.EntityClient" />
<add name="EEEntitiesProject" connectionString="metadata=res://*/ModelProject.csdl|res://*/ModelProject.ssdl|res://*/ModelProject.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /> <add name="EEEntitiesPurchase" connectionString="metadata=res://*/ModelPurchase.csdl|res://*/ModelPurchase.ssdl|res://*/ModelPurchase.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;"
providerName="System.Data.EntityClient" />
<add name="EEEntitiesCommon" connectionString="metadata=res://*/ModelCommon.csdl|res://*/ModelCommon.ssdl|res://*/ModelCommon.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;"
providerName="System.Data.EntityClient" />
<add name="EEEntitiesJobreport" connectionString="metadata=res://*/ModelJobreport.csdl|res://*/ModelJobreport.ssdl|res://*/ModelJobreport.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;"
providerName="System.Data.EntityClient" />
<add name="EEEntitiesProject" connectionString="metadata=res://*/ModelProject.csdl|res://*/ModelProject.ssdl|res://*/ModelProject.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=10.131.15.18;initial catalog=EE;persist security info=True;user id=eeuser;password=Amkor123!;MultipleActiveResultSets=True;App=EntityFramework&quot;"
providerName="System.Data.EntityClient" />
</connectionStrings> </connectionStrings>
<runtime> <runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

View File

@@ -17,6 +17,7 @@ namespace FBS0000
public WorkTable() public WorkTable()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
var sd = DateTime.Now.ToString("yyyy-MM-01"); var sd = DateTime.Now.ToString("yyyy-MM-01");
var ed = DateTime.Parse(sd).AddMonths(1).AddDays(-1).ToShortDateString();// DateTime.Now.AddMonths(1).ToString("yyyy-MM-01")).AddDays(-1).ToShortDateString(); var ed = DateTime.Parse(sd).AddMonths(1).AddDays(-1).ToShortDateString();// DateTime.Now.AddMonths(1).ToString("yyyy-MM-01")).AddDays(-1).ToShortDateString();

View File

@@ -15,6 +15,7 @@ namespace FBS0000.Holiday
public fErrorChk() public fErrorChk()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
//dtSD.KeyDown += dtSD_KeyDown; //dtSD.KeyDown += dtSD_KeyDown;
//dtED.KeyDown += dtSD_KeyDown; //dtED.KeyDown += dtSD_KeyDown;

View File

@@ -15,6 +15,7 @@ namespace FBS0000
public fHolyDayData(string sdate, string uid) public fHolyDayData(string sdate, string uid)
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.WindowState = FormWindowState.Maximized; this.WindowState = FormWindowState.Maximized;
var dtUser = FCOMMON.DBM.getUserTable(); var dtUser = FCOMMON.DBM.getUserTable();

View File

@@ -18,6 +18,7 @@ namespace FBS0000
public fHolyday() public fHolyday()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
fn_fpcolsize = System.IO.Path.Combine(FCOMMON.Util.CurrentPath, "formSetting", "fp_" + this.Name + "i.ini"); fn_fpcolsize = System.IO.Path.Combine(FCOMMON.Util.CurrentPath, "formSetting", "fp_" + this.Name + "i.ini");
this.dsMSSQL.vHoliday_uselist.TableNewRow += Holyday_TableNewRow; this.dsMSSQL.vHoliday_uselist.TableNewRow += Holyday_TableNewRow;
//this.dv1.CellFormatting += dv1_CellFormatting; //this.dv1.CellFormatting += dv1_CellFormatting;

View File

@@ -18,6 +18,7 @@ namespace FBS0000
public fHolydayJobReport(string sd,string ed ,string uid ) public fHolydayJobReport(string sd,string ed ,string uid )
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.tbSD.Text = sd; this.tbSD.Text = sd;
this.tbED.Text = ed; this.tbED.Text = ed;
p_uid = uid; p_uid = uid;

View File

@@ -17,6 +17,7 @@ namespace FBS0000
public fHolyday_Add(dsMSSQL.HolydayRow dr_) public fHolyday_Add(dsMSSQL.HolydayRow dr_)
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.dr = dr_; this.dr = dr_;
//if (idx == -1) //if (idx == -1)
//{ //{

View File

@@ -15,6 +15,7 @@ namespace FBS0000.Holiday
public fImpKunTae() public fImpKunTae()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
} }
private void fImpKunTae_Load(object sender, EventArgs e) private void fImpKunTae_Load(object sender, EventArgs e)

View File

@@ -17,6 +17,7 @@ namespace FBS0000
public fWorkTableUser() public fWorkTableUser()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.dsMSSQL.EETGW_WorkTableUser.TableNewRow += Holyday_TableNewRow; this.dsMSSQL.EETGW_WorkTableUser.TableNewRow += Holyday_TableNewRow;
//this.dv1.CellFormatting += dv1_CellFormatting; //this.dv1.CellFormatting += dv1_CellFormatting;
} }

View File

@@ -14,6 +14,7 @@ namespace FBS0000
public rHolidaySummary() public rHolidaySummary()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.WindowState = FormWindowState.Maximized; this.WindowState = FormWindowState.Maximized;
} }

View File

@@ -15,6 +15,7 @@ namespace FBS0000
public fLovWorkUser(List<dsMSSQL.EETGW_WorkTableUserRow> users) public fLovWorkUser(List<dsMSSQL.EETGW_WorkTableUserRow> users)
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.dsMSSQL.Merge(users.ToArray()); this.dsMSSQL.Merge(users.ToArray());
this.KeyDown += (s1, e1) => { if (e1.KeyCode == Keys.Escape) this.Close(); }; this.KeyDown += (s1, e1) => { if (e1.KeyCode == Keys.Escape) this.Close(); };
} }

View File

@@ -15,6 +15,7 @@ namespace FBS0000
public fMinutes() public fMinutes()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.dsMSSQL.minutes.TableNewRow += minutes_TableNewRow; this.dsMSSQL.minutes.TableNewRow += minutes_TableNewRow;
} }

View File

@@ -15,6 +15,7 @@ namespace FBS0000
public fMinutesDetail(int idx_) public fMinutesDetail(int idx_)
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.FormClosed += __Closed; this.FormClosed += __Closed;
this.idx = idx_; this.idx = idx_;
} }

View File

@@ -17,6 +17,7 @@ namespace FCM0000
public fPatchList() public fPatchList()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.dsMSSQL.Board.TableNewRow += RequestItem_TableNewRow; this.dsMSSQL.Board.TableNewRow += RequestItem_TableNewRow;
} }

View File

@@ -17,6 +17,7 @@ namespace FCM0000
public fRequestItem() public fRequestItem()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.dsMSSQL.RequestItem.TableNewRow += RequestItem_TableNewRow; this.dsMSSQL.RequestItem.TableNewRow += RequestItem_TableNewRow;
} }

View File

@@ -16,6 +16,7 @@ namespace FCM0000
public fRequestItem_Add(dsMSSQL.RequestItemRow dr_) public fRequestItem_Add(dsMSSQL.RequestItemRow dr_)
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
dr = dr_; dr = dr_;
PredefinedButtonSets.SetupDefaultButtons(this.tbRemark); PredefinedButtonSets.SetupDefaultButtons(this.tbRemark);
} }

View File

@@ -16,6 +16,7 @@ namespace FCM0000
public Customer_Import() public Customer_Import()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.FormClosed += __Closed; this.FormClosed += __Closed;
} }

View File

@@ -14,6 +14,7 @@ namespace FCM0000.Inventory
public RepInvStock() public RepInvStock()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
} }
private void RepInvStock_Load(object sender, EventArgs e) private void RepInvStock_Load(object sender, EventArgs e)

View File

@@ -1,34 +1,35 @@
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.Inventory namespace FCM0000.Inventory
{ {
public partial class RepInvStockUser : Form public partial class RepInvStockUser : Form
{ {
string userid = string.Empty; string userid = string.Empty;
public RepInvStockUser(string uid) public RepInvStockUser(string uid)
{ {
InitializeComponent(); InitializeComponent();
this.userid = uid; Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
} this.userid = uid;
}
private void RepInvStock_Load(object sender, EventArgs e)
{ private void RepInvStock_Load(object sender, EventArgs e)
try {
{ try
this.ta.Fill(this.dSReport.PersonInvStock, this.userid); {
this.reportViewer1.RefreshReport(); this.ta.Fill(this.dSReport.PersonInvStock, this.userid);
}catch (Exception ex) this.reportViewer1.RefreshReport();
{ }catch (Exception ex)
FCOMMON.Util.MsgE(ex.Message); {
} FCOMMON.Util.MsgE(ex.Message);
}
}
} }
} }
}

View File

@@ -15,6 +15,7 @@ namespace FCM0000
public fInventory() public fInventory()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.FormClosed += __Closed; this.FormClosed += __Closed;
this.dSInventory.vInventory.TableNewRow += Inventory_TableNewRow; this.dSInventory.vInventory.TableNewRow += Inventory_TableNewRow;
this.dtSD.KeyDown += dtSD_KeyDown; this.dtSD.KeyDown += dtSD_KeyDown;

View File

@@ -15,6 +15,7 @@ namespace FCM0000
public fInventoryJagoList() public fInventoryJagoList()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.FormClosed += __Closed; this.FormClosed += __Closed;
this.dtSD.KeyDown += dtSD_KeyDown; this.dtSD.KeyDown += dtSD_KeyDown;
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");

View File

@@ -1,80 +1,81 @@
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.Inventory namespace FCM0000.Inventory
{ {
public partial class fInventoryJagoPlace : FCOMMON.fBase public partial class fInventoryJagoPlace : FCOMMON.fBase
{ {
public fInventoryJagoPlace(int itemIndex,string itemname) public fInventoryJagoPlace(int itemIndex,string itemname)
{ {
InitializeComponent(); InitializeComponent();
this.tbPumIDX.Text = itemIndex.ToString(); Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.tbPumName.Text = itemname; this.tbPumIDX.Text = itemIndex.ToString();
this.tbPumName.Tag = itemname; this.tbPumName.Text = itemname;
this.tbPumName.KeyDown += (s1, e1) => { if (e1.KeyCode == Keys.Enter) Lov_Item(tbPumName.Text, false); }; this.tbPumName.Tag = itemname;
} this.tbPumName.KeyDown += (s1, e1) => { if (e1.KeyCode == Keys.Enter) Lov_Item(tbPumName.Text, false); };
}
private void fInventoryJagoPlace_Load(object sender, EventArgs e)
{ private void fInventoryJagoPlace_Load(object sender, EventArgs e)
this.Show(); {
Application.DoEvents(); this.Show();
button1.PerformClick(); Application.DoEvents();
} button1.PerformClick();
}
private void linkLabel5_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{ private void linkLabel5_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
Lov_Item("", true); {
} Lov_Item("", true);
void Lov_Item(string search, Boolean allowAll) }
{ void Lov_Item(string search, Boolean allowAll)
if (search == "" && allowAll == false) {
{ if (search == "" && allowAll == false)
FCOMMON.Util.MsgE("품명은 필수 값 입니다"); {
tbPumName.Focus(); FCOMMON.Util.MsgE("품명은 필수 값 입니다");
return; tbPumName.Focus();
} return;
else if (search.ToLower() != tbPumName.Tag.ToString().ToLower() || tbPumIDX.Text == "-1" || tbPumIDX.Text == "") //값이 바뀌엇다면 검색을 해준다. }
{ else if (search.ToLower() != tbPumName.Tag.ToString().ToLower() || tbPumIDX.Text == "-1" || tbPumIDX.Text == "") //값이 바뀌엇다면 검색을 해준다.
var f = new FCM0000.fLovItem(search); {
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) var f = new FCM0000.fLovItem(search);
{ if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
//인덱스값이 다르면 모델 및 가격을 업데이트 한다. {
tbPumName.Text = f.itemName; //인덱스값이 다르면 모델 및 가격을 업데이트 한다.
tbPumName.Tag = f.itemName; tbPumName.Text = f.itemName;
tbPumName.Tag = f.itemName;
this.tbPumIDX.Text = f.item.ToString();
//this.tbPumModel.Text = f.itemmodel; this.tbPumIDX.Text = f.item.ToString();
//this.tbPumPrice.Text = f.itemprice.ToString(); //this.tbPumModel.Text = f.itemmodel;
//this.tbSID.Text = f.SID; //this.tbPumPrice.Text = f.itemprice.ToString();
//this.tbSID.Tag = f.SID; //this.tbSID.Text = f.SID;
//this.tbPumModel.Enabled = false; //this.tbSID.Tag = f.SID;
//if (tbSID.Text != "") tbSID.Enabled = false; //this.tbPumModel.Enabled = false;
//else tbSID.Enabled = true; //if (tbSID.Text != "") tbSID.Enabled = false;
} //else tbSID.Enabled = true;
} }
} }
void refreshData() }
{ void refreshData()
var itmidx = 0; {
if(!int.TryParse(tbPumIDX.Text,out itmidx)) var itmidx = 0;
{ if(!int.TryParse(tbPumIDX.Text,out itmidx))
FCOMMON.Util.MsgE("품목을 먼저 선택하세요"); {
return; FCOMMON.Util.MsgE("품목을 먼저 선택하세요");
} return;
this.ta.FillByItemIdx(this.dSReport.jagosummaryPlace, FCOMMON.info.Login.gcode, DateTime.Now.ToShortDateString(), itmidx); }
} this.ta.FillByItemIdx(this.dSReport.jagosummaryPlace, FCOMMON.info.Login.gcode, DateTime.Now.ToShortDateString(), itmidx);
}
private void button1_Click(object sender, EventArgs e)
{ private void button1_Click(object sender, EventArgs e)
refreshData(); {
} refreshData();
} }
} }
}

View File

@@ -14,6 +14,7 @@ namespace FCM0000
public fInventoryUser() public fInventoryUser()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.FormClosed += __Closed; this.FormClosed += __Closed;
this.dsMSSQL.InventoryUser.TableNewRow += Inventory_TableNewRow; this.dsMSSQL.InventoryUser.TableNewRow += Inventory_TableNewRow;

View File

@@ -19,6 +19,7 @@ namespace FCM0000
public finventoryAdd(DSInventory.vInventoryRow dr_) public finventoryAdd(DSInventory.vInventoryRow dr_)
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
bsManu = new BindingSource(); bsManu = new BindingSource();
bsModel = new BindingSource(); bsModel = new BindingSource();
this.dr = dr_; this.dr = dr_;

View File

@@ -15,6 +15,7 @@ namespace FCM0000.Item
public fItemAdd() public fItemAdd()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
foreach (Control ctl in this.Controls) foreach (Control ctl in this.Controls)
{ {

View File

@@ -16,6 +16,8 @@ namespace FCM0000
public fItems() public fItems()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
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");
this.FormClosed += fItems_FormClosed; this.FormClosed += fItems_FormClosed;
this.dsMSSQL.Items.TableNewRow += Items_TableNewRow; this.dsMSSQL.Items.TableNewRow += Items_TableNewRow;

View File

@@ -28,6 +28,7 @@ namespace FCM0000
public fLovItem(string search_) public fLovItem(string search_)
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
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");

View File

@@ -1,100 +1,102 @@
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 fLovOneItem : Form public partial class fLovOneItem : Form
{ {
public string Title { get; set; } public string Title { get; set; }
DataTable dt; DataTable dt;
public fLovOneItem(List<string> lists) public fLovOneItem(List<string> lists)
{ {
InitializeComponent(); InitializeComponent();
this.StartPosition = FormStartPosition.CenterScreen; Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Title = string.Empty;
dt = new DataTable(); this.StartPosition = FormStartPosition.CenterScreen;
dt.Columns.Add("item"); Title = string.Empty;
foreach (var item in lists) dt = new DataTable();
dt.Rows.Add(new string[] { item }); dt.Columns.Add("item");
foreach (var item in lists)
this.KeyPreview = true; dt.Rows.Add(new string[] { item });
this.KeyDown += (s1, e1) => {
if (e1.KeyCode == Keys.Escape) this.Close(); this.KeyPreview = true;
}; this.KeyDown += (s1, e1) => {
if (e1.KeyCode == Keys.Escape) this.Close();
} };
public fLovOneItem(Dictionary<string,string> lists)
{ }
InitializeComponent(); public fLovOneItem(Dictionary<string,string> lists)
Title = string.Empty; {
dt = new DataTable(); InitializeComponent();
dt.Columns.Add("item"); Title = string.Empty;
dt.Columns.Add("Desc"); dt = new DataTable();
foreach (var item in lists) dt.Columns.Add("item");
dt.Rows.Add(new string[] { item.Key ,item.Value}); dt.Columns.Add("Desc");
foreach (var item in lists)
this.KeyPreview = true; dt.Rows.Add(new string[] { item.Key ,item.Value});
this.KeyDown += (s1, e1) =>
{ this.KeyPreview = true;
if (e1.KeyCode == Keys.Escape) this.Close(); this.KeyDown += (s1, e1) =>
}; {
if (e1.KeyCode == Keys.Escape) this.Close();
} };
private void fLovItem_Load(object sender, EventArgs e)
{ }
this.bs.DataSource = this.dt; private void fLovItem_Load(object sender, EventArgs e)
this.bn.BindingSource = this.bs; {
this.dv.DataSource = this.bs; this.bs.DataSource = this.dt;
this.bn.BindingSource = this.bs;
if(dv.Columns.Count > 1) this.dv.DataSource = this.bs;
this.dv.Columns[1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
else if(dv.Columns.Count > 1)
this.dv.Columns[0].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; this.dv.Columns[1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
} else
this.dv.Columns[0].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
}
private void bs_CurrentChanged(object sender, EventArgs e)
{
private void bs_CurrentChanged(object sender, EventArgs e)
} {
private void dv_KeyDown(object sender, KeyEventArgs e) }
{
if (e.KeyCode == Keys.Enter) private void dv_KeyDown(object sender, KeyEventArgs e)
{ {
if (e.KeyCode == Keys.Enter)
btOK.PerformClick(); {
}
btOK.PerformClick();
} }
private void itemsBindingNavigatorSaveItem_Click(object sender, EventArgs e) }
{
var drv = bs.Current as DataRowView; private void itemsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
if (drv == null) {
{ var drv = bs.Current as DataRowView;
Title = string.Empty; if (drv == null)
return; {
} Title = string.Empty;
else return;
{ }
Title = drv[0].ToString(); else
} {
Title = drv[0].ToString();
if (Title.isEmpty()) DialogResult = System.Windows.Forms.DialogResult.Cancel; }
else DialogResult = System.Windows.Forms.DialogResult.OK;
} if (Title.isEmpty()) DialogResult = System.Windows.Forms.DialogResult.Cancel;
else DialogResult = System.Windows.Forms.DialogResult.OK;
private void dv_DoubleClick(object sender, EventArgs e) }
{
btOK.PerformClick(); private void dv_DoubleClick(object sender, EventArgs e)
} {
} btOK.PerformClick();
} }
}
}

View File

@@ -15,6 +15,8 @@ namespace FCM0000.Mail
public fAutoSendSetting() public fAutoSendSetting()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.FormClosed += fAutoSendSetting_FormClosed; this.FormClosed += fAutoSendSetting_FormClosed;
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");
} }

View File

@@ -15,6 +15,8 @@ namespace FCM0000
public fJRForm() public fJRForm()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.dsMSSQL1.EETGW_DocuForm.TableNewRow += MailForm_TableNewRow; this.dsMSSQL1.EETGW_DocuForm.TableNewRow += MailForm_TableNewRow;
} }

View File

@@ -16,6 +16,8 @@ namespace FCM0000
public fMailAutoAdd(DSMail.MailAutoRow dr_) public fMailAutoAdd(DSMail.MailAutoRow dr_)
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
PredefinedButtonSets.SetupDefaultButtons(this.tbBody); PredefinedButtonSets.SetupDefaultButtons(this.tbBody);
this.dr = dr_; this.dr = dr_;
} }

View File

@@ -18,6 +18,8 @@ namespace FCM0000.Mail
public fMailBackup() public fMailBackup()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
dateTimePicker1.Value = DateTime.Now.AddYears(-2); dateTimePicker1.Value = DateTime.Now.AddYears(-2);
dateTimePicker2.Value = DateTime.Now.AddYears(-1); dateTimePicker2.Value = DateTime.Now.AddYears(-1);
} }

View File

@@ -15,6 +15,7 @@ namespace FCM0000.Mail
public fMailList() public fMailList()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.FormClosed += fAutoSendSetting_FormClosed; this.FormClosed += fAutoSendSetting_FormClosed;
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");
} }

View File

@@ -15,6 +15,7 @@ namespace FCM0000
public fMailform() public fMailform()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
PredefinedButtonSets.SetupDefaultButtons(this.htmlEditor1); PredefinedButtonSets.SetupDefaultButtons(this.htmlEditor1);
this.dsMSSQL.MailForm.TableNewRow += MailForm_TableNewRow; this.dsMSSQL.MailForm.TableNewRow += MailForm_TableNewRow;
} }

View File

@@ -15,11 +15,10 @@ namespace FCM0000
{ {
public partial class fSendMail : FCOMMON.fBase public partial class fSendMail : FCOMMON.fBase
{ {
public fSendMail() public fSendMail()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
PredefinedButtonSets.SetupDefaultButtons(this.tbBody); PredefinedButtonSets.SetupDefaultButtons(this.tbBody);
this.dsMSSQL.MailData.TableNewRow += MailForm_TableNewRow; this.dsMSSQL.MailData.TableNewRow += MailForm_TableNewRow;
} }

View File

@@ -1,117 +1,118 @@
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 fLovUser : FCOMMON.fBase public partial class fLovUser : FCOMMON.fBase
{ {
string fn_fpcolsize = ""; string fn_fpcolsize = "";
string keyword = string.Empty; string keyword = string.Empty;
public string userEmail { get; set; } public string userEmail { get; set; }
public string userID { get; set; } public string userID { get; set; }
public string userName { get; set; } public string userName { get; set; }
public string userTel { get; set; } public string userTel { get; set; }
public fLovUser(string search_) public fLovUser(string search_)
{ {
InitializeComponent(); InitializeComponent();
fn_fpcolsize = System.IO.Path.Combine(FCOMMON.Util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini"); Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.keyword = search_; fn_fpcolsize = System.IO.Path.Combine(FCOMMON.Util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
this.fpSpread1.KeyDown += fpSpread1_KeyDown; this.keyword = search_;
this.fpSpread1.CellDoubleClick += fpSpread1_CellDoubleClick; this.fpSpread1.KeyDown += fpSpread1_KeyDown;
this.fpSpread1.CellDoubleClick += fpSpread1_CellDoubleClick;
//clear data
userEmail = string.Empty; //clear data
userID = string.Empty; userEmail = string.Empty;
userName = string.Empty; userID = string.Empty;
userTel = string.Empty; userName = string.Empty;
} userTel = string.Empty;
}
void fpSpread1_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
{ void fpSpread1_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
btOK.PerformClick(); {
} btOK.PerformClick();
}
void fpSpread1_KeyDown(object sender, KeyEventArgs e)
{ void fpSpread1_KeyDown(object sender, KeyEventArgs e)
if (e.KeyCode == Keys.Enter) {
{ if (e.KeyCode == Keys.Enter)
btOK.PerformClick(); {
} btOK.PerformClick();
} }
}
private void fLovItem_Load(object sender, EventArgs e)
{ private void fLovItem_Load(object sender, EventArgs e)
this.Text = string.Format("사용자선택({0})",this.keyword); {
this.Show(); this.Text = string.Format("사용자선택({0})",this.keyword);
Application.DoEvents(); this.Show();
refreshData(); Application.DoEvents();
} refreshData();
}
void refreshData()
{ void refreshData()
{
try
{ try
if (keyword == "" || keyword == "%" || keyword == "%%") this.ta.Fill(this.dSUser.Users); {
else this.ta.FillBySearch(this.dSUser.Users, keyword ); if (keyword == "" || keyword == "%" || keyword == "%%") this.ta.Fill(this.dSUser.Users);
FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize); else this.ta.FillBySearch(this.dSUser.Users, keyword );
} FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
catch (Exception eX) }
{ catch (Exception eX)
FCOMMON.Util.MsgE(eX.Message); {
} FCOMMON.Util.MsgE(eX.Message);
} }
}
private void btSelect_Cliock(object sender, EventArgs e)
{ private void btSelect_Cliock(object sender, EventArgs e)
var drv = bs.Current as DataRowView; {
if (drv == null) return; var drv = bs.Current as DataRowView;
else if (drv == null) return;
{ else
var dr = drv.Row as DSUser.UsersRow;//.CustomsRow; {
userID = dr.id; var dr = drv.Row as DSUser.UsersRow;//.CustomsRow;
userName = dr.name; userID = dr.id;
userEmail = dr.email; userName = dr.name;
userTel = dr.tel; userEmail = dr.email;
} userTel = dr.tel;
DialogResult = System.Windows.Forms.DialogResult.OK; }
} DialogResult = System.Windows.Forms.DialogResult.OK;
}
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 exportListToolStripMenuItem_Click(object sender, EventArgs e)
{ private void exportListToolStripMenuItem_Click(object sender, EventArgs e)
SaveFileDialog sd = new SaveFileDialog(); {
sd.Filter = "excel|*.xls"; SaveFileDialog sd = new SaveFileDialog();
sd.FileName = "userlist.xls"; sd.Filter = "excel|*.xls";
if (sd.ShowDialog() == System.Windows.Forms.DialogResult.OK) sd.FileName = "userlist.xls";
{ if (sd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
fpSpread1.SaveExcel(sd.FileName, {
FarPoint.Excel.ExcelSaveFlags.SaveAsViewed fpSpread1.SaveExcel(sd.FileName,
| FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered FarPoint.Excel.ExcelSaveFlags.SaveAsViewed
| FarPoint.Excel.ExcelSaveFlags.NoFormulas | FarPoint.Excel.ExcelSaveFlags.SaveAsFiltered
| FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders); | FarPoint.Excel.ExcelSaveFlags.NoFormulas
FCOMMON.Util.MsgI("다음 파일이 생성 되었습니다.\n\n" + sd.FileName); | FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders);
} FCOMMON.Util.MsgI("다음 파일이 생성 되었습니다.\n\n" + sd.FileName);
} }
} }
} }
}

View File

@@ -15,6 +15,7 @@ namespace FCM0000
public fUserAuth() public fUserAuth()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
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");
} }

View File

@@ -15,6 +15,7 @@ namespace FCM0000
public fUserGroup() public fUserGroup()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
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");
} }

View File

@@ -15,6 +15,7 @@ namespace FCM0000
public fUserGroupPermission(int permission_) public fUserGroupPermission(int permission_)
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.permission = permission_; this.permission = permission_;
} }

View File

@@ -14,6 +14,7 @@ namespace FCM0000
public fCode() public fCode()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.dsMSSQL.Common.TableNewRow += Common_TableNewRow; this.dsMSSQL.Common.TableNewRow += Common_TableNewRow;
if (FCOMMON.info.Login.level >= 9) toolStripButton1.Visible = true; if (FCOMMON.info.Login.level >= 9) toolStripButton1.Visible = true;
} }

View File

@@ -16,7 +16,7 @@ namespace FCM0000
public fCustoms() public fCustoms()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
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");
fn_fpcolsize2 = FCOMMON.Util.MakeFilePath(FCOMMON.Util.CurrentPath, "formSetting", "fp2_" + this.Name + ".ini"); fn_fpcolsize2 = FCOMMON.Util.MakeFilePath(FCOMMON.Util.CurrentPath, "formSetting", "fp2_" + this.Name + ".ini");
} }

View File

@@ -17,6 +17,7 @@ namespace FCM0000
public fHolidaytable() public fHolidaytable()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
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(); };

View File

@@ -19,6 +19,8 @@ namespace FCM0000
public fLovProject(string search_, string stat_ = "") public fLovProject(string search_, string stat_ = "")
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Title = string.Empty; Title = string.Empty;
Index = -1; Index = -1;

View File

@@ -1,78 +1,80 @@
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 fLovSupply : Form public partial class fLovSupply : Form
{ {
public string Title { get; set; } public string Title { get; set; }
public int Index { get; set; } public int Index { get; set; }
string keyword = string.Empty; string keyword = string.Empty;
public fLovSupply(string search_) public fLovSupply(string search_)
{ {
InitializeComponent(); InitializeComponent();
Title = string.Empty; Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Index = -1;
Title = string.Empty;
this.keyword = search_; Index = -1;
this.KeyPreview = true;
this.KeyDown += (s1, e1) => { this.keyword = search_;
if (e1.KeyCode == Keys.Escape) this.Close(); this.KeyPreview = true;
}; this.KeyDown += (s1, e1) => {
if (e1.KeyCode == Keys.Escape) this.Close();
} };
private void fLovItem_Load(object sender, EventArgs e) }
{
this.ta.FillSearch(this.dsMSSQL.Customs, "%" + this.keyword + "%",FCOMMON.info.Login.gcode); private void fLovItem_Load(object sender, EventArgs e)
} {
this.ta.FillSearch(this.dsMSSQL.Customs, "%" + this.keyword + "%",FCOMMON.info.Login.gcode);
}
private void bs_CurrentChanged(object sender, EventArgs e)
{
private void bs_CurrentChanged(object sender, EventArgs e)
} {
private void dv_KeyDown(object sender, KeyEventArgs e) }
{
if (e.KeyCode == Keys.Enter) private void dv_KeyDown(object sender, KeyEventArgs e)
{ {
if (e.KeyCode == Keys.Enter)
btOK.PerformClick(); {
}
btOK.PerformClick();
} }
private void itemsBindingNavigatorSaveItem_Click(object sender, EventArgs e) }
{
var drv = bs.Current as DataRowView; private void itemsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
if (drv == null) {
{ var drv = bs.Current as DataRowView;
Title = string.Empty; if (drv == null)
Index = -1; {
return; Title = string.Empty;
} Index = -1;
else return;
{ }
var dr = drv.Row as dsMSSQL.CustomsRow; else
Index = dr.idx; {
Title = dr.name; var dr = drv.Row as dsMSSQL.CustomsRow;
} Index = dr.idx;
Title = dr.name;
if (Title.isEmpty() || Index == -1) DialogResult = System.Windows.Forms.DialogResult.Cancel; }
else DialogResult = System.Windows.Forms.DialogResult.OK;
} if (Title.isEmpty() || Index == -1) DialogResult = System.Windows.Forms.DialogResult.Cancel;
else DialogResult = System.Windows.Forms.DialogResult.OK;
private void dv_DoubleClick(object sender, EventArgs e) }
{
btOK.PerformClick(); private void dv_DoubleClick(object sender, EventArgs e)
} {
} btOK.PerformClick();
} }
}
}

View File

@@ -16,6 +16,7 @@ namespace FCM0000
public fMaterial_Import() public fMaterial_Import()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
this.FormClosed += __Closed; this.FormClosed += __Closed;
} }

View File

@@ -1,45 +1,46 @@
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 fSelectDate : Form public partial class fSelectDate : Form
{ {
private DateTime _dtSelect = DateTime.Now; private DateTime _dtSelect = DateTime.Now;
public DateTime dtSelect public DateTime dtSelect
{ {
get get
{ {
return _dtSelect; return _dtSelect;
} }
set set
{ {
_dtSelect = value; _dtSelect = value;
} }
} }
public fSelectDate(string dtstr) : this(DateTime.Parse(dtstr)) { } public fSelectDate(string dtstr) : this(DateTime.Parse(dtstr)) { }
public fSelectDate(DateTime dt) public fSelectDate(DateTime dt)
{ {
InitializeComponent(); InitializeComponent();
this.monthCalendar1.SetDate(dt); Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
} this.monthCalendar1.SetDate(dt);
}
private void fSelectDate_Load(object sender, EventArgs e)
{ private void fSelectDate_Load(object sender, EventArgs e)
{
}
}
private void btOK_Click(object sender, EventArgs e)
{ private void btOK_Click(object sender, EventArgs e)
dtSelect = this.monthCalendar1.SelectionStart; {
DialogResult = System.Windows.Forms.DialogResult.OK; dtSelect = this.monthCalendar1.SelectionStart;
} DialogResult = System.Windows.Forms.DialogResult.OK;
} }
} }
}

View File

@@ -18,6 +18,11 @@ namespace FED0000
public fEdulist() public fEdulist()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini"); fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
this.dsPurchase.EETGW_EducationList.TableNewRow += Purchase_TableNewRow; this.dsPurchase.EETGW_EducationList.TableNewRow += Purchase_TableNewRow;
this.FormClosing += FPurchase_FormClosing; this.FormClosing += FPurchase_FormClosing;

View File

@@ -18,6 +18,9 @@ namespace FED0000
public fLicenseList() public fLicenseList()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini"); fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
this.dsPurchase.EETGW_License.TableNewRow += Purchase_TableNewRow; this.dsPurchase.EETGW_License.TableNewRow += Purchase_TableNewRow;
this.FormClosing += FPurchase_FormClosing; this.FormClosing += FPurchase_FormClosing;

View File

@@ -17,6 +17,8 @@ namespace FEQ0000
public EQFilterApply(string type_) public EQFilterApply(string type_)
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
this.eqfiletertype = type_; this.eqfiletertype = type_;
this.FormClosed += __Closed; this.FormClosed += __Closed;
} }

View File

@@ -15,6 +15,8 @@ namespace FEQ0000
public EQfilterManager(string type_) public EQfilterManager(string type_)
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
divtype = type_; divtype = type_;
this.dsEQ.EquipmentFilter.TableNewRow += EquipmentFilter_TableNewRow; this.dsEQ.EquipmentFilter.TableNewRow += EquipmentFilter_TableNewRow;
} }

View File

@@ -29,6 +29,9 @@ namespace FEQ0000
public fEquipment(eTabletype type_) public fEquipment(eTabletype type_)
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
dataType = type_; dataType = type_;
this.tbSearch.KeyDown += (s1, e1) => { this.tbSearch.KeyDown += (s1, e1) => {

View File

@@ -17,6 +17,9 @@ namespace FEQ0000
public fImpEquipment(fEquipment.eTabletype type_) public fImpEquipment(fEquipment.eTabletype type_)
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
this.FormClosed += __Closed; this.FormClosed += __Closed;
dt = new dsEQ.EETGW_EquipmentDataTable(); dt = new dsEQ.EETGW_EquipmentDataTable();
} }

View File

@@ -16,6 +16,9 @@ namespace FEQ0000
{ {
//SqlServerTypes.Utilities.LoadNativeAssemblies(AppDomain.CurrentDomain.BaseDirectory); //SqlServerTypes.Utilities.LoadNativeAssemblies(AppDomain.CurrentDomain.BaseDirectory);
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
this.dt = dt_; this.dt = dt_;
this.Text = "Equipment List(" + title + ")"; this.Text = "Equipment List(" + title + ")";
} }

View File

@@ -15,6 +15,8 @@ namespace FEQ0000.Purchase
public fInputSC() public fInputSC()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
} }
} }
} }

View File

@@ -15,6 +15,8 @@ namespace FEQ0000.Purchase
public fMailForm() public fMailForm()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
} }
private void fMailForm_Load(object sender, EventArgs e) private void fMailForm_Load(object sender, EventArgs e)

View File

@@ -21,6 +21,9 @@ namespace FEQ0000
public fPurchase() public fPurchase()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini"); fn_fpcolsize = util.MakeFilePath(util.CurrentPath, "formSetting", "fp_" + this.Name + ".ini");
this.dsPurchase.Purchase.TableNewRow += Purchase_TableNewRow; this.dsPurchase.Purchase.TableNewRow += Purchase_TableNewRow;
this.FormClosing += FPurchase_FormClosing; this.FormClosing += FPurchase_FormClosing;

View File

@@ -15,6 +15,9 @@ namespace FEQ0000
public fPurchaseNRList(dsPurchase.PurchaseDataTable dt) public fPurchaseNRList(dsPurchase.PurchaseDataTable dt)
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
this.ds1.Purchase.Merge(dt); this.ds1.Purchase.Merge(dt);
this.ds1.AcceptChanges(); this.ds1.AcceptChanges();
} }

View File

@@ -19,6 +19,9 @@ namespace FEQ0000
public fPurchase_Add(dsPurchase.PurchaseRow dr_) public fPurchase_Add(dsPurchase.PurchaseRow dr_)
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
bsManu = new BindingSource(); bsManu = new BindingSource();
bsModel = new BindingSource(); bsModel = new BindingSource();
this.dr = dr_; this.dr = dr_;

View File

@@ -18,6 +18,9 @@ namespace FEQ0000
public fPurchase_AddS(dsPurchase.PurchaseRow dr_) public fPurchase_AddS(dsPurchase.PurchaseRow dr_)
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
bsManu = new BindingSource(); bsManu = new BindingSource();
bsModel = new BindingSource(); bsModel = new BindingSource();
this.dr = dr_; this.dr = dr_;

View File

@@ -14,6 +14,8 @@ namespace FEQ0000
public fPurchase_Data() public fPurchase_Data()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
} }
private void button1_Click(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e)

View File

@@ -16,6 +16,8 @@ namespace FEQ0000
public fPurchase_Import() public fPurchase_Import()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
this.FormClosed += __Closed; this.FormClosed += __Closed;
} }

View File

@@ -16,6 +16,8 @@ namespace FEQ0000
public fPurchase_ImportO() public fPurchase_ImportO()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
this.FormClosed += __Closed; this.FormClosed += __Closed;
} }

View File

@@ -15,6 +15,8 @@ namespace FEQ0000
public fPurchase_excelimport() public fPurchase_excelimport()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
this.FormClosed += __Closed; this.FormClosed += __Closed;
} }

View File

@@ -14,6 +14,8 @@ namespace FEQ0000.Purchase
public rPurchase() public rPurchase()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
} }
private void rPurchase_Load(object sender, EventArgs e) private void rPurchase_Load(object sender, EventArgs e)

View File

@@ -17,6 +17,12 @@ namespace FPJ0000.JobReport_
public fJobChartMenu() public fJobChartMenu()
{ {
InitializeComponent(); InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntities"] = FCOMMON.info.CS;
Properties.Settings.Default["EEEntitiesLayout"] = FCOMMON.info.CS;
this.dts.Value = DateTime.Parse(DateTime.Now.AddMonths(-1).ToString("yyyy-MM-01")); this.dts.Value = DateTime.Parse(DateTime.Now.AddMonths(-1).ToString("yyyy-MM-01"));
this.dte.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-01")).AddDays(-1); this.dte.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-01")).AddDays(-1);
} }

View File

@@ -16,6 +16,7 @@ namespace FPM0000
{ {
InitializeComponent(); InitializeComponent();
this.dsMSSQL.SPMaster.TableNewRow += minutes_TableNewRow; this.dsMSSQL.SPMaster.TableNewRow += minutes_TableNewRow;
} }
void minutes_TableNewRow(object sender, DataTableNewRowEventArgs e) void minutes_TableNewRow(object sender, DataTableNewRowEventArgs e)