public static void SetInfoBoxExt(PLInfoBox Info, long NGUOI_CAP_NHAT, DateTime? NGAY_CAP_NHAT) { if (NGUOI_CAP_NHAT > 0) { Info._init(DMFWNhanVien.GetFullName(NGUOI_CAP_NHAT), NGAY_CAP_NHAT.ToString()); Info.Enabled = true; } else { Info.Enabled = false; } }
public static void UpdateInfo_Duyet(PLInfoBox Info, DOChiTietCongViec Phieu) { try { string Duyet1 = "4"; try { Duyet1 = Phieu.GetType().GetProperty("DUYET").GetValue(Phieu, null).ToString().Trim(); } catch { } string NguoiCapNhat = GetFullName(Phieu.GetType().GetProperty("NGUOI_CAP_NHAT").GetValue(Phieu, null)); string NgayCapNhat = Phieu.GetType().GetProperty("NGAY_CAP_NHAT").GetValue(Phieu, null).ToString(); if (Duyet1 == "2" || Duyet1 == "3") { Info._init(NguoiCapNhat, NgayCapNhat, GetFullName(Phieu.GetType().GetProperty("NGUOI_DUYET").GetValue(Phieu, null)), Phieu.GetType().GetProperty("NGAY_DUYET").GetValue(Phieu, null).ToString()); } else { Info._init(NguoiCapNhat, NgayCapNhat); } } catch { } }
public static void InitDuyetInfoExt(PLInfoBox Info, PLDuyetCombobox DuyetCtrl, DOPhieu Phieu) { try { string Duyet = "4"; try { Duyet = Phieu.GetType().GetProperty("DUYET").GetValue(Phieu, null).ToString().Trim(); DuyetCtrl.SetDuyet(Phieu); } catch { } string NguoiCapNhat = DMFWNhanVien.GetFullName(Phieu.GetType().GetProperty("NGUOI_CAP_NHAT").GetValue(Phieu, null)); string NgayCapNhat = Phieu.GetType().GetProperty("NGAY_CAP_NHAT").GetValue(Phieu, null).ToString(); if (Duyet == "2" || Duyet == "3") { Info._init(NguoiCapNhat, NgayCapNhat, DMFWNhanVien.GetFullName(Phieu.GetType().GetProperty("NGUOI_DUYET").GetValue(Phieu, null)), Phieu.GetType().GetProperty("NGAY_DUYET").GetValue(Phieu, null).ToString()); } else { Info._init(NguoiCapNhat, NgayCapNhat); } DuyetCtrl.Enabled = false; } catch { } }