/// <summary>
 /// To checking the cancelled status and checking to other forms opend or not
 /// </summary>
 public void PurchaseOrderCancel()
 {
     try
     {
         PurchaseOrderBll BllPurchaseOrder = new PurchaseOrderBll();
         BllPurchaseOrder.PurchaseOrderCancel(decPurchaseOrderMasterId);
         Messages.InformationMessage("Cancelled successfully");
         if (frmPurchaseOrderRegisterObj != null)
         {
             this.Close();
             frmPurchaseOrderRegisterObj.GridFill();
         }
         if (frmPurchaseOrderReportObj != null)
         {
             this.Close();
             frmPurchaseOrderReportObj.GridFill();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("PO12:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }