Exemple #1
0
    public static void BindDDLHRMSYear(DropDownList ddl, string parameters)
    {
        EmpLeaveBalance _dalEmpLeaveBalance = null;
        Hashtable       _htParameters       = null;

        try
        {
            _dalEmpLeaveBalance            = new EmpLeaveBalance();
            _htParameters                  = new Hashtable();
            _htParameters["p_keywords"]    = "";
            _htParameters["p_Employee_ID"] = parameters;

            ddl.DataSource     = _dalEmpLeaveBalance.GetRowsYear(_htParameters);
            ddl.DataValueField = "YEAR";
            ddl.DataTextField  = "YEAR";
            ddl.DataBind();
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }