프로젝트 모록에 sfi 추가 (박성민)

This commit is contained in:
chi
2023-08-22 15:27:34 +09:00
parent e4f776724b
commit 1ba03df183
13 changed files with 2861 additions and 491 deletions

View File

@@ -17,8 +17,8 @@ namespace FPJ0000.Project
InitializeComponent();
this.textBox1.Text = no.ToString();
var db = new EEEntities();
var dr = db.EETGW_Project_Layout.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.no == no).FirstOrDefault();
var db = ta.GetData(FCOMMON.info.Login.gcode);
var dr = db.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.no == no).FirstOrDefault();
if (dr != null)
{
textBox2.Text = dr.project.ToString();
@@ -44,14 +44,15 @@ namespace FPJ0000.Project
//값을 저장해준다.
var db = new EEEntities();
var db = ta.GetData(FCOMMON.info.Login.gcode);
var no = int.Parse(textBox1.Text);
var dr = db.EETGW_Project_Layout.Where(t => t.no == no).FirstOrDefault();
var dr = db.Where(t => t.no == no).FirstOrDefault();
if (dr != null)
{
dr.reserve = this.textBox3.Text.Trim();
dr.project = int.Parse(textBox2.Text);
db.SaveChanges();
dr.EndEdit();
ta.Update(dr);
DialogResult = DialogResult.OK;
}
else