| | |
| | | using Mapster; |
| | | using Yw.DAL.Basic; |
| | | using Yw.Dto; |
| | | |
| | | namespace HStation.WinFrmUI.Basic |
| | |
| | | public SetSysPropChoiceDlg() |
| | | { |
| | | InitializeComponent(); |
| | | this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; |
| | | } |
| | | |
| | | private Yw.BLL.SysPropChoice _bll = null; |
| | |
| | | choiceitem.PropID = _PropID; |
| | | AddSysPropChoices.Add(choiceitem); |
| | | } |
| | | if (await _bll.Inserts(AddSysPropChoices)) |
| | | |
| | | var alllist = await _bll.GetByPropID(_PropID); |
| | | foreach (var item in alllist) |
| | | { |
| | | await _bll.DeleteByID(item.ID); |
| | | } |
| | | if (AddSysPropChoices.Count == 0) |
| | | { |
| | | MessageBoxHelper.ShowSuccess("设置成功!"); |
| | | } |
| | | else if (await _bll.Inserts(AddSysPropChoices)) |
| | | { |
| | | MessageBoxHelper.ShowSuccess("设置成功!"); |
| | | } |