Thursday, September 27, 2018

script JQUERY Dialog box Pattern1
--------------------
$(function() {

  $("#dialog").dialog({
     autoOpen: false,
     dialogClass: "no-close",
     width: 630,
     modal: true,
     buttons : {
          "Cancel" : function() {
            $(this).dialog("close");
          },
          "Confirm" : function() {
          document.forms[0].submit();         
          }
        }
      });

  $(".ui-button-icon-only").hide();
  $(".ui-dialog-titlebar").hide();

});

---
function confirmDNW(){
if(document.forms[0].didNotWork && document.forms[0].didNotWork.checked == true){
$("#dialog").html("
You are creating 'Did Not Work' timesheet for period of "+ document.getElementById("dateRangeString").value + ".
" + "Once created this timesheet cannot be modified." + "
" +"Please Confirm.
" )
    $("#dialog").dialog("open");
}else{
document.forms[0].submit();
}
}

 div id="dialog"/div

Wednesday, September 19, 2018

J QUERY  DIALOG BOX


function showDidNotWorkMsg() {
var msg = "This is a 'Did Not Work' billing line with no details.AAAA";
$("#divDidNotWorkMsg").html(msg);
$("#divDidNotWorkMsg").dialog({
modal: true,
width: 500,
//height: 195,
closeOnEscape: false,
draggable: false,
resizable: false,
//title: 'Error',
buttons: [
          {
          text: 'OK',
          click: function() {
          $( this ).dialog( "close" );
          },
          'class': 'gold-button'
          }
],
open: function(event, ui) {
$(this).closest('.ui-dialog').find('.ui-dialog-titlebar-close').hide();
$(this).closest('.ui-dialog').addClass('custom-fileupload-err-dialog');
},
    show: {
    effect: "fade",
    duration: 1000
    },
    hide: {
    effect: "drop",
    duration: 1000
    }
});
}

div id="divDidNotWorkMsg" style="display:none;list-style:disc !important;"/div

Saturday, September 15, 2018

Oracle TO_DATE function example:

delete   from BILLING_ITEM where period_end_date > TO_DATE('25-AUG-2018', 'DD-MON-YYYY') and requisitionid=7816182;

Saturday, September 1, 2018

Spring with out even web.xml:

with out web.xml , we will have to install one maven plugin.

AbstarctAnnotationConfigDispatcherServletInitializer (refer without xml) has to be extended.