구매율에서 비구매 수량 제외
This commit is contained in:
@@ -313,6 +313,7 @@ namespace FPJ0000
|
||||
prb4.Text = string.Format("구매진행 ({0})", 구매진행);
|
||||
|
||||
var 구매율 = (구매완료 + 비구매) / (전체건수 * 1.0);
|
||||
구매율 = 구매완료 / ((전체건수 - 비구매) * 1.0);
|
||||
prb5.Text = string.Format("구매완료 ({0:N0}%)", 구매율 * 100.0);
|
||||
prb6.Text = string.Format("수량오류 ({0:})", 입력오류);
|
||||
|
||||
|
||||
@@ -526,7 +526,9 @@ namespace FPJ0000
|
||||
var dr = drv.Row as dsPRJ.ProjectsRow;
|
||||
this.label1.Text = string.Format("[{0}] {1}", dr.name, dr.memo);
|
||||
|
||||
var sql = "select ((sum((case when isnull(qtybuy,0) = isnull(qtyin,0) then 1 else 0 end))*1.0) / count(*))*100 from ProjectsPart where project = " + dr.idx.ToString();
|
||||
var sql = "select ((sum((case when isnull(qtybuy,0) = isnull(qtyin,0) then 1 else 0 end))*1.0) / count(*))*100 " +
|
||||
$" from ProjectsPart where project = {dr.idx}" +
|
||||
$" and isnull(qtybuy,0) <> 0";
|
||||
var stR_result = FCOMMON.DBM.ExecuteScalar(sql);
|
||||
if (string.IsNullOrEmpty(stR_result))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user