STAGE3-1
This commit is contained in:
@@ -29,7 +29,7 @@ public partial class admin_supplier_reg : MyWeb.config
|
||||
}
|
||||
else
|
||||
{
|
||||
var qry = _db.suppliers.AsEnumerable();
|
||||
var qry = _db.suppliers.AsQueryable();
|
||||
int _num = Val(Request["num"]);
|
||||
var prod = qry.Where(q => q.num == _num).FirstOrDefault();
|
||||
if (prod != null)
|
||||
@@ -371,7 +371,7 @@ public partial class admin_supplier_reg : MyWeb.config
|
||||
protected bool chk_pro_num(string txt, int num = 0)
|
||||
{
|
||||
bool success = false;
|
||||
var qry = _db.suppliers.AsEnumerable();
|
||||
var qry = _db.suppliers.AsQueryable();
|
||||
qry = qry.Where(q => q.s_number == txt);
|
||||
if (num > 0)
|
||||
qry = qry.Where(q => q.num != num);
|
||||
|
||||
Reference in New Issue
Block a user