/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void barBtnNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var ets = gvProduce.GetSelectedDataSource<T_ERP_ProduceMater>(); if (ets == null || ets.Count() < 1) { MsgBox.ShowMessage("没有选择一笔生产单!"); return; } var vw = new NewRecvMaterView(); vw.EditMode = Ultra.Business.Core.Define.EnViewEditMode.New; vw.ProMaters = ets; InitView(vw); if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK) { barBtnRefresh_ItemClick(null, null); } }
private void pBtnRecvMater_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var ets = gcProduce.GetSelectedDataSource<T_ERP_ProduceMater>(); if (ets == null || ets.Count < 1) return; var vw = new NewRecvMaterView(); vw.ProMaters = ets; if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK) { } }
void barBtnEdt_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var ets = gcRecvMater.GetSelectedDataSource<T_ERP_RecvMater>(); if (ets == null || ets.Count() < 1) return; var vw = new NewRecvMaterView(); vw.EditMode = Ultra.Business.Core.Define.EnViewEditMode.Edit; vw.RecvMater = ets; InitView(vw); if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK) { barBtnRefresh_ItemClick(null, null); } }