private void btnAdd_Click(object sender, EventArgs e) { if (!IsItemValid()) return; var grnItemDetails = new GRNItemDetail(); grnItemDetails.ItemCode = txtItemCode.Text; grnItemDetails.Description = txtDescription.Text; grnItemDetails.Challan = Convert.ToInt32(txtChallan.Text); grnItemDetails.ChallanUnit = cmbChallanUnit.Text; grnItemDetails.Actual = Convert.ToDecimal(txtActual.Text); grnItemDetails.ActualUnit = cmbActualUnit.Text; grnItemDetails.Accepted = cmbAccepted.Text; grnItemDetails.Remarks = txtRemark.Text; _grnDetail.GRNItemDetails.Add(grnItemDetails); ResetItemDetail(); BindItemGrid(); }
private void detach_GRNItemDetails(GRNItemDetail entity) { this.SendPropertyChanging(); entity.GRNDetail = null; }
partial void UpdateGRNItemDetail(GRNItemDetail instance);
partial void DeleteGRNItemDetail(GRNItemDetail instance);
partial void InsertGRNItemDetail(GRNItemDetail instance);