휴가 승인자 정보 추적
This commit is contained in:
@@ -20,6 +20,7 @@ namespace FEQ0000.Purchase
|
||||
|
||||
private void rPurchase_Load(object sender, EventArgs e)
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
this.dtSD.Text = DateTime.Now.Year.ToString("0000") + "-01-01";
|
||||
this.dtED.Text = DateTime.Now.Year.ToString("0000") + "-12-31";
|
||||
|
||||
@@ -30,6 +31,23 @@ namespace FEQ0000.Purchase
|
||||
|
||||
//refreshData();
|
||||
}
|
||||
private 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);
|
||||
}
|
||||
}
|
||||
|
||||
private void btSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user