Exemple #1
0
 protected override void afterPopulateProps()
 {
     afterPropertySetPopulateProps();
     ApprovedForReceiving.setReadOnly( false == _CswNbtResources.Permit.can( CswEnumNbtActionName.Material_Approval ), SaveToDb : false );
     ContainerExpirationLocked.setReadOnly( false == _CswNbtResources.Permit.can( CswEnumNbtActionName.Container_Expiration_Lock ), SaveToDb : false );
     _toggleButtonVisibility();
     _toggleConstituentProps();
     Obsolete.SetOnPropChange( OnObsoletePropChange );
 }
Exemple #2
0
        /// <summary>
        /// Hide properties not appropriate for constituents.
        /// See also CswNbtObjClassChemical._toggleConstituentProps()
        /// </summary>
        private void _toggleConstituentProps()
        {
            if( CswEnumTristate.True == IsConstituent.Checked )
            {
                ApprovedForReceiving.setHidden( true, true );
                Supplier.setHidden( true, true );
                PartNumber.setHidden( true, true );
                Receive.setHidden( true, true );
                Request.setHidden( true, true );

            }
        } // _toggleConstituentProps()
Exemple #3
0
        protected override void beforeWriteNodeLogic( bool Creating, bool OverrideUniqueValidation )
        {
            beforePropertySetWriteNode();

            Request.MenuOptions = CswEnumRequestOption.Options.ToString();
            Request.State = CswEnumRequestOption.Size;

            if( ApprovedForReceiving.wasAnySubFieldModified() )
            {
                Receive.setHidden( value : ApprovedForReceiving.Checked != CswEnumTristate.True, SaveToDb : true );
            }
        }