Exemplo n.º 1
0
        public ActionResult DictionaryEdit(Guid?id)
        {
            DictionaryModel model = new DictionaryModel();

            model.LoadDicTypeSelectList();

            if (id.HasValue)
            {
                Model.D_Dictionary_Model dataModel = new DAL.D_Dictionary_DAL().GetModel(id.Value);
                if (dataModel != null)
                {
                    if (!dataModel.DataStatus)
                    {
                        model.DicGuid = dataModel.DicGuid;
                        model.DicName = dataModel.DicName;
                        model.DicType = Convert.ToInt32(dataModel.DicType).ToString();
                        model.Ord     = dataModel.Ord;
                    }
                }
            }
            return(View(model));
        }