Exemplo n.º 1
0
 //重置检索供应商
 protected void Button_CoMi(object sender, EventArgs e)
 {
     TextBox4.Text = "";
     TextBox9.Text = "";
     BindGridview_PMSupply("");
     UpdatePanel_Supply.Update();
 }
Exemplo n.º 2
0
    protected void BtnOK_NewInfo_Click(object sender, EventArgs e)
    {
        if (AddTextno.Text.ToString() == "" || DropDownList3.SelectedValue.ToString() == "" || AddTextLocation.Text.ToString() == "" || AddTextProvidor.Text.ToString() == "" || AddAcceptDate.Text.ToString() == "" || DropDownList4.SelectedValue.ToString() == "")
        {
            ScriptManager.RegisterClientScriptBlock(UpdatePanel_NewInfo, GetType(), "alert", "alert('标记*的为必填项,请填写完整!')", true);
            return;
        }
        DataSet   ds = equipmentInfL.Search_EquipmentInfInfo("and EI_No = '" + AddTextno.Text + "' and d.EMT_ID='" + Label_mid.Text + "'");
        DataTable dt = ds.Tables[0];

        if (dt.Rows.Count != 0)
        {
            ScriptManager.RegisterStartupScript(Page, typeof(Page), "alert", "alert('系统中已有该设备台账,不能重名!')", true);
            return;
        }
        Guid     eTT_ID        = new Guid(DropDownList3.SelectedValue.ToString());
        Guid     eMT_ID        = new Guid(Label_mid.Text.ToString());
        string   eI_No         = AddTextno.Text.ToString();
        string   eI_Location   = AddTextLocation.Text.ToString();
        string   eI_Providor   = AddTextProvidor.Text.ToString();
        string   eI_IsToCare   = DropDownList4.SelectedValue.ToString();
        DateTime eI_AcceptDate = Convert.ToDateTime((AddAcceptDate.Text.ToString()));

        equipmentInfL.Insert_EquipmentInfInfo(eTT_ID, eMT_ID, eI_No, eI_Location, eI_Providor, eI_IsToCare, eI_AcceptDate);
        BindGrid_EquipInfo("");
        Panel_NewInfo.Visible    = false;
        Panel_searchname.Visible = false;
        UpdatePanel_InfoItem.Update();
        Panel_Supply.Visible = false;
        UpdatePanel_Supply.Update();
    }
Exemplo n.º 3
0
    //检索供应商
    protected void Button1_KiMi(object sender, EventArgs e)
    {
        string condition = GetCondition_Supply();

        BindGridview_PMSupply(condition);
        UpdatePanel_Supply.Update();
    }
Exemplo n.º 4
0
 //检索时选择供应商
 protected void Button_SSearch(object sender, EventArgs e)
 {
     label_Supply.Text = "检索";
     BindGridview_PMSupply("");
     Panel_Supply.Visible = true;
     UpdatePanel_Supply.Update();
 }
Exemplo n.º 5
0
    //提交供应商
    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)
            {
                Pname = Gridview_PMSupply.Rows[item.RowIndex].Cells[3].Text.ToString();
                temp  = true;
                label_SupplyID.Text = Gridview_PMSupply.DataKeys[item.RowIndex].Value.ToString();
                TextBox6.Text       = Pname;
                UpdatePanel_CopperNew.Update();
            }
        }
        if (!temp)
        {
            ScriptManager.RegisterClientScriptBlock(UpdatePanel_Supply, GetType(), "aa", "alert('请选择供应商')", true);
            return;
        }
        else
        {
            Panel_Supply.Visible = false;
            UpdatePanel_Supply.Update();
        }
    }
Exemplo n.º 6
0
    protected void Button_ComSP_Click(object sender, EventArgs e)
    {
        //this.Gridview_PMSupply.SelectedIndex = -1;
        bool temp = false;

        foreach (GridViewRow item in Gridview_PMSupply.Rows)
        {
            RadioButton rb = item.FindControl("RadioButtonMarkup") as RadioButton;

            if (rb.Checked)
            {
                string Pname = Gridview_PMSupply.DataKeys[item.RowIndex].Value.ToString();
                temp = true;
                if (Label31.Text == "新增")
                {
                    AddTextProvidor.Text = Pname;
                    UpdatePanel_NewInfo.Update();
                }
                if (Label31.Text == "编辑")
                {
                    EditTextProvidor.Text = Pname;
                    UpdatePanel_EditInfo.Update();
                }
                Panel_Supply.Visible = false;
                UpdatePanel_Supply.Update();
            }
        }
        if (!temp)
        {
            ScriptManager.RegisterClientScriptBlock(UpdatePanel_Supply, GetType(), "aa", "alert('请选择供应商!')", true);
            return;
        }
    }
