邓超
ToQuery
凭据(Voucher)的使用
2014-07-03 16:34:47   阅读670次
  1. 文件的引入

    <%@ include file="/commonflow/commonstorejscss.jsp"%>

    内部包含独立的业务使用的js文件和显示

  2. 变量的初始化

var stotableid = "grid9";//创建store的tableid

var storeid = "IC_BX_CLF_ZB";//storeid

var rowdim = "F_GS";//行维

var vid = "IC_BX_CLF_YB";//store对应的凭据id,用于取回单据

var fdjbh = "F_DJBH";//主键字段

var fdjzt = "F_DJZT";//单据状态字段

var vouchername = "出差申请单";//对应的凭据名称

var voucherurl = "/show/mkccsqvoucher.jsp";//对应的凭据打开页面路径



var hidecols = [ "F_SFCB", "F_CBSM", "F_JKYE", "F_SQHK","F_XM","F_BXBM","F_SQDH",

"F_HZHK", "F_BCZF", "F_NOTE", "F_HZXX", 

"F_LQFZJ", "F_CCFZJ","F_JTFZJ","F_ZSFZJ","F_LQFZS","F_CCFZS","F_JTFZS","F_ZSFZS",

"F_XMBH_FMC","F_LCZT","F_CCMD_FMC","F_CCSY","F_CCBZ","F_ZDBM_FMC",

"F_QTPS","F_SSYS","F_YSCBDX","F_CCMD","F_ZDR","F_BXJB","F_SSXM","F_DJLX",

"F_GXZX_FBH",

"F_BWB_FMC", "F_GXZX_FMC" ];//需要隐藏的列

//过滤条件中需要的字段

var F_ZDR = "F_ZDR";

var F_ZDSJ = "F_ZDSJ";


var dom = "";

var tabimg = "blank2.png";//tab页上的图标名称

var dctselect = "dctselect";//年份下拉框


  1. 执行过程

  2. 通过导入的js文件自动获取数据显示在前台页面

  3. 初始化凭据的信息


var tableid = "table";//创建凭据的tableid

var voucherid = "IC_BX_CLF_YB";//凭据id

var voucaption = "出差申请单";//凭据名称

var VCHRSTATUS = "F_DJZT";//单据状态字段

var fdjbh = "F_DJBH";//凭据自定义变量

4.获取主键信息,传输至全局变量

F_PROJECT_ID = window.location.href.getQueryString("F_PROJECT_ID")||"";//主键

console.info("F_PROJECT_ID="+F_PROJECT_ID);

com_pageinit();//初始化页面数据

5.

//初始化页面数据

function com_pageinit(){

com_addtoolbtn();//添加按钮

com_getsession();//获取session数据

}

6.初始化顶部的图片按钮

QQ截图20140703175632.png

7.设置主键

$(document.body).append("<input type=hidden id='cv_"+voucherid+"_"+fdjbh+"' value="+F_PROJECT_ID+">");



-----------------------------------------------------
转载请注明来源此处
原地址:#

-----网友评论----
暂无评论
-----发表评论----
微网聚博客乐园 ©2014 blog.mn886.net 鲁ICP备14012923号   网站导航