示例#1
0
文件: UCLR.cs 项目: dadotnetkid/OFMIS
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmAddEditLR frm = new frmAddEditLR(new Liquidations()
            {
                ObRId = this.obligations.Id
            }, MethodType.Add);

            frm.ShowDialog();
            Init();
        }
示例#2
0
文件: UCLR.cs 项目: dadotnetkid/OFMIS
 private void btnEditPORepo_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (LRGridView.GetFocusedRow() is Liquidations item)
     {
         UnitOfWork unitOfWork = new UnitOfWork();
         item = unitOfWork.LiquidationsRepo.Find(x => x.Id == item.Id);
         frmAddEditLR frm = new frmAddEditLR(item, MethodType.Edit);
         frm.ShowDialog();
         Init();
     }
 }