protected void gvwList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        switch (e.CommandName)
        {
        case "Edit":
            Response.Redirect("jengolongandtl.aspx?action=edt&id=" + e.CommandArgument);
            break;

        case "Delete":
            reff_jenis_golonganDAL _dalreff_jenis_usahaDAL = null;
            Hashtable _htParameters = null;

            try
            {
                _dalreff_jenis_usahaDAL = new reff_jenis_golonganDAL();
                _htParameters           = new Hashtable();

                _htParameters["p_id"] = e.CommandArgument.ToString();

                _dalreff_jenis_usahaDAL.Delete(_htParameters);
                this.BindGrid();
                Response.Redirect("jenusahalst.aspx");
            }
            catch (Exception ex)
            {
                Utility.ShowMessageBox(this, Utility.LOAD_DATA_FAIL_MESSAGE, ex, null);
            }
            break;
        }
    }
    private void SaveData()
    {
        reff_jenis_golonganDAL _dalreff_jenis_golonganDAL = null;
        Hashtable _htParameters = null;
        int       iNextID       = 0;

        try
        {
            _dalreff_jenis_golonganDAL = new reff_jenis_golonganDAL();
            _htParameters = new Hashtable();

            MPF23.Shared.Mapper.UIToDB.Map(pnlBody.Controls, _htParameters);
            Utility.ApplyDefaultProp(_htParameters);

            if (Request.Params["action"] == "add")
            {
                _dalreff_jenis_golonganDAL.Insert(_htParameters, ref iNextID);
            }
            else
            {
                _dalreff_jenis_golonganDAL.Update(_htParameters);
                iNextID = Int32.Parse(lblid.Text);
            }

            Utility.ShowMessageBox(this, Utility.SAVE_DATA_SUCCESS_MESSAGE, null, "jengolongandtl.aspx?action=edt&id=" + iNextID.ToString());
        }
        catch (Exception ex)
        {
            Utility.ShowMessageBox(this, Utility.SAVE_DATA_FAIL_MESSAGE, ex, null);
        }
    }
    private void BindGrid()
    {
        reff_jenis_golonganDAL _dalreff_jenis_golonganDAL = null;
        Hashtable _htParameters = null;

        try
        {
            _dalreff_jenis_golonganDAL = new reff_jenis_golonganDAL();
            _htParameters = new Hashtable();

            _htParameters["p_keywords"] = txtSearch.Text;

            gvwList.DataSource = _dalreff_jenis_golonganDAL.GetRows(_htParameters);
            gvwList.DataBind();
        }
        catch (Exception ex)
        {
            Utility.ShowMessageBox(this, Utility.LOAD_DATA_FAIL_MESSAGE, ex, null, null);
        }
    }
    private void LoadData()
    {
        reff_jenis_golonganDAL _dalreff_jenis_golonganDAL = null;
        Hashtable _htParameters = null;

        try
        {
            //System.Diagnostics.Debugger.Break();

            _dalreff_jenis_golonganDAL = new reff_jenis_golonganDAL();
            _htParameters = new Hashtable();

            _htParameters["p_id"] = Request.Params["id"];
            DataTable _dt = _dalreff_jenis_golonganDAL.GetRow(_htParameters);
            MPF23.Shared.Mapper.DBToUI.Map(pnlBody.Controls, _dt.Rows[0]);
        }
        catch (Exception ex)
        {
            Utility.ShowMessageBox(this, Utility.LOAD_DATA_FAIL_MESSAGE, ex, null);
        }
    }