35 lines
14 KiB
Plaintext
35 lines
14 KiB
Plaintext
select!C0L!select u.user_id,u.group_id,g.name,b.branch_id,b.branchname,b.branchcode,b.city,c.company_id,c.companyname,c.companycode,u.displayname,u.isactive from app_user u,user_group g,company c,company_branch b where u.loginid='val0' and u.loginpassword='val1' and u.group_id=g.group_id and u.company_id=c.company_id and u.branch_id=b.branch_id
|
|
select!C0L!select p.page_id,p.menulabel,p.targeturl,p.parentpage,p.pageorder,up.permission,p.targetwindow from permission up,pages p where up.group_id=val0 and p.isvisible=1 and up.page_id=p.page_id order by p.parentpage asc,p.pageorder desc
|
|
select!C0L!select p.portfolio_id,p.portname,b.bank_branch_id,b.bkbranchname from portfolio_branch pb,bank_branch b,portfolio p where p.portfolio_id=pb.portfolio_id and b.bank_branch_id = pb.bank_branch_id and p.isactive=1 and b.isactive=1
|
|
select!C0L!select b.bank_branch_id,b.bkbranchname from bank_branch b,portfolio_branch pb where pb.portfolio_id=val0 and pb.bank_branch_id=b.bank_branch_id and pb.isactive=1
|
|
select!C0L!select p.description as product,p.description from product p,product_mapping pm where pm.portfolio_id=val0 and pm.product_id=p.product_id and p.isactive=1
|
|
select!C0L!select description,description as city from master where type='CITY'
|
|
select!C0L!select description,aliasname from master where type='DOCUMENT'
|
|
select!C0L!select description,description as apptype from master where type='APPTYPE'
|
|
select!C0L!select description,description as apptype from master where type='CATEGORY'
|
|
select!C0L!select control from app_process where page_id=val0 and val1>0 and process_id not in (select process_id from denied_process where portfolio_id=val1 and isdenied=1)
|
|
select!C0L!select f.label,f.control,f.controlid,f.valuetypescript,f.validationscript,f.style,f.cssclass,f.field_id from field f,field_mapping fm where fm.portfolio_id=val0 and fm.field_id=f.field_id order by fm.fieldorder
|
|
select!C0L!select field_id,fieldvalue as valuepart, fieldvalue as textpart from field_value where field_id=val0 order by valorder
|
|
select!C0L!select concat(colony_id,'#-#',pincode,'#-#',city) as id,concat(location,' ',city) as location from colony where location like 'val0%' order by location
|
|
insert!C0L!insert into user_loginhistory (loginid,logintime) values ('val0','val1')
|
|
update!C0L!update user_loginhistory set logouttime='val0',ipaddr='val1' where logintime='val2' and loginid='val3'
|
|
procedure!C0L!call casepunching('insert into main (portfolio_id,bank_branch_id,mvcode,applno,bankcode,product,loanamount,customername,fathername,apptype,category,dob,contactperson,mobileno,specialinst,rv,sradd,rtv,raddr1,raddr2,raddr3,rlandmark,rcolony,rcity,rpincode,rphone,ov,rco,soadd,otv,companyname,oaddr1,oaddr2,oaddr3,olandmark,ocolony,ocity,opincode,department,designation,ophone,extension,pv,rcp,ocp,spadd,paddr1,paddr2,paddr3,plandmark,pcolony,pcity,ppincode,refv,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,docv,field1,field2,field3,field4,field5,field6,field7,field8,field9,field10,field11,field12,dtfield1,dtfield2,dtfield3,dtfield4,dtfield5,uuid,receivedate,addedon,addedby,company_id,branch_id) values (val0,val1,'val2','val3','val4','val5','val6','val7','val8','val9','val10','val11','val12','val13','val14',val15,val16,val17,'val18','val19','val20','val21',val22,'val23','val24','val25',val26,val27,val28,val29,'val30','val31','val32','val33','val34',val35,'val36','val37','val38','val39','val40','val41',val42,val43,val44,val45,'val46','val47','val48','val49',val50,'val51','val52',val53,'val54','val55','val56','val57','val58','val59',val60,'val61','val62','val63','val64','val65','val66','val67','val68','val69','val70','val71','val72','val73','val74','val75','val76','val77','val78','val79','val80',val81,val82,val83) ',val84,val85,val86)
|
|
update!C0L!update cutoff_operations c set telesheet= IFNULL((select -1 from denied_process d where process_id=9 and d.portfolio_id=c.portfolio_id and d.isdenied=1),(case when rtv+otv > 0 then 1 else 0 end)), allocation= IFNULL((select -1 from denied_process d where process_id=7 and d.portfolio_id=c.portfolio_id and d.isdenied=1),1), sms= IFNULL((select -1 from denied_process d where process_id=8 and d.portfolio_id=c.portfolio_id and d.isdenied=1),1), earlier= IFNULL((select -1 from denied_process d where process_id=11 and d.portfolio_id=c.portfolio_id and d.isdenied=1),1), negative= IFNULL((select -1 from denied_process d where process_id=12 and d.portfolio_id=c.portfolio_id and d.isdenied=1),1), cutoffon='val0',islocked=val3 where (c.cutoffby is null or c.cutoffby=0) and company_id=val1 and branch_id=val2 and (islocked=0 or islocked=val3)
|
|
select!C0L!select portfolio_id,concat(portname,' <b>(',count(*),')</b>') as portname,(case when sum(allocation)<=0 then -1 else 1 end) as allocation,(case when sum(sms)<=0 then -1 else 1 end) as sms,(case when sum(telesheet)>=1 then 1 else 0 end) as telesheet,(case when sum(earlier)<=0 then -1 else 1 end) as earlier,(case when sum(negative)<=0 then -1 else 1 end) as negative,(case when islocked!=val3 then 1 else 0 end) as islocked,(select concat(loginid,' (',displayname,')') from app_user where user_id=islocked) as lockedby from cutoff_operations where (cutoffby is null or cutoffby=0) and company_id=val1 and branch_id=val2 group by portfolio_id,portname,islocked
|
|
select!C0L!select distinct raddr1,raddr2,raddr3,rlandmark,rcolony,rcity,rpincode,rphone from main where applno='val0' and portfolio_id=val1 and receivedate='val2' and isdeleted=0 and rcolony>0
|
|
select!C0L!select distinct companyname,oaddr1,oaddr2,oaddr3,olandmark,ocolony,ocity,opincode,ophone,extension from main where applno='val0' and portfolio_id=val1 and receivedate='val2' and isdeleted=0 and ocolony>0
|
|
select!C0L!select distinct paddr1,paddr2,paddr3,plandmark,pcolony,pcity,ppincode from main where applno='val0' and portfolio_id=val1 and receivedate='val2' and isdeleted=0 and pcolony>0
|
|
select!C0L!select distinct bankcode,bank_branch_id,product,loanamount,'Co-Applicant' as apptype,contactperson,specialinst from main where applno='val0' and portfolio_id=val1 and receivedate='val2' and isdeleted=0
|
|
select!C0L!select case_id, uuid,portfolio_id, mvcode, applno, customername, apptype,rv,ov,pv,rtv,otv,refv,docv, DATE_FORMAT(receivedate, '%d/%m/%Y') as receivedate, bkbranchcode from editcasesgrid where portfolio_id=val0 and branch_id=val1 order by applno,bkbranchcode,customername
|
|
select!C0L!select case_id, portfolio_id, bank_branch_id, mvcode, applno, bankcode,product, loanamount, customername, fathername, apptype, category,dob, contactperson, mobileno, raddr1, raddr2, raddr3, rlandmark,rcolony, rcity, rpincode, rphone, companyname, oaddr1, oaddr2,oaddr3, olandmark, ocolony, ocity, opincode, department, designation,ophone, extension, paddr1, paddr2, paddr3, plandmark, pcolony,pcity, ppincode, refname1, refaddress1, refcontactno1, refname2,refaddress2, refcontactno2, rv, rtv, ov, otv, pv, refv, docv,rco, rcp, ocp, sradd, soadd, spadd, specialinst, receivedate,addedby, addedon, field1, field2, field3, field4, field5, field6,field7, field8, field9, field10, field11, field12, dtfield1,dtfield2, dtfield3, dtfield4, dtfield5, company_id, branch_id,uuid from main where case_id=val0 and uuid='val1'
|
|
procedure!C0L!call caseediting('update main set applno='val3',product='val5',customername='val7',apptype='val9',dob='val11',contactperson='val12',mobileno='val13',raddr1='val18',raddr2='val19',raddr3='val20',rlandmark='val21',rcolony=val22,rcity='val23',rpincode='val24',rphone='val25',companyname='val30',oaddr1='val31',oaddr2='val32',oaddr3='val33',olandmark='val34',ocolony=val35,ocity='val36',opincode='val37',department='val38',designation='val39',ophone='val40',extension='val41',paddr1='val46',paddr2='val47',paddr3='val48',plandmark='val49',pcolony=val50,pcity='val51',ppincode='val52',refname1='val54',refaddress1='val55',refcontactno1='val56',refname2='val57',refaddress2='val58',refcontactno2='val59',rv=val15,rtv=val17,ov=val26,otv=val29,pv=val42,refv=val53,docv=val60,rco=val27,rcp=val43,ocp=val44,specialinst='val14',bank_branch_id=val1,sradd=val16,soadd=val28,spadd=val45,bankcode='val4',loanamount='val6',fathername='val8',category='val10',field1='val61',field2='val62',field3='val63',field4='val64',field5='val65',field6='val66',field7='val67',field8='val68',field9='val69',field10='val70',field11='val71',field12='val72',dtfield1='val73',dtfield2='val74',dtfield3='val75',dtfield4='val76',dtfield5='val77',lasteditedon='val80',lasteditedby=val81',val84,val78)
|
|
procedure!C0L!call createcutofflist('val0')
|
|
update!C0L!update cutoff_operations set islocked=val2 where cutoffby > 0 and (islocked=0 or islocked=val2) and (allocatedby is null or allocatedby=0) and company_id=val0 and branch_id=val1 and allocation=1
|
|
select!C0L!select portfolio_id,concat(portname,' <b>(',count(*),')</b>') as portname,sum(rv) as rv,sum(ov) as ov,sum(pv) as pv,(case when islocked!=val2 then 1 else 0 end) as islocked,allocation,(select concat(loginid,' (',displayname,')') from app_user where user_id=islocked) as lockedby from cutoff_operations where (allocatedby is null or allocatedby=0) and cutoffby>=0 and company_id=val0 and branch_id=val1 and allocation=1 group by portfolio_id,portname,islocked,allocation
|
|
select!C0L!select mvcode,applno,customername,apptype,rv,ov,pv,(case when islocked!=val2 then 1 else 0 end) as islocked,(select concat(loginid,' (',displayname,')') from app_user where user_id=islocked) as lockedby,allocation,rcolony,ocolony,pcolony,uuid from cutoff_operations where (allocatedby is null or allocatedby=0) and cutoffby>0 and islocked=val2 and company_id=val0 and branch_id=val1 and allocation=1 and portfolio_id=val3 order by applno,apptype
|
|
procedure!C0L!call allocatecase('val0',val1,val2,val3,val4,val5,val6,val7,'val8')
|
|
update!C0L!update cutoff_operations set islocked=val2 where cutoffby > 0 and (islocked=0 or islocked=val2) and (telesheetby is null or telesheetby=0) and company_id=val0 and branch_id=val1 and telesheet=1
|
|
select!C0L!select portfolio_id,concat(portname,' <b>(',count(*),')</b>') as portname,sum(rtv) as rtv,sum(otv) as otv,sum(refv) as refv,(case when islocked!=val2 then 1 else 0 end) as islocked,telesheet,(select concat(loginid,' (',displayname,')') from app_user where user_id=islocked) as lockedby,(select outputformat from process_formats p where p.portfolio_id=portfolio_id and process_id=9) as outputformat,(select outputfunction from process_formats p where p.portfolio_id=portfolio_id and process_id=9) as outputfunction from cutoff_operations where (telesheetby is null or telesheetby=0) and cutoffby>=0 and company_id=val0 and branch_id=val1 and telesheet=1 group by portfolio_id,portname,islocked,telesheet
|
|
select!C0L!select mvcode,applno,customername,apptype,rtv,otv,refv,(case when islocked!=val2 then 1 else 0 end) as islocked,(select concat(loginid,' (',displayname,')') from app_user where user_id=islocked) as lockedby,telesheet,uuid from cutoff_operations where (telesheetby is null or telesheetby=0) and cutoffby>0 and islocked=val2 and company_id=val0 and branch_id=val1 and telesheet=1 and portfolio_id=val3 order by applno,apptype
|
|
update!C0L!update main_operations set islocked=val0,telesheeton='val1',telesheetby=val2 where uuid='val3'
|
|
select!C0L!select concat('Tele Verification Report ( ',portname,' )') as title,'Received Date' as recdate,receivedate,'Branch' as region,upper(b.bkbranchname) as branchname,'Verification Code' as vercode,mvcode,'Application Ref. No.' as fileno,upper(applno),'Agency Name' as agname,'MATRIX' as matrx,'RESIDENCE TELEPHONE' as ressec,'Name of Applicant' as appname,upper(customername),upper(apptype),'Resi Address of Applicant' as resadd,concat(upper(raddr1),' ',upper(raddr2),' ',upper(raddr3),' ',(case when rcity='-1' then '' else upper(rcity) end)) as radd,'Permanent Add of Applicant' as permadd,'' as padd,'Contact Telephone Numbers' as ctel,concat(mobileno,',',rphone) as contactno,'Type of Residence' as restype,'Owned' as owned,'Rented' as rented,'Company Accomodation' as compacc,'With Parents' withpar,'With Relatives' as withrel,'With Friends' as withf,'Paying Guest' as withp,'Special Instructions' as splinst,upper(specialinst),'The following is based on Telephonic conversation :' as t1,'Name of the Person spoken to' as spkto,'' as spkto2,'Relation with application' as relwith,'' as relwith2,'The following is based on CD-ROM Check:' as t2,'Name of applicant confirmed at given telephone number' as t3,'Yes' as ys,'No' as no,'Telecalling Log' as t4,'Attempt' as atmp,'1st' as fst,'2nd' as iind,'3rd' as rd,'4th' as fth,'5th' as ffth,'Date & Time of Calling' as dtc,'' as dt1,'' as dt2,'' as dt3,'' as dt4,'' as dt5,'Other Remarks :' as othrem,'' as ln1,'' as ln2,'' as ln3,'' as ln4,'' as ln5,'Televerification Results' as rtr,'Positive' as pos,'Negative' as neg,'OFFICE TELEPHONE' as oftel,'Office Telephone Numbers' as oftelno,concat(mobileno,'/',ophone) as ocontactno,'Extn. No.' as ext,extension,'Name of Applicant' as appname,upper(customername) as ocust,'Designation' as des,upper(designation),'Working Since' as wks,'' as wks1,'Department' as dept,upper(department) as department,'For Self employed-Type of organization' as t6,'Proprietorship' as propr,'Partnership' as partnr,'Pvt. Ltd.' as pvtld,'Public. Ltd.' as publtd,'Others' as othr,'Nature of Business' as nob,'Trading' as trd,'Manufacturing' as mfg,'Processing' as prcs,'Builder' as buildr,'Contractor' as contr,'' as nob1,'Brokerage' as brok,'Consultancy' as consult,'Professional' as profs,'Others' as othr,'' as blnk,'Nature of the Company' as noc,'' as noc1,'Office Address' as offad,concat(upper(oaddr1),' ',upper(oaddr2),' ',upper(oaddr3),' ',(case when ocity='-1' then '' else upper(ocity) end)) as oaddr,'Landmarks' as lndm,'' as ldnmk,'Special Instructions' as sploins,upper(specialinst) as ospel,'The following is based on Telephonic conversation :' as t7,'Name of the person spoken to' as pspkto,'' as pspkt2,'Designation' as cdesig,'' as cdesig1,'Relationship with applicant' as orelwith,'Colleague' as ocoll,'Partner' as optnr,'Superior' as osup,'Relative' as orelv,'Others' as othro,'The following is based on CD-ROM Check:' as t8,'Name of applicant confirmed at given telephone number' as t9,'Yes' as oys,'No' as onso,'Telecalling Log' as t10,'Attempt' as oatmp,'1st' as of1,'2nd' as of2,'3rd' as of3,'4th' as of4,'5th' as of5,'Date & Time of Calling' as odt,'' as odt1,'' as odt2,'' as odt3,'' as odt4,'' as odt5,'Others Remarks :' as othrrem,'' as orm1,'' as orm2,'' as orm3,'' as orm4,'' as orm5,'Televerification Results' as otlst,'Positive' as opost,'Negative' as onegt,rtv,otv from cutoff_operations c,bank_branch b where c.bank_branch_id=b.bank_branch_id and portfolio_id=val0 and islocked=val1 and telesheeton='val2' and (rtv=1 or otv=1) |