휴가 승인자 정보 추적

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

View File

@@ -4,6 +4,7 @@ using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.ServiceModel.Security;
using System.Text;
using System.Windows.Forms;
@@ -41,12 +42,28 @@ namespace FCOMMON
{
var form = this as Form;
FCOMMON.Util.SetFormStatus(ref form, this.Name, true);
}
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();
}
protected void EnsureVisibleAndUsableSize()
{
var visibleBounds = Screen.GetWorkingArea(this);
var isOutOfView = (Left > visibleBounds.Right) || (Top > visibleBounds.Bottom) ||
(Right < visibleBounds.Left) || (Bottom < visibleBounds.Top);
if (isOutOfView)
{
CenterToScreen();
}
var minW = Math.Max(320, this.MinimumSize.Width);
var minH = Math.Max(240, this.MinimumSize.Height);
if (Width < minW || Height < minH)
{
this.Size = new Size(minW, minH);
}
}
}
}

View File

@@ -9,7 +9,7 @@ using System.Windows.Forms;
namespace FCOMMON
{
public partial class fFTPExplorer : Form
public partial class fFTPExplorer : fBase
{
string homePath = string.Empty;
string curPath = string.Empty;
@@ -74,6 +74,7 @@ namespace FCOMMON
private void __Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
this.tbpath.Text = this.curPath;// Pub.setting.ftp_path;
if (this.tbpath.Text == "") tbpath.Text = "/";
timer1.Start();
@@ -90,6 +91,7 @@ namespace FCOMMON
}
btQuery.PerformClick();
}
void listView1_DragOver(object sender, DragEventArgs e)
{
this.Cursor = Cursors.Hand;

View File

@@ -1,4 +1,5 @@
using System;
using FarPoint.Win.Spread.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -10,7 +11,7 @@ using System.Windows.Forms;
namespace FCOMMON
{
public partial class fFileExplorer : Form
public partial class fFileExplorer : fBase
{
string p = string.Empty;
public fFileExplorer(string path_)
@@ -22,11 +23,12 @@ namespace FCOMMON
private void fFileExplorer_Load(object sender, EventArgs e)
{
this.Show();
EnsureVisibleAndUsableSize();
Application.DoEvents();
RefreshPath();
}
void RefreshPath()
{
if (System.IO.Directory.Exists(this.p) == false)

View File

@@ -10,7 +10,7 @@ using System.Windows.Forms;
namespace FCOMMON
{
public partial class fInputTextBox : Form
public partial class fInputTextBox : fBase
{
public fInputTextBox()
{
@@ -21,5 +21,12 @@ namespace FCOMMON
{
DialogResult = DialogResult.OK;
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
EnsureVisibleAndUsableSize();
}
}
}

View File

@@ -9,7 +9,7 @@ using System.Windows.Forms;
namespace FCOMMON
{
public partial class fLovDateList : Form
public partial class fLovDateList : fBase
{
public string selectedDate = string.Empty;
public fLovDateList(List<string> dateList)
@@ -24,8 +24,9 @@ namespace FCOMMON
}
private void __Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
}
void fLovDateList_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape) this.Close();

View File

@@ -10,8 +10,8 @@ using System.Windows.Forms;
namespace FCOMMON
{
public partial class fMagam : Form
{
public partial class fMagam : fBase
{
public fMagam()
{
InitializeComponent();
@@ -19,7 +19,7 @@ namespace FCOMMON
private void fMagam_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.holyday));
button2.Enabled = curLevel >= 5;
@@ -29,8 +29,8 @@ namespace FCOMMON
textBox1.Text = DateTime.Now.ToString("yyyy-MM");
refreshList();
}
void refreshList()
void refreshList()
{
var lst = FCOMMON.DBM.GetMagamList();
this.listView1.Items.Clear();

View File

@@ -9,7 +9,7 @@ using System.Windows.Forms;
namespace FCOMMON
{
public partial class fProgress : Form
public partial class fProgress : fBase
{
public fProgress()
{
@@ -18,9 +18,9 @@ namespace FCOMMON
private void fProgress_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
}
private string _title = string.Empty;
public string Title
{

View File

@@ -11,7 +11,7 @@ using System.Windows.Forms;
namespace FCOMMON
{
public partial class fSFI : Form
public partial class fSFI : fBase
{
public fSFI(string sfi_type, double time, double cnt, double shiftcount, int itemcnt)
{
@@ -102,9 +102,10 @@ namespace FCOMMON
private void fSFI_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
nudMSaveCnt.DecimalPlaces = 1;
}
private void nudSIFOffice_ValueChanged(object sender, EventArgs e)
{
//offcie update

View File

@@ -9,7 +9,7 @@ using System.Windows.Forms;
namespace FCOMMON
{
public partial class fSelectDay : Form
public partial class fSelectDay : fBase
{
public fSelectDay(DateTime dt)
{
@@ -22,10 +22,10 @@ namespace FCOMMON
{
DialogResult = System.Windows.Forms.DialogResult.OK;
}
private void fSelectDay_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
}
}
}

View File

@@ -9,7 +9,7 @@ using System.Windows.Forms;
namespace FCOMMON
{
public partial class fSelectDays : Form
public partial class fSelectDays : fBase
{
public fSelectDays(DateTime dt,DateTime dte)
{
@@ -26,10 +26,10 @@ namespace FCOMMON
{
DialogResult = System.Windows.Forms.DialogResult.OK;
}
private void fSelectDay_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
}
}
}

View File

@@ -9,7 +9,7 @@ using System.Windows.Forms;
namespace FCOMMON
{
public partial class fSelectMonth : Form
public partial class fSelectMonth : fBase
{
public int selectmon { get; set; }
public fSelectMonth()
@@ -21,6 +21,7 @@ namespace FCOMMON
private void fSelectMonth_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
for(int i = 1 ; i <=12;i++)
{
Button newbt = new Button();
@@ -31,7 +32,7 @@ namespace FCOMMON
tableLayoutPanel1.Controls.Add(newbt);
}
}
void newbt_Click(object sender, EventArgs e)
{
var bt = sender as Button;

View File

@@ -10,7 +10,7 @@ using System.Windows.Forms;
namespace FCOMMON
{
public partial class fSelectProcess : Form
public partial class fSelectProcess : fBase
{
public List<string> values = new List<string>();
string[] curlist = new string[] { };
@@ -23,7 +23,7 @@ namespace FCOMMON
private void fSelectProcess_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
//공정목록
cmbProcess.Items.Clear();
//cmbProcess.Items.Add("--전체--");
@@ -33,7 +33,7 @@ namespace FCOMMON
cmbProcess.Items.Add(item, curlist.Contains(item));
}
}
private void button1_Click(object sender, EventArgs e)
{
values.Clear();