添加盘点功能
This commit is contained in:
		
							parent
							
								
									cec943d500
								
							
						
					
					
						commit
						27c9afd75f
					
				| 
						 | 
					@ -289,6 +289,10 @@ namespace DM_Weight
 | 
				
			||||||
            containerRegistry.RegisterForNavigation<SetMenuWindow, SetMenuWindowViewModel>();
 | 
					            containerRegistry.RegisterForNavigation<SetMenuWindow, SetMenuWindowViewModel>();
 | 
				
			||||||
            containerRegistry.RegisterDialog<AddNewMenuDialog>();
 | 
					            containerRegistry.RegisterDialog<AddNewMenuDialog>();
 | 
				
			||||||
            containerRegistry.RegisterForNavigation<AddNewMenuDialog, AddNewMenuDialogViewModel>();
 | 
					            containerRegistry.RegisterForNavigation<AddNewMenuDialog, AddNewMenuDialogViewModel>();
 | 
				
			||||||
 | 
					            //盘点
 | 
				
			||||||
 | 
					            containerRegistry.RegisterForNavigation<CheckStockWindow, CheckStockWindowViewModel>();
 | 
				
			||||||
 | 
					            containerRegistry.RegisterDialog<ConfirmDialog>();
 | 
				
			||||||
 | 
					            containerRegistry.RegisterForNavigation<ConfirmDialog, ConfirmDialogViewModel>();
 | 
				
			||||||
            #endregion
 | 
					            #endregion
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            // 设备记录页面
 | 
					            // 设备记录页面
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,248 @@
 | 
				
			||||||
 | 
					using Common.Logging;
 | 
				
			||||||
 | 
					using DM_Weight.Models;
 | 
				
			||||||
 | 
					using DM_Weight.msg;
 | 
				
			||||||
 | 
					using DM_Weight.Port;
 | 
				
			||||||
 | 
					using DM_Weight.util;
 | 
				
			||||||
 | 
					using log4net;
 | 
				
			||||||
 | 
					using MaterialDesignThemes.Wpf;
 | 
				
			||||||
 | 
					using Prism.Commands;
 | 
				
			||||||
 | 
					using Prism.Events;
 | 
				
			||||||
 | 
					using Prism.Mvvm;
 | 
				
			||||||
 | 
					using Prism.Regions;
 | 
				
			||||||
 | 
					using Prism.Services.Dialogs;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Collections.Generic;
 | 
				
			||||||
 | 
					using System.Configuration;
 | 
				
			||||||
 | 
					using System.Linq;
 | 
				
			||||||
 | 
					using System.Reflection.Metadata.Ecma335;
 | 
				
			||||||
 | 
					using System.Text;
 | 
				
			||||||
 | 
					using System.Threading;
 | 
				
			||||||
 | 
					using System.Threading.Tasks;
 | 
				
			||||||
 | 
					using System.Windows.Media;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace DM_Weight.ViewModels
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    public class CheckStockWindowViewModel : BindableBase, INavigationAware, IRegionMemberLifetime
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        private readonly log4net.ILog logger = log4net.LogManager.GetLogger(typeof(CheckStockWindowViewModel));
 | 
				
			||||||
 | 
					        private int _drawerNo = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public int DrawerNo
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            get => _drawerNo;
 | 
				
			||||||
 | 
					            set => SetProperty(ref _drawerNo, value);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        private SolidColorBrush _colorBrush;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public SolidColorBrush SnackbarBackground
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            get => _colorBrush;
 | 
				
			||||||
 | 
					            set => SetProperty(ref _colorBrush, value);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        private ISnackbarMessageQueue _snackbarMessageQueue = new SnackbarMessageQueue(TimeSpan.FromSeconds(3));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public ISnackbarMessageQueue SnackbarMessageQueue
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            get => _snackbarMessageQueue;
 | 
				
			||||||
 | 
					            set => SetProperty(ref _snackbarMessageQueue, value);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        private List<ChannelStock> _channelStocks = new();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public List<ChannelStock> ChannelStocks
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            get => _channelStocks;
 | 
				
			||||||
 | 
					            set => SetProperty(ref _channelStocks, value);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        private bool _isEnable = true;
 | 
				
			||||||
 | 
					        public bool IsEnable { get => _isEnable; set => SetProperty(ref _isEnable, value); }
 | 
				
			||||||
 | 
					        private int _status = 0;
 | 
				
			||||||
 | 
					        public int Status { get => _status; set { SetProperty(ref _status, value); } }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        private readonly IDialogService _dialogService;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public bool KeepAlive => false;
 | 
				
			||||||
 | 
					        IEventAggregator _eventAggregator;
 | 
				
			||||||
 | 
					        public CheckStockWindowViewModel(IDialogService dialogService, IEventAggregator eventAggregator)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            _dialogService = dialogService;
 | 
				
			||||||
 | 
					            _eventAggregator = eventAggregator;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        private void RequestData()
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            List<ChannelStock> queryData = SqlSugarHelper.Db.Queryable<ChannelStock>()
 | 
				
			||||||
 | 
					                .Includes(cs => cs.DrugInfo)
 | 
				
			||||||
 | 
					                .Where(cs => cs.DrawerNo == DrawerNo + 1)
 | 
				
			||||||
 | 
					                .Where(cs => cs.DrugId != null)
 | 
				
			||||||
 | 
					                .Where(cs => cs.MachineId.Equals(ConfigurationManager.AppSettings["machineId"] ?? "DM5"))
 | 
				
			||||||
 | 
					                .OrderBy(cs => cs.DrugId)
 | 
				
			||||||
 | 
					                .ToList();
 | 
				
			||||||
 | 
					            ChannelStocks = queryData.Select(it => { it.CheckQuantity = it.Quantity; return it; }).ToList();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public void OnNavigatedTo(NavigationContext navigationContext)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            logger.Info("进入OnNavigatedTo");
 | 
				
			||||||
 | 
					            RequestData();
 | 
				
			||||||
 | 
					            logger.Info("结束RequestData");
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public bool IsNavigationTarget(NavigationContext navigationContext)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            return true;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public void OnNavigatedFrom(NavigationContext navigationContext)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            // 取消消息订阅
 | 
				
			||||||
 | 
					            //_eventAggregator.GetEvent<PortUtilEvent>().Unsubscribe(DoMyPrismEvent);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public DelegateCommand<string> UpdateDrawerNo
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            get => new DelegateCommand<string>((DrawerNo) =>
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                this.DrawerNo = Convert.ToInt32(DrawerNo);
 | 
				
			||||||
 | 
					                RequestData();
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            );
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        private static readonly DateTime Jan1st1970 = new DateTime
 | 
				
			||||||
 | 
					    (1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
 | 
				
			||||||
 | 
					        public long CurrentTimeMillis()
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            return (long)(DateTime.UtcNow - Jan1st1970).TotalMilliseconds;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        //保存修改的库存数
 | 
				
			||||||
 | 
					        public DelegateCommand SaveCommand
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            get => new DelegateCommand(() =>
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                List<ChannelStock> record = ChannelStocks.FindAll(it => it.Quantity != it.CheckQuantity).ToList();
 | 
				
			||||||
 | 
					                if (record.Count > 0)
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    bool iFlag = true;
 | 
				
			||||||
 | 
					                    string InvoiceId = "CHECK_" + CurrentTimeMillis();
 | 
				
			||||||
 | 
					                    var f = SqlSugarHelper.Db.UseTran(() =>
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                        for (int i = 0; i < record.Count; i++)
 | 
				
			||||||
 | 
					                        {
 | 
				
			||||||
 | 
					                            iFlag = true;
 | 
				
			||||||
 | 
					                            ChannelStock it = record[i];
 | 
				
			||||||
 | 
					                            if (it.AddToJJNum > 0 || it.NeedNum > 0)
 | 
				
			||||||
 | 
					                            {
 | 
				
			||||||
 | 
					                                //有待取药或待入库药品,弹出提示,确认后保存
 | 
				
			||||||
 | 
					                                DialogParameters dialogParameters = new DialogParameters();
 | 
				
			||||||
 | 
					                                dialogParameters.Add("ConfirmInfo", $"所选药品{it.DrugInfo.DrugName}存在待取药或待入库数据是否确认保存?");
 | 
				
			||||||
 | 
					                                DialogServiceExtensions.ShowDialogHost(_dialogService, "ConfirmDialog", dialogParameters, (IDialogResult dialogResult) =>
 | 
				
			||||||
 | 
					                                {
 | 
				
			||||||
 | 
					                                    if (dialogResult.Result == ButtonResult.OK)
 | 
				
			||||||
 | 
					                                    {
 | 
				
			||||||
 | 
					                                        iFlag = true;
 | 
				
			||||||
 | 
					                                    }
 | 
				
			||||||
 | 
					                                    else
 | 
				
			||||||
 | 
					                                    {
 | 
				
			||||||
 | 
					                                        iFlag = false;
 | 
				
			||||||
 | 
					                                    }
 | 
				
			||||||
 | 
					                                }, "RootDialog");
 | 
				
			||||||
 | 
					                            }
 | 
				
			||||||
 | 
					                            if (iFlag)
 | 
				
			||||||
 | 
					                            {
 | 
				
			||||||
 | 
					                                // 更新数据 库存信息
 | 
				
			||||||
 | 
					                                SqlSugarHelper.Db.Updateable(new ChannelStock()
 | 
				
			||||||
 | 
					                                {
 | 
				
			||||||
 | 
					                                    Quantity = it.CheckQuantity,
 | 
				
			||||||
 | 
					                                    ManuNo = it.ManuNo,
 | 
				
			||||||
 | 
					                                    EffDate = it.EffDate,
 | 
				
			||||||
 | 
					                                    Id = it.Id,
 | 
				
			||||||
 | 
					                                    NeedNum=0,
 | 
				
			||||||
 | 
					                                    AddToJJNum=0
 | 
				
			||||||
 | 
					                                }).UpdateColumns(it => new { it.Quantity, it.ManuNo, it.EffDate,it.NeedNum,it.AddToJJNum }).ExecuteCommand();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                                SqlSugarHelper.Db.Updateable(new ChannelList()
 | 
				
			||||||
 | 
					                                {
 | 
				
			||||||
 | 
					                                    State=0,
 | 
				
			||||||
 | 
					                                    Id=it.Chnguid
 | 
				
			||||||
 | 
					                                }).UpdateColumns(cl => new { cl.State }).ExecuteCommand();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                                // 保存数据 盘点记录
 | 
				
			||||||
 | 
					                                SqlSugarHelper.Db.Insertable(new MachineRecord()
 | 
				
			||||||
 | 
					                                {
 | 
				
			||||||
 | 
					                                    MachineId = it.MachineId,
 | 
				
			||||||
 | 
					                                    DrawerNo = it.DrawerNo,
 | 
				
			||||||
 | 
					                                    ColNo = it.ColNo,
 | 
				
			||||||
 | 
					                                    DrugId = it.DrugId,
 | 
				
			||||||
 | 
					                                    ManuNo = it.ManuNo,
 | 
				
			||||||
 | 
					                                    EffDate = !String.IsNullOrEmpty(it.EffDate) ? DateTime.ParseExact(it.EffDate, "yyyy-MM-dd", System.Globalization.CultureInfo.CurrentCulture) : null,
 | 
				
			||||||
 | 
					                                    Operator = HomeWindowViewModel.Operator?.Id,
 | 
				
			||||||
 | 
					                                    Reviewer = HomeWindowViewModel.Reviewer?.Id,
 | 
				
			||||||
 | 
					                                    OperationTime = DateTime.Now,
 | 
				
			||||||
 | 
					                                    Quantity = it.CheckQuantity - it.Quantity,
 | 
				
			||||||
 | 
					                                    Type = 4,
 | 
				
			||||||
 | 
					                                    InvoiceId = InvoiceId
 | 
				
			||||||
 | 
					                                    //,StockQuantity = nowChannels.Sum(it => it.Quantity),
 | 
				
			||||||
 | 
					                                    //CheckQuantity = it.CheckQuantity
 | 
				
			||||||
 | 
					                                }).ExecuteCommand();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                                logger.Info($"库存盘点->药箱号【{it.DrawerNo}】药品【{it.DrugInfo.DrugName}】盘点前库存【{it.Quantity}】,更改后【{it.CheckQuantity}】");
 | 
				
			||||||
 | 
					                            }
 | 
				
			||||||
 | 
					                            else
 | 
				
			||||||
 | 
					                            {
 | 
				
			||||||
 | 
					                                return false;
 | 
				
			||||||
 | 
					                                break;
 | 
				
			||||||
 | 
					                            }
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
 | 
					                        return true;
 | 
				
			||||||
 | 
					                    });
 | 
				
			||||||
 | 
					                    if (!iFlag)
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        return;
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                    if (f.Data)
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        RequestData();
 | 
				
			||||||
 | 
					                        AlertMsg alertMsg = new AlertMsg
 | 
				
			||||||
 | 
					                        {
 | 
				
			||||||
 | 
					                            Message = "操作完成",
 | 
				
			||||||
 | 
					                            Type = MsgType.SUCCESS,
 | 
				
			||||||
 | 
					                        };
 | 
				
			||||||
 | 
					                        _eventAggregator.GetEvent<SnackbarEvent>().Publish(alertMsg);
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                    if (!f.IsSuccess)
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        AlertMsg alertMsg = new AlertMsg
 | 
				
			||||||
 | 
					                        {
 | 
				
			||||||
 | 
					                            Message = "操作失败!",
 | 
				
			||||||
 | 
					                            Type = MsgType.ERROR,
 | 
				
			||||||
 | 
					                        };
 | 
				
			||||||
 | 
					                        _eventAggregator.GetEvent<SnackbarEvent>().Publish(alertMsg);
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                    Status = 0;
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                else
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    AlertMsg alertMsg = new AlertMsg
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        Message = "盘点完成,库存无改变",
 | 
				
			||||||
 | 
					                        Type = MsgType.ERROR
 | 
				
			||||||
 | 
					                    };
 | 
				
			||||||
 | 
					                    _eventAggregator.GetEvent<SnackbarEvent>().Publish(alertMsg);
 | 
				
			||||||
 | 
					                    Status = 0;
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            });
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        //刷新
 | 
				
			||||||
 | 
					        public DelegateCommand Query
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            get => new DelegateCommand(RequestData);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,66 @@
 | 
				
			||||||
 | 
					using DM_Weight.Models;
 | 
				
			||||||
 | 
					using Prism.Commands;
 | 
				
			||||||
 | 
					using Prism.Mvvm;
 | 
				
			||||||
 | 
					using Prism.Regions;
 | 
				
			||||||
 | 
					using Prism.Services.Dialogs;
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Collections.Generic;
 | 
				
			||||||
 | 
					using System.Linq;
 | 
				
			||||||
 | 
					using System.Text;
 | 
				
			||||||
 | 
					using System.Threading.Tasks;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace DM_Weight.ViewModels
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    public class ConfirmDialogViewModel : BindableBase, IDialogAware, IRegionMemberLifetime
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        private string _title = "保存确认";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public string Title
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            get => _title;
 | 
				
			||||||
 | 
					            set => SetProperty(ref _title, value);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        private string _confirmInfo= "所选药品存在待取药或待入库数据是否确认保存?";
 | 
				
			||||||
 | 
					        public string ConfirmInfo
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            get => _confirmInfo;
 | 
				
			||||||
 | 
					            set => SetProperty(ref _confirmInfo, value);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public bool KeepAlive => false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public event Action<IDialogResult> RequestClose;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public bool CanCloseDialog()
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            return true;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public void OnDialogClosed()
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public void OnDialogOpened(IDialogParameters parameters)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            ConfirmInfo = parameters.GetValue<string>("ConfirmInfo");
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        public DelegateCommand CancelCommand
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            get => new DelegateCommand(() =>
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                // 关闭当前窗口
 | 
				
			||||||
 | 
					                RequestClose?.Invoke(new DialogResult(ButtonResult.Cancel));
 | 
				
			||||||
 | 
					            });
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        public DelegateCommand ConfirmCommand
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            get => new DelegateCommand(() =>
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                //确认
 | 
				
			||||||
 | 
					                RequestClose?.Invoke(new DialogResult(ButtonResult.OK));
 | 
				
			||||||
 | 
					            });
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -520,6 +520,12 @@ namespace DM_Weight.ViewModels
 | 
				
			||||||
                PremissionName = "登录设置",
 | 
					                PremissionName = "登录设置",
 | 
				
			||||||
                PremissionPath = "SettingWindow",
 | 
					                PremissionPath = "SettingWindow",
 | 
				
			||||||
            };
 | 
					            };
 | 
				
			||||||
 | 
					            PremissionDm sysset4 = new PremissionDm
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                Id = 58,
 | 
				
			||||||
 | 
					                PremissionName = "盘点",
 | 
				
			||||||
 | 
					                PremissionPath = "CheckStockWindow",
 | 
				
			||||||
 | 
					            };
 | 
				
			||||||
            syssetChild.Add(sysset1);
 | 
					            syssetChild.Add(sysset1);
 | 
				
			||||||
            syssetChild.Add(sysset2);
 | 
					            syssetChild.Add(sysset2);
 | 
				
			||||||
            syssetChild.Add(syssetLogin);
 | 
					            syssetChild.Add(syssetLogin);
 | 
				
			||||||
