/// <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); }
/// <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); }
/// <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 = ""; } }
/// <summary> /// 保存 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnSave_Click(object sender, EventArgs e) { var rev = CopyEntities(); Message1.ShowMessage(rev ? "导入成功" : "导入失败"); }