Ejemplo n.º 1
0
 //新增
 void barBtnNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var vw = new SendGoodsEdt();
     vw.EditMode = Business.Core.Define.EnViewEditMode.New;
     if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         barBtnRefresh_ItemClick(null, null);
     }
 }
Ejemplo n.º 2
0
 void barBtnEdt_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var vw = new SendGoodsEdt();
     UltraDbEntity.T_ERP_Delivery et = null;
     switch (tbMain.SelectedTabPage.Text)
     {
         case "未审核":
             et = gcUnAudit.GetFocusedDataSource<UltraDbEntity.T_ERP_Delivery>();
             vw.isAudit = false;
             break;
         case "已打印":
             et = gcPrint.GetFocusedDataSource<UltraDbEntity.T_ERP_Delivery>();
             vw.isAudit = false;
             break;
         case "已审核":
             et = gcAudit.GetFocusedDataSource<UltraDbEntity.T_ERP_Delivery>();
             vw.isAudit = true;
             break;
     }
     if (null == et) return;
     vw.EditMode = Business.Core.Define.EnViewEditMode.Edit;
     vw.Delivery = et;
     if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         barBtnRefresh_ItemClick(null, null);
     }
 }