Example #1
0
 void barBtnNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var vw = new EdtView();
     vw.EditMode = Business.Core.Define.EnViewEditMode.New;
     if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         barBtnRefresh_ItemClick(null, null);
     }
 }
Example #2
0
 void barBtnEdt_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var vw = new EdtView();
     UltraDbEntity.T_ERP_AfterSale et = null;
     switch (tabMain.SelectedTabPage.Text)
     {
         case "未处理":
             et = gcUnAudit.GetFocusedDataSource<UltraDbEntity.T_ERP_AfterSale>();
             break;
         case "已审核":
             et = gcAudit.GetFocusedDataSource<UltraDbEntity.T_ERP_AfterSale>();
             vw.isAudit = true;
             break;
     }
     if (null == et) return;
     vw.EditMode = Business.Core.Define.EnViewEditMode.Edit;
     vw.AfterSale = et;
     if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         barBtnRefresh_ItemClick(null, null);
     }
 }