Exemplo n.º 1
0
        private DTOResult SaveData(string mode, object model)
        {
            var da = new MISS01P003DA();

            //SetStandardField(model);
            da.DTO.Execute.ExecuteType = MISS01P003ExecuteType.UpdateSolutionResult;
            da.DTO.Model = (MISS01P003Model)model;
            da.UpdateNoEF(da.DTO);

            return(da.DTO.Result);
        }
Exemplo n.º 2
0
        public ActionResult Agree(MISS01P003Model model)
        {
            var da = new MISS01P003DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = MISS01P003ExecuteType.ConfirmStatus;

            da.DTO.Model           = model;
            da.DTO.Model.FALG      = "A";
            da.DTO.Model.CRET_BY   = SessionHelper.SYS_USER_ID;
            da.DTO.Model.CRET_DATE = DateTime.Now;
            da.UpdateNoEF(da.DTO);

            return(JsonAllowGet(da.DTO.Model));
        }
Exemplo n.º 3
0
        public ActionResult SearchNewTask(MISS01P003Model model)
        {
            var da = new MISS01P003DA();

            SetStandardErrorLog(da.DTO);
            da.DTO.Execute.ExecuteType = MISS01P003ExecuteType.GetNewTask;

            if (Request.GetRequest("page").IsNullOrEmpty())
            {
                model.IsDefaultSearch = true;
                TempSearch            = model;
            }

            da.DTO.Model          = TempSearch;
            da.DTO.Model.COM_CODE = model.APP_CODE;
            da.DTO.Model.CRET_BY  = SessionHelper.SYS_USER_ID;
            da.SelectNoEF(da.DTO);
            return(JsonAllowGet(da.DTO.Models, da.DTO.Result));
        }
Exemplo n.º 4
0
        public ActionResult Index(string ACTIVE_STEP = "1")
        {
            string ACTIVE_WIZARD_MAX = "2";
            var    view = string.Empty;
            var    da   = new MISS01P003DA();

            if (ACTIVE_STEP == "1")
            {
                view = "Index1";
                SetDefaulButton(StandardButtonMode.Index);
                RemoveStandardButton("DeleteSearch");
                RemoveStandardButton("Add");
                if (TempSearch.IsDefaultSearch && !Request.GetRequest("page").IsNullOrEmpty())
                {
                    localModel = TempSearch.CloneObject();
                }

                SetDefaultData(StandardActionName.Index);
            }
            else if (ACTIVE_STEP == "2")
            {
                view = "Index2";
                SetDefaulButton(StandardButtonMode.Index);
                RemoveStandardButton("DeleteSearch");
                RemoveStandardButton("Add");
                if (TempSearch.IsDefaultSearch && !Request.GetRequest("page").IsNullOrEmpty())
                {
                    localModel = TempSearch.CloneObject();
                }

                SetDefaultData(StandardActionName.Index);
            }
            SetHeaderWizard(new WizardHelper.WizardHeaderConfig(
                                ACTIVE_STEP,
                                ACTIVE_WIZARD_MAX,
                                new WizardHelper.WizardHeader("", Url.Action("Index", new { ACTIVE_STEP = "1" }), iconCssClass: FaIcons.FaPencil, textStep: Translation.MIS.MISS01P003.Index1),
                                new WizardHelper.WizardHeader("", Url.Action("Index", new { ACTIVE_STEP = "2" }), iconCssClass: FaIcons.FaSearch, textStep: Translation.MIS.MISS01P003.Index2)));

            return(View(view, localModel));
        }
Exemplo n.º 5
0
        public ActionResult SolutionResult(MISS01P003Model model)
        {
            SetDefaulButton(StandardButtonMode.Other);
            SetDefaultData();
            AddButton(StandButtonType.ButtonComfirmAjax, "btnSAVESOLUTIONRESULT", Translation.CenterLang.Center.Save, iconCssClass: FaIcons.FaSave, url: Url.Action("SaveSolutionResult"), isValidate: true);

            #region set default
            var view = string.Empty;
            view = "SolutionResult";

            var da = new MISS01P003DA();
            da.DTO.Execute.ExecuteType = MISS01P003ExecuteType.SolutionResult;
            da.DTO.Model.COM_CODE      = model.COM_CODE;
            da.DTO.Model.ISE_NO        = model.ISE_NO;
            da.DTO.Model.SOLUTION      = model.SOLUTION;
            da.SelectNoEF(da.DTO);

            localModel = da.DTO.Model;
            #endregion

            return(View(view, localModel));
        }