示例#1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            string   strdt   = objwallet.getCurDateString();
            DateTime dt      = DateTime.Parse(strdt);
            int      intDate = dt.Day;

            if (dt.DayOfWeek != DayOfWeek.Saturday)
            {
                if (dt.DayOfWeek != DayOfWeek.Sunday)
                {
                    int intCount = obj.executeScalar_int("SELECT COUNT(1) FROM mlm_holidays WHERE holiday_date = '" + strdt + "' AND status=1");
                    if (intCount == 0)
                    {
                        //	CommonMessages.ShowAlertMessage(strdt);
                        obj.executeNonQuery("CALL update_profit_share()");
                        obj.executeNonQuery("INSERT INTO `mlm_schedulers`(`schedule_task`, `created_on`) VALUES ('Profit Share','" + objwallet.getCurDateTimeString() + "')");
                    }
                }
            }
            else
            {
                //		CommonMessages.ShowAlertMessage_Reload("Message", "overview.aspx");
            }
        }
        catch (Exception ex)
        {
        }
    }
示例#2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string strdt = objwallet.getCurDateString();

        int intCount = obj.executeScalar_int("SELECT COUNT(1) FROM mlm_binary_daily_payout WHERE DATE(binary_date)=DATE('" + strdt + "')");

        if (intCount == 0)
        {
            obj.executeNonQuery("CALL UpdateBinary()");
            obj.executeNonQuery("INSERT INTO `mlm_schedulers`(`schedule_task`, `created_on`) VALUES ('Binary Income','" + objwallet.getCurDateString() + "')");
        }
    }
示例#3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         obj.executeNonQuery("CALL SP_award()");
         obj.executeNonQuery("CALL SP_Rank()");
         obj.executeNonQuery("INSERT INTO `mlm_schedulers`(`schedule_task`, `created_on`) VALUES ('Award - Rank','" + objwallet.getCurDateString() + "')");
     }
     catch (Exception ex) { }
 }