endregion region İHALE
762001
function f_temp_sil_ihale(_tahta_id) {
    if (_tahta_id) {
        return db.redis.dbQ.Q.all([
            db.redis.dbQ.del(db.redis.kp.temp.ssetTahtaIhale(_tahta_id)),
            db.redis.dbQ.del(db.redis.kp.temp.ssetTahtaAnahtarIhaleleri(_tahta_id)),
            db.redis.dbQ.del(db.redis.kp.temp.zsetTahtaIhaleSiraliIhaleTarihineGore(_tahta_id)),
            db.redis.dbQ.del(db.redis.kp.temp.zsetTahtaAnahtaraGoreSiraliIhaleTarihineGore(_tahta_id))
        ]);
    } else {
        return null;
    }
}
595084
protected final void endClientExecution(
            AWSRequestMetrics awsRequestMetrics, Request<?> request,
            Response<?> response) {
        this.endClientExecution(awsRequestMetrics, request, response,
                !LOGGING_AWS_REQUEST_METRIC);
    }
972912
function regions(token) {
  var r1, r2, rv, len;
  var i;

  r1 = r2 = rv = len = token.length;

  // R1 is the region after the first non-vowel following a vowel,
  for (var i = 0; i < len - 1 && r1 == len; i++) {
    if (isVowel(token[i]) && !isVowel(token[i + 1])) {
      r1 = i + 2;
    }
  }
  // Or is the null region at the end of the word if there is no such non-vowel.

  // R2 is the region after the first non-vowel following a vowel in R1
  for (i = r1; i < len - 1 && r2 == len; i++) {
    if (isVowel(token[i]) && !isVowel(token[i + 1])) {
      r2 = i + 2;
    }
  }
  // Or is the null region at the end of the word if there is no such non-vowel.

  // RV region
  var three = token.slice(0, 3);
  if (isVowel(token[0]) && isVowel(token[1])) {
    rv = 3;
  }
  if (three === 'par' || three == 'col' || three === 'tap')
    rv = 3;
  // the region after the first vowel not at the beginning of the word or null
  else {
    for (i = 1; i < len - 1 && rv == len; i++) {
      if (isVowel(token[i])) {
        rv = i + 1;
      }
    }
  }

  return {
    r1: r1,
    r2: r2,
    rv: rv
  };
}
1094359
def pic_inflow_v2(self):
    
    flu = self.sequences.fluxes.fastaccess
    inl = self.sequences.inlets.fastaccess
    flu.inflow = inl.q[0]+inl.s[0]+inl.r[0]
866254
function f_tahta_ihale_rapor_bilgileri(_tahta_id, _arama) {


        /*return f_indekslenen_ve_takip_edilen_kalem_idler(_tahta_id)
         .then(function (_kalem_idler) {
         console.log("_kalem_idler>" + _kalem_idler)
         return result.dbQ.hmget(result.kp.kalem.hsetIhaleleri, _kalem_idler)
         .then(function (_ihale_idler) {
         //aynı ihale_id gelmesin diye uniq metoduna gönderiyoruz
         _ihale_idler = _.uniq(_ihale_idler);

         console.log("_ihale_idler>" + _ihale_idler);

         /!** @type {OptionsIhale} *!/
         var opts = {
         bArrKalemleri: true,
         bYapanKurum: true,
         bTakip: true,
         optsKalem: {
         bArrTeklifleri: true,
         bTakiptemi: true,
         bOnayDurumu: true
         }
         };
         var db_ihale = require("./db_ihale");
         return db_ihale.f_db_ihale_id(_ihale_idler, _tahta_id, opts);
         })
         });*/

        return f_indekslenen_ve_takip_edilen_ihale_idleri(_tahta_id)
            .then(function (_ihale_idler) {
                console.log("_ihale_idler>" + _ihale_idler);

                if (Array.isArray(_ihale_idler) && _ihale_idler.length > 0) {
                    /** @type {OptionsIhale} */
                    var opts = {
                        bArrKalemleri: false,
                        bYapanKurum: true,
                        bTakip: true
                        /*  optsKalem: {
                         bArrTeklifleri: true,
                         bTakiptemi: true,
                         bOnayDurumu: true
                         }*/
                    };
                    var db_ihale = require("./db_ihale");
                    return db_ihale.f_db_ihale_id(_ihale_idler, _tahta_id, opts);
                } else {
                    return [];
                }
            })
    }
