Пример #1
0
        protected void pageInit()
        {
            string[] DDLSOURCE = PUB.PUB.getBankList();
            ArrayAdapter ddlADP = new ArrayAdapter<string>(this, Android.Resource.Layout.SimpleListItem1, DDLSOURCE);
            ddlADP.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem);
            FindViewById<Spinner>(Resource.Id.LoginRegBank_BANKLIST).Adapter = ddlADP;

            if (ISCHANGE != null && ISCHANGE != "")
            {
                FindViewById<Button>(Resource.Id.LoginRegBank_USERSKIP).Visibility = ViewStates.Gone;
                SortedList SDList = new SortedList();
                SDList["@USERID"] = PUB.PUBLogin.getUSERID();
                PUB.PUBWeb TT = new PUB.PUBWeb();
                DataTable dt = TT.WebDBSqlDT("PRO_SYS_USERQUERY", SDList);
                if (dt != null && dt.Rows.Count > 0)
                {
                    DataRow dr = dt.Rows[0];
                    string strUSERBANK = dr["USERBANK"].ToString();
                    string strUSERBANKNO = dr["USERBANKNO"].ToString();
                    int iBANKINDEX = PUB.PUB.getBankListIndex(strUSERBANK);
                    if (iBANKINDEX >= 0)
                    {
                        FindViewById<Spinner>(Resource.Id.LoginRegBank_BANKLIST).SetSelection(iBANKINDEX, true);
                    }
                    FindViewById<TextView>(Resource.Id.LoginRegBank_USERBANKNO).Text = strUSERBANKNO;
                }
            }
            else
            {
                FindViewById<TextView>(Resource.Id.LoginRegBank_BACK).Visibility = ViewStates.Gone;
            }
        }
Пример #2
0
        protected void proOpt(string strCommand, string strKeyID)
        {
            #region GETMARK
            if (strCommand == "GETMARK")
            {
                string strCurrTelNo = FindViewById<EditText>(Resource.Id.LoginPass_USERTEL).Text;
                if (strCurrTelNo == "" || strCurrTelNo.Length != 11)
                {
                    funAlert("��������Ч���ֻ��ţ�");
                    return;
                }
                PUB.PUB.getCurrMibioMark(strCurrTelNo);
                FindViewById<Button>(Resource.Id.LoginPass_GETTELMARK).Enabled = false;
                funAlert("��֤�����ѷ�������ע����գ�");
            }
            #endregion

            #region SUBMIT
            if (strCommand == "SUBMIT")
            {
                string strCurrTelNo = FindViewById<EditText>(Resource.Id.LoginPass_USERTEL).Text;
                string strCurrTelMark = FindViewById<EditText>(Resource.Id.LoginPass_USERTELMARK).Text;
                string strUserPassOld = FindViewById<EditText>(Resource.Id.LoginPass_USERPASSWORD).Text;
                string strUserPassConfirm = FindViewById<EditText>(Resource.Id.LoginPass_USERPASSCONFRM).Text;
                string strUserPass = CHE9000WAP.PUB.COMMON.MD5Encrypt(strUserPassOld);
                if (strCurrTelNo == "" || strCurrTelNo.Length != 11)
                {
                    funAlert("��������Ч���ֻ��ţ�");
                    return;
                }
                if (strUserPassConfirm == "" || strUserPassConfirm != strUserPassOld)
                {
                    funAlert("���������벢����ȷ�����룡");
                    return;
                }

                string strCheckMark = PUB.PUB.getCurrMibioMark(strCurrTelNo, strCurrTelMark);
                if (strCheckMark != "")
                {
                    funAlert(strCheckMark);
                    FindViewById<Button>(Resource.Id.LoginPass_GETTELMARK).Enabled = true;
                    return;
                }

                PUB.PUBWeb TT = new PUB.PUBWeb();
                SortedList SDList = new SortedList();
                SDList["@USERTEL"] = strCurrTelNo;
                SDList["@USERPASS"] = strUserPass;
                string strBack = TT.WebDBExec("PRO_SYS_USERCHANGEPASS", SDList);
                if (strBack != "")
                {
                    funAlert(strBack);
                }
                else
                {
                    funAlert("���³ɹ�", 1);
                }
            }
            #endregion

            #region FINISH
            if (strCommand == "FINISH")
            {
                Finish();
            }
            #endregion
        }
Пример #3
0
        protected void proOpt(string strCommand, string strKeyID)
        {
            #region SKIP
            if (strCommand == "SKIP")
            {
                string strUserType = PUB.PUBLogin.getUSERTYPE();
                Intent intent = new Intent();
                if (strUserType == "0")
                {
                    intent.SetClass(this, typeof(MainClient));
                }
                if (strUserType == "1")
                {
                    intent.SetClass(this, typeof(MainServe));
                }
                StartActivity(intent);
                Finish();
            }
            #endregion

            #region SUBMIT
            if (strCommand == "SUBMIT")
            {
                int ddlIndex = FindViewById<Spinner>(Resource.Id.LoginRegBank_BANKLIST).SelectedItemPosition;
                string[] DDLSOURCE = PUB.PUB.getBankList();
                SortedList SDList = new SortedList();
                SDList["@USERID"] = PUB.PUBLogin.getUSERID();
                SDList["@USERBANK"] = DDLSOURCE[ddlIndex];
                SDList["@USERBANKNO"] = FindViewById<EditText>(Resource.Id.LoginRegBank_USERBANKNO).Text;
                PUB.PUBWeb TT = new PUB.PUBWeb();
                string strBack = TT.WebDBExec("PRO_SYS_USERREGBANK",SDList);
                funAlert(strBack);
            }
            #endregion

            #region FINISH
            if (strCommand == "FINISH")
            {
                Finish();
            }
            #endregion
        }