protected void CloseStoreD(object sender, EventArgs e) { Panel3.Visible = false; UpdatePanel_KucunD.Update(); Panel_kucun1.Visible = true; UpdatePanel2.Update(); }
//关闭物料检索 protected void ColseMat(object sender, EventArgs e) { Panel_kucun.Visible = false; Panel_KucunD.Visible = false; UpdatePanel1.Update(); UpdatePanel_KucunD.Update(); }
protected void BindDetail() { string id = Label1.Text.ToString(); GridView2.DataSource = dp.SelectKucunDetail(id); GridView2.DataBind(); UpdatePanel_KucunD.Update(); }
//关闭 protected void CloseDiaoboMain(object sender, EventArgs e) { Panel1.Visible = false; UpdatePanel1.Update(); Panel_kucun.Visible = false; Panel_KucunD.Visible = false; UpdatePanel1.Update(); UpdatePanel_KucunD.Update(); }
//绑定库存详细表 protected void BindKucunD() { string temp; temp = " and a.IMIM_ID like'%" + label27.Text.ToString() + "%'"; temp += " and d.IMS_StoreID like'%" + label8.Text.ToString() + "%'"; Gridview_Kucun.DataSource = outs.Select_IMInventoryDetail(temp); Gridview_Kucun.DataBind(); UpdatePanel_KucunD.Update(); }
protected void Gridview_Pur_RowCommand(object sender, GridViewCommandEventArgs e) { GridViewRow gvr = ((GridViewRow)(((LinkButton)(e.CommandSource)).Parent.Parent)); if (e.CommandName == "Choose5") { label27.Text = e.CommandArgument.ToString(); label28.Text = Gridview_Pur.Rows[gvr.RowIndex].Cells[4].Text.ToString() + "-" + Gridview_Pur.Rows[gvr.RowIndex].Cells[5].Text.ToString(); Panel_KucunD.Visible = true; BindKucunD(); UpdatePanel_KucunD.Update(); } }
protected void LinkButton1_Click(object sender, EventArgs e) { if (TextBox20.Text == "" || TextBox1.Text == "") { ScriptManager.RegisterStartupScript(Page, typeof(Page), "alert", "alert('请选择完整时间段!')", true); } else { Label1.Text = " and iotime between'" + TextBox20.Text + "' and '" + TextBox1.Text + "'"; BindDetail(); Panel_kucun1.Visible = false; Panel3.Visible = true; UpdatePanel_KucunD.Update(); UpdatePanel2.Update(); } }
protected void Gridview_Kucun_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { foreach (GridViewRow item in Gridview_Kucun.Rows) { CheckBox cb = item.FindControl("CheckBox2") as CheckBox; TextBox tb = item.FindControl("TextBox8") as TextBox; if (cb.Checked) { tb.Enabled = true; UpdatePanel_KucunD.Update(); } } } }