private void DisplayWorkTypeInfo(int id)
    {
        IWorkTypeService WorkTypeService = null;
        WorkType         mWorkType       = null;

        try
        {
            // Create service.
            WorkTypeService            = AppService.Create <IWorkTypeService>();
            WorkTypeService.AppManager = this.mAppManager;
            // retrieve data
            mWorkType = new WorkType(id);
            mWorkType = WorkTypeService.Retrieve(id);
            //this.spnMessage.InnerHtml = "";
            hiddenEntityId.Value = "0";
            if (mWorkType != null)
            {
                hiddenEntityId.Value       = id.ToString();
                txtEntityName.Value        = mWorkType.Name;
                txtEntityDescription.Value = mWorkType.Description;
                //drpActivity.SelectedIndex = mWorkType.ActivityTypeId;
                drpActivity.SelectedValue = mWorkType.ActivityTypeId.ToString();
                //drpActivity.Items.FindByValue(mWorkType.ActivityTypeId.ToString()).Selected = true;for Html Drop Control
                chkEntityConsiderForReport.Checked = mWorkType.ConsiderForReport;
                chkEntityActive.Checked            = mWorkType.IsActive;
                txtEntityReason.Value = string.Empty;
                if (drpActivity.SelectedValue.ToString() == "1")
                {
                    chkEntityConsiderForReport.Disabled = true;
                }
                else
                {
                    chkEntityConsiderForReport.Disabled = false;
                    //chkEntityConsiderForReport.Checked = mWorkType.ConsiderForReport;
                    //chkEntityActive.Checked = mWorkType.IsActive;
                    //txtEntityReason.Value = string.Empty;
                }
            }
            // Show/Hide the controls.
            //this.ShowHideEditControls(true);
        }
        catch { throw; }
        finally
        {
            if (WorkTypeService != null)
            {
                WorkTypeService.Dispose();
            }
            WorkTypeService = null;
        }
    }