protected void BtnOk_Click(object sender, EventArgs e) { FrameWork.ProductsWareHouse prods = new FrameWork.ProductsWareHouse(); prods.ProductId = int.Parse(this.drpFeeds.SelectedValue); prods.Out = decimal.Parse(this.txtOut.Text); prods.Return = decimal.Parse(this.txtReturn.Text); BusinessRule.busDailyMonitoring busprods = new BusinessRule.busDailyMonitoring(); string x = busprods.ProductsWareHouse(prods); Session["RRID"] = x; txtWeightofFood.Text = (decimal.Parse(this.txtOut.Text) - decimal.Parse(this.txtReturn.Text)).ToString(); //busCustomer buscust = new busCustomer(); //DataTable dt = new DataTable("customer"); //dt = buscust.allCustomer(); //GridView1.DataSource = dt; //GridView1.DataBind(); }
protected void btnSave_Click(object sender, EventArgs e) { FrameWork.DailyMonitoring prods = new FrameWork.DailyMonitoring(); prods.ProdID = this.ddpProduct.SelectedValue; prods.ItemDescription = txtProductDesc.Text; prods.BatchNo =int.Parse(this.txtBatch.Text); prods.ModuleNo = int.Parse(this.txtModule.Text); prods.CageNo = int.Parse(this.txtCage.Text); prods.TotalCount = int.Parse(this.txtCount.Text); prods.Dead = int.Parse(this.txtDead.Text); prods.Deform = int.Parse(this.txtDeform.Text); prods.Age = int.Parse(this.txtAge.Text); prods.Salinity = int.Parse(this.txtSalinity.Text); prods.Temp = int.Parse(this.txtTemp.Text); prods.Weather = this.txtweather.Text; prods.WeightofFood = int.Parse(this.txtWeightofFood.Text); prods.RecordedBy = this.txtRecordedBy.Text; prods.CheckBy = this.txtCheckBy.Text; prods.RRID = int.Parse(Session["RRID"].ToString()); prods.DateofTrans =DateTime.Parse (this.txtDOT.Text); prods.TimeofTrans =this.txtTime.Text; BusinessRule.busDailyMonitoring busprods = new BusinessRule.busDailyMonitoring(); string x = busprods.insertDailyMonitoring(prods); }