Exemple #1
0
 //取消按钮
 protected void BtnCls_Item_Click(object sender, EventArgs e)
 {
     if (Panel_SearchCI.Visible)
     {
         Panel_SearchCI.Visible = false;
         UpdatePanel_SearchCI.Update();
     }
     if (Panel_GridItem.Visible)
     {
         Panel_GridItem.Visible = false;
         UpdatePanel_GridItem.Update();
     }
 }
Exemple #2
0
 //重置
 protected void BtnResetItem_Click(object sender, EventArgs e)
 {
     TxtItemName.Text = "";
     TxtStandard.Text = "";
     UpdatePanel_SearchCI.Update();
     BindcN = BindcB = "";
     if (LblSearchCond.Text == "ItemAll")
     {
         BindGridMItem(idM);
     }
     else if (LblSearchCond.Text == "ItemCond")
     {
         BindGridMItemF(idM, BindcN, BindcB);
     }
     else if (LblSearchCond.Text == "Rest")
     {
         BindGridIAll(idM, BindcN, BindcB);
     }
     UpdatePanel_GridItem.Update();
 }
Exemple #3
0
 //操作Gridview的命令行
 protected void Grid_Material_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "Edt_Items")
     {
         Grid_Item.Columns[7].Visible = true;
         Grid_Item.Columns[8].Visible = false;
         GridViewRow row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;
         Grid_Material.SelectedIndex = row.RowIndex;
         LblSearchCond.Text          = "ItemAll";
         LblGridItem.Text            = "该物料的管制项目";
         Panel_SearchCI.Visible      = true;
         Panel_GridItem.Visible      = true;
         GridViewRow gvr = ((GridViewRow)(((LinkButton)(e.CommandSource)).Parent.Parent));
         //this.Grid_BDOrgSheet_1.Rows[gvr.RowIndex].BackColor = System.Drawing.Color.SkyBlue;
         //Session["index"] = gvr.RowIndex;
         idM = new Guid(e.CommandArgument.ToString());
         BindGridMItem(idM);
         TxtItemName.Text = "";
         TxtStandard.Text = "";
         UpdatePanel_SearchCI.Update();
         UpdatePanel_GridItem.Update();
     }
 }