コード例 #1
0
        public Guid InsertDirectAccount(Common.DomainAccount domainAccount)
        {
            Guid guid = Guid.NewGuid();

            try
            {
                base.ExecuteSPCommand("InsertDirectAccount", "@Guid", guid,
                                      "@Type", domainAccount.Type,
                                      "@UserName", domainAccount.LastName,
                                      "@Password", domainAccount.LastName,
                                      "@FirstName", domainAccount.FirstName,
                                      "@CompanyName", domainAccount.CompanyName,
                                      "@Address", domainAccount.Address,
                                      "@City", domainAccount.City,
                                      "@Province", domainAccount.Province,
                                      "@Country", domainAccount.Country,
                                      "@PostalCode", domainAccount.PostalCode,
                                      "@Telephone", domainAccount.Telephone,
                                      "@CreateDate", domainAccount.CreateDate,
                                      "@UserGuid", domainAccount.UserGuid);
                return(guid);
            }
            catch
            {
                guid = Guid.Empty;
                return(guid);
            }
        }
コード例 #2
0
        public Guid InsertNicAccountActualPerson(Common.DomainAccount domainAccount)
        {
            Guid guid = Guid.NewGuid();

            try
            {
                base.ExecuteSPCommand("InsertNicAccountActualPerson", "@Guid", guid,
                                      "@Type", domainAccount.Type,
                                      "@FirstName", domainAccount.FirstName,
                                      "@LastName", domainAccount.LastName,
                                      "@NationalCode", domainAccount.NationalCode,
                                      "@CompanyName", domainAccount.CompanyName,
                                      "@Address", domainAccount.Address,
                                      "@City", domainAccount.City,
                                      "@Province", domainAccount.Province,
                                      "@Country", domainAccount.Country,
                                      "@PostalCode", domainAccount.PostalCode,
                                      "@Telephone", domainAccount.Telephone,
                                      "@FaxNumber", domainAccount.FaxNumber,
                                      "@Email", domainAccount.Email,
                                      "@NICType", domainAccount.NICType,
                                      "@CreateDate", domainAccount.CreateDate,
                                      "@UserGuid", domainAccount.UserGuid);
                return(guid);
            }
            catch
            {
                guid = Guid.Empty;
                return(guid);
            }
        }