This commit is contained in:
chi
2022-02-20 23:19:00 +09:00
parent 6226bc2953
commit 80d43752c6
9 changed files with 129 additions and 57 deletions

View File

@@ -95,7 +95,7 @@ namespace FPJ0000
private void fPartList_Load(object sender, EventArgs e)
{
//정렬방식 저장값 불러오기
var SetFile = util.CurrentPath + "FormSetting.xml";
@@ -257,7 +257,7 @@ namespace FPJ0000
//여기서부터는 무조건 구매대상이다
if (bPR == false)
{
if (qty_in > 0 )
if (qty_in > 0)
{
+= 1;
row.ForeColor = Color.White;
@@ -272,7 +272,7 @@ namespace FPJ0000
}
else if (bPO == false)
{
if (qty_in > 0 )
if (qty_in > 0)
{
+= 1;
row.ForeColor = Color.White;
@@ -367,6 +367,23 @@ namespace FPJ0000
this.bsPart.EndEdit();
this.Focus();
//저장전 더미데이터 백업
var backdup = new dsPRJ.ProjectsPartDataTable();
backdup.Merge(dsPRJ.ProjectsPart);
backdup.RejectChanges();
try
{
var fn = System.IO.Path.Combine(util.CurrentPath, "Backup", "PartList", this.ProjectIndex.ToString("00000") + "_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".xml");
var fi = new System.IO.FileInfo(fn);
if (fi.Directory.Exists == false) fi.Directory.Create();
backdup.WriteXml(fi.FullName);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
//모든데이터의 공백을 제거(sid)
foreach (var item in this.dsPRJ.ProjectsPart)
{