Exemplo n.º 1
0
        public frmInputsDocumentsEdit(int _nInputID, int _nInputDocumentID)
        {
            nInputDocumentID = _nInputDocumentID;
            nInputID         = _nInputID;

            oInputDocument = new InputDocument();
            if (oInputDocument.ErrorNumber != 0)
            {
                IsValid = false;
            }

            if (IsValid)
            {
                oCurrency = new Currency();
                if (oCurrency.ErrorNumber != 0)
                {
                    IsValid = false;
                }
            }

            if (IsValid)
            {
                oInput = new Input();
                if (oInput.ErrorNumber != 0)
                {
                    IsValid = false;
                }
            }

            if (IsValid)
            {
                InitializeComponent();
            }
        }
Exemplo n.º 2
0
        public frmInputsDocumentsEdit(int _nInputDocumentID)
        {
            nInputDocumentID = _nInputDocumentID;

            oInputDocument = new InputDocument();
            if (oInputDocument.ErrorNumber != 0)
            {
                IsValid = false;
            }

            if (IsValid)
            {
                oCurrency = new Currency();
                if (oCurrency.ErrorNumber != 0)
                {
                    IsValid = false;
                }
            }

            if (IsValid)
            {
                InitializeComponent();
            }

            nUserHostID = ((RFMFormMain)Application.OpenForms[0]).UserInfo.HostID;
        }