リビジョン 417
初期起動時、年度判定のバグ修正
trunk/src/ProcessManagement/ProcessManagement/Common/CommonMotions.cs | ||
---|---|---|
1898 | 1898 |
try |
1899 | 1899 |
{ |
1900 | 1900 |
StringBuilder strSQL = new StringBuilder(); |
1901 |
if (CommonMotions.BasePeriodYear()) |
|
1901 |
bool bPeriod = CommonMotions.BasePeriodYear(); |
|
1902 |
if (bPeriod) |
|
1902 | 1903 |
{ // ----- 営業期ベースの時 |
1903 | 1904 |
strSQL.Append("SELECT MIN(CONSTRUCTIONPERIOD), MAX(CONSTRUCTIONPERIOD) FROM CONSTRUCTIONBASEINFO"); |
1904 | 1905 |
} |
... | ... | |
1913 | 1914 |
object[] wrkobj = (object[])arList[0]; |
1914 | 1915 |
min = cnvInt(wrkobj[0]); |
1915 | 1916 |
max = cnvInt(wrkobj[1]); |
1916 |
|
|
1917 |
if (bPeriod) |
|
1918 |
{ // ----- 営業期ベースの時 |
|
1919 |
if (min < 1) |
|
1920 |
{ |
|
1921 |
min = 1; |
|
1922 |
max = 1; |
|
1923 |
} |
|
1924 |
} |
|
1925 |
else |
|
1926 |
{ // ----- 工事年度ベースの時 |
|
1927 |
if (min < 1) |
|
1928 |
{ |
|
1929 |
min = DateTime.Now.Year; |
|
1930 |
max = DateTime.Now.Year; |
|
1931 |
} |
|
1932 |
} |
|
1917 | 1933 |
} |
1918 | 1934 |
catch (Exception ex) |
1919 | 1935 |
{ |
他の形式にエクスポート: Unified diff