public static TimeSheetGrid TimeSheetTaskGrid(CurrentUser logUser)
 {
     TimeSheetGrid result = new TimeSheetGrid(logUser, "timesheettask");
     TimeSheetTable TimeSheettaskTable = new TimeSheetTable();
     TimeSheettaskTable.tableId = "tblTimeSheetTask";
     TimeSheettaskTable.tableCSSClass = "dyntable";
     TimeSheettaskTable.Grid = result;
     TimeSheettaskTable.Columns.Add(new TimeSheetColumn() { fieldName = "UserName", headerName = " User Name", isHeader = true });
     TimeSheettaskTable.Columns.Add(new TimeSheetColumn() { fieldName = "ProjectName", headerName = "Project Name", isHeader = true });
     TimeSheettaskTable.Columns.Add(new TimeSheetColumn() { fieldName = "TaskName", headerName = "Task Name", isHeader = true });
     TimeSheettaskTable.Columns.Add(new TimeSheetColumn() { fieldName = "TaskDate", headerName = "Task Date", isHeader = true });
     TimeSheettaskTable.Columns.Add(new TimeSheetColumn() { fieldName = "Percentage", headerName = "Percentage", isHeader = true });
     TimeSheettaskTable.Columns.Add(new TimeSheetColumn() { fieldName = "Notes", headerName = "Notes", isHeader = true });
     TimeSheettaskTable.Columns.Add(new TimeSheetColumn() { fieldName = "CodeSnippet", headerName = "CodeSnippet", isHeader = true });
     result.gridTable = TimeSheettaskTable;
     return result;
 }
 public static TimeSheetGrid taskGrid(CurrentUser logUser)
 {
     TimeSheetGrid result = new TimeSheetGrid(logUser, "Task");
     TimeSheetTable taskTable = new TimeSheetTable();
     taskTable.tableId = "tbltask";
     taskTable.tableCSSClass = "dyntable";
     taskTable.Grid = result;
     taskTable.Columns.Add(new TimeSheetColumn() { fieldName = "ProjectName", headerName = "Project Name", isHeader = true });
     taskTable.Columns.Add(new TimeSheetColumn() { fieldName = "TaskName", headerName = "Task Name", isHeader = true });
     taskTable.Columns.Add(new TimeSheetColumn() { fieldName = "BeginDate", headerName = "Begin Date", isHeader = true });
     taskTable.Columns.Add(new TimeSheetColumn() { fieldName = "EndDate", headerName = "End Date", isHeader = true });
     taskTable.Columns.Add(new TimeSheetColumn() { fieldName = "DevUserName", headerName = "Dev UserName", isHeader = true });
     taskTable.Columns.Add(new TimeSheetColumn() { fieldName = "QaUserName", headerName = "Qa UserName", isHeader = true });
     taskTable.Columns.Add(new TimeSheetColumn() { fieldName = "ApprovedUserName", headerName = "Approved UserName", isHeader = true });
     result.gridTable = taskTable;
     return result;
 }
 public static TimeSheetGrid UserFieldsGrid(CurrentUser logUser)
 {
     TimeSheetGrid result = new TimeSheetGrid(logUser, "Users");
     TimeSheetTable UserFieldsTable = new TimeSheetTable();
     UserFieldsTable.tableId = "tblUserFields";
     UserFieldsTable.tableCSSClass = "dyntable";
     UserFieldsTable.Grid = result;
     UserFieldsTable.Columns.Add(new TimeSheetColumn() { fieldName = "UserName", headerName = " User Name", isHeader = true });
     UserFieldsTable.Columns.Add(new TimeSheetColumn() { fieldName = "FullName", headerName = "Full Name", isHeader = true });
     UserFieldsTable.Columns.Add(new TimeSheetColumn() { fieldName = "Email Address", headerName = "Email Address", isHeader = true });
     UserFieldsTable.Columns.Add(new TimeSheetColumn() { fieldName = "Address1", headerName = "Address1", isHeader = true });
     UserFieldsTable.Columns.Add(new TimeSheetColumn() { fieldName = "Address2", headerName = "Address2", isHeader = true });
     UserFieldsTable.Columns.Add(new TimeSheetColumn() { fieldName = "City", headerName = "City", isHeader = true });
     UserFieldsTable.Columns.Add(new TimeSheetColumn() { fieldName = "State", headerName = "State",isHeader = true });
     UserFieldsTable.Columns.Add(new TimeSheetColumn() { fieldName = "Role", headerName = "Role", isHeader = true });
     result.gridTable = UserFieldsTable;
     return result;
 }