6753
private void interiorLineInteriorPoint_(int cluster, int id_a, int id_b,
			int cluster_index_a) {
		if (m_matrix[MatrixPredicate.InteriorInterior] == 0)
			return;

		int clusterParentage = m_topo_graph.getClusterParentage(cluster);

		if ((clusterParentage & id_a) != 0 && (clusterParentage & id_b) != 0) {
			int index = m_topo_graph.getClusterUserIndex(cluster,
					cluster_index_a);

			if (index % 2 == 0) {
				m_matrix[MatrixPredicate.InteriorInterior] = 0;
			}
		}
	}
266445
function f_kalem_indeksli_idler_ihaleye_bagli(_tahta_id, _ihale_id) {
        var db_ihale = require('./db_ihale');

        return result.dbQ.Q.all([
                f_kalem_indeksli_idler(_tahta_id), //anahtar kelimelerin geçtiği kalemler
                db_ihale.f_db_ihale_aktif_kalem_idler(_ihale_id, _tahta_id)//ihalenin kalemleri
            ])
            .then(function (_ress) {
                var anahtar_kalem_idler = _ress[0],
                    ihale_kalem_idler = _ress[1];
                console.log("anahtar_kalem_idler>" + anahtar_kalem_idler);
                console.log("ihale_kalem_idler>" + ihale_kalem_idler);
                var kesisim = ihale_kalem_idler.intersectionXU(anahtar_kalem_idler);
                console.log("kesisim>" + kesisim);
                return kesisim;
            })
            .fail(function (_err) {
                var hata = "indeksli kalemler çekilirken hata oluştu: " + _err;
                l.e(hata);
                return hata;
            });
    }
1095626
function f_tahta_ihale_indeksli_tahta_anahtarKelimelerineGore(_tahta_id, _opts) {
        var db_ihale = require("./db_ihale");

        // anahtalar diyaliz > 1, fx80 > 25, av-set > 145
        // a:1:ihale 101, 102
        // tahta:401:anahtar 1,25,145
        // sdiff (sunion a:1 a:25 a:145 ihale:sirala:tarihe) ihale:silinen
        return f_tahta_ihale_indeksli_idler(_tahta_id)
            .then(function (_lstIhaleIdler) {
                return _lstIhaleIdler.length == 0
                    ? _lstIhaleIdler
                    : db_ihale.f_db_ihale_id(_lstIhaleIdler, _tahta_id, _opts);
            });
    }
