/// <summary>
 /// Hide props that should not be present on Pending Request Items;
 /// Make props that should not be edited once Request Item has been submitted readonly
 /// </summary>
 protected void setPropVisibilityBasedOnPendingStatus(CswNbtNodeProp Prop)
 {
     if (_RequestItem.Status.Value == CswNbtObjClassRequestItem.Statuses.Pending)
     {
         switch (Prop.PropName)
         {
         case CswNbtObjClassRequestItem.PropertyName.Requestor:
         case CswNbtObjClassRequestItem.PropertyName.Priority:
         case CswNbtObjClassRequestItem.PropertyName.TotalDispensed:
         case CswNbtObjClassRequestItem.PropertyName.TotalMoved:
         case CswNbtObjClassRequestItem.PropertyName.FulfillmentHistory:
         case CswNbtObjClassRequestItem.PropertyName.ReceiptLotToDispense:
         case CswNbtObjClassRequestItem.PropertyName.ReceiptLotsReceived:
         case CswNbtObjClassRequestItem.PropertyName.GoodsReceived:
             Prop.setHidden(true, SaveToDb: false);
             break;
         }
     }
     else
     {
         switch (Prop.PropName)
         {
         case CswNbtObjClassRequestItem.PropertyName.InventoryGroup:
         case CswNbtObjClassRequestItem.PropertyName.Location:
         case CswNbtObjClassRequestItem.PropertyName.Requestor:
         case CswNbtObjClassRequestItem.PropertyName.Quantity:
         case CswNbtObjClassRequestItem.PropertyName.Size:
         case CswNbtObjClassRequestItem.PropertyName.SizeCount:
         case CswNbtObjClassRequestItem.PropertyName.NewMaterialType:
         case CswNbtObjClassRequestItem.PropertyName.NewMaterialTradename:
         case CswNbtObjClassRequestItem.PropertyName.NewMaterialSupplier:
         case CswNbtObjClassRequestItem.PropertyName.NewMaterialPartNo:
             Prop.setReadOnly(true, SaveToDb: false);
             break;
         }
     }
 }
 /// <summary>
 /// When obsolete checkbox is checked, marks the obsolete prop as servermanaged, preventing
 /// further modification of obsolete status. This helps prevent having more than one obsolete
 /// method at the same time
 /// </summary>
 /// <param name="NodeProp"></param>
 /// <param name="Creating"></param>
 private void _onAfterObsoleteChecked(CswNbtNodeProp NodeProp, bool Creating)
 {
     NodeProp.setReadOnly(true, true);
 }