private void LoadEntity() { this.endUser.Dependency = srvDependency.GetById(Convert.ToInt32(this.frmEndUser.uceDetDependency.Value)); this.endUser.Name = this.frmEndUser.txtDetName.Text; this.endUser.Activated = true; this.endUser.Deleted = false; }
private void LoadEntity() { this.opportunity.OpportunityType = this.srvOpportunityType.GetById( Convert.ToInt32(this.frmOpportunity.uceDetOpportunityType.Value)); this.opportunity.Organization = srvOrganization.GetById(Convert.ToInt32(this.frmOpportunity.uceDetOrganization.Value)); this.opportunity.Bidder = srvBidder.GetById(Convert.ToInt32(this.frmOpportunity.uceDetBidder.Value)); this.opportunity.Dependency = srvDependency.GetById(Convert.ToInt32(this.frmOpportunity.uceDetDependency.Value)); this.opportunity.EndUser = srvEndUser.GetById(Convert.ToInt32(this.frmOpportunity.uceDetEndUser.Value)); this.opportunity.Asesor = srvAsesor.GetById(Convert.ToInt32(this.frmOpportunity.uceDetAsesor.Value)); this.opportunity.OpportunityStatus = this.srvOpportunityStatus.GetById( Convert.ToInt32(this.frmOpportunity.uceDetOpportunityStatus.Value)); this.opportunity.IsLOR = this.frmOpportunity.uchkDetIsLOR.Checked; this.opportunity.Deadline = (Nullable <DateTime>) this.frmOpportunity.dteDetDeadline.Value; this.opportunity.PreRevisionDate = (Nullable <DateTime>) this.frmOpportunity.dteDetPrerevisionDate.Value; this.opportunity.RegistrationDate = (Nullable <DateTime>) this.frmOpportunity.dteDetRegistrationDate.Value; this.opportunity.AcquisitionReason = this.frmOpportunity.txtDetAcquisitionReason.Text; this.opportunity.Name = this.frmOpportunity.txtDetOpportunityName.Text; this.LoadOpportunityLogs(); this.opportunity.Activated = true; this.opportunity.Deleted = false; }