public DataTable SupplierPeople(String pSupplierId) { String cmd = "Select perName As `Name`, speDesignation As `Designation`, speId As `SysId` From main.SupplierPeople Inner Join main.People On spePerId = perId Where speSupId = " + pSupplierId + ";"; DataTable dat = new DataTable(); dl = new DataLayer(cmd); if (dl.ConnectToServer()) { dat = dl.ExecuteFillDataTable(); dl.CloseConnection(); } return dat; }
public DataTable SupplierPeople(String pSupplierId) { String cmd = "set @rn=0;Select @rn:=@rn+1 As `Sno`, perName As `Name`, speDesignation As `Designation`, speId As `SysId` From main.SupplierPeople Inner Join main.people On spePerId = perId Where speSupId = " + pSupplierId + ";"; DataTable dat = new DataTable(); dl = new DataLayer(cmd); if (dl.ConnectToServer()) { dat = dl.ExecuteFillDataTable(); dl.CloseConnection(); } return dat; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)