private void bindData()
        {
            WorkPeriod workPeriod = new WorkPeriod();
            workPeriod.period_code = txtPeriodCode.Text.Trim();
            workPeriod.period_name = txtPeriodName.Text.Trim();
            workPeriod.period_description = txtPeriodDesc.Text.Trim();
            workPeriod.open_period_by = txtOpenPeriodBy.Text.Trim();
            workPeriod.close_period_by = txtClosePeriodBy.Text.Trim();

            grdWorkPeriod.AutoGenerateColumns = false;
            grdWorkPeriod.DataSource = ServiceProvider.WorkPeriodService.FindWorkPeriod(workPeriod);

            grdWorkPeriod.DataMember = "Table";
            grdWorkPeriod.AllowUserToAddRows = false;
            grdWorkPeriod.AllowUserToDeleteRows = false;
            grdWorkPeriod.ReadOnly = true;
        }