BKI_DichVuMatDat.US.US_GD_CHAM_CONG_LAM_THEM.FillDatasetGetChamCongTheoThang C# (CSharp) Method

FillDatasetGetChamCongTheoThang() public method

public FillDatasetGetChamCongTheoThang ( DS_GD_CHAM_CONG_LAM_THEM v_ds, string ip_str_thang, string ip_str_nam ) : void
v_ds DS_GD_CHAM_CONG_LAM_THEM
ip_str_thang string
ip_str_nam string
return void
        public void FillDatasetGetChamCongTheoThang(DS_GD_CHAM_CONG_LAM_THEM v_ds, string ip_str_thang, string ip_str_nam)
        {
            CStoredProc v_cstore = new CStoredProc("pr_CC_lam_them_Get_theo_thang");
            v_cstore.addDecimalInputParam("@ip_thang", ip_str_thang);
            v_cstore.addDecimalInputParam("@ip_nam", ip_str_nam);
            v_cstore.fillDataSetByCommand(this, v_ds);
        }

Usage Example

 private decimal get_so_luong_cham_cong()
 {
     US_GD_CHAM_CONG_LAM_THEM v_us = new US_GD_CHAM_CONG_LAM_THEM();
     DS_GD_CHAM_CONG_LAM_THEM v_ds = new DS_GD_CHAM_CONG_LAM_THEM();
     v_us.FillDatasetGetChamCongTheoThang(v_ds, m_txt_thang.Text, m_txt_nam.Text);
     return v_ds.Tables[0].Rows.Count;
 }