private void BindGrid() { EmpSPDDAL _dalEmpSPD = null; Hashtable _htParameters = null; try { _dalEmpSPD = new EmpSPDDAL(); _htParameters = new Hashtable(); _htParameters["p_keywords"] = txtSearch.Text; _htParameters["p_status"] = "0"; if (Session[SessionKey.CURRENT_USER_HRMS_ROLE].ToString() == "1") { _htParameters["p_Employee_Code"] = lblEmployee_Code.Text; } gvwList.DataSource = _dalEmpSPD.GetRows(_htParameters); gvwList.DataBind(); } catch (Exception ex) { Utility.ShowMessageBox(this, Utility.LOAD_DATA_FAIL_MESSAGE, ex, null, null); } }
public static void Bind_HRMS_PopUp_SPD(string refName, GridView gvw, string parameternya) { try { var dal = new EmpSPDDAL(); var htParameters = new Hashtable(); var tableName = refName; htParameters["p_keywords"] = parameternya; gvw.DataSource = dal.GetRows(htParameters); gvw.DataBind(); } catch (Exception ex) { throw ex; } }