project 선택시 cr 번호도 표시되게함, cr 구매화면에서 요청자체크기능 오류 수정

This commit is contained in:
chi
2025-05-27 14:05:50 +09:00
parent 3b2be90cd0
commit 7ded843fe1
9 changed files with 131 additions and 109 deletions

View File

@@ -12,8 +12,9 @@ namespace FCM0000
{
public partial class fLovProject : fBase
{
public string Title { get; set; }
public int Index { get; set; }
public string val_Title { get; set; }
public string val_OrderNo { get; set; }
public int val_Index { get; set; }
string keyword = string.Empty;
string keyword2 = string.Empty;
@@ -23,9 +24,9 @@ namespace FCM0000
InitializeComponent();
Properties.Settings.Default["gwcs"] = FCOMMON.info.CS;
Title = string.Empty;
Index = -1;
layoutmode = layout;
val_Title = string.Empty;
val_Index = -1;
layoutmode = layout;
this.keyword = search_;
this.keyword2 = stat_;
@@ -37,14 +38,14 @@ namespace FCM0000
};
}
private void fLovItem_Load(object sender, EventArgs e)
{
EnsureVisibleAndUsableSize();
// var dt = this.ta.GetSearch(this.keyword);
var statekey = this.keyword2;
if(layoutmode)
if (layoutmode)
{
this.ta.FillByLayout(this.dsMSSQL.Projects,
"%" + this.keyword + "%",
@@ -57,10 +58,13 @@ namespace FCM0000
FCOMMON.info.Login.gcode,
this.keyword2);
}
this.Show();
Application.DoEvents();
this.StartPosition = FormStartPosition.CenterScreen;
bs.Filter = "status <> '취소'";
this.dv.AutoResizeColumns();
}
private void bs_CurrentChanged(object sender, EventArgs e)
@@ -82,18 +86,20 @@ namespace FCM0000
var drv = bs.Current as DataRowView;
if (drv == null)
{
Title = string.Empty;
Index = -1;
val_Title = string.Empty;
val_OrderNo = string.Empty;
val_Index = -1;
return;
}
else
{
var dr = drv.Row as dsMSSQL.ProjectsRow;
Index = dr.idx;
Title = dr.name + "/" + dr.orderno;
val_Index = dr.idx;
val_Title = dr.name;
val_OrderNo = dr.orderno;
}
if (Title.isEmpty() || Index == -1) DialogResult = System.Windows.Forms.DialogResult.Cancel;
if (val_Title.isEmpty() || val_Index == -1) DialogResult = System.Windows.Forms.DialogResult.Cancel;
else DialogResult = System.Windows.Forms.DialogResult.OK;
}
@@ -113,7 +119,7 @@ namespace FCM0000
if (search.isEmpty())
{
bs.Filter = "status <> '취소'";
tbFind.BackColor = SystemColors.Control;
}
else