This commit is contained in:
chi
2023-09-14 17:40:00 +09:00
parent 5a7b57eab2
commit f6f6db19ff
14 changed files with 1507 additions and 1015 deletions

View File

@@ -40,7 +40,7 @@ namespace FCOMMON
cn.Open();
List<string> retval = new List<string>();
var sql = "SELECT Storage FROM Items WHERE(gcode = @gcode) AND(ISNULL(disable, 0) = 0) AND(ISNULL(Storage, '') <> '') GROUP BY Storage ORDER BY Storage";
var sql = "SELECT place FROM Inventory WHERE(gcode = @gcode) AND(ISNULL(place, '') <> '') GROUP BY place ORDER BY place";
var cmd = new SqlCommand(sql, cn);
cmd.Parameters.Add("gcode", System.Data.SqlDbType.VarChar).Value = FCOMMON.info.Login.gcode;
try
@@ -1200,8 +1200,8 @@ namespace FCOMMON
cn.Open();
var sql = "select isnull(place,'')" +
" from Inventory " +
" where gcode = '{0}'" +
" order by place";
" where gcode = '{0}' and isnull(place,'') <> ''" +
" group by place order by place";
sql = string.Format(sql, gcode);
var cmd = new SqlCommand(sql, cn);
var rdr = cmd.ExecuteReader();