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

                _service.AddBanGongLouCengXiuZheng(entity);
                _service.Save();

                this.GetCmp <Window>("windowBanGongLouCengXiuZheng").Hide();
                this.GetCmp <Store>("storeBanGongLouCengXiuZheng").Reload();

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

                _service.UpdateBanGongLouCengXiuZheng(entity);
                _service.Save();

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

            return(this.Direct());
        }