| 
						 | 
					@ -527,6 +533,7 @@ namespace DM_Weight.ViewModels
 | 
				
			||||||
            syssetChild.Add(machineRecord);
 | 
					            syssetChild.Add(machineRecord);
 | 
				
			||||||
            syssetChild.Add(wSDRecord);
 | 
					            syssetChild.Add(wSDRecord);
 | 
				
			||||||
            syssetChild.Add(sysset3);
 | 
					            syssetChild.Add(sysset3);
 | 
				
			||||||
 | 
					            syssetChild.Add(sysset4);
 | 
				
			||||||
            sysset.Children = syssetChild;
 | 
					            sysset.Children = syssetChild;
 | 
				
			||||||
            defaultAll.Add(sysset);
 | 
					            defaultAll.Add(sysset);
 | 
				
			||||||
            #endregion
 | 
					            #endregion
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -32,44 +32,11 @@
 | 
				
			||||||
    </UserControl.Resources>
 | 
					    </UserControl.Resources>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <Grid>
 | 
					    <Grid>
 | 
				
			||||||
        <!--<Grid.RowDefinitions>
 | 
					 | 
				
			||||||
            -->
 | 
					 | 
				
			||||||
        <!--<RowDefinition/>-->
 | 
					 | 
				
			||||||
        <!--
 | 
					 | 
				
			||||||
            <RowDefinition/>
 | 
					 | 
				
			||||||
        </Grid.RowDefinitions>-->
 | 
					 | 
				
			||||||
        <Grid.ColumnDefinitions>
 | 
					        <Grid.ColumnDefinitions>
 | 
				
			||||||
            <ColumnDefinition Width="Auto" />
 | 
					            <ColumnDefinition Width="Auto" />
 | 
				
			||||||
            <ColumnDefinition Width="15*" />
 | 
					            <ColumnDefinition Width="15*" />
 | 
				
			||||||
            <ColumnDefinition />
 | 
					            <ColumnDefinition />
 | 
				
			||||||
        </Grid.ColumnDefinitions>
 | 
					        </Grid.ColumnDefinitions>
 | 
				
			||||||
 | 
					 | 
				
			||||||
        <!--<Grid Grid.Row="0" Margin="0 4 0 4" Grid.ColumnSpan="3" >
 | 
					 | 
				
			||||||
            <Grid.ColumnDefinitions>
 | 
					 | 
				
			||||||
                <ColumnDefinition />
 | 
					 | 
				
			||||||
                <ColumnDefinition />
 | 
					 | 
				
			||||||
                <ColumnDefinition />
 | 
					 | 
				
			||||||
            </Grid.ColumnDefinitions>
 | 
					 | 
				
			||||||
            <StackPanel HorizontalAlignment="Right" Grid.Column="2" Orientation="Horizontal">
 | 
					 | 
				
			||||||
                <Button
 | 
					 | 
				
			||||||
                        Style="{StaticResource MaterialDesignOutlinedLightButton}"
 | 
					 | 
				
			||||||
                        ToolTip="绑定库位"
 | 
					 | 
				
			||||||
                        Content="绑定套餐"
 | 
					 | 
				
			||||||
                        Command="{Binding BindingDrug}"/>
 | 
					 | 
				
			||||||
                <Button
 | 
					 | 
				
			||||||
                        Margin="6 0 6 0"
 | 
					 | 
				
			||||||
                        Style="{StaticResource MaterialDesignOutlinedLightButton}"
 | 
					 | 
				
			||||||
                        ToolTip="解除绑定"
 | 
					 | 
				
			||||||
                        Content="解绑"
 | 
					 | 
				
			||||||
                        Command="{Binding RemoveBinding}" />
 | 
					 | 
				
			||||||
                <Button
 | 
					 | 
				
			||||||
                        Margin="0 0 6 0"
 | 
					 | 
				
			||||||
                        Style="{StaticResource MaterialDesignOutlinedLightButton}"
 | 
					 | 
				
			||||||
                        ToolTip="刷新"
 | 
					 | 
				
			||||||
                        Command="{Binding Query}"
 | 
					 | 
				
			||||||
                        Content="{materialDesign:PackIcon Refresh}"/>
 | 
					 | 
				
			||||||
            </StackPanel>
 | 
					 | 
				
			||||||
        </Grid>-->
 | 
					 | 
				
			||||||
        <Grid Margin="6" Grid.Column="0" >
 | 
					        <Grid Margin="6" Grid.Column="0" >
 | 
				
			||||||
            <Grid.Resources>
 | 
					            <Grid.Resources>
 | 
				
			||||||
                <Style TargetType="{x:Type Button}" BasedOn="{StaticResource MaterialDesignPaperLightButton}">
 | 
					                <Style TargetType="{x:Type Button}" BasedOn="{StaticResource MaterialDesignPaperLightButton}">
 | 
				
			||||||
