추석전 변경사항
This commit is contained in:
@@ -15,6 +15,37 @@ namespace FCOMMON
|
||||
return cn;
|
||||
}
|
||||
|
||||
public struct sItemInfo
|
||||
{
|
||||
public int idx;
|
||||
public string sid;
|
||||
public string model;
|
||||
public string supply;
|
||||
}
|
||||
|
||||
public static sItemInfo getItemInfo(int idx)
|
||||
{
|
||||
var cn = getCn();
|
||||
cn.Open();
|
||||
|
||||
var retval = new sItemInfo();
|
||||
retval.idx = -1;
|
||||
|
||||
string sql = "select * from Items where idx = " + idx.ToString();
|
||||
var cmd = new System.Data.SqlClient.SqlCommand(sql, cn);
|
||||
var rdr = cmd.ExecuteReader();
|
||||
while(rdr.Read())
|
||||
{
|
||||
retval.idx = (int)rdr["idx"];
|
||||
if(rdr["sid"] != DBNull.Value) retval.sid = rdr["sid"].ToString();
|
||||
if (rdr["model"] != DBNull.Value) retval.model = rdr["model"].ToString();
|
||||
if (rdr["supply"] != DBNull.Value) retval.supply = rdr["supply"].ToString();
|
||||
}
|
||||
|
||||
cn.Close();
|
||||
cn.Dispose();
|
||||
return retval;
|
||||
}
|
||||
|
||||
public static List<String> getGroupList(string GroupColumn, string table, string where = "",Boolean desc=false)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user