BKI_DichVuMatDat.US.US_V_F356_BAO_CAO_TRANG_THAI_LAO_DONG_CUA_NHAN_VIEN.LayDanhSachNhanVienDiLamTroLai C# (CSharp) Method

LayDanhSachNhanVienDiLamTroLai() public method

public LayDanhSachNhanVienDiLamTroLai ( System.DateTime v_ngay_hien_tai ) : DataSet
v_ngay_hien_tai System.DateTime
return System.Data.DataSet
        public DataSet LayDanhSachNhanVienDiLamTroLai(DateTime v_ngay_hien_tai)
        {
            CStoredProc v_sp = new CStoredProc("pr_lay_danh_sach_nv_ket_thuc_nghi_tam_thoi");
            v_sp.addDatetimeInputParam("@ip_dat_ngay_hien_tai",v_ngay_hien_tai);
            DataSet op_ds = new DataSet();
            op_ds.Tables.Add();
            v_sp.fillDataSetByCommand(this, op_ds);
            return op_ds;
        }

Usage Example

 private DataSet get_nv_het_nghi_tam_thoi()
 {
     try
     {
         DateTime v_ngay_hien_tai = DateTime.Now.Date;
         //DateTime v_ngay_hien_tai = Convert.ToDateTime("2016 - 05 - 01 00:00:00.000");
         US_V_F356_BAO_CAO_TRANG_THAI_LAO_DONG_CUA_NHAN_VIEN v_us = new US_V_F356_BAO_CAO_TRANG_THAI_LAO_DONG_CUA_NHAN_VIEN();
         DataSet v_ds = v_us.LayDanhSachNhanVienDiLamTroLai(v_ngay_hien_tai);
         return v_ds;
     }
     catch(Exception v_e)
     {
         CSystemLog_301.ExceptionHandle(v_e);
         return null;
     }
 }