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

FillDatasetChamCong() public method

public FillDatasetChamCong ( DataSet v_ds, string ip_str_thang, string ip_str_nam ) : void
v_ds System.Data.DataSet
ip_str_thang string
ip_str_nam string
return void
        public void FillDatasetChamCong(DataSet v_ds, string ip_str_thang, string ip_str_nam)
        {
            CStoredProc v_cstore = new CStoredProc("pr_GET_DU_LIEU_CHAM_CONG");
            v_cstore.addDecimalInputParam("@thang", CIPConvert.ToDecimal(ip_str_thang));
            v_cstore.addDecimalInputParam("@nam", CIPConvert.ToDecimal(ip_str_nam));
            v_cstore.fillDataSetByCommand(this, v_ds);
        }

Same methods

US_GD_CHAM_CONG::FillDatasetChamCong ( DataSet op_ds, string thang, string nam, decimal id_nv ) : void

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.FillDatasetChamCong(v_ds, m_txt_thang.ToString(), m_txt_nam.ToString(), v_id_nhan_vien);
     m_pv.DataSource = v_ds.Tables[0];
 }