435634
@Override
	protected T doSwitch(int classifierID, EObject theEObject)
	{
		switch (classifierID)
		{
			case XbasePackage.XEXPRESSION:
			{
				XExpression xExpression = (XExpression)theEObject;
				T result = caseXExpression(xExpression);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XIF_EXPRESSION:
			{
				XIfExpression xIfExpression = (XIfExpression)theEObject;
				T result = caseXIfExpression(xIfExpression);
				if (result == null) result = caseXExpression(xIfExpression);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XSWITCH_EXPRESSION:
			{
				XSwitchExpression xSwitchExpression = (XSwitchExpression)theEObject;
				T result = caseXSwitchExpression(xSwitchExpression);
				if (result == null) result = caseXExpression(xSwitchExpression);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XCASE_PART:
			{
				XCasePart xCasePart = (XCasePart)theEObject;
				T result = caseXCasePart(xCasePart);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XBLOCK_EXPRESSION:
			{
				XBlockExpression xBlockExpression = (XBlockExpression)theEObject;
				T result = caseXBlockExpression(xBlockExpression);
				if (result == null) result = caseXExpression(xBlockExpression);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XVARIABLE_DECLARATION:
			{
				XVariableDeclaration xVariableDeclaration = (XVariableDeclaration)theEObject;
				T result = caseXVariableDeclaration(xVariableDeclaration);
				if (result == null) result = caseXExpression(xVariableDeclaration);
				if (result == null) result = caseJvmIdentifiableElement(xVariableDeclaration);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XABSTRACT_FEATURE_CALL:
			{
				XAbstractFeatureCall xAbstractFeatureCall = (XAbstractFeatureCall)theEObject;
				T result = caseXAbstractFeatureCall(xAbstractFeatureCall);
				if (result == null) result = caseXExpression(xAbstractFeatureCall);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XMEMBER_FEATURE_CALL:
			{
				XMemberFeatureCall xMemberFeatureCall = (XMemberFeatureCall)theEObject;
				T result = caseXMemberFeatureCall(xMemberFeatureCall);
				if (result == null) result = caseXAbstractFeatureCall(xMemberFeatureCall);
				if (result == null) result = caseXExpression(xMemberFeatureCall);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XFEATURE_CALL:
			{
				XFeatureCall xFeatureCall = (XFeatureCall)theEObject;
				T result = caseXFeatureCall(xFeatureCall);
				if (result == null) result = caseXAbstractFeatureCall(xFeatureCall);
				if (result == null) result = caseXExpression(xFeatureCall);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XCONSTRUCTOR_CALL:
			{
				XConstructorCall xConstructorCall = (XConstructorCall)theEObject;
				T result = caseXConstructorCall(xConstructorCall);
				if (result == null) result = caseXExpression(xConstructorCall);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XBOOLEAN_LITERAL:
			{
				XBooleanLiteral xBooleanLiteral = (XBooleanLiteral)theEObject;
				T result = caseXBooleanLiteral(xBooleanLiteral);
				if (result == null) result = caseXExpression(xBooleanLiteral);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XNULL_LITERAL:
			{
				XNullLiteral xNullLiteral = (XNullLiteral)theEObject;
				T result = caseXNullLiteral(xNullLiteral);
				if (result == null) result = caseXExpression(xNullLiteral);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XNUMBER_LITERAL:
			{
				XNumberLiteral xNumberLiteral = (XNumberLiteral)theEObject;
				T result = caseXNumberLiteral(xNumberLiteral);
				if (result == null) result = caseXExpression(xNumberLiteral);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XSTRING_LITERAL:
			{
				XStringLiteral xStringLiteral = (XStringLiteral)theEObject;
				T result = caseXStringLiteral(xStringLiteral);
				if (result == null) result = caseXExpression(xStringLiteral);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XCOLLECTION_LITERAL:
			{
				XCollectionLiteral xCollectionLiteral = (XCollectionLiteral)theEObject;
				T result = caseXCollectionLiteral(xCollectionLiteral);
				if (result == null) result = caseXExpression(xCollectionLiteral);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XLIST_LITERAL:
			{
				XListLiteral xListLiteral = (XListLiteral)theEObject;
				T result = caseXListLiteral(xListLiteral);
				if (result == null) result = caseXCollectionLiteral(xListLiteral);
				if (result == null) result = caseXExpression(xListLiteral);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XSET_LITERAL:
			{
				XSetLiteral xSetLiteral = (XSetLiteral)theEObject;
				T result = caseXSetLiteral(xSetLiteral);
				if (result == null) result = caseXCollectionLiteral(xSetLiteral);
				if (result == null) result = caseXExpression(xSetLiteral);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XCLOSURE:
			{
				XClosure xClosure = (XClosure)theEObject;
				T result = caseXClosure(xClosure);
				if (result == null) result = caseXExpression(xClosure);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XCASTED_EXPRESSION:
			{
				XCastedExpression xCastedExpression = (XCastedExpression)theEObject;
				T result = caseXCastedExpression(xCastedExpression);
				if (result == null) result = caseXExpression(xCastedExpression);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XBINARY_OPERATION:
			{
				XBinaryOperation xBinaryOperation = (XBinaryOperation)theEObject;
				T result = caseXBinaryOperation(xBinaryOperation);
				if (result == null) result = caseXAbstractFeatureCall(xBinaryOperation);
				if (result == null) result = caseXExpression(xBinaryOperation);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XUNARY_OPERATION:
			{
				XUnaryOperation xUnaryOperation = (XUnaryOperation)theEObject;
				T result = caseXUnaryOperation(xUnaryOperation);
				if (result == null) result = caseXAbstractFeatureCall(xUnaryOperation);
				if (result == null) result = caseXExpression(xUnaryOperation);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XPOSTFIX_OPERATION:
			{
				XPostfixOperation xPostfixOperation = (XPostfixOperation)theEObject;
				T result = caseXPostfixOperation(xPostfixOperation);
				if (result == null) result = caseXAbstractFeatureCall(xPostfixOperation);
				if (result == null) result = caseXExpression(xPostfixOperation);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XFOR_LOOP_EXPRESSION:
			{
				XForLoopExpression xForLoopExpression = (XForLoopExpression)theEObject;
				T result = caseXForLoopExpression(xForLoopExpression);
				if (result == null) result = caseXExpression(xForLoopExpression);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XBASIC_FOR_LOOP_EXPRESSION:
			{
				XBasicForLoopExpression xBasicForLoopExpression = (XBasicForLoopExpression)theEObject;
				T result = caseXBasicForLoopExpression(xBasicForLoopExpression);
				if (result == null) result = caseXExpression(xBasicForLoopExpression);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XABSTRACT_WHILE_EXPRESSION:
			{
				XAbstractWhileExpression xAbstractWhileExpression = (XAbstractWhileExpression)theEObject;
				T result = caseXAbstractWhileExpression(xAbstractWhileExpression);
				if (result == null) result = caseXExpression(xAbstractWhileExpression);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XDO_WHILE_EXPRESSION:
			{
				XDoWhileExpression xDoWhileExpression = (XDoWhileExpression)theEObject;
				T result = caseXDoWhileExpression(xDoWhileExpression);
				if (result == null) result = caseXAbstractWhileExpression(xDoWhileExpression);
				if (result == null) result = caseXExpression(xDoWhileExpression);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XWHILE_EXPRESSION:
			{
				XWhileExpression xWhileExpression = (XWhileExpression)theEObject;
				T result = caseXWhileExpression(xWhileExpression);
				if (result == null) result = caseXAbstractWhileExpression(xWhileExpression);
				if (result == null) result = caseXExpression(xWhileExpression);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XTYPE_LITERAL:
			{
				XTypeLiteral xTypeLiteral = (XTypeLiteral)theEObject;
				T result = caseXTypeLiteral(xTypeLiteral);
				if (result == null) result = caseXExpression(xTypeLiteral);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XINSTANCE_OF_EXPRESSION:
			{
				XInstanceOfExpression xInstanceOfExpression = (XInstanceOfExpression)theEObject;
				T result = caseXInstanceOfExpression(xInstanceOfExpression);
				if (result == null) result = caseXExpression(xInstanceOfExpression);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XTHROW_EXPRESSION:
			{
				XThrowExpression xThrowExpression = (XThrowExpression)theEObject;
				T result = caseXThrowExpression(xThrowExpression);
				if (result == null) result = caseXExpression(xThrowExpression);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XTRY_CATCH_FINALLY_EXPRESSION:
			{
				XTryCatchFinallyExpression xTryCatchFinallyExpression = (XTryCatchFinallyExpression)theEObject;
				T result = caseXTryCatchFinallyExpression(xTryCatchFinallyExpression);
				if (result == null) result = caseXExpression(xTryCatchFinallyExpression);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XCATCH_CLAUSE:
			{
				XCatchClause xCatchClause = (XCatchClause)theEObject;
				T result = caseXCatchClause(xCatchClause);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XASSIGNMENT:
			{
				XAssignment xAssignment = (XAssignment)theEObject;
				T result = caseXAssignment(xAssignment);
				if (result == null) result = caseXAbstractFeatureCall(xAssignment);
				if (result == null) result = caseXExpression(xAssignment);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XRETURN_EXPRESSION:
			{
				XReturnExpression xReturnExpression = (XReturnExpression)theEObject;
				T result = caseXReturnExpression(xReturnExpression);
				if (result == null) result = caseXExpression(xReturnExpression);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			case XbasePackage.XSYNCHRONIZED_EXPRESSION:
			{
				XSynchronizedExpression xSynchronizedExpression = (XSynchronizedExpression)theEObject;
				T result = caseXSynchronizedExpression(xSynchronizedExpression);
				if (result == null) result = caseXExpression(xSynchronizedExpression);
				if (result == null) result = defaultCase(theEObject);
				return result;
			}
			default: return defaultCase(theEObject);
		}
	}
667488
protected void findAdjacentRegions(GrayS32 pixelToRegion) {
		// -------- Do the inner pixels first
		if( connect.length == 4 )
			adjacentInner4(pixelToRegion);
		else if( connect.length == 8 ) {
			adjacentInner8(pixelToRegion);
		}

		adjacentBorder(pixelToRegion);
	}
125293
def _ep_for_region(self, region):
        
        rgn = region.upper()
        try:
            rgn_ep = [ep for ep in list(self.endpoints.values())
                    if ep.region.upper() == rgn][0]
        except IndexError:
            # See if there is an 'ALL' region.
            try:
                rgn_ep = [ep for ep in list(self.endpoints.values())
                        if ep.region.upper() == "ALL"][0]
            except IndexError:
                rgn_ep = None
        return rgn_ep
1289695
def makeductcomponent(idf, dname):
    """"""
    aduct = idf.newidfobject("duct".upper(), Name=dname)
    aduct.Inlet_Node_Name = "%s_inlet" % (dname,)
    aduct.Outlet_Node_Name = "%s_outlet" % (dname,)
    return aduct
1033988
private void interiorPointExteriorPoint_(int cluster, int id_a, int id_b,
			int predicate) {
		if (m_matrix[predicate] == 0)
			return;

		int clusterParentage = m_topo_graph.getClusterParentage(cluster);

		if ((clusterParentage & id_a) != 0 && (clusterParentage & id_b) == 0) {
			m_matrix[predicate] = 0;
		}
	}
74041
function Region() {

        this.subRegions = [];

        this.nSubRegions = 0;

        this.node = null;

        this.mass = 0;

        this.centerOfMass = null;

        this.bbox = new Float32Array(4);

        this.size = 0;
    }
451925
@Override
  protected T doSwitch(int classifierID, EObject theEObject)
  {
    switch (classifierID)
    {
      case SimpleAntlrPackage.ANTLR_GRAMMAR:
      {
        AntlrGrammar antlrGrammar = (AntlrGrammar)theEObject;
        T result = caseAntlrGrammar(antlrGrammar);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.OPTIONS:
      {
        Options options = (Options)theEObject;
        T result = caseOptions(options);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.OPTION_VALUE:
      {
        OptionValue optionValue = (OptionValue)theEObject;
        T result = caseOptionValue(optionValue);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.RULE:
      {
        Rule rule = (Rule)theEObject;
        T result = caseRule(rule);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.PARAMETER:
      {
        Parameter parameter = (Parameter)theEObject;
        T result = caseParameter(parameter);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.RULE_ELEMENT:
      {
        RuleElement ruleElement = (RuleElement)theEObject;
        T result = caseRuleElement(ruleElement);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.EXPRESSION:
      {
        Expression expression = (Expression)theEObject;
        T result = caseExpression(expression);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.REFERENCE_OR_LITERAL:
      {
        ReferenceOrLiteral referenceOrLiteral = (ReferenceOrLiteral)theEObject;
        T result = caseReferenceOrLiteral(referenceOrLiteral);
        if (result == null) result = caseExpression(referenceOrLiteral);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.PREDICATED:
      {
        Predicated predicated = (Predicated)theEObject;
        T result = casePredicated(predicated);
        if (result == null) result = caseRuleElement(predicated);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.RULE_OPTIONS:
      {
        RuleOptions ruleOptions = (RuleOptions)theEObject;
        T result = caseRuleOptions(ruleOptions);
        if (result == null) result = caseRuleElement(ruleOptions);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.RULE_CALL:
      {
        RuleCall ruleCall = (RuleCall)theEObject;
        T result = caseRuleCall(ruleCall);
        if (result == null) result = caseRuleElement(ruleCall);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.KEYWORD:
      {
        Keyword keyword = (Keyword)theEObject;
        T result = caseKeyword(keyword);
        if (result == null) result = caseRuleElement(keyword);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.WILDCARD:
      {
        Wildcard wildcard = (Wildcard)theEObject;
        T result = caseWildcard(wildcard);
        if (result == null) result = caseRuleElement(wildcard);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.ALTERNATIVES:
      {
        Alternatives alternatives = (Alternatives)theEObject;
        T result = caseAlternatives(alternatives);
        if (result == null) result = caseRuleElement(alternatives);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.GROUP:
      {
        Group group = (Group)theEObject;
        T result = caseGroup(group);
        if (result == null) result = caseRuleElement(group);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.ELEMENT_WITH_CARDINALITY:
      {
        ElementWithCardinality elementWithCardinality = (ElementWithCardinality)theEObject;
        T result = caseElementWithCardinality(elementWithCardinality);
        if (result == null) result = caseRuleElement(elementWithCardinality);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.NEGATED_ELEMENT:
      {
        NegatedElement negatedElement = (NegatedElement)theEObject;
        T result = caseNegatedElement(negatedElement);
        if (result == null) result = caseRuleElement(negatedElement);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.UNTIL_ELEMENT:
      {
        UntilElement untilElement = (UntilElement)theEObject;
        T result = caseUntilElement(untilElement);
        if (result == null) result = caseRuleElement(untilElement);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.OR_EXPRESSION:
      {
        OrExpression orExpression = (OrExpression)theEObject;
        T result = caseOrExpression(orExpression);
        if (result == null) result = caseExpression(orExpression);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.AND_EXPRESSION:
      {
        AndExpression andExpression = (AndExpression)theEObject;
        T result = caseAndExpression(andExpression);
        if (result == null) result = caseExpression(andExpression);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.NOT_EXPRESSION:
      {
        NotExpression notExpression = (NotExpression)theEObject;
        T result = caseNotExpression(notExpression);
        if (result == null) result = caseExpression(notExpression);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SimpleAntlrPackage.SKIP:
      {
        Skip skip = (Skip)theEObject;
        T result = caseSkip(skip);
        if (result == null) result = caseRuleOptions(skip);
        if (result == null) result = caseRuleElement(skip);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      default: return defaultCase(theEObject);
    }
  }
1284856
function f_tahta_ihale_indeksli_toplami(_tahta_id) {
        return f_tahta_ihale_indeksli_idler_tarihe_gore_sirali(_tahta_id)
            .then(function () {
                /**
                 * önce tüm sıralı indekslenen ihale sayısı
                 * sonra da işlem yapılan tarihten (bugun) itibaren ihale sayısını buluyoruz
                 * 1. bulduklarımız tüm ihale sayısını
                 * 2.si ise tarihi geçmemiş teklif verilebilir ihale sayısını getirir
                 */

                return result.dbQ.Q.all([
                    result.dbQ.zcount(result.kp.temp.zsetTahtaAnahtaraGoreSiraliIhaleTarihineGore(_tahta_id), "-inf", "+inf"),//1
                    result.dbQ.zcount(result.kp.temp.zsetTahtaAnahtaraGoreSiraliIhaleTarihineGore(_tahta_id), new Date().getTime(), "+inf")//2
                ]).then(function (_results) {
                    console.log("_results>" + JSON.stringify(_results));

                    var toplam = parseInt(_results[0] || 0),
                        gecerli = parseInt(_results[1] || 0);

                    return {
                        Toplam: toplam,
                        Gecerli: gecerli,
                        Gecersiz: toplam - gecerli
                    };
                });
            });
    }
1306807
function f_nesne_idleri(_olay, _tahta_id) {
        return f_olaya_uygun_idler(_olay)
            .then(function (_cekilen_idler) {
                if (_cekilen_idler && _cekilen_idler.length > 0) {
                    switch (_olay) {
                        case schema.SABIT.OLAY.IHALE_EKLENDI:
                        case schema.SABIT.OLAY.IHALE_GUNCELLENDI:
                        case schema.SABIT.OLAY.IHALE_SILINDI:
                        case schema.SABIT.OLAY.IHALE_TARIHI_ERTELENDI:
                        {
                            var db_ihale = require('./db_ihale');
                            return db_ihale.f_db_tahta_ihale_idler_aktif(_tahta_id)
                                .then(function (_ihale_idler) {
                                    return _.intersection(_ihale_idler, _cekilen_idler);
                                });
                        }
                            break;
                        case schema.SABIT.OLAY.KALEM_DURUMU_GUNCELLENDI:
                        case schema.SABIT.OLAY.KALEM_EKLENDI:
                        case schema.SABIT.OLAY.KALEM_GUNCELLENDI:
                        case schema.SABIT.OLAY.KALEM_SILINDI:
                        {
                            var db_kalem = require('./db_kalem');
                            return db_kalem.f_db_tahta_kalem_idler_aktif(_tahta_id)
                                .then(function (_kalem_idler) {
                                    return _.intersection(_kalem_idler, _cekilen_idler);
                                });
                        }
                            break;
                        case schema.SABIT.OLAY.TEKLIF_DURUMU_GUNCELLENDI:
                        case schema.SABIT.OLAY.TEKLIF_EKLENDI:
                        case schema.SABIT.OLAY.TEKLIF_GUNCELLENDI:
                        case schema.SABIT.OLAY.TEKLIF_SILINDI:
                        {
                            var db_tahta = require('./db_tahta');
                            return db_tahta.f_db_tahta_teklif_idleri(_tahta_id)
                                .then(function (_teklif_idler) {
                                    return _.intersection(_teklif_idler, _cekilen_idler);
                                });
                        }
                            break;

                        case schema.SABIT.OLAY.URUN_EKLENDI:
                        case schema.SABIT.OLAY.URUN_GUNCELLENDI:
                        case schema.SABIT.OLAY.URUN_SILINDI:
                        case schema.SABIT.OLAY.URUN_ANAHTAR_EKLENDI:
                        case schema.SABIT.OLAY.URUN_ANAHTAR_SILINDI:
                        {
                            var db_urun = require('./db_urun')
                            return db_urun.f_db_urun_aktif_urun_idleri(_tahta_id)
                                .then(function (_urun_idler) {
                                    return _.intersection(_urun_idler, _cekilen_idler);
                                });
                        }
                            break;

                        case schema.SABIT.OLAY.KURUM_EKLENDI:
                        case schema.SABIT.OLAY.KURUM_GUNCELLENDI:
                        case schema.SABIT.OLAY.KURUM_SILINDI:
                        {
                            var db_kurum = require('./db_kurum');
                            return db_kurum.f_db_aktif_kurum_idleri(_tahta_id)
                                .then(function (_kurum_idler) {
                                    return _.intersection(_kurum_idler, _cekilen_idler);
                                });
                        }
                            break;

                        default:
                            break;
                    }
                } else {
                    return null;
                }
            });
    }