public static string displayParentWorktype(List <string> _arr) { DataTable dummy = new DataTable(); dummy.Columns.Add("Worktype"); dummy.Columns.Add("Status"); SystemObjects.OPT _opt = new SystemObjects.OPT(); _opt.TeamID = Convert.ToInt32(_arr[0].ToString()); DataSet ds = new DataSet(); try { dummy.Merge(_opt.DisplayParentWorktypes()); if (dummy.Rows.Count < 1) { dummy.Rows.Add(); } ds.Tables.Add(dummy); } catch (Exception ex) { } return(ds.GetXml()); }
public static string displayParentWT(List <string> _arr) { DataSet ds = new DataSet(); SystemObjects.OPT _opt = new SystemObjects.OPT(); _opt.TeamID = Convert.ToInt32(_arr[0].ToString()); try { ds.Tables.Add(_opt.DisplayParentWorktypes()); } catch (Exception ex) { } return(ds.GetXml()); }
public static string displayParentWorktype(List<string> _arr) { DataTable dummy = new DataTable(); dummy.Columns.Add("Worktype"); dummy.Columns.Add("Status"); SystemObjects.OPT _opt = new SystemObjects.OPT(); _opt.TeamID = Convert.ToInt32(_arr[0].ToString()); DataSet ds = new DataSet(); try { dummy.Merge(_opt.DisplayParentWorktypes()); if (dummy.Rows.Count < 1) { dummy.Rows.Add(); } ds.Tables.Add(dummy); } catch (Exception ex) { } return ds.GetXml(); }
public static string displayParentWT(List<string> _arr) { DataSet ds = new DataSet(); SystemObjects.OPT _opt = new SystemObjects.OPT(); _opt.TeamID = Convert.ToInt32(_arr[0].ToString()); try { ds.Tables.Add(_opt.DisplayParentWorktypes()); } catch (Exception ex) { } return ds.GetXml(); }