Exemple #1
0
        public ActionResult Info(decimal ID)
        {
            SetDefaulButton(StandardButtonMode.View);
            var da = new SEC015P001DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = DTOExecuteType.GetByID;
            TempModel.ID = da.DTO.Model.ID = ID;
            da.Select(da.DTO);
            if (da.DTO.Model != null)
            {
                localModel = da.DTO.Model;
            }
            return(View(StandardActionName.Info, localModel));
        }
Exemple #2
0
        public ActionResult Search(SEC015P001Model model)
        {
            var da = new SEC015P001DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SEC015P001ExecuteType.GetAll;
            if (Request.GetRequest("page").IsNullOrEmpty())
            {
                model.IsDefaultSearch = true;
                TempSearch            = model;
            }
            da.DTO.Model = TempSearch;
            da.Select(da.DTO);
            return(JsonAllowGet(da.DTO.Models, da.DTO.Result));
        }
Exemple #3
0
        public ActionResult Edit(string NAME)
        {
            SetDefaulButton(StandardButtonMode.Modify);

            var da = new SEC015P001DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = SEC015P001ExecuteType.GetByID;
            TempModel.NAME             = da.DTO.Model.NAME = NAME;
            da.Select(da.DTO);
            if (da.DTO.Model != null)
            {
                localModel = da.DTO.Model;
            }
            return(View(StandardActionName.Edit, localModel));
        }