Exemplo n.º 1
0
        /// <summary>
        /// 保存订单
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            var dto = GetSettlementDto(cbAccount.InputHidden.Value.Convert <long>());

            dto.IsGenerate = true;
            Ioc.Resolve <IOrderApplicationService>().Create(dto);
            Message1.ShowMessage(dto.Errors);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 保存
        /// </summary>
        public virtual void Save()
        {
            var info = new ShiftEntity
            {
                Remark = txtContent.Value.Trim(),
                Count  = txtCount.Value.Convert <int>(),
                Shelf  = new ShelfEntity {
                    Id = ShelfId
                },
                SaveType = SaveType.Add
            };

            Message1.ShowMessage(info.Errors);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 保存
        /// </summary>
        public virtual void Save()
        {
            var info = new OrderNoteEntity
            {
                Content = txtContent.Value.Trim(),
                Order   = new OrderEntity {
                    Id = Request.QueryString["OrderId"].Convert <long>()
                },
                Account = new AccountEntity {
                    Id = Identity.Id
                },
                SaveType = SaveType.Add
            };
            var rev = Ioc.Resolve <IApplicationService, OrderNoteEntity>().Save(info);

            Message1.ShowMessage(info.Errors);
            if (rev)
            {
                LoadEntities();
                txtContent.Value = "";
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            var rev = CopyEntities();

            Message1.ShowMessage(rev ? "导入成功" : "导入失败");
        }