//private void Gridview7_BL() //{ // Decimal TotalMoney = 0; // for (int i = 0; i < Gridview7.Rows.Count; i++) // { // TotalMoney += Convert.ToDecimal(this.Gridview7.Rows[i].Cells[11].Text.ToString()); // } // this.label_TotalMoney.Text = Convert.ToString(TotalMoney); //} //重置 protected void Button_Reset1(object sender, EventArgs e) { BindGridview1(""); UpdatePanel_PayBill.Update(); TextBox_Factory.Text = ""; TextBox1.Text = ""; TextBox2.Text = ""; UpdatePanel_SPayBillSearch.Update(); }
//提交供应商 protected void Button_ComSP(object sender, EventArgs e) { string Pname; bool temp = false; foreach (GridViewRow item in Gridview_PMSupply.Rows) { RadioButton rb = item.FindControl("RadioButtonMarkup") as RadioButton; if (rb.Checked) { label_SupplyID.Text = Gridview_PMSupply.DataKeys[item.RowIndex].Value.ToString(); Pname = Gridview_PMSupply.Rows[item.RowIndex].Cells[3].Text.ToString(); temp = true; if (label_Supply.Text == "检索") { TextBox_Factory.Text = Pname; UpdatePanel_SPayBillSearch.Update(); } if (label_Supply.Text == "新增") { TextBox6.Text = Pname; UpdatePanel_NewPayBill.Update(); //PMPaymentBillinfo.PMSI_ID = new Guid(this.LabelSupplyID.Text.ToString()); //BindGridview7_Pay(PMPaymentBillinfo); //Gridview7_BL();//总额 } } } if (!temp) { ScriptManager.RegisterClientScriptBlock(UpdatePanel_NewPayBill, GetType(), "aa", "alert('请选择供应商')", true); return; } else { Panel_Supply.Visible = false; UpdatePanel_Supply.Update(); } }