Example #1
0
        private void Them_Tai_Lieu(List <object>ids)
        {
            if (ids != null && ids.Count > 0)
            {
                DataRow row = gridViewMaster.GetDataRow(gridViewMaster.FocusedRowHandle);

                frmThemTaiLieu frm = new frmThemTaiLieu(-2, true, HelpNumber.ParseInt64(row["ID"]));
                frm.UpdateTapTin += new frmThemTaiLieu.UpdateTapTinHandler(frm_UpdateTapTin);
                ProtocolForm.ShowModalDialog(this, frm);
               load_gridview(HelpNumber.ParseInt64(row["ID"]));
                //Fix.PLRefresh();
            }
        }
Example #2
0
 private void btnThemCV_Click(object sender, EventArgs e)
 {
     frmThemTaiLieu frm = new frmThemTaiLieu(-2, true);
     frm.UpdateTapTin += new frmThemTaiLieu.UpdateTapTinHandler(frm_UpdateTapTin);
     ProtocolForm.ShowModalDialog(this, frm);
     load_TapTin(_ID);
 }
Example #3
0
 private void rep_sua_Click(object sender, EventArgs e)
 {
     if (IsAdd != null)
     {
         DataRow r = layoutView1.GetDataRow(layoutView1.FocusedRowHandle);
         if (r != null)
         {
             frmThemTaiLieu frm = new frmThemTaiLieu(HelpNumber.ParseInt64(r["ID"]), false);
             try
             {
                 frm.UpdateTapTin += new frmThemTaiLieu.UpdateTapTinHandler(frm_UpdateTapTin1);
                 ProtocolForm.ShowModalDialog(this, frm);
                 load_TapTin(_ID);
             }
             catch (Exception ex)
             {
                 PLException.AddException(ex);
                 HelpSysLog.AddException(ex, "");
             }
         }
     }
 }
Example #4
0
        private void btnThemCV_Click(object sender, EventArgs e)
        {
            if (btnThemCV.Tag.Equals("ThemCV"))
            {
                Congviec frm = new Congviec(-2, true);
                frm.UpdateCongViec += new Congviec.UpdateCongViecHandler(frm_UpdateCongViec);
                ProtocolForm.ShowModalDialog(this, frm);

                loadDetail(_ID);
                zoombarTienDo.Value = (int)lay_tiendo();
            }
            else
            {
                frmThemTaiLieu frm = new frmThemTaiLieu(-2, true);
                frm.UpdateTapTin += new frmThemTaiLieu.UpdateTapTinHandler(frm_UpdateTapTin);
                ProtocolForm.ShowModalDialog(this, frm);
                load_TapTin(_ID);
            }
        }