public ActionResult Insert(ZhuZhaiPingGu entity)
        {
            if (ModelState.IsValid)
            {
                entity.OrgNamePath = GetOrganizationNamePath();
                entity.Man5Nian    = GetCheckBoxValue(entity.Man5Nian);
                entity.CreatedBy   = GetCurrentUserName();
                entity.CreatedDate = DateTime.Now;

                _service.AddZhuZhaiPingGu(entity);
                _service.Save();

                this.GetCmp <Window>("windowZhuZhaiPingGu").Hide();
                this.GetCmp <Store>("storeZhuZhaiPingGu").Reload();

                return(this.Direct());
            }
            return(this.Direct());
        }
        public ActionResult Update(ZhuZhaiPingGu entity)
        {
            if (ModelState.IsValid)
            {
                entity.Man5Nian         = GetCheckBoxValue(entity.Man5Nian);
                entity.LastModifiedBy   = GetCurrentUserName();
                entity.LastModifiedDate = DateTime.Now;

                _service.UpdateZhuZhaiPingGu(entity);
                _service.Save();

                var window = this.GetCmp <Window>("windowZhuZhaiPingGu");
                window.Hide();
                this.GetCmp <Store>("storeZhuZhaiPingGu").Reload();
                return(this.Direct());
            }

            return(this.Direct());
        }