Exemple #1
0
 void barBtnNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var vw = new MaterialInStockAdd();
     vw.EditMode = Ultra.Business.Core.Define.EnViewEditMode.New;
     if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         barBtnRefresh_ItemClick(null, null);
     }
 }
Exemple #2
0
 void barBtnEdt_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var et = gcUnAudit.GetFocusedDataSource<UltraDbEntity.T_ERP_InStockMatMaster>();
     if (null == et) return;
     var vw = new MaterialInStockAdd();
     vw.Ent = et;
     vw.EditMode = Ultra.Business.Core.Define.EnViewEditMode.Edit;
     if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         barBtnRefresh_ItemClick(null, null);
     }
 }