public ActionResult Update(ShangYeChengJiao entity)
        {
            if (ModelState.IsValid)
            {
                entity.LastModifiedBy   = GetCurrentUserName();
                entity.LastModifiedDate = DateTime.Now;

                _service.UpdateShangYeChengJiao(entity);
                _service.Save();

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

            return(this.Direct());
        }
        public ActionResult Insert(ShangYeChengJiao entity)
        {
            if (ModelState.IsValid)
            {
                entity.OrgNamePath = GetOrganizationNamePath();
                entity.CreatedBy   = GetCurrentUserName();
                entity.CreatedDate = DateTime.Now;

                _service.AddShangYeChengJiao(entity);
                _service.Save();

                this.GetCmp <Window>("windowShangYeChengJiao").Hide();
                this.GetCmp <Store>("storeShangYeChengJiao").Reload();

                return(this.Direct());
            }
            return(this.Direct());
        }