public US_GD_LUONG_CUNG(decimal i_dbID)
 {
     pm_objDS = new DS_GD_LUONG_CUNG();
     pm_strTableName = c_TableName;
     IMakeSelectCmd v_objMkCmd = new CMakeAndSelectCmd(pm_objDS, c_TableName);
     v_objMkCmd.AddCondition("ID", i_dbID, eKieuDuLieu.KieuNumber, eKieuSoSanh.Bang);
     SqlCommand v_cmdSQL;
     v_cmdSQL = v_objMkCmd.getSelectCmd();
     this.FillDatasetByCommand(pm_objDS, v_cmdSQL);
     pm_objDR = getRowClone(pm_objDS.Tables[pm_strTableName].Rows[0]);
 }
 private decimal find_id_gd_luong_cung(decimal ip_dc_id_nhan_vien)
 {
     //US_DUNG_CHUNG v_us = new US_DUNG_CHUNG();
     //DataSet v_ds = new DataSet();
     //v_ds.Tables.Add(new DataTable());
     //throw new Exception("Sua lai khong dung FillDataSetWithTableName nua nhe");
     // v_us.FillDatasetWithTableName(v_ds, "GD_LUONG_CUNG");
     US_GD_LUONG_CUNG v_us = new US_GD_LUONG_CUNG();
     DS_GD_LUONG_CUNG v_ds = new DS_GD_LUONG_CUNG();
     v_us.FillDataset(v_ds);
     string v_str_filter = "ID_NHAN_VIEN = " + ip_dc_id_nhan_vien + " AND DA_XOA = 'N'";
     DataRow[] v_dr = v_ds.Tables[0].Select(v_str_filter);
     if (v_dr.Count() == 0)
     {
         return -1;
     }
     else
     {
         return CIPConvert.ToDecimal(v_dr.First()["ID"].ToString());
     }
 }
 public US_GD_LUONG_CUNG()
 {
     pm_objDS = new DS_GD_LUONG_CUNG();
     pm_strTableName = c_TableName;
     pm_objDR = pm_objDS.Tables[pm_strTableName].NewRow();
 }
 private decimal find_id_gd_luong_cung(decimal ip_dc_id_nhan_vien)
 {
     US_GD_LUONG_CUNG v_us = new US_GD_LUONG_CUNG();
     DS_GD_LUONG_CUNG v_ds = new DS_GD_LUONG_CUNG();
     v_us.FillDataset(v_ds);
     string v_str_filter = "ID_NHAN_VIEN = " + ip_dc_id_nhan_vien + " AND DA_XOA = 'N'";
     DataRow[] v_dr = v_ds.Tables[0].Select(v_str_filter);
     if (v_dr.Count() == 0)
     {
         return -1;
     }
     else
     {
         return CIPConvert.ToDecimal(v_dr.First()["ID"].ToString());
     }
 }