private void FindReceiveByRecId(string recId) { clsProductDetail Dal = new clsProductDetail(); DataSet Pdetail = Dal.LoadProductDetail(recId); GridView1.DataSource = Pdetail.Tables[0]; GridView1.DataBind(); }
protected void BtnChange_Click(object sender, EventArgs e) { BLayer.Receive obj = InitalizeObject(); clsProductDetail Dal = new clsProductDetail(); Dal.SaveCurrentCost(obj); LoadGrid(); ClearAll(); }
protected void btnCalc_Click(object sender, EventArgs e) { if (txtQty.Text != "" || txtRecCost.Text != "") { clsProductDetail Dal = new clsProductDetail(); BLayer.Receive obj = InitalizeObject(); txtCurrentCost.Text = Dal.CalculatePrice(obj).ToString(); BtnChange.Enabled = true; } }
private void LoadReciveId() { clsProductDetail Dal = new clsProductDetail(); DataSet pdetail = Dal.FillReceiveAvalibleforPricing(); ddlRecId.DataValueField = "RecId"; ddlRecId.DataSource = pdetail.Tables[0]; ddlRecId.DataBind(); ddlRecId.Items.Insert(0, "Select"); ddlRecId.Items[0].Value = "0"; }
protected void ddlProduct_SelectedIndexChanged(object sender, EventArgs e) { clsProductDetail Dal = new clsProductDetail(); DataSet ds = Dal.FindPriceandAvaliableQty(ddlProduct.SelectedValue, ddlSuppliers.SelectedValue, ddlManufacturer.SelectedValue); if (ds.Tables[0].Rows.Count != 0) { txtavalQty.Text = (ds.Tables[0].Rows[0]["Qty"]).ToString(); txtUnitPrice.Text = (ds.Tables[0].Rows[0]["CurrentCost"]).ToString(); txtQty.Focus(); } else { txtavalQty.Text = "0"; } }