Exemple #1
0
        public void MetaData_AfterLink()
        {
            _conn       = this.getInstance <IDataAccess>();
            _security   = this.getInstance <ISecurity>();
            _controller = this.getInstance <IFormController>();
            _dispatcher = this.getInstance <IMetaDataDispatcher>();
            _meta       = this.getInstance <IMetaData>();

            QHC = new CQueryHelper();
            QHS = _conn.GetQueryHelper();

            GetData.CacheTable(DS.expensephase, QHS.AppAnd(QHS.CmpNe("nphase", _security.GetSys("maxexpensephase")),
                                                           QHS.CmpGe("nphase", _security.GetSys("expensefinphase"))), "nphase", true);
            HelpForm.SetDenyNull(DS.csa_contractexpense.Columns["idexp"], true);
        }
Exemple #2
0
        public void MetaData_AfterLink()
        {
            _conn       = this.getInstance <IDataAccess>();
            _security   = this.getInstance <ISecurity>();
            _controller = this.getInstance <IFormController>();
            _dispatcher = this.getInstance <IMetaDataDispatcher>();
            _meta       = this.getInstance <IMetaData>();

            QHC = new CQueryHelper();
            QHS = _conn.GetQueryHelper();

            GetData.CacheTable(DS.expensephase, QHS.AppAnd(QHS.CmpNe("nphase", _security.GetSys("maxexpensephase")),
                                                           QHS.CmpGe("nphase", _security.GetSys("expensefinphase")), QHS.CmpLt("nphase", _security.GetSys("expenseregphase"))), "nphase", true);

            int    esercizioCurr = (int)_meta.GetSys("esercizio");
            string filter        = QHS.CmpEq("ayear", esercizioCurr);

            GetData.SetStaticFilter(DS.fin, QHS.AppAnd(filter, QHS.BitSet("flag", 0)));
            GetData.SetStaticFilter(DS.account, filter);
            PostData.MarkAsTemporaryTable(DS.fase_epexp, false);
            GetData.MarkToAddBlankRow(DS.fase_epexp);
            GetData.Add_Blank_Row(DS.fase_epexp);
            EnableFaseImpegnoBudget(1, "Preimpegno di Budget");
            //EnableFaseImpegnoBudget(2, "Impegno di Budget");
            string filterSiope = QHS.CmpEq("codesorkind", _security.GetSys("codesorkind_siopespese"));

            DataTable tSortingkind = _conn.RUN_SELECT("sortingkind", "*", null, filterSiope, null, null, true);

            if ((tSortingkind != null) && (tSortingkind.Rows.Count > 0))
            {
                DataRow R              = tSortingkind.Rows[0];
                object  idsorkind      = R["idsorkind"];
                object  idsorkind_main = R["idsorkind"];
                SetGBoxClass(idsorkind);
            }
        }