- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
// export in csv - part of the code
// ...
foreach (users_view _item in _users_view)
{
_writer.Write(String.Format("{1}{0}{2}{0}{3}{0}{4}{0}{5}{0}{6}{0}{7}{0}{8}{0}{9}{0}{10}{0}{11}{0}{12}{0}{13}{0}{14}{0}{15}{0}{16}{0}{17}{0}{18}{0}{19}{0}{20}{0}{21}{0}{22}{0}{23}{0}{24}\n",
AppSettingsReader.GetValue("CSVFileSeparator"),
@"""" + _item.title_name + @"""", @"""" + _item.first_name + @"""",
@"""" + _item.last_name + @"""", @"""" + _item.job_title + @"""",
@"""" + _item.user_type_name + @"""",
@""""+_item.company_name+@"""",
(_item.telephone != null) ? (@"""" + _item.telephone + @"""") : (""),
(_item.fax != null) ? (@"""" + _item.fax + @"""") : (""),
@"""" + _item.email + @"""",
(_item.account_email != null) ? (@"""" + _item.account_email + @"""") : (""),
@"""" + _item.site_address + @"""",
@"""" + _item.advertisement_source_name+@"""",
@"""" + _item.address_1+@"""",
(_item.address_2 != null) ? (@"""" + _item.address_2+@"""") : (""),
@"""" + _item.country_name+@"""",
//_item.email_format_name,
(_item.postcode != null) ? (@"""" + _item.postcode+@"""") : (""),
(_item.county != null) ? (@"""" + _item.county+@"""") : (""),
@"""" + _item.town + @"""",
// (_item.is_active == false) ? ("No") : ("Yes"),
@"""" + _item.username+@"""",
@"""" + _item.password+@"""",
@"""" + _item.account_type_name + @"""",
@"""" + _item.creation_date + @"""",
(_item.is_newsletter_subscriber == false) ? ("No") : ("Yes"),
(_item.is_marketing_subscriber == false) ? ("No") : ("Yes")
)
);
}
tonic 14.10.2009 12:21 # 0
guest 14.10.2009 12:57 # 0
тоже лисперы покусали. эпидемия.
guest 14.10.2009 13:20 # 0
xeonix 14.10.2009 15:07 # 0
@"""" доставляет)))
guest 14.10.2009 20:47 # 0
пъянь 22.10.2009 12:29 # 0
guest 26.10.2009 22:51 # 0