personal inventory : 날짜 선택하도록 lov 추가
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user