Exemplo n.º 7
0
    protected void BtnOK_EditInfo_Click(object sender, EventArgs e)
    {
        if (EditTextno.Text.ToString() == "" || DropDownList5.SelectedValue.ToString() == "" || EditTextLocation.Text.ToString() == "" || EditTextProvidor.Text.ToString() == "" || EditAcceptDate.Text.ToString() == "" || DropDownList6.SelectedValue.ToString() == "" || DropDownList8.SelectedValue.ToString() == "")
        {
            ScriptManager.RegisterClientScriptBlock(UpdatePanel_EditInfo, GetType(), "alert", "alert('标记*的为必填项,请填写完整!')", true);
            return;
        }
        DataSet   ds = equipmentInfL.Search_EquipmentInfInfo("and EI_No = '" + EditTextno.Text + "' and c.EMT_Type='" + EditTextmodel.Text + "'and a.ETT_ID= '" + DropDownList5.SelectedValue.ToString() + "' and EI_Location= '" + EditTextLocation.Text + "'and EI_Providor= '" + EditTextProvidor.Text + "'and EI_IsToCare= '" + DropDownList6.SelectedValue.ToString() + "'and EI_AcceptDate= '" + EditAcceptDate.Text + "'and EI_State='" + DropDownList8.SelectedValue.ToString() + "'");
        DataTable dt = ds.Tables[0];

        if (dt.Rows.Count != 0)
        {
            ScriptManager.RegisterStartupScript(Page, typeof(Page), "alert", "alert('系统中已有该设备台账,不能重名!')", true);
            return;
        }
        Guid     ETT_ID        = new Guid(DropDownList5.SelectedValue.ToString());
        Guid     EI_ID         = new Guid(Label_eiid.Text.ToString());
        string   EI_No         = EditTextno.Text.ToString();
        string   EI_Location   = EditTextLocation.Text.ToString();
        string   EI_Providor   = EditTextProvidor.Text.ToString();
        string   EI_IsToCare   = DropDownList6.SelectedValue.ToString();
        DateTime EI_AcceptDate = Convert.ToDateTime((EditAcceptDate.Text.ToString()));
        string   EI_State      = DropDownList8.SelectedValue.ToString();

        equipmentInfL.Update_EquipmentInfInfo(ETT_ID, EI_ID, EI_No, EI_Location, EI_Providor, EI_IsToCare, EI_AcceptDate, EI_State);
        BindGrid_EquipInfo("");
        Panel_EditInfo.Visible = false;
        UpdatePanel_EditInfo.Update();
        UpdatePanel_InfoItem.Update();
        Panel_Supply.Visible = false;
        UpdatePanel_Supply.Update();
    }
Exemplo n.º 8
0
 protected void Close_namemodel_Click(object sender, EventArgs e)
 {
     Panel_searchname.Visible = false;
     Panel_NewInfo.Visible    = false;
     UpdatePanel_NewInfo.Update();
     Panel_Supply.Visible = false;
     UpdatePanel_Supply.Update();
 }
Exemplo n.º 9
0
 protected void Button_Supplynew_Click(object sender, EventArgs e)
 {
     TextBox1.Text = "";
     TextBox2.Text = "";
     Label31.Text  = "新增";
     BindGridview_PMSupply("");
     Panel_Supply.Visible = true;
     UpdatePanel_Supply.Update();
 }
Exemplo n.º 10
0
 protected void BtnCancel_NewInfo_Click(object sender, EventArgs e)
 {
     if (Panel_NewInfo.Visible)
     {
         Panel_NewInfo.Visible = false;
         Panel_Supply.Visible  = false;
         UpdatePanel_Supply.Update();
     }
 }
Exemplo n.º 11
0
    //检索
    protected void Button1_Sh(object sender, EventArgs e)
    {
        string condition = GetCondition();

        BindGridview1(condition);
        UpdatePanel_OutWeb.Update();
        Panel_SampleNew.Visible = false;
        UpdatePanel_SampleNew.Update();
        Panel_Supply.Visible = false;
        UpdatePanel_Supply.Update();
        Panel_Check.Visible = false;
        UpdatePanel_Check.Update();
    }
Exemplo n.º 12
0
    protected void Button_Sh2(object sender, EventArgs e)
    {
        string condition = Getcondition();

        BindGridview1(condition);
        UpdatePanel_PayBill.Update();
        Panel_NewPayBill.Visible = false;
        UpdatePanel_NewPayBill.Update();
        Panel_Supply.Visible = false;
        UpdatePanel_Supply.Update();

        Panel_Pay.Visible = false;
        UpdatePanel_Pay.Update();

        Panel_NewPay.Visible = false;
        UpdatePanel_NewPay.Update();
    }
Exemplo n.º 13
0
    //提交供应商
    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();
        }
    }
Exemplo n.º 14
0
    //检索
    protected void Button1_Sh(object sender, EventArgs e)
    {
        string condition = GetCondition();

        BindGridview1(condition);
        UpdatePanel_Copper.Update();
        Panel_CopperNew.Visible = false;
        UpdatePanel_CopperNew.Update();
        Panel_Supply.Visible = false;
        UpdatePanel_Supply.Update();
        Panel_CopperIn.Visible = false;
        UpdatePanel_CopperIn.Update();
        Panel1.Visible = false;
        UpdatePanel1.Update();
        Panel2.Visible = false;
        UpdatePanel2.Update();
        Panel_CopperInNew.Visible = false;
        UpdatePanel_CopperInNew.Update();
        Panel_CopperReturn.Visible = false;
        UpdatePane_CopperReturn.Update();
        Panel_CopperPrice.Visible = false;
        UpdatePanel_CopperPrice.Update();
    }
Exemplo n.º 15
0
 //取消选择供应商
 protected void Button_Cancel5(object sender, EventArgs e)
 {
     Panel_Supply.Visible = false;
     UpdatePanel_Supply.Update();
 }
Exemplo n.º 16
0
 //选择客户
 protected void Button_SupplySearch(object sender, EventArgs e)
 {
     BindGridview_PMSupply();
     Panel_Supply.Visible = true;
     UpdatePanel_Supply.Update();
 }