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

FillDatasetKeKhaiThueDoubleClick() public method

public FillDatasetKeKhaiThueDoubleClick ( DataSet v_ds, decimal v_id_nhan_vien, System.DateTime ip_dat_tu_thang, System.DateTime ip_dat_den_thang ) : void
v_ds System.Data.DataSet
v_id_nhan_vien decimal
ip_dat_tu_thang System.DateTime
ip_dat_den_thang System.DateTime
return void
        public void FillDatasetKeKhaiThueDoubleClick(DataSet v_ds, decimal v_id_nhan_vien, DateTime ip_dat_tu_thang, DateTime ip_dat_den_thang)
        {
            CStoredProc v_cstore = new CStoredProc("pr_QTT_bang_ke_khai_thu_nhap_detail_Get");
            v_cstore.addDatetimeInputParam("@ngay_bat_dau", ip_dat_tu_thang);
            v_cstore.addDatetimeInputParam("@ngay_ket_thuc", ip_dat_den_thang);
            v_cstore.addDecimalInputParam("@id_nhan_vien", v_id_nhan_vien);
            v_cstore.fillDataSetByCommand(this, v_ds);
        }

Usage Example

 internal void DisplayForPresent(decimal v_id_nhan_vien, DateTime ip_dat_tu_thang, DateTime ip_dat_den_thang)
 {
     US_RPT_LUONG_V2 v_us = new US_RPT_LUONG_V2();
     DataSet v_ds = new DataSet();
     DataTable v_dt = new DataTable();
     v_ds.Tables.Add(v_dt);
     v_us.FillDatasetKeKhaiThueDoubleClick(v_ds, v_id_nhan_vien, ip_dat_tu_thang, ip_dat_den_thang);
     m_grc_tong_hop.DataSource = v_ds.Tables[0];
     fill_du_lieu(v_ds);
     m_adv_tong_hop.BestFitColumns();
     m_adv_tong_hop.ExpandAllGroups();
     m_lbl_nam_2.Text = ip_dat_tu_thang.Year.ToString();
     m_lbl_nam_2.ForeColor = Color.Maroon;
     m_lbl_nam_2.Font = new Font("Tahoma", 18, FontStyle.Bold);
     this.ShowDialog();
 }
US_RPT_LUONG_V2