휴가 승인자 정보 추적

This commit is contained in:
chi
2024-05-08 14:53:55 +09:00
parent 7eb2dbd2cd
commit e4f8981491
201 changed files with 1355 additions and 3219 deletions

File diff suppressed because one or more lines are too long

View File

@@ -32,6 +32,7 @@ namespace FCM0000
private void fRequestItem_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
if (FCOMMON.info.Login.level >= 9 || FCOMMON.info.Login.no == "395552")
{
bn.Enabled = true;
@@ -45,7 +46,7 @@ namespace FCM0000
}
refreshData();
}
private void boardBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
this.Validate();
@@ -54,12 +55,7 @@ namespace FCM0000
}
private void fillToolStripButton_Click(object sender, EventArgs e)
{
}
void refreshData()
{
try

View File

@@ -31,24 +31,19 @@ namespace FCM0000
private void fRequestItem_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
this.dtSD.Text = DateTime.Now.AddDays(-15).ToShortDateString();
this.dtED.Text = DateTime.Now.ToShortDateString();
refreshData();
}
private void boardBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
this.Validate();
this.bs.EndEdit();
this.tam.UpdateAll(this.dsMSSQL);
}
private void fillToolStripButton_Click(object sender, EventArgs e)
{
}
void refreshData()
{

View File

@@ -23,6 +23,7 @@ namespace FCM0000
private void __Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
//프로젝트 리스트를 가져와서 cmb에 연결해준다.
var projectDT = FCOMMON.DBM.getProjectData();
this.cmProject.DataSource = projectDT;
@@ -57,6 +58,7 @@ namespace FCM0000
tbRemark.Html = dr.remark;
}
}
private void requestItemBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{

View File

@@ -1,4 +1,5 @@
using System;
using FCOMMON;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -9,7 +10,7 @@ using System.Windows.Forms;
namespace FCM0000
{
public partial class Customer_Import : Form
public partial class Customer_Import : fBase
{
DataTable dt = new dsMSSQL.CustomsDataTable();
DataTable dtExcel = new DataTable();
@@ -22,6 +23,7 @@ namespace FCM0000
private void __Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
this.sd.Value = DateTime.Now.AddMonths(-1);
this.ed.Value = DateTime.Now;
}
@@ -30,7 +32,7 @@ namespace FCM0000
{
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
OpenFileDialog od = new OpenFileDialog();

View File

@@ -1,4 +1,5 @@
using System;
using FCOMMON;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -10,11 +11,18 @@ using System.Windows.Forms;
namespace FCM0000
{
public partial class Form2 : Form
public partial class Form2 : fBase
{
public Form2()
{
InitializeComponent();
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
EnsureVisibleAndUsableSize();
}
}
}

View File

@@ -1,4 +1,5 @@
using System;
using FCOMMON;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -9,16 +10,18 @@ using System.Windows.Forms;
namespace FCM0000.Inventory
{
public partial class RepInvStock : Form
public partial class RepInvStock : fBase
{
public RepInvStock()
{
InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
}
private void RepInvStock_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
this.Show();
Application.DoEvents();

View File

@@ -10,7 +10,7 @@ using System.Windows.Forms;
namespace FCM0000
{
public partial class fInventory : Form
public partial class fInventory : fBase
{
string fn_fpcolsize = "";
public fInventory()
@@ -65,8 +65,10 @@ namespace FCM0000
cmbPlace.Items.Add(item);
cmbPlace.SelectedIndex = 0;
}
private void __Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
var form = this as Form;
FCOMMON.Util.SetFormStatus(ref form, this.Name, true);
this.Show();

View File

@@ -1,4 +1,5 @@
using System;
using FCOMMON;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -9,7 +10,7 @@ using System.Windows.Forms;
namespace FCM0000
{
public partial class fInventoryJagoList : Form
public partial class fInventoryJagoList : fBase
{
string fn_fpcolsize = "";
public fInventoryJagoList()
@@ -50,9 +51,10 @@ namespace FCM0000
var form = this as Form;
FCOMMON.Util.SetFormStatus(ref form, this.Name, false);
}
private void __Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
var form = this as Form;
FCOMMON.Util.SetFormStatus(ref form, this.Name, true);
this.Show();

View File

@@ -21,9 +21,10 @@ namespace FCM0000.Inventory
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)
{
EnsureVisibleAndUsableSize();
this.Show();
Application.DoEvents();
button1.PerformClick();

View File

@@ -1,4 +1,5 @@
using System;
using FCOMMON;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -9,7 +10,7 @@ using System.Windows.Forms;
namespace FCM0000
{
public partial class fInventoryUser : Form
public partial class fInventoryUser : fBase
{
public fInventoryUser()
{
@@ -63,7 +64,7 @@ namespace FCM0000
private void __Load(object sender, EventArgs e)
{
// TODO: 이 코드는 데이터를 'dsMSSQL.InventoryUser' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
EnsureVisibleAndUsableSize();
var form = this as Form;
FCOMMON.Util.SetFormStatus(ref form, this.Name, true);
this.Show();

View File

@@ -1,4 +1,5 @@
using System;
using FCOMMON;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -9,7 +10,7 @@ using System.Windows.Forms;
namespace FCM0000
{
public partial class finventoryAdd : Form
public partial class finventoryAdd : fBase
{
BindingSource bsManu;
BindingSource bsModel;
@@ -39,9 +40,10 @@ namespace FCM0000
}
}
}
private void __Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
//담당자목록
var userList = FCOMMON.DBM.getUserList();//.getGroupList("name", "Users", "[level] > 0 and [level] < 10");
foreach (var user in userList)

View File

@@ -380,7 +380,6 @@
this.MinimumSize = new System.Drawing.Size(685, 448);
this.Name = "fItemAdd";
this.Text = "품목 추가";
this.Load += new System.EventHandler(this.fItemAdd_Load);
((System.ComponentModel.ISupportInitialize)(this.dsMSSQL)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();

View File

@@ -1,4 +1,5 @@
using FCOMMON;
using FarPoint.Excel.EntityClassLibrary.SpreadsheetML;
using FCOMMON;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -43,14 +44,10 @@ namespace FCM0000.Item
}
}
private void fItemAdd_Load(object sender, EventArgs e)
protected override void OnLoad(EventArgs e)
{
if (this.WindowState == FormWindowState.Minimized) this.WindowState = FormWindowState.Normal;
if (this.RestoreBounds.X + this.RestoreBounds.Width < 300 && this.RestoreBounds.X < 0)
{
this.Location = new Point(0, 0);
}
this.Show();
base.OnLoad(e);
EnsureVisibleAndUsableSize();
//Application.DoEvents();
if (tbSid.Text.isEmpty()) tbSid.Focus();
@@ -77,7 +74,8 @@ namespace FCM0000.Item
else
{
//이떄는 sid가 정상이어야 한다.
if (tbSid.Text.StartsWith("10") == false || tbSid.TextLength != 9)
var siddata = tbSid.Text.Split('-')[0].Trim();
if (siddata.StartsWith("10") == false || siddata.Length != 9)
{
Util.MsgE("SID는 9자리 숫자이며 10으로 시작 합니다\n입력값을 확인 하세요");
tbSid.Focus();
@@ -87,9 +85,12 @@ namespace FCM0000.Item
if (ta.ExistSID(FCOMMON.info.Login.gcode, tbSid.Text) > 0)
{
Util.MsgE("동일한 SID정보가 있습니다\n화면을 닫은 후 SID 검색세요");
this.Close();
return;
var dlg = Util.MsgQ("동일한 SID정보가 있습니다\n강제입력을 진행할까요?\n입력값을 다시 확인하세요.\n품목정보에서 해당 SID정보를 검색해보세요");
if(dlg != DialogResult.Yes)
{
return;
}
}
}

View File

@@ -47,14 +47,11 @@ namespace FCM0000.Item
SendKeys.Send("{TAB}");
}
}
private void fItemAdd_Load(object sender, EventArgs e)
{
if (this.WindowState == FormWindowState.Minimized) this.WindowState = FormWindowState.Normal;
if (this.RestoreBounds.X + this.RestoreBounds.Width < 300 && this.RestoreBounds.X < 0)
{
this.Location = new Point(0, 0);
}
EnsureVisibleAndUsableSize();
tbSid.Text = dr.IssidNull() == false ? dr.sid : string.Empty;
tbName.Text = dr.IsnameNull() == false ? dr.name : string.Empty;

View File

@@ -28,9 +28,10 @@ namespace FCM0000
void fItems_FormClosed(object sender, FormClosedEventArgs e)
{
}
private void fItems_Load(object sender, EventArgs e)
{
//get catelist
EnsureVisibleAndUsableSize();
var cateList = FCOMMON.DBM.getGroupTable("cate", "Items", "isnull(cate,'') <> ''");
this.cmbCate.Items.Clear();
this.cmbCate.Items.Add("-- All --");

View File

@@ -1,4 +1,5 @@
using System;
using FCOMMON;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -9,7 +10,7 @@ using System.Windows.Forms;
namespace FCM0000
{
public partial class fLovItem : Form
public partial class fLovItem : fBase
{
string fn_fpcolsize = "";
@@ -59,10 +60,10 @@ namespace FCM0000
this.tbFind.Text = search_;
this.StartPosition = FormStartPosition.CenterScreen;
}
private void fLovItem_Load(object sender, EventArgs e)
{
this.Show();
EnsureVisibleAndUsableSize();
Application.DoEvents();

View File

@@ -1,4 +1,5 @@
using System;
using FCOMMON;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -9,7 +10,7 @@ using System.Windows.Forms;
namespace FCM0000
{
public partial class fLovOneItem : Form
public partial class fLovOneItem : fBase
{
public string Title { get; set; }
DataTable dt;
@@ -49,8 +50,10 @@ namespace FCM0000
};
}
private void fLovItem_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
this.bs.DataSource = this.dt;
this.bn.BindingSource = this.bs;
this.dv.DataSource = this.bs;

View File

@@ -1,4 +1,5 @@
using System;
using FCOMMON;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -9,7 +10,7 @@ using System.Windows.Forms;
namespace FCM0000.Mail
{
public partial class fAutoSendSetting : Form
public partial class fAutoSendSetting : fBase
{
string fn_fpcolsize = "";
public fAutoSendSetting()
@@ -25,9 +26,10 @@ namespace FCM0000.Mail
{
FCOMMON.Util.FPColsizeSave(this.fpSpread1, fn_fpcolsize);
}
private void __Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
refreshData();
}
private void refreshData()

View File

@@ -27,10 +27,11 @@ namespace FCM0000
e.Row["cate"] = "--";
e.Row["gcode"] = FCOMMON.info.Login.gcode;
}
private void fMailform_Load(object sender, EventArgs e)
{
refreshData();
EnsureVisibleAndUsableSize();
refreshData();
}
void refreshData()

View File

@@ -21,10 +21,9 @@ namespace FCM0000
PredefinedButtonSets.SetupDefaultButtons(this.tbBody);
this.dr = dr_;
}
private void fMailform_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
//시작일을 오늘로
this.dtSd.Value = DateTime.Now;

View File

@@ -10,10 +10,11 @@ using NetOffice;
using Outlook = NetOffice.OutlookApi;
using NetOffice.OutlookApi.Enums;
using NetOffice.OutlookApi;
using FCOMMON;
namespace FCM0000.Mail
{
public partial class fMailBackup : Form
public partial class fMailBackup : fBase
{
public fMailBackup()
{
@@ -23,7 +24,12 @@ namespace FCM0000.Mail
dateTimePicker1.Value = DateTime.Now.AddYears(-2);
dateTimePicker2.Value = DateTime.Now.AddYears(-1);
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
EnsureVisibleAndUsableSize();
}
int cntp = 0;
// int cnte = 0;
int cntb = 0;

View File

@@ -1,4 +1,5 @@
using System;
using FCOMMON;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -9,7 +10,7 @@ using System.Windows.Forms;
namespace FCM0000.Mail
{
public partial class fMailList : Form
public partial class fMailList : fBase
{
string fn_fpcolsize = "";
public fMailList()
@@ -33,12 +34,12 @@ namespace FCM0000.Mail
}
private void __Load(object sender, EventArgs e)
{
//한달전으로 처리
EnsureVisibleAndUsableSize();
this.dtEd.Value = DateTime.Now;
this.dtSd.Value = DateTime.Now.AddDays(-10);
refreshData();
}
private void fillToolStripButton_Click(object sender, EventArgs e)
{

View File

@@ -32,9 +32,10 @@ namespace FCM0000
private void fMailform_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
refreshData();
}
void refreshData()
{
try

View File

@@ -32,9 +32,11 @@ namespace FCM0000
private void fMailform_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
this.bs.AddNew();
LoadNRData();
}
void LoadNRData()
{

View File

@@ -40,7 +40,7 @@ namespace FCM0000
{
btOK.PerformClick();
}
void fpSpread1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
@@ -51,6 +51,7 @@ namespace FCM0000
private void fLovItem_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
this.Text = string.Format("사용자선택({0})",this.keyword);
this.Show();
Application.DoEvents();

View File

@@ -21,10 +21,11 @@ namespace FCM0000
private void __Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
refreshData();
this.dSUser.Auth.TableNewRow += Customs_TableNewRow;
}
void Customs_TableNewRow(object sender, DataTableNewRowEventArgs e)
{

View File

@@ -1,4 +1,5 @@
using System;
using FCOMMON;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -9,7 +10,7 @@ using System.Windows.Forms;
namespace FCM0000
{
public partial class fUserGroup : Form
public partial class fUserGroup : fBase
{
public fUserGroup()
{
@@ -19,6 +20,7 @@ namespace FCM0000
private void __Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
refreshData();
}

View File

@@ -21,11 +21,11 @@ namespace FCM0000
private void __Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
refreshData();
this.dSUser.UserGroup.TableNewRow += Customs_TableNewRow;
}
void Customs_TableNewRow(object sender, DataTableNewRowEventArgs e)
{
//e.Row["wuid"] = FCOMMON.info.Login.no;

View File

@@ -21,6 +21,7 @@ namespace FCM0000
private void fUserGroupPermission_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
foreach(var ctl in this.Controls)
{
if(ctl.GetType() == typeof(CheckBox))
@@ -33,7 +34,7 @@ namespace FCM0000
}
}
}
private void button1_Click(object sender, EventArgs e)
{

View File

@@ -37,9 +37,11 @@ namespace FCM0000
}
e.Row["grp"] = grp;
}
private void __Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
tbFind.Text = string.Empty;
if (this.defaultgubun.isEmpty() == false)
{

View File

@@ -20,10 +20,10 @@ namespace FCM0000
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");
}
private void __Load(object sender, EventArgs e)
{
// TODO: 이 코드는 데이터를 'dsMSSQL.Staff' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
EnsureVisibleAndUsableSize();
this.Show();
Application.DoEvents();

View File

@@ -1,4 +1,5 @@
using System;
using FCOMMON;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -9,7 +10,7 @@ using System.Windows.Forms;
namespace FCM0000
{
public partial class fHolidaytable : Form
public partial class fHolidaytable : fBase
{
public string Title { get; set; }
// DataTable dt;
@@ -28,16 +29,13 @@ namespace FCM0000
{
}
private void fLovItem_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
this.textBox1.Text = DateTime.Now.ToString("yyyy-MM");
refreshData();
//if(dv.Columns.Count > 1)
// this.dv.Columns[1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
//else
// this.dv.Columns[0].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
}
void refreshData()
{

View File

@@ -1,4 +1,5 @@
using System;
using FCOMMON;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -9,7 +10,7 @@ using System.Windows.Forms;
namespace FCM0000
{
public partial class fLovProject : Form
public partial class fLovProject : fBase
{
public string Title { get; set; }
public int Index { get; set; }
@@ -36,10 +37,10 @@ namespace FCM0000
};
}
private void fLovItem_Load(object sender, EventArgs e)
{
//search data
EnsureVisibleAndUsableSize();
// var dt = this.ta.GetSearch(this.keyword);
var statekey = this.keyword2;

View File

@@ -1,4 +1,5 @@
using System;
using FCOMMON;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -9,7 +10,7 @@ using System.Windows.Forms;
namespace FCM0000
{
public partial class fLovSupply : Form
public partial class fLovSupply : fBase
{
public string Title { get; set; }
public int Index { get; set; }
@@ -30,9 +31,10 @@ namespace FCM0000
};
}
private void fLovItem_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
this.ta.FillSearch(this.dsMSSQL.Customs, "%" + this.keyword + "%",FCOMMON.info.Login.gcode);
}

View File

@@ -1,4 +1,5 @@
using System;
using FCOMMON;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -9,7 +10,7 @@ using System.Windows.Forms;
namespace FCM0000
{
public partial class fMaterial_Import : Form
public partial class fMaterial_Import : fBase
{
DataTable dt = new dsMSSQL.ItemsDataTable();// dsPurchase.PurchaseDataTable();
DataTable dtExcel = new DataTable();
@@ -22,11 +23,10 @@ namespace FCM0000
private void __Load(object sender, EventArgs e)
{
// TODO: 이 코드는 데이터를 'dsMSSQL.Items' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
//this.ta.Fill(this.dsMSSQL.Items);
EnsureVisibleAndUsableSize();
}
void __Closed(object sender, FormClosedEventArgs e)
{

View File

@@ -12,7 +12,7 @@ using System.Windows.Forms;
namespace FCM0000
{
public partial class fSIDListSelect : Form
public partial class fSIDListSelect : fBase
{
public string selectbatch = "";
public fSIDListSelect(string sid,DataTable dt)
@@ -49,8 +49,10 @@ namespace FCM0000
private void fSIDListSelect_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
this.dv1.AutoResizeColumns();
}
private void btopenspm_Click(object sender, EventArgs e)
{

View File

@@ -1,4 +1,5 @@
using System;
using FCOMMON;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -9,7 +10,7 @@ using System.Windows.Forms;
namespace FCM0000
{
public partial class fSelectDate : Form
public partial class fSelectDate : fBase
{
private DateTime _dtSelect = DateTime.Now;
public DateTime dtSelect
@@ -34,9 +35,9 @@ namespace FCM0000
private void fSelectDate_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
}
private void btOK_Click(object sender, EventArgs e)
{
dtSelect = this.monthCalendar1.SelectionStart;