Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        public override void toggleReadOnlyProps(bool IsReadOnly, CswNbtPropertySetRequestItem ItemInstance)
        {
            if (null != ItemInstance)
            {
                CswNbtObjClassRequestMaterialCreate ThisRequest = (CswNbtObjClassRequestMaterialCreate)ItemInstance;

                ThisRequest.Material.setReadOnly(value: IsReadOnly, SaveToDb: true);
                ThisRequest.NewMaterialType.setReadOnly(value: IsReadOnly, SaveToDb: true);
                ThisRequest.NewMaterialSupplier.setReadOnly(value: IsReadOnly, SaveToDb: true);
                ThisRequest.NewMaterialTradename.setReadOnly(value: IsReadOnly, SaveToDb: true);
                ThisRequest.NewMaterialPartNo.setReadOnly(value: IsReadOnly, SaveToDb: true);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Cast a the Object Class as a PropertySet
 /// </summary>
 public static CswNbtPropertySetRequestItem toPropertySet(CswNbtObjClassRequestMaterialCreate ObjClass)
 {
     return(ObjClass);
 }