personal inventory : 날짜 선택하도록 lov 추가

This commit is contained in:
chikyun.kim
2018-09-19 09:35:08 +09:00
parent 2d4fe18264
commit 481d6bf78d
13 changed files with 453 additions and 295 deletions

View File

@@ -16,7 +16,7 @@ namespace FCOMMON
}
public static List<String> getGroupList(string GroupColumn, string table, string where = "")
public static List<String> getGroupList(string GroupColumn, string table, string where = "",Boolean desc=false)
{
List<string> retval = new List<string>();
var cn = getCn();
@@ -28,7 +28,8 @@ namespace FCOMMON
if (where != "") sql += " and " + where;
sql += " group by {0} " +
" order by {0}";
" order by {0} ";
if (desc) sql += " desc";
sql = string.Format(sql, "[" + GroupColumn + "]", table);
var cmd = new System.Data.SqlClient.SqlCommand(sql, cn);
@@ -42,9 +43,9 @@ namespace FCOMMON
cn.Dispose();
return retval;
}
public static List<String> getDateList(string table, string where = "")
public static List<String> getDateList(string table, string where = "",Boolean desc =false)
{
return getGroupList("pdate", table, where);
return getGroupList("pdate", table, where,desc);
}
}
}

View File

@@ -46,12 +46,23 @@
</ItemGroup>
<ItemGroup>
<Compile Include="DataBaseManager.cs" />
<Compile Include="fLovDateList.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="fLovDateList.Designer.cs">
<DependentUpon>fLovDateList.cs</DependentUpon>
</Compile>
<Compile Include="keyValuedataTable.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Info.cs" />
<Compile Include="FormUtil.cs" />
<Compile Include="Util.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="fLovDateList.resx">
<DependentUpon>fLovDateList.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.