Esempio n. 1
0
 private void add_yzgzp_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     LPFrm frm = new LPFrm();
     frm.Kind = "yzgzp";
     frm.Status = "add";
     if (frm.ShowDialog() == DialogResult.OK)
     {
         InitData();
     }
 }
Esempio n. 2
0
 private void edit_yzgzp_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     LPFrm frm = new LPFrm();
     frm.Kind = "yzgzp";
     frm.Status = "edit";
     LP_Record record = MainHelper.PlatformSqlMap.GetOneByKey<LP_Record>((gridView1.GetFocusedRow() as LP_Record).ID);
     if (record!=null)
     {
         frm.CurrRecord = record;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             InitData();
         }
     }
 }