Exemplo n.º 1
0
 public createModel(IFullTerminalSystemService fullterminalsystem, ICSVService csvfile)
 {
     _fullterminalsystem = fullterminalsystem;
     _csvfile            = csvfile;
 }
Exemplo n.º 2
0
 public createModel(IFullTerminalSystemService fullterminalsystem)
 {
     _fullterminalsystem = fullterminalsystem;
 }
Exemplo n.º 3
0
 public indexModel(IFullTerminalSystemService fullterminalsystem, ITerminalService temrinalservice)
 {
     _fullterminalsystem = fullterminalsystem;
     _terminalservice    = temrinalservice;
 }
Exemplo n.º 4
0
        /*
         * //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;
        }
Exemplo n.º 5
0
 public DetailsModel(IFullTerminalSystemService fullterminalsystemservice)
 {
     _fullterminalsystemservice = fullterminalsystemservice;
 }
Exemplo n.º 6
0
 public IndexModel(IFullTerminalSystemService fullTerminalSystem)
 {
     _fullTerminalSystem = fullTerminalSystem;
 }