where+=" and ssd."+nameof(RB_Supplies_StockInDetail_Extend.StockInId)+" in("+dmodel.StockInIdStr+")";
}
stringsql=$@" select ssd.*,sm.Name as SuppliesName,sm.SuppliesNum,sm.BrandName,sm.SuppliesModel,sm.Units,pc.Name as CategoryName
stringsql=$@" select ssd.*,sm.Name as SuppliesName,sm.SuppliesNum,sm.BrandName,sm.SpecificationName,sm.GoodsCategoryName,sm.SuppliesModel,sm.Units,pc.Name as CategoryName
from rb_supplies_stockindetail ssd
left join rb_supplies_material sm on ssd.SuppliesId=sm.Id
left join rb_property_category pc on pc.Id=sm.CategoryId
where+=" and ssd."+nameof(RB_Supplies_StockOutDetail_Extend.StockOutId)+" in("+dmodel.StockOutIdStr+")";
}
stringsql=$@" select ssd.*,sm.Name as SuppliesName,sm.SuppliesNum,sm.BrandName,sm.SuppliesModel,sm.Units,pc.Name as CategoryName
stringsql=$@" select ssd.*,sm.Name as SuppliesName,sm.SuppliesNum,sm.BrandName,sm.SpecificationName,sm.GoodsCategoryName,sm.SuppliesModel,sm.Units,pc.Name as CategoryName
from rb_supplies_stockoutdetail ssd
left join rb_supplies_material sm on ssd.SuppliesId=sm.Id
left join rb_property_category pc on pc.Id=sm.CategoryId
...
...
@@ -80,7 +80,7 @@ left join rb_property_category pc on pc.Id=sm.CategoryId
where+=" and sm."+nameof(RB_Supplies_StockOut.BranchId)+"="+dmodel.BranchId;
}
stringsql=$@" select ssd.*,ss.StockOutDate,ss.EmployeeId,ss.BranchId,ss.DepartmentId,ss.StockOutNum,sm.Name as SuppliesName,pc.Name as CategoryName
stringsql=$@" select ssd.*,ss.StockOutDate,ss.EmployeeId,ss.BranchId,ss.DepartmentId,ss.StockOutNum,sm.Name as SuppliesName,sm.SpecificationName,sm.GoodsCategoryName,pc.Name as CategoryName
from rb_supplies_stockoutdetail ssd
left join rb_supplies_stockout ss on ssd.StockOutId=ss.Id
left join rb_supplies_material sm on ssd.SuppliesId=sm.Id