ajax_raw(process, data, success, error)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example | |
import org.scalatra._ | |
import scalate.ScalateSupport | |
import ru.miit.economics._ | |
import org.joda.time.LocalDate | |
import cc.spray.json._ | |
class MyScalatraFilter extends ScalatraFilter with ScalateSupport { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wsimport -d src\main\java -Xnocompile http://127.0.0.1:11111/asoews?wsdl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT P.ID_POEZD, | |
P.VRSVOP, | |
P.KODOP_P, | |
P.ID_OBJ, | |
(SELECT S.ID_OBJ FROM STAN S WHERE P.ID_OBJ IN (SELECT ID_OBJ_P FROM TMO START WITH ID_OBJ = S.ID_OBJ CONNECT BY PRIOR ID_OBJ_P = ID_OBJ)) ID_STAN, | |
pa.vag_gol, | |
pa.vag_hvost, | |
pa.udl_p, | |
pa.kol_vag_ob | |
FROM ARHIV.A_TOP P |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE | |
V_PERIOD_ID NUMBER := ?; | |
BEGIN | |
UPDATE PSO2_POEZD P | |
SET P.NOM_POEZD = | |
(SELECT CASE PP.ID_SYS | |
WHEN 65000030100004 THEN | |
S.NOM_P_NECH | |
ELSE | |
S.NOM_P_CHET |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val done = HashSet.empty[Long] | |
val notEndedTransit = ops.collect { | |
case s if (s.train.trainType == Transit || s.train.trainType == TransitWithWork) | |
&& !done.contains(s.train.id) | |
&& ops.find(s2 => {s2.train.id == s.train.id && s2.operation.id == "03"}).isEmpty => { | |
done += s.train.id | |
... | |
} | |
db.update(UpdateTransitPSO(notEndedTransit.map(_._2))) | |
done.clear() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app_debug_on ?= false | |
@apex_prefix ?= 'apex' | |
class @RequestObject | |
constructor : (@request, @parameters = []) -> | |
@p_request = "APPLICATION_PROCESS=#{@request}" | |
@p_instance = $v('pInstance') | |
@p_flow_id = $v('pFlowId') | |
@p_flow_step_id = $v('pFlowStepId') | |
for param, idx in @parameters when idx < 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.miit.dao | |
/** | |
* Created by IntelliJ IDEA. | |
* User: vasa | |
* Date: 25.04.12 | |
* Time: 22:08 | |
*/ | |
import cc.spray.json._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Validator extends ValidatorLike { | |
def validateEvaluateRequest(params: Map[String, String]): ValidationNel[String, (Int, String, Int)] = { | |
val checkId = { | |
try { | |
params.get("sessionId") match { | |
case Some(sessionId) ⇒ sessionId.toInt.successNel | |
case None ⇒ "no sessionId".failureNel | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.error_fix_dialog_content.dialog("option", "buttons" | |
[ | |
text : "Исправить" | |
class: "btn btn-success" | |
click: $.proxy(-> | |
this.show_overlay(".ui-dialog") | |
form = this.error_fix_content_div.find("form") | |
form.triggerHandler("submit") | |
conf["data"] = form.serialize() | |
conf["success"] = $.proxy((data, status, jqXHR) -> |
OlderNewer