Ejemplo n.º 1
0
        public bool Update(NoteUngVien data)
        {
            string id = $"{data.id_note_ung_vien}";

            data.id_note_ung_vien = string.Empty;
            data.ngay_sua         = XMedia.XUtil.TimeInEpoch(DateTime.Now);
            return(Update(_default_index, data, id));
        }
Ejemplo n.º 2
0
 public NoteUngVienUngVienMap(NoteUngVien note)
 {
     id_note_ung_vien = note.id_note_ung_vien;
     id_ung_vien      = note.id_ung_vien;
     ghi_chu          = note.ghi_chu;
     thuoc_tinh       = note.thuoc_tinh;
     ngay_sua         = note.ngay_sua;
     nguoi_tao        = note.nguoi_tao;
     nguoi_sua        = note.nguoi_sua;
     ngay_tao         = note.ngay_tao;
 }
Ejemplo n.º 3
0
        NoteUngVien ConvertDoc(IHit <NoteUngVien> hit)
        {
            NoteUngVien u = new NoteUngVien();

            try
            {
                u = hit.Source;
                u.id_note_ung_vien = hit.Id;
            }
            catch
            {
            }
            return(u);
        }
Ejemplo n.º 4
0
        public bool Index(NoteUngVien data)
        {
            int  retry = 0; int max_retry = 5;
            bool need_retry = true;

            while (retry++ < max_retry && need_retry)
            {
                need_retry = !Index(_default_index, data, "");
                if (need_retry)
                {
                    Task.Delay(1000).Wait();
                }
            }
            return(!need_retry);
        }
Ejemplo n.º 5
0
 public static bool Update(NoteUngVien data)
 {
     return(NoteUngVienRepository.Instance.Update(data));
 }
Ejemplo n.º 6
0
 public static bool Index(NoteUngVien data)
 {
     return(NoteUngVienRepository.Instance.Index(data));
 }