BKI_DichVuMatDat.US.US_GD_CHAM_CONG.FillDatasetChamCongTongHop C# (CSharp) Method

FillDatasetChamCongTongHop() public method

public FillDatasetChamCongTongHop ( DataSet v_ds, string ip_thang, string ip_nam, decimal ip_id_nhan_vien ) : void
v_ds System.Data.DataSet
ip_thang string
ip_nam string
ip_id_nhan_vien decimal
return void
        public void FillDatasetChamCongTongHop(DataSet v_ds, string ip_thang, string ip_nam, decimal ip_id_nhan_vien)
        {
            CStoredProc v_cstore = new CStoredProc("pr_GET_CHAM_CONG_TONG_HOP");
            v_cstore.addNVarcharInputParam("@thang", ip_thang);
            v_cstore.addNVarcharInputParam("@nam", ip_nam);
            v_cstore.addDecimalInputParam("@id_nhan_vien", ip_id_nhan_vien);
            v_cstore.fillDataSetByCommand(this, v_ds);
        }

Usage Example

 private void load_data_to_m_pv()
 {
     decimal v_id_nhan_vien;
     if (m_sle_chon_nhan_vien.EditValue == null)
         v_id_nhan_vien = -1;
     else
         v_id_nhan_vien = CIPConvert.ToDecimal(m_sle_chon_nhan_vien.EditValue.ToString());
     US_GD_CHAM_CONG v_us = new US_GD_CHAM_CONG();
     DataSet v_ds = new DataSet();
     v_ds.Tables.Add(new DataTable());
     v_us.FillDatasetChamCongTongHop(v_ds, m_str_thang, m_str_nam, v_id_nhan_vien);
     m_pv.DataSource = v_ds.Tables[0];
 }