Exemple #1
0
    public int Getupdatesound(string rmide)
    {
        NumberByBit nbt  = new NumberByBit();
        string      rmid = nbt.DecryptDES(rmide, "20120518");

        return(RemittancesDAL.Getupdatesound(rmid));
    }
Exemple #2
0
    public bool Checklgerror(string number, out int a)
    {
        NumberByBit nbt = new NumberByBit();

        number = nbt.DecryptDES(number, "20120518");
        a      = 0;
        return(true); // IndexBLL.CheckNotlogin(number, 2, out a);
    }
Exemple #3
0
    public bool VilidateLogin(string username, string ukp)
    {
        int         res      = 1;
        NumberByBit nbt      = new NumberByBit();
        string      desstnpi = nbt.DecryptDES(ukp, "20120518");

        string[] srmps = desstnpi.Split(',');
        if (srmps.Length == 3)
        {
            string uname = srmps[0];
            if (uname == username)
            {
                string pass = Encryption.Encryption.GetEncryptionPwd(srmps[1], username);  //加密密码

                string ip = srmps[2];

                res = RemittancesDAL.doOrgman(uname, pass, ip, 2);    //验证登录
            }
        }
        return(res == 0);
    }
Exemple #4
0
    public int DoControlRemit(int ctype, string rmidstr)
    {
        int         errorinfo = 0;
        int         ges       = -1;
        NumberByBit nbt       = new NumberByBit();
        string      desstrm   = nbt.DecryptDES(rmidstr, "20120518");

        string[] srmps = desstrm.Split(',');
        string   rmid  = "";
        string   oper  = "";
        string   opip  = "";

        if (srmps.Length >= 3)
        {
            rmid = srmps[0].ToString();
            oper = srmps[1].ToString();
            opip = srmps[2].ToString();
        }
        DataTable remittancedt = RemittancesDAL.GetRemittanceinfobyremid(rmid);

        if (remittancedt != null && remittancedt.Rows.Count > 0)
        {
            int    roltype       = Convert.ToInt32(remittancedt.Rows[0]["RemitStatus"]) == 0 ? 2 : 1;
            string orderid       = remittancedt.Rows[0]["RelationOrderID"].ToString();
            double totalrmbmoney = Convert.ToDouble(DBHelper.ExecuteScalar("select isnull(totalrmbmoney,0) from remtemp where  remittancesid='" + rmid + "'"));
            int    dotype        = 0;
            if (orderid == "")
            {
                dotype = 2;
            }
            else
            {
                dotype = 1;
            }

            ges = AddOrderDataDAL.OrderPayment(oper, orderid, opip, roltype, dotype, -1, oper, "", 3, ctype, 1, 1, rmid, totalrmbmoney, "");;// AddOrderDataDAL.PaymentChongzhi(desstrm, ctype);
        }
        double tomoney = 0;

        //if (ges == 0 || ges == 7)
        //{

        //// 短信
        //SqlConnection con = null;
        //SqlTransaction tran = null;

        //string info = string.Empty;
        //tomoney = Convert.ToDouble(DBHelper.ExecuteScalar("select isnull(totalrmbmoney,0) from dbo.remtemp where  remittancesid='" + rmid + "'"));
        //string acnumber = DBHelper.ExecuteScalar("select number from dbo.MemberRemittances where  remittancesid='" + rmid + "'").ToString();
        ////手机号码
        //object mt = DAL.DBHelper.ExecuteScalar("select  MobileTele from memberinfo where number ='" + acnumber + "'");
        //string sjhm = mt == null ? "" : mt.ToString();
        ////支付的金额
        //string zfje = tomoney.ToString("f2");

        //if (sjhm != "" && oper != "")
        //{
        //    string sendinfo = "管理员" + oper + "已经成功确认发展商 " + acnumber + " 的支付【" + zfje + "元人民币】,充值成功,请及时登录查看!";
        //    if (ges == 7)
        //    {
        //        sendinfo = "管理员" + oper + "已经成功确认发展商 " + acnumber + " 的支付【" + zfje + "元人民币】,发展商 " + acnumber + " 的账号已成功激活,请及时登录查看!";
        //    }
        //    try
        //    {

        //        con = DAL.DBHelper.SqlCon();
        //        con.Open();
        //        tran = con.BeginTransaction();

        //        bool bo = true;// BLL.MobileSMS.SendMsgMode(tran, "", sendinfo, acnumber, sjhm, "", Model.SMSCategory.sms_Active);

        //        if (bo)
        //            tran.Commit();
        //        else
        //            tran.Rollback();
        //    }
        //    catch (Exception ee)
        //    {
        //        if (tran != null)
        //            tran.Rollback();
        //    }
        //    finally
        //    {
        //        con.Close();
        //    }

        //}
        //    errorinfo = 1;
        //}
        //else
        //{
        //    errorinfo = 0;
        //}
        return(ges);
    }