|
|
@@ -271,17 +271,23 @@ namespace UAS_MES.OQC
|
|
|
if (al_code.Text != "")
|
|
|
{
|
|
|
sql.Clear();
|
|
|
- sql.Append("select nvl(ad_minqty,0)ad_minqty,nvl(ad_maxqty,0)ad_maxqty,nvl(ad_maxngacceptqty,0)ad_maxngacceptqty,ad_qty from QUA_Aql ");
|
|
|
+ sql.Append("select nvl(ad_minqty,0)ad_minqty,nvl(ad_maxqty,0)ad_maxqty,nvl(ad_maxngacceptqty,0)ad_maxngacceptqty,ad_qty,nvl(ad_max,0)ad_max,nvl(ad_min,0)ad_min,nvl(ad_normal,0)ad_normal from QUA_Aql ");
|
|
|
sql.Append("left join qua_aqldetail on ad_alid=al_id where al_code='" + al_code.Text + "' and ad_minqty<='" + ob_nowcheckqty.Text + "' and ad_maxqty>='" + ob_nowcheckqty.Text + "'");
|
|
|
dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
ob_maxngacceptqty.Text = dt.Rows[0]["ad_maxngacceptqty"].ToString();
|
|
|
+ ob_cracceptqty.Text = dt.Rows[0]["ad_min"].ToString();
|
|
|
+ ob_maacceptqty.Text = dt.Rows[0]["ad_normal"].ToString();
|
|
|
+ ob_miacceptqty.Text = dt.Rows[0]["ad_max"].ToString();
|
|
|
ob_sampleqty.Text = dt.Rows[0]["ad_qty"].ToString();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
ob_maxngacceptqty.Text = "";
|
|
|
+ ob_cracceptqty.Text = "";
|
|
|
+ ob_maacceptqty.Text = "";
|
|
|
+ ob_miacceptqty.Text = "";
|
|
|
ob_sampleqty.Text = "";
|
|
|
}
|
|
|
}
|