new_khsfda khsfd = new new_khsfda();

            // 检查收费详细分类
            DateTime d = Convert .ToDateTime(zhdqsj);
            int nowm = DateTime .Now.Month;
            int m=d.Month;
            int nowy = DateTime .Now.Year;
            int dqyeay = d.Year;
            if (dqyeay > nowy)
            {
                // 到期年份大于当前年份,则为提交续费
                Picklist d1 = new Picklist();
                d1.Value = 2;
                khsfd.new_sfxxfl = d1;
            }
            else if (dqyeay < nowy)
            {
                // 到期年份小于当前年份,则为续开续费
                Picklist d1 = new Picklist();
                d1.Value = 3;
                khsfd.new_sfxxfl = d1;
            }
            else
            {
                int mym = m-nowm; // 到期的月份 - 减当前月份
                if (mym > 0)  //
                {
                    Picklist d3 = new Picklist();   //提前续费
                    d3.Value = 2;
                    khsfd.new_sfxxfl = d3;
                }
                else if (mym < 0)
                {
                    Picklist d3 = new Picklist();   //续开续费
                    d3.Value = 3;
                    khsfd.new_sfxxfl = d3;
                }
                else
                {
                    Picklist d3 = new Picklist();   //到期续费
                    d3.Value = 1;
                    khsfd.new_sfxxfl = d3;
                }
            }
最后修改:2012 年 05 月 03 日
卧槽,全是白嫖客,服务器不要钱吗?