Exemplo n.º 1
0
 protected void btnSaveRequires_Click(object sender, EventArgs e)
 {
     SqlRequires.InsertParameters["WorkOrder_ID"].DefaultValue   = DropDownQWorkOrder_ID.SelectedValue;
     SqlRequires.InsertParameters["RawMaterial_ID"].DefaultValue = DropDownRawMaterial_ID.SelectedValue;
     SqlRequires.Insert();
     gvRequires.DataBind();
     PaneladdRequires.Visible             = false;
     PanelgvRequires.Visible              = true;
     DropDownQWorkOrder_ID.SelectedIndex  = -1;
     DropDownRawMaterial_ID.SelectedIndex = -1;
 }
Exemplo n.º 2
0
        protected void btnSaveProductRequire_Click(object sender, EventArgs e)
        {
            SqlRequires.InsertParameters["Product_ID"].DefaultValue           = (string)Session["ProductID"];
            SqlRequires.InsertParameters["RawMaterial_ID"].DefaultValue       = dropRawmaterial.SelectedValue;
            SqlRequires.InsertParameters["RawMaterial_Quantity"].DefaultValue = txtRawmaterialQty.Text;

            SqlRequires.Insert();
            gvProductRequire.DataBind();
            SqlRequireDrop.DataBind();
            PaneladdProductRequire.Visible = false;
            PanelgvProductRequire.Visible  = true;
            txtRawmaterialQty.Text         = string.Empty;
            dropRawmaterial.SelectedIndex  = -1;
        }