protected void btnUpdate_Click(object sender, EventArgs e) { Inv_ProductionConfiguration inv_ProductionConfiguration = new Inv_ProductionConfiguration(); inv_ProductionConfiguration = Inv_ProductionConfigurationManager.GetInv_ProductionConfigurationByID(Int32.Parse(Request.QueryString["inv_ProductionConfigurationID"])); Inv_ProductionConfiguration tempInv_ProductionConfiguration = new Inv_ProductionConfiguration(); tempInv_ProductionConfiguration.Inv_ProductionConfigurationID = inv_ProductionConfiguration.Inv_ProductionConfigurationID; tempInv_ProductionConfiguration.ProductID = Int32.Parse(ddlProduct.SelectedValue); tempInv_ProductionConfiguration.QualityValue = Decimal.Parse(txtQualityValue.Text); tempInv_ProductionConfiguration.QualityUnitID = Int32.Parse(ddlQualityUnit.SelectedValue); tempInv_ProductionConfiguration.QuantityValue = Decimal.Parse(txtQuantityValue.Text); tempInv_ProductionConfiguration.QuantityUnitID = Int32.Parse(ddlQuantityUnit.SelectedValue); tempInv_ProductionConfiguration.RawMaterialID = Int32.Parse(ddlRawMaterial.SelectedValue); tempInv_ProductionConfiguration.ExtraField1 = ""; tempInv_ProductionConfiguration.ExtraField2 = ""; tempInv_ProductionConfiguration.ExtraField3 = ""; tempInv_ProductionConfiguration.ExtraField4 = ""; tempInv_ProductionConfiguration.ExtraField5 = ""; tempInv_ProductionConfiguration.AddedBy = getLogin().LoginID; tempInv_ProductionConfiguration.AddedDate = DateTime.Now; tempInv_ProductionConfiguration.UpdatedBy = getLogin().LoginID; tempInv_ProductionConfiguration.UpdatedDate = DateTime.Now; tempInv_ProductionConfiguration.RowStatusID = 1; bool result = Inv_ProductionConfigurationManager.UpdateInv_ProductionConfiguration(tempInv_ProductionConfiguration); Response.Redirect("AdminInv_ProductionConfigurationDisplay.aspx"); }
private void showInv_ProductionConfigurationData() { Inv_ProductionConfiguration inv_ProductionConfiguration = new Inv_ProductionConfiguration(); inv_ProductionConfiguration = Inv_ProductionConfigurationManager.GetInv_ProductionConfigurationByID(Int32.Parse(Request.QueryString["inv_ProductionConfigurationID"])); ddlProduct.SelectedValue = inv_ProductionConfiguration.ProductID.ToString(); txtQualityValue.Text = inv_ProductionConfiguration.QualityValue.ToString(); ddlQualityUnit.SelectedValue = inv_ProductionConfiguration.QualityUnitID.ToString(); txtQuantityValue.Text = inv_ProductionConfiguration.QuantityValue.ToString(); ddlQuantityUnit.SelectedValue = inv_ProductionConfiguration.QuantityUnitID.ToString(); ddlRawMaterial.SelectedValue = inv_ProductionConfiguration.RawMaterialID.ToString(); }
private void showInv_ProductionConfigurationData(int id) { Inv_ProductionConfiguration inv_ProductionConfiguration = new Inv_ProductionConfiguration(); inv_ProductionConfiguration = Inv_ProductionConfigurationManager.GetInv_ProductionConfigurationByID(id); ddlProduct.SelectedValue = inv_ProductionConfiguration.ProductID.ToString(); txtQualityValue.Text = inv_ProductionConfiguration.QualityValue.ToString(); ddlQualityUnit.SelectedValue = inv_ProductionConfiguration.QualityUnitID.ToString(); txtQuantityValue.Text = inv_ProductionConfiguration.QuantityValue.ToString(); ddlQuantityUnit.SelectedValue = inv_ProductionConfiguration.QuantityUnitID.ToString(); ddlRawMaterial.SelectedValue = inv_ProductionConfiguration.RawMaterialID.ToString(); }
private void showInv_ProductionConfigurationData() { Inv_ProductionConfiguration inv_ProductionConfiguration = new Inv_ProductionConfiguration(); inv_ProductionConfiguration = Inv_ProductionConfigurationManager.GetInv_ProductionConfigurationByID(Int32.Parse(Request.QueryString["inv_ProductionConfigurationID"])); ddlProduct.SelectedValue = inv_ProductionConfiguration.ProductID.ToString(); txtQualityValue.Text = inv_ProductionConfiguration.QualityValue.ToString(); ddlQualityUnit.SelectedValue = inv_ProductionConfiguration.QualityUnitID.ToString(); txtQuantityValue.Text = inv_ProductionConfiguration.QuantityValue.ToString(); ddlQuantityUnit.SelectedValue = inv_ProductionConfiguration.QuantityUnitID.ToString(); ddlRawMaterial.SelectedValue = inv_ProductionConfiguration.RawMaterialID.ToString(); txtExtraField1.Text = inv_ProductionConfiguration.ExtraField1; txtExtraField2.Text = inv_ProductionConfiguration.ExtraField2; txtExtraField3.Text = inv_ProductionConfiguration.ExtraField3; txtExtraField4.Text = inv_ProductionConfiguration.ExtraField4; txtExtraField5.Text = inv_ProductionConfiguration.ExtraField5; txtAddedBy.Text = inv_ProductionConfiguration.AddedBy.ToString(); txtUpdatedBy.Text = inv_ProductionConfiguration.UpdatedBy.ToString(); txtUpdatedDate.Text = inv_ProductionConfiguration.UpdatedDate; ddlRowStatus.SelectedValue = inv_ProductionConfiguration.RowStatusID.ToString(); }