コード例 #1
0
    protected DataTable TarikData(string SPNAME)
    {
        GeneralDAL _dal = null;
        Hashtable  _ht  = null;
        DataTable  dt   = null;

        try
        {
            _dal = new GeneralDAL();
            _ht  = new Hashtable();
            dt   = new DataTable();

            _ht["p_dateMonth"] = ddlBulan.SelectedItem.Text;
            _ht["p_dateYear"]  = ddlTahun.SelectedItem.Text;
            _ht["p_user"]      = Shared.CurrentUID;
            _ht["p_ip"]        = Shared.CurrentIPAddress;

            dt = _dal.GetTarikData(SPNAME, _ht);
        }
        catch (Exception ex)
        {
            Message(ex.Message);
            dt = null;
        }

        return(dt);
    }