Beispiel #1
0
 void barBtnEdt_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var et = gridView1.GetFocusedDataSource<UltraDbEntity.T_ERP_WareLoc>();
     if (null == et) return;
     var wv = new LocEdt();
     wv.Entity = et;
     wv.LocCalr = LocCalr;
     wv.EditMode = Business.Core.Define.EnViewEditMode.Edit;
     InitView(wv);
     if (wv.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         barBtnRefresh_ItemClick(null, null);
     }
 }
Beispiel #2
0
 void barBtnNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var vw = new LocEdt();
     vw.LocCalr = LocCalr;
     vw.EditMode = Business.Core.Define.EnViewEditMode.New;
     InitView(vw);
     if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         barBtnRefresh_ItemClick(null, null);
     }
 }