| 
						 | 
					@ -145,44 +112,8 @@
 | 
				
			||||||
                <RowDefinition Height="Auto" />
 | 
					                <RowDefinition Height="Auto" />
 | 
				
			||||||
            </Grid.RowDefinitions>
 | 
					            </Grid.RowDefinitions>
 | 
				
			||||||
            <StackPanel HorizontalAlignment="Right" Orientation="Horizontal" Grid.ColumnSpan="2">
 | 
					            <StackPanel HorizontalAlignment="Right" Orientation="Horizontal" Grid.ColumnSpan="2">
 | 
				
			||||||
                <ComboBox
 | 
					 | 
				
			||||||
                    Margin="0 0 6 0"
 | 
					 | 
				
			||||||
                    Grid.Column="0"
 | 
					 | 
				
			||||||
                    materialDesign:HintAssist.Hint="药品名称/拼音码"
 | 
					 | 
				
			||||||
                    IsEditable="True"
 | 
					 | 
				
			||||||
                    ItemsSource="{Binding DrugInfos}"
 | 
					 | 
				
			||||||
                    SelectedItem="{Binding DrugInfo}"
 | 
					 | 
				
			||||||
                    DisplayMemberPath="drug_name_spec" IsEnabled="True" IsTextSearchEnabled="False" 
 | 
					 | 
				
			||||||
                />
 | 
					 | 
				
			||||||
                <TextBox
 | 
					 | 
				
			||||||
                Grid.Column="1"
 | 
					 | 
				
			||||||
                Text="{Binding BaseQuantity}"
 | 
					 | 
				
			||||||
                materialDesign:HintAssist.Hint="基数"
 | 
					 | 
				
			||||||
                Margin="16 0 32 6" Width="100"
 | 
					 | 
				
			||||||
                Style="{StaticResource MaterialDesignTextBoxBase}"/>
 | 
					 | 
				
			||||||
                <Button
 | 
					 | 
				
			||||||
                        Margin="6 0 6 6"
 | 
					 | 
				
			||||||
                        Style="{StaticResource MaterialDesignOutlinedLightButton}"
 | 
					 | 
				
			||||||
                        ToolTip="绑定库位"
 | 
					 | 
				
			||||||
                        Content="绑定"
 | 
					 | 
				
			||||||
                        Command="{Binding BindingDrug}"/>
 | 
					 | 
				
			||||||
                <Button
 | 
					 | 
				
			||||||
                        Margin="6 0 6 6"
 | 
					 | 
				
			||||||
                        Style="{StaticResource MaterialDesignOutlinedLightButton}"
 | 
					 | 
				
			||||||
                        ToolTip="解绑"
 | 
					 | 
				
			||||||
                        Content="解绑"
 | 
					 | 
				
			||||||
                        Command="{Binding RemoveBinding}" />
 | 
					 | 
				
			||||||
                <!--<Button
 | 
					 | 
				
			||||||
                        Margin="6 0 6 6"
 | 
					 | 
				
			||||||
                        ToolTip="打开药箱"
 | 
					 | 
				
			||||||
                        Content="打开全部药箱"
 | 
					 | 
				
			||||||
                        IsEnabled="{Binding IsEnable}"
 | 
					 | 
				
			||||||
                        Command="{Binding OpenBox}" 
 | 
					 | 
				
			||||||
                        materialDesign:ButtonProgressAssist.IsIndicatorVisible="{Binding Status, Converter={StaticResource StatusConverter}, ConverterParameter=opearBtnLoading}"
 | 
					 | 
				
			||||||
                        materialDesign:ButtonProgressAssist.IsIndeterminate="{Binding Status, Converter={StaticResource StatusConverter}, ConverterParameter=opearBtnLoading}"
 | 
					 | 
				
			||||||
                        Style="{StaticResource MaterialDesignOutlinedLightButton}" />-->
 | 
					 | 
				
			||||||
                <Button Margin="6 0 6 6"
 | 
					                <Button Margin="6 0 6 6"
 | 
				
			||||||
                        Content="保存修改"
 | 
					                        Content="保存"
 | 
				
			||||||
                        Command="{Binding SaveCommand}" 
 | 
					                        Command="{Binding SaveCommand}" 
 | 
				
			||||||
                        Style="{StaticResource MaterialDesignOutlinedLightButton}" />
 | 
					                        Style="{StaticResource MaterialDesignOutlinedLightButton}" />
 | 
				
			||||||
                <Button
 | 
					                <Button
 | 
				
			||||||
