リビジョン 260
営繕部工事、給与計算外を明示指定
branches/src/DataCheckExcute/DataCheckExcute/Common/Process/ClsSystemOnceExecute.cs | ||
---|---|---|
999 | 999 |
{ |
1000 | 1000 |
int iCode1 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("非 受 注")).Key; |
1001 | 1001 |
int iCode2 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("施工完了")).Key; |
1002 |
int iCode3 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("一般補修工事")).Key; |
|
1002 | 1003 |
|
1003 | 1004 |
// 入力完了以外を対象にする |
1004 | 1005 |
StringBuilder strSQL = new StringBuilder(); |
1005 | 1006 |
strSQL.AppendFormat(" A WHERE A.ComplateFlg <> {0}", (int)CommonDefine.ComplateTitleNo.Complated); |
1006 | 1007 |
strSQL.Append(" AND A.CONSTRUCTIONCODE IN (SELECT A1.CONSTRUCTIONCODE FROM CONSTRUCTIONBASEINFO A1"); |
1007 |
strSQL.AppendFormat(" WHERE A1.CONSTRUCTIONSTATUSFLG != {0}", iCode1); |
|
1008 |
strSQL.AppendFormat(" WHERE A1.CONSTRUCTIONSTATUSFLG <> {0}", iCode1); |
|
1009 |
strSQL.AppendFormat(" AND A1.CONSTRUCTIONSTATUSFLG <> {0}", iCode3); |
|
1008 | 1010 |
strSQL.AppendFormat(" AND A1.CONSTRUCTIONSTATUSFLG < {0})", iCode2); |
1009 | 1011 |
strSQL.Append(" AND DATE(A.CONSTRUCTIONSTART) <= DATE(NOW())"); |
1010 | 1012 |
strSQL.Append(" ORDER BY A.CONSTRUCTIONSTART ASC"); |
他の形式にエクスポート: Unified diff