warn clear
This commit is contained in:
@@ -351,35 +351,35 @@ namespace FPJ0000
|
||||
util.MsgE("프로젝트로 등록하세요. 프로젝트 정보 중 [비용절감]을 체크하세요");
|
||||
return;
|
||||
|
||||
var newdr = this.dsMSSQL.EETGW_SaveCost.NewEETGW_SaveCostRow();
|
||||
newdr.wuid = FCOMMON.info.Login.no;
|
||||
newdr.wdate = DateTime.Now;
|
||||
newdr.pdate = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
newdr.edate = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
newdr.userManager = FCOMMON.info.Login.nameK;
|
||||
newdr.userprocess = FCOMMON.info.Login.process;
|
||||
newdr.costn = 0;
|
||||
newdr.costo = 0;
|
||||
newdr.cnt = 1;
|
||||
newdr.name = "Project Title";
|
||||
var f = new fSaveCostData(newdr);
|
||||
f.StartPosition = FormStartPosition.CenterScreen;
|
||||
var dlg = f.ShowDialog();
|
||||
if (dlg == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
this.dsMSSQL.EETGW_SaveCost.AddEETGW_SaveCostRow(newdr);
|
||||
try
|
||||
{
|
||||
//var newdr = this.dsMSSQL.EETGW_SaveCost.NewEETGW_SaveCostRow();
|
||||
//newdr.wuid = FCOMMON.info.Login.no;
|
||||
//newdr.wdate = DateTime.Now;
|
||||
//newdr.pdate = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
//newdr.edate = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
//newdr.userManager = FCOMMON.info.Login.nameK;
|
||||
//newdr.userprocess = FCOMMON.info.Login.process;
|
||||
//newdr.costn = 0;
|
||||
//newdr.costo = 0;
|
||||
//newdr.cnt = 1;
|
||||
//newdr.name = "Project Title";
|
||||
//var f = new fSaveCostData(newdr);
|
||||
//f.StartPosition = FormStartPosition.CenterScreen;
|
||||
//var dlg = f.ShowDialog();
|
||||
//if (dlg == System.Windows.Forms.DialogResult.OK)
|
||||
//{
|
||||
// this.dsMSSQL.EETGW_SaveCost.AddEETGW_SaveCostRow(newdr);
|
||||
// try
|
||||
// {
|
||||
|
||||
ta.Update(newdr);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
FCOMMON.Util.MsgE("Save Error\n" + ex.Message);
|
||||
}
|
||||
// ta.Update(newdr);
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// FCOMMON.Util.MsgE("Save Error\n" + ex.Message);
|
||||
// }
|
||||
|
||||
}
|
||||
else newdr.Delete();
|
||||
//}
|
||||
//else newdr.Delete();
|
||||
}
|
||||
|
||||
private void btEdit_Click(object sender, EventArgs e)
|
||||
@@ -442,13 +442,6 @@ namespace FPJ0000
|
||||
{
|
||||
util.MsgE("프로젝트로 등록하세요. 프로젝트 정보 중 [비용절감]을 체크하세요");
|
||||
return;
|
||||
|
||||
var newdr = this.dsMSSQL.EETGW_SaveCost.NewEETGW_SaveCostRow();
|
||||
newdr.wuid = FCOMMON.info.Login.no;
|
||||
newdr.wdate = DateTime.Now;
|
||||
newdr.pdate = DateTime.Now.ToShortDateString();
|
||||
newdr.gcode = FCOMMON.info.Login.gcode;
|
||||
this.dsMSSQL.EETGW_SaveCost.AddEETGW_SaveCostRow(newdr);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user