EDN Admin
Well-known member
<span style="font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:14px I have one listitem and i am adding this listitem to a list multiple times with one property difference...
<span style="font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:14px i.e listitem have DateOfService property..k...
<span style="font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:14px then i am adding first item to list... its fine
<span style="font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:14px and i am changing DateOfService property and adding again...
<span style="font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:14px but the previous added item DateOfService also changeing....
<span style="font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:14px how can i overcome this problem...
<strong style="margin:0px; padding:0px; border:0px; font-size:14px; vertical-align:baseline; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif sampleCode
<pre class="prettyprint if (bills[index].FrequencyId == Convert.ToInt32(Frequency.Daily))
{
for (int day = 0; day < remainedDays; day++)
{
bills[index].DateOfService = DateTime.Now.Date.AddDays(day).Date;
remainedBills.Add(bills[index]);
}
}[/code]
<span style="font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:14px Hi i did this also but no use...<br/>
<pre class="prettyprint if (bills[index].FrequencyId == Convert.ToInt32(Frequency.Daily))
{
AdmissionEntryVo objAdmissionEntryVo = null;
for (int day = 0; day < remainedDays; day++)
{
objAdmissionEntryVo = new AdmissionEntryVo();
objAdmissionEntryVo = bills[index];
objAdmissionEntryVo.DateOfService = DateTime.Now.Date.AddDays(day).Date;
remainedBills.Add(objAdmissionEntryVo);
}
}[/code]
<br/>
<strong style="margin:0px; padding:0px; border:0px; font-size:14px; vertical-align:baseline; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif <span style="font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:14px
View the full article
<span style="font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:14px i.e listitem have DateOfService property..k...
<span style="font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:14px then i am adding first item to list... its fine
<span style="font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:14px and i am changing DateOfService property and adding again...
<span style="font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:14px but the previous added item DateOfService also changeing....
<span style="font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:14px how can i overcome this problem...
<strong style="margin:0px; padding:0px; border:0px; font-size:14px; vertical-align:baseline; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif sampleCode
<pre class="prettyprint if (bills[index].FrequencyId == Convert.ToInt32(Frequency.Daily))
{
for (int day = 0; day < remainedDays; day++)
{
bills[index].DateOfService = DateTime.Now.Date.AddDays(day).Date;
remainedBills.Add(bills[index]);
}
}[/code]
<span style="font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:14px Hi i did this also but no use...<br/>
<pre class="prettyprint if (bills[index].FrequencyId == Convert.ToInt32(Frequency.Daily))
{
AdmissionEntryVo objAdmissionEntryVo = null;
for (int day = 0; day < remainedDays; day++)
{
objAdmissionEntryVo = new AdmissionEntryVo();
objAdmissionEntryVo = bills[index];
objAdmissionEntryVo.DateOfService = DateTime.Now.Date.AddDays(day).Date;
remainedBills.Add(objAdmissionEntryVo);
}
}[/code]
<br/>
<strong style="margin:0px; padding:0px; border:0px; font-size:14px; vertical-align:baseline; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif <span style="font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:14px
View the full article