private SystemConfigGroup GetData() { SystemConfigGroup entity = new SystemConfigGroup(); entity.system_configuration_group_code = txtCode.Text; entity.system_configuration_group_name = txtName.Text; entity.system_configuration_group_description = txtDescription.Text; entity.created_by = ""; entity.created_date = DateTime.Now; entity.updated_by = ""; entity.updated_date = DateTime.Now; return entity; }
private void LoadData() { SystemConfigGroup entity = new SystemConfigGroup(); if (mode == ObjectState.Edit && !string.IsNullOrEmpty(keyCode)) { entity.system_configuration_group_code = keyCode; entity = ServiceProvider.SystemConfigGroupService.FindByKeys(entity, true); txtCode.Text = entity.system_configuration_group_code; txtName.Text = entity.system_configuration_group_name; txtDescription.Text = entity.system_configuration_group_description; } else { txtCode.Text = string.Empty; txtName.Text = string.Empty; txtDescription.Text = string.Empty; } EnableMode(); }