public createModel(IFullTerminalSystemService fullterminalsystem, ICSVService csvfile) { _fullterminalsystem = fullterminalsystem; _csvfile = csvfile; }
public createModel(IFullTerminalSystemService fullterminalsystem) { _fullterminalsystem = fullterminalsystem; }
public indexModel(IFullTerminalSystemService fullterminalsystem, ITerminalService temrinalservice) { _fullterminalsystem = fullterminalsystem; _terminalservice = temrinalservice; }
/* * //MENU DESPLEGABLES * //Connect Group * public IEnumerable<SelectListItem> GetConnectGroups() * { * List<SelectListItem> listaCG = new List<SelectListItem>(); * * foreach (string cg in _csvfile.getConnectGroups()) * { * listaCG.Add( * new SelectListItem * { * Value = cg, * Text = cg * } * ); * * } * * return new SelectList(listaCG, "Value", "Text"); * * } * * //Parameter Group * public IEnumerable<SelectListItem> GetParameterGroups() * { * List<SelectListItem> listaPG = new List<SelectListItem>(); * * foreach (string pg in _csvfile.getParameterGroups()) * { * listaPG.Add( * new SelectListItem * { * Value = pg, * Text = pg * } * ); * * } * * return new SelectList(listaPG, "Value", "Text"); * * } * * //ControlGroups * public IEnumerable<SelectListItem> GetControlGroups() * { * List<SelectListItem> listaCG = new List<SelectListItem>(); * * foreach (var cg in _csvfile.getControlGroups()) * { * listaCG.Add( * new SelectListItem * { * Value = cg.GroupID, * Text = cg.GroupName * } * ); * * } * * return new SelectList(listaCG, "Value", "Text"); * * } * * //ProgramIDs * public IEnumerable<SelectListItem> GetProgramIDs() * { * List<SelectListItem> listaPGID = new List<SelectListItem>(); * * foreach (var pid in _csvfile.getProgramIDs()) * { * listaPGID.Add( * new SelectListItem * { * Value = pid, * Text = pid * } * ); * * } * * return new SelectList(listaPGID, "Value", "Text", listaPGID.FirstOrDefault()); * * } * * //ProgramVersions//No Necesario Por Dropdown Cascade * /*public IEnumerable<SelectListItem> GetProgramVersions(string id) * { * List<SelectListItem> listaPGVER = new List<SelectListItem>(); * * foreach (var pv in _csvfile.getProgramVersionsByID(id)) * { * listaPGVER.Add( * new SelectListItem * { * Value = pv, * Text = pv * } * ); * * } * * return new SelectList(listaPGVER, "Value", "Text"); * * }*/ public editModel(IFullTerminalSystemService fullterminalsystemservice, ICSVService csvfile) { _fullterminalsystemservice = fullterminalsystemservice; _csvfile = csvfile; }
public DetailsModel(IFullTerminalSystemService fullterminalsystemservice) { _fullterminalsystemservice = fullterminalsystemservice; }
public IndexModel(IFullTerminalSystemService fullTerminalSystem) { _fullTerminalSystem = fullTerminalSystem; }