예제 #1
0
def dialogaction(action, var):

    cutil.printVar("alertp", action, var)

    if action == "before":
        cutil.copyField(var, "message", "Hello, I am who I am")

    if action == "click":
        cutil.setOkMessage(var, var["message"], var["title"], "afterok")

    if action == "clickyesno":
        cutil.setYesNoMessage(var, var["message"], var["title"], "afteryesno")

    if action == "clickerror":
        cutil.setErrorMessage(var, var["message"], var["title"], "aftererror")

    if action == "copyfield":
        cutil.copyField(var, "dispmessage", var["copymessage"])

    if action == "afterok":
        cutil.copyField(var, "dispmessage", "You click OK")

    if action == "afteryesno":
        if var["JYESANSWER"]: s = "Yes click YES"
        else: s = "You click NO"
        cutil.copyField(var, "dispmessage", s)

    if action == "aftererror":
        cutil.copyField(var, "dispmessage", "You click OK error message")
예제 #2
0
def dialogaction(action,var) :

  cutil.printVar("alertp",action,var)

  if action == "before" :
      cutil.copyField(var,"message","Hello, I am who I am")

  if action == "click" :
      cutil.setOkMessage(var,var["message"], var["title"],"afterok")

  if action == "clickyesno" :
      cutil.setYesNoMessage(var,var["message"], var["title"],"afteryesno")

  if action == "clickerror" :
      cutil.setErrorMessage(var,var["message"], var["title"],"aftererror")

  if action == "copyfield" :
      cutil.copyField(var,"dispmessage",var["copymessage"])

  if action == "afterok" :
      cutil.copyField(var,"dispmessage","You click OK")

  if action == "afteryesno" :
      if var["JYESANSWER"] : s = "Yes click YES"
      else : s = "You click NO"
      cutil.copyField(var,"dispmessage",s)

  if action == "aftererror" :
      cutil.copyField(var,"dispmessage","You click OK error message")
예제 #3
0
def dialogaction(action,var) :

    cutil.printVar("main",action,var)

    if action == "click" :
        s = _addval(var,"vstring") + _addval(var,"vpassword") + _addval(var,"vnumb") + _addval(var,"vchecked") + _addval(var,"vdate1") + _addval(var,"vdate2")
        cutil.copyField(var,"vresult",s)
예제 #4
0
def dialogaction(action,var) :

  cutil.printVar("signal change",action,var)

  if action == "signalchange" :
      v = var["changefield"]
      s = v + " = " + str(var[v])
      cutil.copyField(var,"vresult",s)
예제 #5
0
def dialogaction(action, var):

    cutil.printVar("signal change", action, var)

    if action == "signalchange":
        v = var["changefield"]
        s = v + " = " + str(var[v])
        cutil.copyField(var, "vresult", s)
예제 #6
0
def dialogaction(action, var):

    cutil.printVar("main", action, var)

    if action == "click":
        s = _addval(var, "vstring") + _addval(var, "vpassword") + _addval(
            var, "vnumb") + _addval(var, "vchecked") + _addval(
                var, "vdate1") + _addval(var, "vdate2")
        cutil.copyField(var, "vresult", s)
def dialogaction(action, var):

    cutil.printVar("dialogmessage", action, var)

    if action == "click":
        if cutil.checkEmpty(var, "vstring"): return
        cutil.callUpDialog(var, "dialogmessageup.xml", var["vstring"])

    if action == "closepopup":
        cutil.copyField(var, "vresult", cutil.getUpReturnMessage(var))
def dialogactionup(action, var):

    cutil.printVar("dialogactionup", action, var)

    if action == "before":
        cutil.copyField(var, "vinput", cutil.getUpDialogParam(var))

    if action == "ok" or action == "no":
        if action == "ok" and cutil.checkEmpty(var, "vreturn"): return
        res = "Result=" + action
        if action == "ok": res = res + "\n" + var["vreturn"]
        cutil.setCloseDialog(var, res)
예제 #9
0
def dpopaction(action, var):

    cutil.printVar("dpop", action, var)

    if action == "before":
        cutil.copyField(var, "dstring", var["vstring"])

    if action == "copy":
        cutil.copyField(var, "vstring", var["newstring"])

    if action == "ok":
        cutil.setCloseDialog(var)
예제 #10
0
def dpopaction(action,var) :

  cutil.printVar("dpop",action,var)
  
  if action == "before" :
      cutil.copyField(var,"dstring",var["vstring"])
      
  if action == "copy" :
      cutil.copyField(var,"vstring",var["newstring"])

  if action == "ok" :
      cutil.setCloseDialog(var)
예제 #11
0
def dialogaction(action, var):

    cutil.printVar("alertp", action, var)

    if action == "click":
        cutil.setOkMessage(var, var["message"], var["title"], "after")

    if action == "clickyesno":
        cutil.setYesNoMessage(var, var["message"], var["title"], "after")

    if action == "clickerror":
        cutil.setErrorMessage(var, var["message"], var["title"], "after")

    if action == "copyfield":
        cutil.copyField(var, "dispmessage", var["copymessage"])
예제 #12
0
def dialogaction(action,var) :

  cutil.printVar("alertp",action,var)
  
  if action == "click" :
      cutil.setOkMessage(var,var["message"], var["title"],"after")
  
  if action == "clickyesno" :
      cutil.setYesNoMessage(var,var["message"], var["title"],"after")

  if action == "clickerror" :
      cutil.setErrorMessage(var,var["message"], var["title"],"after")

  if action == "copyfield" :
      cutil.copyField(var,"dispmessage",var["copymessage"])