| 
						 | 
					@ -192,57 +123,79 @@
 | 
				
			||||||
                        Command="{Binding Query}"
 | 
					                        Command="{Binding Query}"
 | 
				
			||||||
                        Content="{materialDesign:PackIcon Refresh}"/>
 | 
					                        Content="{materialDesign:PackIcon Refresh}"/>
 | 
				
			||||||
            </StackPanel>
 | 
					            </StackPanel>
 | 
				
			||||||
            <ListView  Grid.ColumnSpan="2"
 | 
					            <DataGrid  Grid.ColumnSpan="2"
 | 
				
			||||||
                Padding="0 6 0 0" Grid.Row="1"
 | 
					                Padding="0 6 0 0"
 | 
				
			||||||
                ItemsSource="{Binding _ChannelLists, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"                
 | 
					                Grid.Row="1"
 | 
				
			||||||
                SelectedItem="{Binding _ChannelList}"
 | 
					 | 
				
			||||||
                materialDesign:ListViewAssist.HeaderRowBackground="#31ccec"
 | 
					 | 
				
			||||||
                materialDesign:DataGridAssist.ColumnHeaderPadding="10"
 | 
					                materialDesign:DataGridAssist.ColumnHeaderPadding="10"
 | 
				
			||||||
                materialDesign:ListViewAssist.ListViewItemPadding="13">
 | 
					                ItemsSource="{Binding ChannelStocks}"
 | 
				
			||||||
                <ListView.Resources>
 | 
					                materialDesign:ListViewAssist.HeaderRowBackground="#31ccec"
 | 
				
			||||||
                    <Style TargetType="{x:Type GridViewColumnHeader}" BasedOn="{StaticResource {x:Type GridViewColumnHeader}}">
 | 
					                materialDesign:DataGridAssist.EnableEditBoxAssist="False"
 | 
				
			||||||
                        <Setter Property="Foreground" Value="White" />
 | 
					                materialDesign:DataGridAssist.CellPadding="13"
 | 
				
			||||||
 | 
					                SelectionUnit="Cell"
 | 
				
			||||||
 | 
					                CanUserAddRows="False"
 | 
				
			||||||
 | 
					                AutoGenerateColumns="False">
 | 
				
			||||||
 | 
					                <DataGrid.Resources>
 | 
				
			||||||
 | 
					                    <Style TargetType="{x:Type DataGridColumnHeader}" BasedOn="{StaticResource MaterialDesignDataGridColumnHeader}">
 | 
				
			||||||
 | 
					                        <Setter Property="Background" Value="#31ccec" />
 | 
				
			||||||
 | 
					                        <Setter Property="Foreground" Value="white" />
 | 
				
			||||||
 | 
					                        <Setter Property="Height" Value="56" />
 | 
				
			||||||
 | 
					                        <Setter Property="BorderBrush" Value="white"/>
 | 
				
			||||||
 | 
					                        <Setter Property="BorderThickness" Value="0.6"/>
 | 
				
			||||||
 | 
					                        <Setter Property="HorizontalContentAlignment" Value="Center"/>
 | 
				
			||||||
                    </Style>
 | 
					                    </Style>
 | 
				
			||||||
                </ListView.Resources>
 | 
					                    <Style TargetType="{x:Type DataGridCell}" BasedOn="{StaticResource MaterialDesignDataGridCell}">
 | 
				
			||||||
                <ListView.View>
 | 
					                        <Style.Triggers>
 | 
				
			||||||
                    <GridView  ColumnHeaderContainerStyle="{StaticResource st}">
 | 
					                            <Trigger Property="IsReadOnly" Value="True">
 | 
				
			||||||
                        <GridViewColumn Width="180"
 | 
					                                <Setter Property="BorderBrush" Value="Transparent" />
 | 
				
			||||||
                        DisplayMemberBinding="{Binding Drug.DrugName}"
 | 
					                                <Setter Property="HorizontalAlignment" Value="Left"/>
 | 
				
			||||||
                        Header="药品名称"/>
 | 
					                            </Trigger>
 | 
				
			||||||
                        <GridViewColumn Width="150"
 | 
					                        </Style.Triggers>
 | 
				
			||||||
                        DisplayMemberBinding="{Binding Drug.Manufactory}"
 | 
					                    </Style>
 | 
				
			||||||
                        Header="厂家"/>
 | 
					                </DataGrid.Resources>
 | 
				
			||||||
                        <GridViewColumn Width="100"
 | 
					                <DataGrid.Columns>
 | 
				
			||||||
                        DisplayMemberBinding="{Binding Drug.DrugSpec}"
 | 
					                    <DataGridTextColumn Width="130"
 | 
				
			||||||
                        Header="规格"/>
 | 
					                        Binding="{Binding DrugInfo.DrugName}"
 | 
				
			||||||
                        <GridViewColumn Width="50"
 | 
					                        Header="药品名称"
 | 
				
			||||||
                        DisplayMemberBinding="{Binding BaseQuantity}"
 | 
					                        IsReadOnly="True"
 | 
				
			||||||
                        Header="基数"/>
 | 
					                        ElementStyle="{StaticResource MaterialDesignDataGridTextColumnStyle}"/>
 | 
				
			||||||
                        <GridViewColumn Header="批次">
 | 
					                    <DataGridTextColumn Width="100"
 | 
				
			||||||
                            <GridViewColumn.CellTemplate>
 | 
					                        Binding="{Binding DrugInfo.DrugSpec}"
 | 
				
			||||||
 | 
					                        Header="规格"
 | 
				
			||||||
 | 
					                        IsReadOnly="True"
 | 
				
			||||||
 | 
					                        ElementStyle="{StaticResource MaterialDesignDataGridTextColumnStyle}"/>
 | 
				
			||||||
 | 
					                    <!--<DataGridTextColumn Width="100"
 | 
				
			||||||
 | 
					                        Binding="{Binding BaseQuantity}"
 | 
				
			||||||
 | 
					                        Header="基数"
 | 
				
			||||||
 | 
					                        IsReadOnly="True"
 | 
				
			||||||
 | 
					                        ElementStyle="{StaticResource MaterialDesignDataGridTextColumnStyle}"/>-->
 | 
				
			||||||
 | 
					                    <DataGridTextColumn Width="100"
 | 
				
			||||||
 | 
					                        Binding="{Binding ManuNo}"
 | 
				
			||||||
 | 
					                        Header="批次"
 | 
				
			||||||
 | 
					                        IsReadOnly="True"
 | 
				
			||||||
 | 
					                        ElementStyle="{StaticResource MaterialDesignDataGridTextColumnStyle}"/>
 | 
				
			||||||
 | 
					                    <DataGridTextColumn Width="100"
 | 
				
			||||||
 | 
					                        Binding="{Binding Quantity}"
 | 
				
			||||||
 | 
					                        Header="库存"
 | 
				
			||||||
 | 
					                        IsReadOnly="True"
 | 
				
			||||||
 | 
					                        ElementStyle="{StaticResource MaterialDesignDataGridTextColumnStyle}"/>
 | 
				
			||||||
 | 
					                    <DataGridTemplateColumn Width="100"
 | 
				
			||||||
 | 
					                        Header="盘点数量">
 | 
				
			||||||
 | 
					                        <DataGridTemplateColumn.CellTemplate>
 | 
				
			||||||
                            <DataTemplate>
 | 
					                            <DataTemplate>
 | 
				
			||||||
                                    <ListBox Width="130" ItemsSource="{Binding channelStocks}" DisplayMemberPath="ManuNo" materialDesign:ListBoxItemAssist.ShowSelection="False"></ListBox>
 | 
					                                <TextBox Style="{StaticResource MaterialDesignDataGridTextColumnEditingStyle}">
 | 
				
			||||||
 | 
					                                    <TextBox.Text>
 | 
				
			||||||
 | 
					                                        <Binding Path="CheckQuantity" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged">
 | 
				
			||||||
 | 
					                                            <Binding.ValidationRules>
 | 
				
			||||||
 | 
					                                                <ExceptionValidationRule />
 | 
				
			||||||
 | 
					                                            </Binding.ValidationRules>
 | 
				
			||||||
 | 
					                                        </Binding>
 | 
				
			||||||
 | 
					                                    </TextBox.Text>
 | 
				
			||||||
 | 
					                                </TextBox>
 | 
				
			||||||
                            </DataTemplate>
 | 
					                            </DataTemplate>
 | 
				
			||||||
                            </GridViewColumn.CellTemplate>
 | 
					                        </DataGridTemplateColumn.CellTemplate>
 | 
				
			||||||
                        </GridViewColumn>
 | 
					                    </DataGridTemplateColumn>
 | 
				
			||||||
                        <GridViewColumn Header="库存" Width="50">
 | 
					                </DataGrid.Columns>
 | 
				
			||||||
                            <GridViewColumn.CellTemplate>
 | 
					            </DataGrid>
 | 
				
			||||||
                                <DataTemplate>
 | 
					 | 
				
			||||||
                                    <ListBox ItemsSource="{Binding channelStocks}" DisplayMemberPath="Quantity" materialDesign:ListBoxItemAssist.ShowSelection="False"></ListBox>
 | 
					 | 
				
			||||||
                                </DataTemplate>
 | 
					 | 
				
			||||||
                            </GridViewColumn.CellTemplate>
 | 
					 | 
				
			||||||
                        </GridViewColumn>
 | 
					 | 
				
			||||||
                        <!--<GridViewColumn Header="效期" Width="100">
 | 
					 | 
				
			||||||
                            <GridViewColumn.CellTemplate>
 | 
					 | 
				
			||||||
                                <DataTemplate>
 | 
					 | 
				
			||||||
                                    <ListBox ItemsSource="{Binding channelStocks}" DisplayMemberPath="EffDate" materialDesign:ListBoxItemAssist.ShowSelection="False"></ListBox>
 | 
					 | 
				
			||||||
                                </DataTemplate>
 | 
					 | 
				
			||||||
                            </GridViewColumn.CellTemplate>
 | 
					 | 
				
			||||||
                        </GridViewColumn>-->
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                    </GridView>
 | 
					 | 
				
			||||||
                </ListView.View>
 | 
					 | 
				
			||||||
            </ListView>
 | 
					 | 
				
			||||||
            <materialDesign:Snackbar
 | 
					            <materialDesign:Snackbar
 | 
				
			||||||
                Background="{Binding SnackbarBackground}"
 | 
					                Background="{Binding SnackbarBackground}"
 | 
				
			||||||
                MessageQueue="{Binding SnackbarMessageQueue}"/>
 | 
					                MessageQueue="{Binding SnackbarMessageQueue}"/>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,48 @@
 | 
				
			||||||
 | 
					<UserControl x:Class="DM_Weight.Views.Dialog.ConfirmDialog"
 | 
				
			||||||
 | 
					             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 | 
				
			||||||
 | 
					             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 | 
				
			||||||
 | 
					             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
 | 
				
			||||||
 | 
					             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
 | 
				
			||||||
 | 
					             xmlns:local="clr-namespace:DM_Weight.Views.Dialog"
 | 
				
			||||||
 | 
					             xmlns:prism="http://prismlibrary.com/"
 | 
				
			||||||
 | 
					             prism:ViewModelLocator.AutoWireViewModel="True"
 | 
				
			||||||
 | 
					             xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
 | 
				
			||||||
 | 
					             xmlns:convert="clr-namespace:DM_Weight.Converter"
 | 
				
			||||||
 | 
					             MinWidth="450"
 | 
				
			||||||
 | 
					             Width="Auto"
 | 
				
			||||||
 | 
					             Height="Auto"
 | 
				
			||||||
 | 
					             mc:Ignorable="d">
 | 
				
			||||||
 | 
					    <materialDesign:Card Padding="0">
 | 
				
			||||||
 | 
					        <Grid>
 | 
				
			||||||
 | 
					            <Grid.RowDefinitions>
 | 
				
			||||||
 | 
					                <RowDefinition Height="Auto" />
 | 
				
			||||||
 | 
					                <RowDefinition Height="Auto" />
 | 
				
			||||||
 | 
					                <RowDefinition Height="Auto" /> 
 | 
				
			||||||
 | 
					            </Grid.RowDefinitions>
 | 
				
			||||||
 | 
					            <Grid Background="#03a9f4" Grid.Row="0">
 | 
				
			||||||
 | 
					                <TextBlock VerticalAlignment="Center" Foreground="{DynamicResource PrimaryHueDarkForegroundBrush}" Margin="16 4 16 4" Style="{StaticResource MaterialDesignHeadline5TextBlock}" Text="{Binding Title}" />
 | 
				
			||||||
 | 
					                <Button
 | 
				
			||||||
 | 
					                        Style="{StaticResource MaterialDesignIconForegroundButton}"
 | 
				
			||||||
 | 
					                        Foreground="{DynamicResource PrimaryHueDarkForegroundBrush}"
 | 
				
			||||||
 | 
					                        HorizontalAlignment="Right"
 | 
				
			||||||
 | 
					                        Command="{Binding CancelCommand}"
 | 
				
			||||||
 | 
					                        ToolTip="关闭" Cursor="Hand"
 | 
				
			||||||
 | 
					                    >
 | 
				
			||||||
 | 
					                    <materialDesign:PackIcon Kind="Close" Width="34" Height="34" />
 | 
				
			||||||
 | 
					                </Button>
 | 
				
			||||||
 | 
					            </Grid>
 | 
				
			||||||
 | 
					            <Grid Grid.Row="1" Margin="0 4 0 4">
 | 
				
			||||||
 | 
					                <TextBlock VerticalAlignment="Center" FontSize="14" FontFamily="YouYuan" FontWeight="Bold" Margin="16 4 16 4" Style="{StaticResource MaterialDesignHeadline5TextBlock}" Text="{Binding ConfirmInfo,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
 | 
				
			||||||
 | 
					            </Grid>
 | 
				
			||||||
 | 
					            
 | 
				
			||||||
 | 
					            <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center">
 | 
				
			||||||
 | 
					                <Button Content="确认"  Margin="8" Command="{Binding ConfirmCommand}" />
 | 
				
			||||||
 | 
					                <Button Content="取消"  Margin="8" Command="{Binding CancelCommand}"/>
 | 
				
			||||||
 | 
					            </StackPanel>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            <!--<materialDesign:Snackbar
 | 
				
			||||||
 | 
					                Background="{Binding SnackbarBackground}"
 | 
				
			||||||
 | 
					                MessageQueue="{Binding SnackbarMessageQueue}"/>-->
 | 
				
			||||||
 | 
					        </Grid>
 | 
				
			||||||
 | 
					    </materialDesign:Card>
 | 
				
			||||||
 | 
					</UserControl>
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,28 @@
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Collections.Generic;
 | 
				
			||||||
 | 
					using System.Linq;
 | 
				
			||||||
 | 
					using System.Text;
 | 
				
			||||||
 | 
					using System.Threading.Tasks;
 | 
				
			||||||
 | 
					using System.Windows;
 | 
				
			||||||
 | 
					using System.Windows.Controls;
 | 
				
			||||||
 | 
					using System.Windows.Data;
 | 
				
			||||||
 | 
					using System.Windows.Documents;
 | 
				
			||||||
 | 
					using System.Windows.Input;
 | 
				
			||||||
 | 
					using System.Windows.Media;
 | 
				
			||||||
 | 
					using System.Windows.Media.Imaging;
 | 
				
			||||||
 | 
					using System.Windows.Navigation;
 | 
				
			||||||
 | 
					using System.Windows.Shapes;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace DM_Weight.Views.Dialog
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    /// <summary>
 | 
				
			||||||
 | 
					    /// ConfirmDialog.xaml 的交互逻辑
 | 
				
			||||||
 | 
					    /// </summary>
 | 
				
			||||||
 | 
					    public partial class ConfirmDialog : UserControl
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        public ConfirmDialog()
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            InitializeComponent();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue