예제 #1
0
 /// <summary>
 /// To Get Default Product Values
 /// </summary>
 /// <param name="inindex"></param>
 /// <param name="decproductId"></param>
 public void ProductDefaultValues(int inindex, decimal decproductId)
 {
     try
     {
         UnitSP spUnit = new UnitSP();
         isValueChange = false;
         infoProduct = spProduct.ProductView(decproductId);
         dgvProduct.Rows[inindex].Cells["dgvtxtProductCode"].Value = infoProduct.ProductCode;
         dgvProduct.Rows[inindex].Cells["dgvtxtProductName"].Value = infoProduct.ProductName;
         TransactionsGeneralFill obj = new TransactionsGeneralFill();
         DataTable dtblUnitViewall = new DataTable();
         dtblUnitViewall = obj.UnitViewAllByProductId(dgvProduct, decproductId.ToString(), inindex);
         BatchSP spBatch = new BatchSP();
         spBatch.BatchViewbyProductIdForComboFillInGrid(decproductId, dgvProduct, inindex);
         isValueChange = true;
     }
     catch (Exception ex)
     {
         MessageBox.Show("RO40:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
예제 #2
0
 /// <summary>
 /// Function to use the Batch ComboFill
 /// </summary>
 /// <param name="inRowIndex"></param>
 /// <param name="decProductId"></param>
 public void DGVBatchComboFill(int inRowIndex, decimal decProductId)
 {
     try
     {
         BatchSP spBatch = new BatchSP();
         spBatch.BatchViewbyProductIdForComboFillInGrid(decProductId, dgvProduct, inRowIndex);
     }
     catch (Exception ex)
     {
         MessageBox.Show("RI:18" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }