protected void Button_CoM(object sender, EventArgs e) { TextBox16.Text = ""; TextBox17.Text = ""; BindGridview5(""); UpdatePanel_Material.Update(); }
protected void Button1_KiM(object sender, EventArgs e) { string condition = GetCondition_Material(); BindGridview5(condition); UpdatePanel_Material.Update(); }
//提交物料 protected void Button_Com1(object sender, EventArgs e) { bool temp = false; foreach (GridViewRow item in Gridview5.Rows) { RadioButton rb = item.FindControl("RadioButtonMarkup") as RadioButton; if (rb.Checked) { TextBox4.Text = Gridview5.Rows[item.RowIndex].Cells[1].Text.ToString(); label_MaterialID.Text = Gridview5.DataKeys[item.RowIndex]["IMMBD_MaterialID"].ToString(); TextBox8.Text = Gridview5.Rows[item.RowIndex].Cells[4].Text.ToString(); TextBox9.Text = Gridview5.Rows[item.RowIndex].Cells[2].Text.ToString(); label_IMUC_ID.Text = Gridview5.DataKeys[item.RowIndex]["IMUC_ID"].ToString(); temp = true; } } if (!temp) { ScriptManager.RegisterClientScriptBlock(UpdatePanel_Material, GetType(), "aa", "alert('请选择物料')", true); return; } else { UpdatePanel2.Update(); Panel_Material.Visible = false; UpdatePanel_Material.Update(); } }
//选择物料 protected void Button_SelectM(object sender, EventArgs e) { //string condition="and PMSI_ID='"+this.Gridview3.Rows[Gridview3.SelectedIndex].Cells[1].ToString()+"'"; BindGridview5(""); Panel_Material.Visible = true; UpdatePanel_Material.Update(); }
protected void Button_Sh2(object sender, EventArgs e) { string condition = GetCondition(); BindGridview3(condition); UpdatePanel_PMPurchaseOrder.Update(); Panel3.Visible = false; UpdatePanel3.Update(); Panel4.Visible = false; UpdatePanel4.Update(); Panel2.Visible = false; UpdatePanel2.Update(); Panel_Material.Visible = false; UpdatePanel_Material.Update(); Panel_PMPurchaseOrderDetail.Visible = false; UpdatePanel_PMPurchaseOrderDetail.Update(); }
//取消选择物料 protected void Button_Cancel1(object sender, EventArgs e) { Panel_Material.Visible = false; UpdatePanel_Material.Update(); }