jsharmony-factory
Version:
Enterprise framework for jsHarmony
18 lines (17 loc) • 1.79 kB
JSON
{
"agreement_code_state": "select code_val2 code_val, code_val2 code_txt from {schema}.code2_country_state where code_val1='USA' and (code_end_dt is null or (code_end_dt is not null and code_end_dt > getdate())) order by code_seq,code_val2",
"agreement_code_month": "select month_txt as code_val,month_txt as code_txt from {schema}.v_month order by month_val",
"agreement_code_year": "select year_val as code_val,year_val as code_txt from {schema}.v_year order by year_val",
"agreement_sign": [
"begin transaction;",
"update cust set cust_agreement_tstmp=getdate() where cust_id=@cust_id;",
"declare @job_id bigint;",
"insert into {schema}.job__tbl(job_source, job_action, job_action_target, job_params) values('CLIENT', 'REPORT', '{namespace}Reports/Agreement',@job_params);",
"select @job_id = scope_identity();",
"insert into {schema}.job_doc(job_id, doc_scope, doc_scope_id, doc_ctgr, doc_desc) values(@job_id, 'C',@cust_id, 'agreement_doc_scope', 'Customer Portal Agreement');",
"commit transaction;"
],
"agreement_paymentresult": "select payment_cc_sts,payment_cc_result,cust_staging.cust_id,cust_staging.sys_user_id,new_client_result,sys_user_lastlogin_tstmp from cust_staging left outer join {schema}.cust_user on cust_staging.sys_user_id=cust_user.sys_user_id where cust_staging_id=@payment_id and payment_cc_fp_hash=@fp_hash;",
"agreement_code_cust_id": "select cust_id as code_val,cust_name as code_txt from cust where 1=1 %%%DATALOCKS%%% order by cust_name",
"agreement_report_note": "select note__tbl.cust_id,note_type,note_euser,format(note_etstmp,'MM/dd/yyyy') as note_etstmp,note_body from {schema}.note__tbl inner join cust on cust.cust_id=note__tbl.cust_id where note__tbl.cust_id=@cust_id %%%DATALOCKS%%%"
}