| | |
| | | TextEditNo.Text = string.Empty; |
| | | TextEditProductCode.Text = string.Empty; |
| | | var bll = new Yw.BLL.SysPropStruct(); |
| | | var catlog = await bll.GetByCatalogID(_catalogID); |
| | | if (catlog == null) |
| | | try |
| | | { |
| | | this.propGroupChoiceViewModelBindingSource.ResetBindings(false); |
| | | return; |
| | | } |
| | | _proplist.Clear(); |
| | | foreach (var item in catlog) |
| | | { |
| | | foreach (var prop in item.PropList) |
| | | var catlog = await bll.GetByCatalogID(_catalogID); |
| | | if (catlog == null) |
| | | { |
| | | _proplist.Add(new PropGroupChoiceViewModel() { PropGroupName = item.Name, PropName = prop.Name, ID = prop.ID, Value = prop.DefaultValue }); |
| | | this.propGroupChoiceViewModelBindingSource.ResetBindings(false); |
| | | return; |
| | | } |
| | | _proplist.Clear(); |
| | | foreach (var item in catlog) |
| | | { |
| | | foreach (var prop in item.PropList) |
| | | { |
| | | _proplist.Add(new PropGroupChoiceViewModel() { PropGroupName = item.Name, PropName = prop.Name, ID = prop.ID, Value = prop.DefaultValue }); |
| | | } |
| | | } |
| | | this.propGroupChoiceViewModelBindingSource.ResetBindings(false); |
| | | } |
| | | this.propGroupChoiceViewModelBindingSource.ResetBindings(false); |
| | | catch |
| | | { |
| | | |
| | | } |
| | | } |
| | | |
| | | // 删除产品 |