private int BuildAdditionasXmlForLCDC(ref string AdditionasXml) { TextBox[] tb = new TextBox[1]; TextBox[] tb_1 = new TextBox[1]; TextBox[] tb_2 = new TextBox[1]; for (int i = 0; i < 1; i++) { tb[i] = (TextBox)this.FindControl("tbLCDC" + (i + 1).ToString()); tb_1[i] = (TextBox)this.FindControl("tbLCDC" + (i + 1).ToString() + "_1"); tb_2[i] = (TextBox)this.FindControl("tbLCDC" + (i + 1).ToString() + "_2"); if ((tb[i].Text.Trim() == "") || (tb_1[i].Text.Trim() == "")) { Shove._Web.JavaScript.Alert(this.Page, "第 " + (i + 1).ToString() + " 场比赛球队名称输入不完整!"); return(-1); } } AdditionasXml = PF.BuildIsuseAdditionasXmlFor2Team(1, tb[0].Text.Trim(), tb_1[0].Text.Trim(), tb_2[0].Text.Trim()); return(0); }
private int BuildAdditionasXmlForSFC(ref string AdditionasXml) { TextBox[] boxArray = new TextBox[14]; TextBox[] boxArray2 = new TextBox[14]; TextBox[] boxArray3 = new TextBox[14]; for (int i = 0; i < 14; i++) { int num2 = i + 1; boxArray[i] = (TextBox)this.FindControl("tbSFC" + num2.ToString()); int num3 = i + 1; boxArray2[i] = (TextBox)this.FindControl("tbSFC" + num3.ToString() + "_1"); int num4 = i + 1; boxArray3[i] = (TextBox)this.FindControl("tbSFC" + num4.ToString() + "_2"); if ((boxArray[i].Text.Trim() == "") || (boxArray2[i].Text.Trim() == "")) { JavaScript.Alert(this.Page, "第 " + ((i + 1)).ToString() + " 场比赛球队名称输入不完整!"); return(-1); } } AdditionasXml = PF.BuildIsuseAdditionasXmlFor2Team(14, new string[] { boxArray[0].Text.Trim(), boxArray2[0].Text.Trim(), boxArray3[0].Text.Trim(), boxArray[1].Text.Trim(), boxArray2[1].Text.Trim(), boxArray3[1].Text.Trim(), boxArray[2].Text.Trim(), boxArray2[2].Text.Trim(), boxArray3[2].Text.Trim(), boxArray[3].Text.Trim(), boxArray2[3].Text.Trim(), boxArray3[3].Text.Trim(), boxArray[4].Text.Trim(), boxArray2[4].Text.Trim(), boxArray3[4].Text.Trim(), boxArray[5].Text.Trim(), boxArray2[5].Text.Trim(), boxArray3[5].Text.Trim(), boxArray[6].Text.Trim(), boxArray2[6].Text.Trim(), boxArray3[6].Text.Trim(), boxArray[7].Text.Trim(), boxArray2[7].Text.Trim(), boxArray3[7].Text.Trim(), boxArray[8].Text.Trim(), boxArray2[8].Text.Trim(), boxArray3[8].Text.Trim(), boxArray[9].Text.Trim(), boxArray2[9].Text.Trim(), boxArray3[9].Text.Trim(), boxArray[10].Text.Trim(), boxArray2[10].Text.Trim(), boxArray3[10].Text.Trim(), boxArray[11].Text.Trim(), boxArray2[11].Text.Trim(), boxArray3[11].Text.Trim(), boxArray[12].Text.Trim(), boxArray2[12].Text.Trim(), boxArray3[12].Text.Trim(), boxArray[13].Text.Trim(), boxArray2[13].Text.Trim(), boxArray3[13].Text.Trim() }); return(0); }
private int BuildAdditionasXmlForLCDC(ref string AdditionasXml) { TextBox[] boxArray = new TextBox[1]; TextBox[] boxArray2 = new TextBox[1]; TextBox[] boxArray3 = new TextBox[1]; for (int i = 0; i < 1; i++) { int num2 = i + 1; boxArray[i] = (TextBox)this.FindControl("tbLCDC" + num2.ToString()); int num3 = i + 1; boxArray2[i] = (TextBox)this.FindControl("tbLCDC" + num3.ToString() + "_1"); int num4 = i + 1; boxArray3[i] = (TextBox)this.FindControl("tbLCDC" + num4.ToString() + "_2"); if ((boxArray[i].Text.Trim() == "") || (boxArray2[i].Text.Trim() == "")) { JavaScript.Alert(this.Page, "第 " + ((i + 1)).ToString() + " 场比赛球队名称输入不完整!"); return(-1); } } AdditionasXml = PF.BuildIsuseAdditionasXmlFor2Team(1, new string[] { boxArray[0].Text.Trim(), boxArray2[0].Text.Trim(), boxArray3[0].Text.Trim() }); return(0); }
private int BuildAdditionasXmlForSFC(ref string AdditionasXml) { TextBox[] tb = new TextBox[14]; TextBox[] tb_1 = new TextBox[14]; TextBox[] tb_2 = new TextBox[14]; for (int i = 0; i < 14; i++) { tb[i] = (TextBox)this.FindControl("tbSFC" + (i + 1).ToString()); tb_1[i] = (TextBox)this.FindControl("tbSFC" + (i + 1).ToString() + "_1"); tb_2[i] = (TextBox)this.FindControl("tbSFC" + (i + 1).ToString() + "_2"); if ((tb[i].Text.Trim() == "") || (tb_1[i].Text.Trim() == "")) { Shove._Web.JavaScript.Alert(this.Page, "第 " + (i + 1).ToString() + " 场比赛球队名称输入不完整!"); return(-1); } } AdditionasXml = PF.BuildIsuseAdditionasXmlFor2Team(14, tb[0].Text.Trim(), tb_1[0].Text.Trim(), tb_2[0].Text.Trim(), tb[1].Text.Trim(), tb_1[1].Text.Trim(), tb_2[1].Text.Trim(), tb[2].Text.Trim(), tb_1[2].Text.Trim(), tb_2[2].Text.Trim(), tb[3].Text.Trim(), tb_1[3].Text.Trim(), tb_2[3].Text.Trim(), tb[4].Text.Trim(), tb_1[4].Text.Trim(), tb_2[4].Text.Trim(), tb[5].Text.Trim(), tb_1[5].Text.Trim(), tb_2[5].Text.Trim(), tb[6].Text.Trim(), tb_1[6].Text.Trim(), tb_2[6].Text.Trim(), tb[7].Text.Trim(), tb_1[7].Text.Trim(), tb_2[7].Text.Trim(), tb[8].Text.Trim(), tb_1[8].Text.Trim(), tb_2[8].Text.Trim(), tb[9].Text.Trim(), tb_1[9].Text.Trim(), tb_2[9].Text.Trim(), tb[10].Text.Trim(), tb_1[10].Text.Trim(), tb_2[10].Text.Trim(), tb[11].Text.Trim(), tb_1[11].Text.Trim(), tb_2[11].Text.Trim(), tb[12].Text.Trim(), tb_1[12].Text.Trim(), tb_2[12].Text.Trim(), tb[13].Text.Trim(), tb_1[13].Text.Trim(), tb_2[13].Text.Trim()); return(0); }