public XDocument Serialize()
 {
     return(new XDocument(new XElement(EspdNames.Qarp + nameof(QualificationApplicationResponse),
                                       new XAttribute(XNamespace.Xmlns + "cbc", UblNames.Cbc),
                                       new XAttribute(XNamespace.Xmlns + "cac", UblNames.Cac),
                                       UBLVersionID.Serialize(nameof(UBLVersionID)),
                                       CustomizationID.Serialize(nameof(CustomizationID)),
                                       ProfileID.Serialize(nameof(ProfileID)),
                                       ID?.Serialize(nameof(ID)),
                                       CopyIndicator.Serialize(nameof(CopyIndicator)),
                                       UUID.Serialize(nameof(UUID)),
                                       ContractFolderID.Serialize(nameof(ContractFolderID)),
                                       IssueDate.Serialize(nameof(IssueDate)),
                                       IssueTime.Serialize(nameof(IssueTime)),
                                       EconomicOperatorGroupName.Serialize(nameof(EconomicOperatorGroupName)),
                                       VersionID.Serialize(nameof(VersionID)),
                                       PreviousVersionID.Serialize(nameof(PreviousVersionID)),
                                       ProcedureCode.Serialize(nameof(ProcedureCode)),
                                       QualificationApplicationTypeCode.Serialize(nameof(QualificationApplicationTypeCode)),
                                       WeightScoringMethodologyNote.Serialize(nameof(WeightScoringMethodologyNote)),
                                       WeightingTypeCode.Serialize(nameof(WeightingTypeCode)),
                                       ContractingParty?.Serialize(),
                                       EconomicOperatorParty?.Serialize(nameof(EconomicOperatorParty)),
                                       ProcurementProject?.Serialize(),
                                       ProcurementProjectLots?.Select(lot => lot.Serialize()),
                                       TenderingCriteria?.Select(c => c.Serialize()),
                                       TenderingCriterionResponses?.Select(r => r.Serialize()),
                                       AdditionalDocumentReferences?.Select(d => d.Serialize()),
                                       Evidences?.Select(e => e.Serialize())
                                       )));
 }
예제 #2
0
 protected override string[] GetContent()
 {
     return(new[]
     {
         ID.ToString("X"),
         ProfileID.ToString(),
         CreationTime.ToString(),
         ContactName,
         ContactPhone,
         ContaclEMail
     });
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (JwtIssuer != null ? JwtIssuer.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (UserName != null ? UserName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (UserID != null ? UserID.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ProfileID != null ? ProfileID.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TokenID != null ? TokenID.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ConsumerKey != null ? ConsumerKey.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Scope;
         hashCode = (hashCode * 397) ^ (int)Role;
         return(hashCode);
     }
 }
예제 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.CheckUserSession();
     this.CheckQueryString();
     if (!Page.IsPostBack)
     {
         this.SelectRecordDiscount();
         if (IsAdmin.ToString() == "True")
         {
             CompanyInformationEditingPage             = "AdminCompanyEdit.aspx";
             this.Session["AdminEditCompanyProfileID"] = ProfileID.ToString();
         }
         else
         {
             CompanyInformationEditingPage = "UserProfile_Edit.aspx";
         }
     }
 }