Advertisement

05.27.2007 at 02:55PM PDT, ID: 22597390
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

i need to get orders the over the days parm for every customer

Asked by Tech_Men in C# Programming Language

Tags: ,

hi there , i have orders list  that i need to get only if the days and the open are open by parm are over from the order date
for exsample :

i have 4 customers and every one of the have a diffrent day aleart  for open order
cust 1 has 30 days
cust 2 has 45 days
if there is an open orders for cust 1 and 30 days are over from the order date i need to pull it out from the db .....i am c# Sql2000 Db .

this is the code that i write for this opration :

ad = new SqlDataAdapter( "selectHasbonitNum,SapakNum,HasbonitDate,SahHakol,
TaneiTaslom,dbo.Hasboniot.CustName from dbo.Hasboniot inner join dbo.Customers on SapakNum=CustNum " +
" where dbo.Hasboniot.OutOrIn=1 and dbo.Hasboniot.SholamYoN=0 and dbo.Hasboniot.HasType=0",Con);

                  ad.Fill(ds);
           
                  foreach(DataRow row in ds.Tables[0].Rows)
                  {
                        act=false;
                        temp1 = row[0].ToString();
                        dt = DateTime.Parse(row[2].ToString());
                        try
                        {
                              days = Int32.Parse(row[4].ToString()); // this is the days parm for every cust
                              int num = dt.DayOfYear;
                              int num1 = DateTime.Now.DayOfYear;
                              sum=Decimal.Parse(row[3].ToString());
                              name = row[5].ToString();
                              Snum = Int32.Parse(row[1].ToString());
                              temp = num1-num;

                        }
                        catch
                        {
                              act=true;
                        }
                        if((temp > days) && (act==false))
                        {
                              
                              DataRow newrow = dsc.Tables[0].NewRow();

                              newrow[0]=temp1;
                              newrow[1]=dt.ToShortDateString();
                              newrow[2]=sum;
                              newrow[3]=name;
                              newrow[4]=Snum;
                              newrow[5]=days;
                              int tot = temp-days;
                              newrow[6]=tot;

                              dsc.Tables[0].Rows.Add(newrow);
                              
                        }
                        
ths is working good the problem is when there is 1 year diffrent from the order date to the days parm value
what do i need to do ?

thanks ....
Start Free Trial
 
Loading Advertisement...
 
[+][-]05.27.2007 at 07:52PM PDT, ID: 19165919

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C# Programming Language
Tags: get, sum
Sign Up Now!
Solution Provided By: DireOrbAnt
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.28.2007 at 12:16AM PDT, ID: 19166377

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.28.2007 at 01:20PM PDT, ID: 19168907

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32