BKI_DichVuMatDat.US.US_RPT_LUONG_V2.FillDatasetProcBangKeKhaiThuNhap2016 C# (CSharp) Method

FillDatasetProcBangKeKhaiThuNhap2016() public method

public FillDatasetProcBangKeKhaiThuNhap2016 ( DataSet v_ds, System.DateTime ip_dat_tu_thang, System.DateTime ip_dat_den_thang ) : void
v_ds System.Data.DataSet
ip_dat_tu_thang System.DateTime
ip_dat_den_thang System.DateTime
return void
        public void FillDatasetProcBangKeKhaiThuNhap2016(DataSet v_ds, DateTime ip_dat_tu_thang, DateTime ip_dat_den_thang)
        {
            CStoredProc v_cstore = new CStoredProc("pr_QTT_bang_ke_khai_thu_nhap_GetAll_2016");
            v_cstore.addDatetimeInputParam("@ngay_bat_dau", ip_dat_tu_thang);
            v_cstore.addDatetimeInputParam("@ngay_ket_thuc", ip_dat_den_thang);
            v_cstore.fillDataSetByCommand(this, v_ds);
        }

Usage Example

 private void load_data_to_grid()
 {
     US_RPT_LUONG_V2 v_us = new US_RPT_LUONG_V2();
     DataSet v_ds = new DataSet();
     v_ds.Tables.Add(new DataTable());
     v_us.FillDatasetProcBangKeKhaiThuNhap2016(v_ds, m_dat_tu_thang.DateTime, m_dat_den_thang.DateTime);
     m_grc_tong_hop.DataSource = v_ds.Tables[0];
     if(v_ds.Tables[0].Rows.Count != 0)
     {
         m_lbl_nam_2.Text = m_dat_tu_thang.DateTime.Year.ToString();
         m_lbl_nam_2.ForeColor = Color.Maroon;
         m_lbl_nam_2.Font = new Font("Tahoma", 18, FontStyle.Bold);
         format_grid();
         hien_thi_cac_o_text_box(v_ds);
     }
     else
     {
         MessageBox.Show("Không có dữ liệu cho năm " + m_dat_tu_thang.DateTime.Year.ToString() + " . Vui lòng kiểm tra lại thông tin!");
         m_lbl_nam_2.Text = "";
     }
 }
US_RPT_LUONG_V2