예제 #1
0
        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();
        }
예제 #2
0
		private void detach_GRNItemDetails(GRNItemDetail entity)
		{
			this.SendPropertyChanging();
			entity.GRNDetail = null;
		}
예제 #3
0
 partial void UpdateGRNItemDetail(GRNItemDetail instance);
예제 #4
0
 partial void DeleteGRNItemDetail(GRNItemDetail instance);
예제 #5
0
 partial void InsertGRNItemDetail(GRNItemDetail instance);