Exemple #1
0
        protected void BatchPass_Click(object sender, EventArgs e)
        {
            string str = "";

            if (!string.IsNullOrEmpty(base.Request["CheckBoxGroup"]))
            {
                str = base.Request["CheckBoxGroup"];
            }
            else
            {
                this.ShowMsg("参数错误!", false);
                return;
            }
            int[] serialids = Array.ConvertAll <string, int>(str.Split(new char[] { ',' }), s => Globals.ToNum(s));
            Dictionary <int, int> mulAmountRequestStatus = MemberAmountProcessor.GetMulAmountRequestStatus(serialids);
            ArrayList             list = new ArrayList();

            foreach (int num in serialids)
            {
                if (mulAmountRequestStatus.ContainsKey(num) && (mulAmountRequestStatus[num] == 0))
                {
                    list.Add(num);
                }
            }
            if (list.Count == 0)
            {
                this.ShowMsg("没有未审核状态的数据,操作终止!", false);
            }
            else
            {
                serialids = (int[])list.ToArray(typeof(int));
                if (serialids.Length > 0)
                {
                    if (MemberAmountProcessor.SetAmountRequestStatus(serialids, 1, "", "", ManagerHelper.GetCurrentManager().UserName))
                    {
                        this.UpdateNotify("申请提现批量审核成功");
                        this.ShowMsg("批量审核成功!", true);
                    }
                    else
                    {
                        this.ShowMsg("批量审核失败,请再次尝试", false);
                    }
                    this.LoadParameters();
                    this.BindData();
                }
            }
        }
        protected void BatchPass_Click(object sender, System.EventArgs e)
        {
            if (string.IsNullOrEmpty(base.Request["CheckBoxGroup"]))
            {
                this.ShowMsg("参数错误!", false);
                return;
            }
            string text = base.Request["CheckBoxGroup"];

            string[] array = text.Split(new char[]
            {
                ','
            });
            int[] array2 = System.Array.ConvertAll <string, int>(array, (string s) => Globals.ToNum(s));
            System.Collections.Generic.Dictionary <int, int> mulAmountRequestStatus = MemberAmountProcessor.GetMulAmountRequestStatus(array2);
            System.Collections.ArrayList arrayList = new System.Collections.ArrayList();
            int[] array3 = array2;
            for (int i = 0; i < array3.Length; i++)
            {
                int num = array3[i];
                if (mulAmountRequestStatus.ContainsKey(num) && mulAmountRequestStatus[num] == 0)
                {
                    arrayList.Add(num);
                }
            }
            if (arrayList.Count == 0)
            {
                this.ShowMsg("没有未审核状态的数据,操作终止!", false);
                return;
            }
            array2 = (int[])arrayList.ToArray(typeof(int));
            if (array2.Length > 0)
            {
                if (MemberAmountProcessor.SetAmountRequestStatus(array2, 1, "", "", ManagerHelper.GetCurrentManager().UserName))
                {
                    this.UpdateNotify("申请提现批量审核成功");
                    this.ShowMsg("批量审核成功!", true);
                }
                else
                {
                    this.ShowMsg("批量审核失败,请再次尝试", false);
                }
                this.LoadParameters();
                this.BindData();
            }
        }