..
This commit is contained in:
@@ -165,8 +165,11 @@ namespace FPJ0000
|
||||
btMailAddr.Enabled = btPart.Enabled;
|
||||
btPath.Enabled = btPart.Enabled;
|
||||
btSendMail.Enabled = btPart.Enabled;
|
||||
if(dr.IssficNull()==false)
|
||||
tbSFI.Text = dr.sfic.ToString("N2");
|
||||
|
||||
//if (dr.Issfi_typeNull() == false && dr.sfi_type == "M")
|
||||
// tbSFI.Text = dr.sfic.ToString("N2");
|
||||
//else
|
||||
tbSFI.Text = dr.sfi.ToString("N2");
|
||||
|
||||
//일반사용자의경우에는 상태를 변경하지 못한다.
|
||||
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.project));
|
||||
@@ -272,7 +275,10 @@ namespace FPJ0000
|
||||
{
|
||||
if (float.TryParse(tbSFI.Text, out float sfi))
|
||||
{
|
||||
this.dr.sfi = sfi;
|
||||
// if (dr.sfi_type == "O")
|
||||
this.dr.sfic = sfi;
|
||||
//else
|
||||
// this.dr.sfic = sfi; //mfg는 이곳으로
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -280,7 +286,7 @@ namespace FPJ0000
|
||||
return;
|
||||
}
|
||||
}
|
||||
else this.dr.sfi = 0.0;
|
||||
else this.dr.sfic = 0.0;
|
||||
|
||||
//날짜박스의 날짜데이터 검증
|
||||
if (checkDateValue() == false) return;
|
||||
@@ -678,7 +684,7 @@ namespace FPJ0000
|
||||
{
|
||||
|
||||
int cnt;
|
||||
if(int.TryParse(cntTextBox.Text, out cnt)==false)
|
||||
if (int.TryParse(cntTextBox.Text, out cnt) == false)
|
||||
{
|
||||
FCOMMON.Util.MsgE($"수량이 입려되지 않았습니다");
|
||||
cntTextBox.Focus();
|
||||
@@ -695,20 +701,28 @@ namespace FPJ0000
|
||||
if (dr.Issfi_shiftcountNull() == false) sfi_shiftcount = dr.sfi_shiftcount;
|
||||
if (sfi_shiftcount == 0) sfi_shiftcount = 4;
|
||||
|
||||
var f = new FCOMMON.fSFI(sfi_type, sfi_time, sfi_count,sfi_shiftcount, cnt);
|
||||
var f = new FCOMMON.fSFI(sfi_type, sfi_time, sfi_count, sfi_shiftcount, cnt);
|
||||
if (f.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
tbSFI.Text = f.Value.ToString("N2");
|
||||
dr.sfi_type = f.radO.Checked ? "O" : "M";
|
||||
if (f.radO.Checked)
|
||||
{
|
||||
dr.sfi = f.Value; //office 는 sfi와 sfic 가 동일하다
|
||||
dr.sfi_savetime = (float)f.nudOsavetime.Value;
|
||||
}
|
||||
else
|
||||
{
|
||||
//m 데이터는 sfi가 아닌sfic에 값이 들어간다.
|
||||
dr.sfi = (float)f.nudSFIMFG.Value;
|
||||
dr.sfi_savetime = (float)f.nudMsavetime.Value;
|
||||
}
|
||||
|
||||
dr.sfi_savecount = (float)f.nudMSaveCnt.Value;
|
||||
dr.sfi_shiftcount = (float)f.nudShiftCnt.Value;
|
||||
dr.EndEdit();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void arLabel9_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user