This commit is contained in:
chi
2022-04-21 13:28:55 +09:00
parent b6607dde2d
commit 620c0e6d20
4 changed files with 23 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ namespace FCOMMON
public static Boolean NotShowJobReportview = false;
public static double dollertowon = 1200;
public static Boolean ShowBuyerror = true;
public static Boolean Disable_8hourover = false;
public static sUserInfo Login;
public static string Path;
public static string CS;

View File

@@ -417,6 +417,21 @@ namespace FPJ0000.JobReport_
return;
}
if(dr.RowState == DataRowState.Added || dr.RowState == DataRowState.Detached )
{
if(FCOMMON.info.Disable_8hourover)
{
var h = Single.Parse(tbHrs.Text);
if (h > 8)
{
FCOMMON.Util.MsgE("근무시간은 8시간을 초과할 수 없습니다. 초과 근무는 [초과시간] 을 사용하세요");
tbHrs.Focus();
tbHrs.SelectAll();
return;
}
}
}
if (cmbType.Text.Trim() == "")
{
FCOMMON.Util.MsgE("업무형태를 선택하세요");