public static string displayemployee(List <string> _arr) { DataTable dummy = new DataTable(); dummy.Columns.Add("No"); dummy.Columns.Add("WorkdayID"); dummy.Columns.Add("Name"); SystemObjects.HeadCount _hc = new SystemObjects.HeadCount(); _hc.TeamID = Convert.ToInt32(_arr[0]); _hc.Date = Convert.ToInt32(_arr[1]); _hc.Year = Convert.ToInt32(_arr[2]); DataSet ds = new DataSet(); try { dummy.Merge(_hc.DisplayEmployee()); if (dummy.Rows.Count < 1) { dummy.Rows.Add(); } ds.Tables.Add(dummy); } catch (Exception ex) { } return(ds.GetXml()); }
public static string displayemployee(List<string> _arr) { DataTable dummy = new DataTable(); dummy.Columns.Add("No"); dummy.Columns.Add("WorkdayID"); dummy.Columns.Add("Name"); SystemObjects.HeadCount _hc = new SystemObjects.HeadCount(); _hc.TeamID = Convert.ToInt32(_arr[0]); _hc.Date = Convert.ToInt32(_arr[1]); _hc.Year = Convert.ToInt32(_arr[2]); DataSet ds = new DataSet(); try { dummy.Merge(_hc.DisplayEmployee()); if (dummy.Rows.Count < 1) { dummy.Rows.Add(); } ds.Tables.Add(dummy); } catch (Exception ex) { } return ds.GetXml(); }
public static string addForecast(List <string> _arr) { SystemObjects.HeadCount _hc = new SystemObjects.HeadCount(); _hc.TeamID = Convert.ToInt32(_arr[0]); _hc.Position = _arr[1]; _hc.Year = Convert.ToInt32(_arr[2]); _hc.Month = Convert.ToInt32(_arr[3]); _hc.TeamName = _arr[4]; //_hc.Count = Convert.ToInt32(_arr[5]); return(_hc.InsertForecast()); }
public static string addForecast(List<string> _arr) { SystemObjects.HeadCount _hc = new SystemObjects.HeadCount(); _hc.TeamID = Convert.ToInt32(_arr[0]); _hc.Position = _arr[1]; _hc.Year = Convert.ToInt32(_arr[2]); _hc.Month = Convert.ToInt32(_arr[3]); _hc.TeamName = _arr[4]; //_hc.Count = Convert.ToInt32(_arr[5]); return _hc.InsertForecast(); }
public static string displayYear(List <string> _arr) { DataSet ds = new DataSet(); SystemObjects.HeadCount _hc = new SystemObjects.HeadCount(); _hc.TeamID = Convert.ToInt32(_arr[0].ToString()); try { ds.Tables.Add(_hc.DisplayYear()); } catch (Exception ex) { } return(ds.GetXml()); }
public static string displayHC(List <string> _arr) { DataTable dummy = new DataTable(); SystemObjects.HeadCount _hc = new SystemObjects.HeadCount(); _hc.TeamID = Convert.ToInt32(_arr[0]); _hc.Year = Convert.ToInt32(_arr[1]); //_hc.Forecast = _arr[2].ToString(); DataSet ds = new DataSet(); try { dummy.Merge(_hc.DisplayHeadcount()); ds.Tables.Add(dummy); } catch (Exception ex) { } return(ds.GetXml()); }
public static string displayYear(List<string> _arr) { DataSet ds = new DataSet(); SystemObjects.HeadCount _hc = new SystemObjects.HeadCount(); _hc.TeamID = Convert.ToInt32(_arr[0].ToString()); try { ds.Tables.Add(_hc.DisplayYear()); } catch (Exception ex) { } return ds.GetXml(); }
public static string displayHC(List<string> _arr) { DataTable dummy = new DataTable(); SystemObjects.HeadCount _hc = new SystemObjects.HeadCount(); _hc.TeamID = Convert.ToInt32(_arr[0]); _hc.Year = Convert.ToInt32(_arr[1]); //_hc.Forecast = _arr[2].ToString(); DataSet ds = new DataSet(); try { dummy.Merge(_hc.DisplayHeadcount()); ds.Tables.Add(dummy); } catch (Exception ex) { } return ds.GetXml(); }