파트리스트, 진행 율 및 색상 관련 수정

sc체크 기능 추가(jbs)
This commit is contained in:
chi
2020-06-16 17:34:29 +09:00
parent aa9fa48859
commit 6103a340e5
20 changed files with 3080 additions and 922 deletions

View File

@@ -16,13 +16,13 @@ namespace FPJ0000
string search = string.Empty;
int idx = -1;
public fPartConfirm(dsPRJ.ProjectsPartDataTable dt)
public fPartConfirm(dsPRJ.ProjectsPartDataTable dt,string sortkey)
{
InitializeComponent();
this.bs.DataSource = dt;
this.bs.Sort = "itemgroup,option1,no";
this.bs.Filter = "isnull(bconfirm,0)=false";
this.bs.Sort = sortkey;
this.bs.Filter = "isnull(qtybuy,0) < 1";
fn_fpcolsize = System.IO.Path.Combine(
AppDomain.CurrentDomain.BaseDirectory,
@@ -44,7 +44,8 @@ namespace FPJ0000
{
this.Show();
Application.DoEvents();
btFind.PerformClick();
if (string.IsNullOrEmpty(tbFind.Text) == false)
btFind.PerformClick();
}
void refreshData(string div)
{
@@ -176,14 +177,34 @@ namespace FPJ0000
private void btConf_Click(object sender, EventArgs e)
{
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsPRJ.ProjectsPartRow;
var str_qty = textBox9.Text;
if (string.IsNullOrEmpty(str_qty) || str_qty == "-1")
{
var result = FCOMMON.Util.MsgQ("구매 수량이 입력되지 않았습니다.\n\n자동으로 '0' 을 입력하시겠습니까?\n\n수량 '0'은 비 구매 항목으로 설정 됩니다");
if(result == DialogResult.Yes)
{
dr.qtybuy = 0;
if (dr.memo.IndexOf("비구매설정") == -1) dr.memo += "(비구매설정:" + DateTime.Now.ToString("MM-dd hh:mm:ss") + ")";
textBox9.Text = "0";
}
else
{
textBox9.Focus();
return;
}
}
this.Validate();
this.bs.EndEdit();
this.bsPMP.EndEdit();
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsPRJ.ProjectsPartRow;
dr.bconfirm = true;
//if (dr.qtybuy == 0 && dr.bbuy==false) dr.bbuy = true; //구매수량이0인것은 자동 확정한다
//dr.bconfirm = true;
dr.EndEdit();
if (bs.Count < 1)