PDA收费录入判断收费详细分类

作者: 傻猫    分类: 搞软件     发布时间: 05-03 17:43    浏览次数: 7711     2 条留言

             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;
                }
            }
Tags: 收费, pda

已有 2 条评论 »

  1. Ev1n

    刚留言了,也不知道留哪去了

  2. Ev1n

    请问一下,如果给crm2011的ribbon上加了一个自己的按钮,然后想设置当点击这个按钮的时候执行一段程序,比如说新建一个account的entity该如何实现,我现在可以实现在crm之外用c#可以添加,修改crm中的entity例如account和contact,但不知道如何把这些程序整合到crm中,并且跟已经加好的按钮联系起来,本人crm初学者,求指教,可以发送邮箱lilin.vic@gmail.com,谢谢

添加新评论