Example #1
0
 //操作Gridview的命令行
 protected void Grid_Risk_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "Edt_RiskLevel")
     {
         GridViewRow row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;
         Grid_Risk.SelectedIndex      = row.RowIndex;
         LblSearchCond.Text           = "RiskAll";
         LblGridMaterial.Text         = "该风险等级下物料";
         Panel_SearchMaterial.Visible = true;
         Panel_GridMaterial.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;
         idR = new Guid(e.CommandArgument.ToString());
         BindGridMRisk(idR);
         TxtMaterialType.Text  = "";
         TextMaterialName.Text = "";
         UpdatePanel_SearchMaterial.Update();
         UpdatePanel_GridMaterial.Update();
     }
     if (e.CommandName == "Delete_RiskLevel")
     {
         GridViewRow row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;
         Grid_Risk.SelectedIndex = row.RowIndex;
         Guid guid = new Guid(e.CommandArgument.ToString());
         hSFBasicDataL.Delete_ExpSampleType(guid);
         BindGridviewRisk(BindcR);
         UpdatePanel_GridRisk.Update();
     }
 }
Example #2
0
 //重置
 protected void BtnResetMaterial_Click(object sender, EventArgs e)
 {
     TxtMaterialType.Text       = "";
     TxtMaterialName.Text       = "";
     TxtSpecificationModel.Text = "";
     if (condSearch1 == "")
     {
         Grid_Material.Columns[4].Visible = true;
         Grid_Material.Columns[5].Visible = true;
         Grid_Material.Columns[6].Visible = false;
         cond1 = " and IMMBD_IsIQC=1";
         LblGridMaterial.Text = "进料检验物料表";
     }
     else if (condSearch1 == "all")
     {
         Grid_Material.Columns[4].Visible = false;
         Grid_Material.Columns[5].Visible = false;
         Grid_Material.Columns[6].Visible = true;
         cond1 = " and (IMMBD_IsIQC=0 or IMMBD_IsIQC is null) ";
         LblGridMaterial.Text = "非料检验物料表";
     }
     BindGrid1(cond1);
     UpdatePanel_SearchMaterial.Update();
     UpdatePanel_GridMaterial.Update();
 }
Example #3
0
 //重置
 protected void BtnResetMa_Click(object sender, EventArgs e)
 {
     TxtMaType.Text = "";
     TxtMaName.Text = "";
     UpdatePanel_SearchMaterial.Update();
     Bindc2 = Bindc1 = "";
     BindGridMa(Bindc1, Bindc2);
     UpdatePanel_GridMa.Update();
 }
Example #4
0
    //重置
    protected void BtnResetMaterial_Click(object sender, EventArgs e)
    {
        TxtMaterialName.Text = "";
        TxtMaterialCode.Text = "";
        TxtSupplyName.Text   = "";
        TxtArriveTime1.Text  = "";
        TxtArriveTime2.Text  = "";
        string cond1 = "";

        BindGrid1(cond1);
        UpdatePanel_SearchMaterial.Update();
        UpdatePanel_GridMaterial.Update();
    }
Example #5
0
 //取消按钮
 protected void BtnCls_Material_Click(object sender, EventArgs e)
 {
     if (Panel_SearchMaterial.Visible)
     {
         Panel_SearchMaterial.Visible = false;
         UpdatePanel_SearchMaterial.Update();
     }
     if (Panel_GridMaterial.Visible)
     {
         Panel_GridMaterial.Visible = false;
         UpdatePanel_GridMaterial.Update();
     }
 }
Example #6
0
 //重置
 protected void BtnResetMaterial_Click(object sender, EventArgs e)
 {
     TxtMaterialName.Text = "";
     TxtMaterialCode.Text = "";
     TxtSupplyName.Text   = "";
     TxtArriveTime1.Text  = "";
     TxtArriveTime2.Text  = "";
     //Ddl_Au.SelectedValue = "0";
     if (Request.QueryString["state"].ToString() == "IQCAuMgtReview")
     {
         state        = "all";
         Label7.Text  = "历史检验信息表";
         Label30.Text = " and DT.IQCDT_Result is not null ";
         Grid_Material.Columns[14].Visible = false;
         Grid_Material.Columns[15].Visible = true;
     }
     else if (Request.QueryString["state"].ToString() == "IQCAuMgt")
     {
         if (Ddl_Au.SelectedValue == "0")
         {
             state        = "";
             Label30.Text = " and DT.IQCDT_Result='待审核' ";
             Label7.Text  = "待审核物料信息表";
             Grid_Material.Columns[14].Visible = true;
             Grid_Material.Columns[15].Visible = false;
         }
         else if (Ddl_Au.SelectedValue == "1")
         {
             state        = "all";
             Label30.Text = "";
             Label7.Text  = "历史检验信息表";
             Grid_Material.Columns[14].Visible = false;
             Grid_Material.Columns[15].Visible = true;
         }
         //state = "";
         //cond1 = " and DT.IQCDT_Result='待审核' ";
         //Label7.Text = "待审核物料信息表";
         //Grid_Material.Columns[14].Visible = true;
         //Grid_Material.Columns[15].Visible = false;
     }
     BindGrid1(Label30.Text);
     UpdatePanel_SearchMaterial.Update();
     UpdatePanel_GridMaterial.Update();
 }
Example #7
0
 //重置
 protected void BtnResetM_Click(object sender, EventArgs e)
 {
     TxtMaterialType.Text  = "";
     TextMaterialName.Text = "";
     UpdatePanel_SearchMaterial.Update();
     BindcM1 = BindcM2 = "";
     if (LblSearchCond.Text == "RiskAll")
     {
         BindGridMRisk(idR);
     }
     else if (LblSearchCond.Text == "RiskCond")
     {
         BindGridMRiskF(idR, BindcM1, BindcM2);
     }
     else if (LblSearchCond.Text == "All")
     {
         BindGridMAll(BindcM1, BindcM2);
     }
     UpdatePanel_GridMaterial.Update();
 }