Exemplo n.º 1
0
        // GET: InspectionCode
        public ActionResult Index()
        {
            SedesolServiceClient proxy = new SedesolServiceClient();
            CodeParam            model = proxy.GetParamCode(((UserDTO)Session["userData"]).Id);
            List <YearDTO>       years = model.Years;

            years       = years.Where(item => Convert.ToInt32(item.Description) <= DateTime.Now.Year).ToList();
            model.Years = years;

            return(View(model));
        }
Exemplo n.º 2
0
        public CodeParam GetParamCode(int pUserId)
        {
            CodeParam         capModel = new CodeParam();
            ParamDAL          parDal   = new ParamDAL();
            InspectionCodeDAL ins      = new InspectionCodeDAL();

            capModel.ListCode = ins.GetCodesByUserId(pUserId);
            capModel.Months   = parDal.GetMonths();
            capModel.Years    = parDal.GetYears();

            return(capModel);
        }
Exemplo n.º 3
0
 public override HeartbeatGenerator Create(IReadonlyContext context) =>
 new HeartbeatGenerator(LabelParam.Get(context), CodeParam.Get(context), IntervalParam.Get(context));