"Generate Genealogy view in mvc C# using Google Organizational Chart" Code Answer's
You're definitely familiar with the best coding language C# that developers use to develop their projects and they get all their queries like "Generate Genealogy view in mvc C# using Google Organizational Chart" answered properly. Developers are finding an appropriate answer about Generate Genealogy view in mvc C# using Google Organizational Chart related to the C# coding language. By visiting this online portal developers get answers concerning C# codes question like Generate Genealogy view in mvc C# using Google Organizational Chart. Enter your desired code related query in the search bar and get every piece of information about C# code related question on Generate Genealogy view in mvc C# using Google Organizational Chart.
Generate Genealogy view in mvc C# using Google Organizational Chart
//*
[WebMethod]
public List<Google_org_data> getOrgData()
{
List<Google_org_data> g = new List<Google_org_data>();
DataTable myData = getDataTable();
g.Add(new Google_org_data {
Employee = "Rocky Balboa",
Manager = "",
mgrID = "",
empID = "13",
designation = "CEO"
});
foreach (DataRow row in myData.Rows)
{
string empName = row["EmpName"].ToString();
var mgrName = row["MgrName"].ToString();
var mgrID = row["mgrID"].ToString();
var empID = row["empID"].ToString();
var designation = row["designation"].ToString();
g.Add(new Google_org_data{
Employee = empName,
Manager = mgrName,
mgrID = mgrID,
empID = empID,
designation = designation
});
}
return g;
}
public DataTable getDataTable()
{
DataTable dt = new DataTable();
string query = " select a.employee_name as EmpName,a.id_emp as empID,a.designation,b.employee_name as MgrName,b.id_emp as mgrID";
query += " from tb_employee a inner join tb_employee b on a.manager_id=b.id_emp";
SqlDataAdapter dap = new SqlDataAdapter(query, con);
DataSet ds = new DataSet();
dap.Fill(ds);
return ds.Tables[0];
}
//*
Source: codepedia.info
All those coders who are working on the C# based application and are stuck on Generate Genealogy view in mvc C# using Google Organizational Chart can get a collection of related answers to their query. Programmers need to enter their query on Generate Genealogy view in mvc C# using Google Organizational Chart related to C# code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about Generate Genealogy view in mvc C# using Google Organizational Chart for the programmers working on C# code while coding their module. Coders are also allowed to rectify already present answers of Generate Genealogy view in mvc C# using Google Organizational Chart while working on the C# language code. Developers can add up suggestions if they deem fit any other answer relating to "Generate Genealogy view in mvc C# using Google Organizational Chart". Visit this developer's friendly online web community, CodeProZone, and get your queries like Generate Genealogy view in mvc C# using Google Organizational Chart resolved professionally and stay updated to the latest C# updates.