223 lines
6.7 KiB
JavaScript
Raw Normal View History

2025-06-11 14:49:36 +08:00
document.write('<script language=javascript src="../comm/adapter.js"></script>');
document.write('<script type="text/javascript" src="../comm/hxcomm.js"></script> ');
//var g_curUserInfo = ""; // 当前用户信息
//var g_qsid = ""; // 券商ID
//var g_loginType = 0; // 登录信息 0 普通 1 信用
/*
function fn_glocalInit(userInfo, qsid, loginType)
{
q_curUserInfo = userInfo;
g_qsid = qsid;
g_loginType = loginType;
}
*/
//查询新股信息
function fn_cxXgInfo(html_callbackName)
{
var arr_ext = {};
var arr_std = {};
var arr_local = {};
arr_std['reqtype'] = "2304"; // XT_DATA_TRANS
arr_std['setcode'] = ""; // 市场
arr_std['refresh'] = "1"; // 是否强制后台查询
arr_std['cachedata'] = "1"; // 是否需要缓存应答数据
arr_std['tablename'] = "xg_info"; // 查询回来的多行数据表头名称
arr_ext['cmd'] = "cx_xginfo"; // DataTrans请求的子请求类型
arr_ext['dataid'] = "xg_info"; // 数据ID
arr_ext['loginpage_cxinfo'] = "1"; // 数据ID
arr_ext['scdm'] = ""; // 市场代码
arr_local['html_callback'] = html_callbackName;
arr_local['destination'] = "0"; //0 券商1 自运营2 认证中心
fn_request(arr_std,arr_ext,arr_local);
}
//查询可申购数量
function fn_cxKsgsl(html_callbackName,marketCode,sgCode,sgPrice)
{
var arr_std = {};
var arr_ext = {};
var arr_local = {};
arr_std['reqtype'] = "1025"; // XT_QU_STOCKINFO
arr_std['entrustamount'] = "5"; // 买卖方向
arr_std['setcode'] = ""; // 市场代码
arr_std['stockcode'] = sgCode; // 股票代码
arr_std['entrustprice'] = sgPrice; // 委托价格
arr_std['menuid'] = ""; // 菜单id
arr_std['refresh'] = "1"; // 是否强制后台查询
arr_ext['wtjg'] = ""; // 委托价格
arr_ext['czlb'] = "B"; // 操作类别
arr_ext['scdm'] = ""; // 市场代码
arr_ext['mini_weituo'] = "1"; // 主站查询行情返回后,不切换市场
arr_ext['xd_local_param'] = "IPO";
arr_local['html_callback'] = html_callbackName;
arr_local['destination'] = "0";
arr_local['cmd'] = "cx_ksgsl"; // 新版本fn_cxKsgsl不需要cmd字段老版本需要放到local中为了兼容
fn_request(arr_std,arr_ext,arr_local);
}
//查询已申购数量
function fn_cxHaveCount(html_callbackName)
{
var arr_std = {};
var arr_local = {};
var arr_ext = {};
arr_std['reqtype'] = "1539"; // XT_NEW_QU_WEITUO
arr_std['setcode'] = "1"; // 市场
arr_std['stockcode'] = "W"; // 股票代码
arr_std['menuid'] = ""; // 菜单id
arr_std['refresh'] = "1"; // 是否强制后台查询
arr_std['cachedata'] = "1"; // 是否需要缓存应答数据
arr_ext['dataid'] = "yjsg";
arr_ext['xd_local_name'] = "query_chedan";
arr_ext['cx_xgsginfo']= '1';
arr_local['html_callback'] = html_callbackName;
arr_local['destination'] = "0";
arr_local['cmd'] = 'cx_wt'; // 新版本fn_cxHaveCount不需要cmd字段老版本需要放到local中为了兼容
fn_request(arr_std,arr_ext,arr_local);
}
//申购新股
function fn_xgwt(html_callbackName,sgCode,sgMaxCount, scmc,sgPrice)
{
//add
var arr_std = {};
var arr_local = {};
var arr_ext = {};
arr_std['reqtype'] = "258"; //XT_WEITUO_MAIRU
arr_std['setcode'] = scmc;
arr_std['stockcode'] = sgCode;
arr_std['entrustprice'] = sgPrice;
arr_std['entrustamount'] = sgMaxCount;
//arr_std['contractid'] = "1|...";
arr_std['contractid'] = "1|"+fnGetGDZHBySetCode(scmc);
arr_std['refresh'] = "1";
arr_ext['zqdm'] = sgCode;
arr_ext['wtjg'] = sgPrice;
arr_ext['wtsl'] = sgMaxCount;
arr_ext['dataid'] = "yjsg";
arr_ext['is_xg'] = '1';
arr_local['html_callback'] = html_callbackName;
arr_local['destination'] = "0";
arr_local['cmd'] = "sg"; // 新版本fn_xgwt不需要cmd字段老版本需要放到local中为了兼容
//获取扩展数据
arr_std['menuid'] = "554"; // 菜单ID
//arr_ext['exdata'] = "scdm|" + scmc + "|menuid|"
arr_ext['scdm'] = scmc;
fn_request(arr_std,arr_ext,arr_local);
}
//申购新股
function fn_xzwt(html_callbackName,sgCode,sgMaxCount, scmc,sgPrice)
{
//add
var arr_std = {};
var arr_local = {};
var arr_ext = {};
arr_std['reqtype'] = "258"; //XT_WEITUO_MAIRU
arr_std['setcode'] = scmc;
arr_std['stockcode'] = sgCode;
arr_std['entrustprice'] = sgPrice;
arr_std['entrustamount'] = sgMaxCount;
//arr_std['contractid'] = "1|...";
arr_std['contractid'] = "1|"+fnGetGDZHBySetCode(scmc);
arr_std['refresh'] = "1";
arr_ext['zqdm'] = sgCode;
arr_ext['wtjg'] = sgPrice;
arr_ext['wtsl'] = sgMaxCount;
arr_ext['dataid'] = "yjsg";
arr_ext['is_xz'] = '1';
arr_local['html_callback'] = html_callbackName;
arr_local['destination'] = "0";
arr_local['cmd'] = "sg"; // 新版本fn_xgwt不需要cmd字段老版本需要放到local中为了兼容
//获取扩展数据
arr_std['menuid'] = "554"; // 菜单ID
//arr_ext['exdata'] = "scdm|" + scmc + "|menuid|"
arr_ext['scdm'] = scmc;
fn_request(arr_std,arr_ext,arr_local);
}
//查询web配号
function fn_cxWebph(html_callbackName)
{
var arr_std = {};
var arr_local = {};
var arr_ext = {};
arr_std['reqtype'] = "2318"; // XT_DT_ZDJY_REQ
arr_std['setcode'] = "";
arr_std['refresh'] = "1";
arr_std['cachedata'] = "1";
arr_ext['cmd'] = "cx_webpeihao";
arr_ext['xd_local_notify_req'] = "1";
arr_local['html_callback'] = html_callbackName;
arr_local['destination'] = "1";
fn_request(arr_std,arr_ext,arr_local);
}
//查询中签
function fn_cxZq(html_callbackName)
{
var arr_std = {};
var arr_local = {};
var arr_ext = {};
arr_std['reqtype'] = "2304"; // XT_DATA_TRANS
arr_std['setcode'] = "";
arr_std['refresh'] = "1";
arr_std['cachedata'] = "1";
arr_ext['loginpage_cxinfo'] = "1";
arr_ext['cmd'] = 'Query_IPO';
arr_local['html_callback'] = html_callbackName;
arr_local['destination'] = "0";
fn_request(arr_std,arr_ext,arr_local);
}
//查询用户配号
function fn_cxUserPh(html_callbackName,startDate)
{
var arr_std = {};
var arr_local = {};
var arr_ext = {};
arr_std['reqtype'] = "1548"; // XT_NEW_QU_XGPH
arr_std['setcode'] = "";
arr_std['refresh'] = "1";
arr_std['cachedata'] = "1";
arr_std['newpwd'] = "1|" + startDate + "|" + GetDateStr(0); //"起始日期|结束日期"
arr_ext['qsrq'] = startDate;
arr_ext['jzrq'] = GetDateStr(0);
arr_ext['page_roll'] = "1";
arr_local['html_callback'] = html_callbackName;
arr_local['destination'] = "0";
arr_local['cmd'] = "cx_ph"; // 新版本fn_cxUserPh不需要cmd字段老版本需要放到local中为了兼容
fn_request(arr_std,arr_ext,arr_local);
}