コード例 #1
0
ファイル: filluser_drawback.cs プロジェクト: singlag888/dll
 private void UpdateSix(ref string mess)
 {
     if (!string.IsNullOrEmpty(this.six_modify_playid))
     {
         DataTable oldDT = CallBLL.cz_drawback_six_bll.GetDrawBackList(this.cz_saleset_six_model.get_u_name(), this.six_modify_playid).Tables[0];
         foreach (DataRow row in oldDT.Rows)
         {
             string str = row["play_id"].ToString();
             row["a_drawback"].ToString();
             row["b_drawback"].ToString();
             row["c_drawback"].ToString();
             row["single_max_amount"].ToString();
             row["single_phase_amount"].ToString();
             string          str2 = this.paramDict[string.Format("six_a_{0}", str.ToLower())];
             string          str3 = this.paramDict[string.Format("six_b_{0}", str.ToLower())];
             string          str4 = this.paramDict[string.Format("six_c_{0}", str.ToLower())];
             string          str5 = this.paramDict[string.Format("six_max_amount_{0}", str.ToLower())];
             string          str6 = this.paramDict[string.Format("six_phase_amount_{0}", str.ToLower())];
             cz_drawback_six _six = new cz_drawback_six();
             _six.set_play_id(new int?(Convert.ToInt32(str)));
             if (!string.IsNullOrEmpty(str2))
             {
                 _six.set_a_drawback(new decimal?(Convert.ToDecimal(str2)));
             }
             if (!string.IsNullOrEmpty(str3))
             {
                 _six.set_b_drawback(new decimal?(Convert.ToDecimal(str3)));
             }
             if (!string.IsNullOrEmpty(str4))
             {
                 _six.set_c_drawback(new decimal?(Convert.ToDecimal(str4)));
             }
             _six.set_single_max_amount(new decimal?(Convert.ToDecimal(str5)));
             _six.set_single_phase_amount(new decimal?(Convert.ToDecimal(str6)));
             _six.set_u_name(this.cz_saleset_six_model.get_u_name());
             string str7 = this.cz_saleset_six_model.get_six_kind();
             bool   flag = false;
             CallBLL.cz_drawback_six_bll.UpdateData(_six, str7, flag);
         }
         base.user_drawback_six_log(oldDT, CallBLL.cz_drawback_six_bll.GetDrawBackList(this.cz_saleset_six_model.get_u_name()).Tables[0], this.cz_saleset_six_model.get_u_name());
         mess = "⑥合彩:已經成功修改設置!";
     }
 }
コード例 #2
0
ファイル: filluser_drawback.cs プロジェクト: singlag888/dll
        private void UpdateSix(ref string mess)
        {
            bool flag  = false;
            bool flag2 = false;
            bool flag3 = false;

            if (flag || flag2)
            {
                flag3 = true;
            }
            DataTable zJDrawback = CallBLL.cz_drawback_six_bll.GetZJDrawback(this.six_modify_playid);
            DataTable table1     = CallBLL.cz_drawback_six_bll.GetDrawBackList(this.cz_saleset_six_model.get_u_name(), this.six_modify_playid).Tables[0];

            foreach (DataRow row in zJDrawback.Rows)
            {
                string str   = row["play_id"].ToString();
                string s     = row["a_drawback"].ToString();
                string str3  = row["b_drawback"].ToString();
                string str4  = row["c_drawback"].ToString();
                string str5  = row["single_max_amount"].ToString();
                string str6  = row["single_phase_amount"].ToString();
                string str7  = LSRequest.qq(string.Format("six_a_{0}", str.ToLower()));
                string str8  = LSRequest.qq(string.Format("six_b_{0}", str.ToLower()));
                string str9  = LSRequest.qq(string.Format("six_c_{0}", str.ToLower()));
                string str10 = LSRequest.qq(string.Format("six_max_amount_{0}", str.ToLower()));
                string str11 = LSRequest.qq(string.Format("six_phase_amount_{0}", str.ToLower()));
                if (string.IsNullOrEmpty(this.cz_saleset_six_model.get_six_kind()) || this.cz_saleset_six_model.get_six_kind().Equals("0"))
                {
                    if (double.Parse(str7) > double.Parse(s))
                    {
                        str7 = s;
                    }
                    if (double.Parse(str8) > double.Parse(str3))
                    {
                        str8 = str3;
                    }
                    if (double.Parse(str9) > double.Parse(str4))
                    {
                        str9 = str4;
                    }
                }
                else
                {
                    string str13 = this.cz_saleset_six_model.get_six_kind().ToLower();
                    if (str13 != null)
                    {
                        if (!(str13 == "a"))
                        {
                            if (str13 == "b")
                            {
                                goto Label_0214;
                            }
                            if (str13 == "c")
                            {
                                goto Label_022A;
                            }
                        }
                        else if (double.Parse(str7) > double.Parse(s))
                        {
                            str7 = s;
                        }
                    }
                }
                goto Label_023E;
Label_0214:
                if (double.Parse(str8) > double.Parse(str3))
                {
                    str8 = str3;
                }
                goto Label_023E;
Label_022A:
                if (double.Parse(str9) > double.Parse(str4))
                {
                    str9 = str4;
                }
Label_023E:
                if (double.Parse(str10) > double.Parse(str5))
                {
                    str10 = str5;
                }
                if (double.Parse(str11) > double.Parse(str6))
                {
                    str11 = str6;
                }
                cz_drawback_six _six = new cz_drawback_six();
                _six.set_play_id(new int?(Convert.ToInt32(str)));
                if (!string.IsNullOrEmpty(str7))
                {
                    _six.set_a_drawback(new decimal?(Convert.ToDecimal(str7)));
                }
                if (!string.IsNullOrEmpty(str8))
                {
                    _six.set_b_drawback(new decimal?(Convert.ToDecimal(str8)));
                }
                if (!string.IsNullOrEmpty(str9))
                {
                    _six.set_c_drawback(new decimal?(Convert.ToDecimal(str9)));
                }
                _six.set_single_max_amount(new decimal?(Convert.ToDecimal(str10)));
                _six.set_single_phase_amount(new decimal?(Convert.ToDecimal(str11)));
                _six.set_u_name(this.cz_saleset_six_model.get_u_name());
                string str12 = "A";
                if (string.IsNullOrEmpty(this.cz_saleset_six_model.get_six_kind()) || this.cz_saleset_six_model.get_six_kind().Equals("0"))
                {
                    str12 = "A";
                }
                else
                {
                    str12 = this.cz_saleset_six_model.get_six_kind();
                }
                CallBLL.cz_drawback_six_bll.UpdateData(_six, str12, flag3);
            }
            base.user_drawback_six_log(zJDrawback, CallBLL.cz_drawback_six_bll.GetDrawBackList(this.cz_saleset_six_model.get_u_name()).Tables[0], this.cz_saleset_six_model.get_u_name());
            if (flag || flag2)
            {
                mess = "⑥合彩:因獎期正在開盤中且下级已经有下单[退水]未能修改,單期單注修改成功!";
            }
            else
            {
                mess = "⑥合彩:已經成功修改設置(注:如開盤中且下级已经有下单退水不能修改)!";
            }
        }