Esempio n. 1
0
    public string ChuyenGiaBongDaCharged(string userId, string price, string Request_ID)
    {
        var          webServiceCharging3G = new WebServiceCharging3g();
        const string userName             = "******";
        const string userPass             = "******";
        const string cpId = "1930";
        //const string price = "1000";
        const string content     = "Charged chay cung Euro @2016";
        const string serviceName = "CGBD_Euro_2016";
        string       returnValue = webServiceCharging3G.PaymentVnmWithAccount(userId, price, content, serviceName, userName, userPass, cpId);

        //if (returnValue == "1")//CHARGED THANHCONG
        //{
        #region LOG DOANH THU

        //var logInfo = new ThanTaiChargedUserLogInfo();
        //logInfo.User_ID = userId;
        //logInfo.Request_ID = Request_ID;
        //logInfo.Service_ID = "979";
        //logInfo.Command_Code = "AB";
        //logInfo.Registration_Channel = "SMS";
        //logInfo.Status = 1;
        //logInfo.Operator = "vnmobile";
        //logInfo.Price = ConvertUtility.ToInt32(price);
        //logInfo.Reason = returnValue;

        //ViSport_S2_Registered_UsersController.Euro_ChargedUser_InsertLog(logInfo);
        var logInfo = new ThanTaiChargedUserLogInfo();
        logInfo.User_ID              = userId;
        logInfo.Request_ID           = Request_ID;
        logInfo.Service_ID           = "979";
        logInfo.Command_Code         = "TT";
        logInfo.Registration_Channel = "SMS";
        logInfo.Status   = 1;
        logInfo.Operator = "vnmobile";
        logInfo.Price    = ConvertUtility.ToInt32(price);
        logInfo.Reason   = "Succ";

        ViSport_S2_Registered_UsersController.ThanTai_ChargedUser_InsertLog(logInfo);
        #endregion
        //}


        return(returnValue);
    }
Esempio n. 2
0
    public string CapSoThanTaiCharged(string userId, string Request_ID, string Service_ID)
    {
        var          webServiceCharging3G = new WebServiceCharging3g();
        const string userName             = "******";
        const string userPass             = "******";
        const string cpId        = "1930";
        const string price       = "1000";
        const string content     = "Charged CSTT";
        const string serviceName = "CSTT_DuDoan";
        string       returnValue = webServiceCharging3G.PaymentVnmWithAccount(userId, price, content, serviceName, userName, userPass, cpId);

        if (returnValue == "1")//CHARGED THANHCONG
        {
            #region LOG DOANH THU

            //DataTable dtUsers = ViSport_S2_Registered_UsersController.GetSportGameHeroUserInfoActive(userId);
            //DataRow dr = dtUsers.Rows[0];

            var logInfo = new ThanTaiChargedUserLogInfo();
            logInfo.User_ID              = userId;
            logInfo.Request_ID           = Request_ID;
            logInfo.Service_ID           = Service_ID;
            logInfo.Command_Code         = "TT";
            logInfo.Registration_Channel = "SMS";
            logInfo.Status   = 1;
            logInfo.Operator = "vnmobile";
            logInfo.Price    = ConvertUtility.ToInt32(price);
            logInfo.Reason   = "Succ";

            ViSport_S2_Registered_UsersController.ThanTai_ChargedUser_InsertLog(logInfo);

            #endregion
        }


        return(returnValue);
    }