| | |
| | | |
| | | namespace HStation.WinFrmUI.Assets |
| | | { |
| | | public partial class AddPipeMainDlg : DevExpress.XtraEditors.XtraForm |
| | | public partial class AddAssetsPipeMainDlg : DevExpress.XtraEditors.XtraForm |
| | | { |
| | | public AddPipeMainDlg() |
| | | public AddAssetsPipeMainDlg() |
| | | { |
| | | InitializeComponent(); |
| | | this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; |
| | | } |
| | | |
| | | private Vmo.PipeMainVmo _PipeVmo = null; |
| | | private Vmo.AssetsPipeMainVmo _PipeVmo = null; |
| | | |
| | | public async void SetBindingData(long SeriesID) |
| | | { |
| | | _PipeVmo = new Vmo.PipeMainVmo(); |
| | | _PipeVmo = new Vmo.AssetsPipeMainVmo(); |
| | | _PipeVmo.SeriesID = SeriesID; |
| | | var allCaliber = await new Yw.BLL.SysDictData().GetByTypeCode("1"); |
| | | if (allCaliber != null) |
| | |
| | | TextEditMaterial.SelectedIndex = 0; |
| | | } |
| | | |
| | | public event Func<Vmo.PipeMainVmo, Task<bool>> ReloadDataEvent = null; |
| | | public event Func<Vmo.AssetsPipeMainVmo, Task<bool>> ReloadDataEvent = null; |
| | | |
| | | //数据验证 |
| | | private bool Valid() |
| | |
| | | TextEditManningValue.Text = null; |
| | | TextEditHazenValue.Text = null; |
| | | TextEditDarcyValue.Text = null; |
| | | var bll = new BLL.PipeRoughnessCoefficient(); |
| | | var bll = new BLL.AssetsPipeRoughnessCoefficient(); |
| | | var materialid = Convert.ToInt64(TextEditMaterial.EditValue); |
| | | var alllist = await bll.GetByPipeID(materialid); |
| | | if (alllist == null || alllist.Count == 0) |