예제 #1
0
        private void btnAddVendorHistoryInfo_Click(object sender, RoutedEventArgs e)
        {
            if (!ValidationManager.Validate(LayoutRoot))
            {
                return;
            }
            //添加供应商历史记录:
            VendorHistoryLog newhistoryInfo = new VendorHistoryLog()
            {
                HistoryReason = this.txtHistoryReason.Text,
                HistoryDate   = this.datepicker_CreateTime.SelectedDate,
                VendorSysNo   = this.VendorSysNo
            };

            serviceFacade.CreateVendorHistoryLog(newhistoryInfo, (obj, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }
                CurrentWindow.Alert(ResVendorMaintain.AlertMsg_AlertTitle, ResVendorMaintain.InfoMsg_History_AddSuc, MessageType.Information, (obj2, args2) =>
                {
                    if (args2.DialogResult == DialogResultType.Cancel)
                    {
                        this.Dialog.ResultArgs.Data         = vendorHistoryVM;
                        this.Dialog.ResultArgs.DialogResult = DialogResultType.OK;
                        this.Dialog.Close(true);
                    }
                });
            });
        }
예제 #2
0
        /// <summary>
        /// 手动创建供应商历史信息
        /// </summary>
        /// <param name="log"></param>
        /// <param name="callback"></param>
        public void CreateVendorHistoryLog(VendorHistoryLog log, EventHandler <RestClientEventArgs <VendorHistoryLog> > callback)
        {
            log.CompanyCode     = CPApplication.Current.CompanyCode;
            log.CreateUserSysNo = CPApplication.Current.LoginUser.UserSysNo;

            string relativeUrl = "/POService/Vendor/CreateVendorHistoryLog";

            restClient.Create <VendorHistoryLog>(relativeUrl, log, callback);
        }
예제 #3
0
 public VendorHistoryLog CreateVendorHistoryLog(VendorHistoryLog logInfo)
 {
     return(VendorProcessor.CreateVendorHistoryLog(logInfo));
 }
예제 #4
0
 public VendorHistoryLog CreateVendorHistoryLog(VendorHistoryLog logInfo)
 {
     return(ObjectFactory <VendorAppService> .Instance.CreateVendorHistoryLog(logInfo));
 }