示例#1
0
INT32 CBspfpcx::Execute()
{
	CInvVol invVol[MAX_INV_VOL_NUM];	//发票领用信息表
	string lgry("");	//领购人员
	Return_Info retInfo;//返回信息
	INT32 retcode = 0;
	INT8 tmpbuf[64];
	UINT32 invNum = BSPFPCX_INVNUM;

	XmlParse(m_pXmlParse);	//调用XML解析函数
	CheckYWXmlPara(retInfo.m_retMsg);

	retcode = CJSKInvManageProc::BSPFPCX_Proc(m_ywxml_gy.m_fplxdm, invNum, invVol, retInfo.m_retMsg);
	if(retcode != JSK_SUCCESS)
	{
		memset(tmpbuf, 0, sizeof(tmpbuf));
		sprintf(tmpbuf, "%d", retcode);
		retInfo.m_retCode = tmpbuf;
		invNum = 0;
	}
	
	XmlBuild(m_pXmlConstruct, invNum, invVol, lgry, &retInfo);	//调用XML组装函数

	return SUCCESS;
}
示例#2
0
INT32 CJksjcx::Execute()
{
	Return_Info retInfo;
	INT32 retcode = 0;
	INT8 tmpbuf[64];

	XmlParse(m_pXmlParse);
	CheckYWXmlPara(retInfo.m_retMsg);

	g_globalArgLib->m_invKind->m_fplxdm = m_ywxml_gy.m_fplxdm;
	retcode = CJSKManageProc::JKSJCX_Proc(g_globalArgLib->m_invKind, retInfo.m_retMsg);
	if(retcode != JSK_SUCCESS)
	{
		memset(tmpbuf, 0, sizeof(tmpbuf));
		sprintf(tmpbuf, "%d", retcode);
		retInfo.m_retCode = tmpbuf;
	}

	DBG_PRINT(("m_maxSign = %lld", g_globalArgLib->m_invKind->m_maxSign));
	DBG_PRINT(("m_Lxkjsj = %u", g_globalArgLib->m_invKind->m_Lxkjsj));
	DBG_PRINT(("m_Lxssr = %u", g_globalArgLib->m_invKind->m_Lxssr));
	DBG_PRINT(("m_maxSum = %lld", g_globalArgLib->m_invKind->m_maxSum));
	DBG_PRINT(("m_bsqsrq = %s", g_globalArgLib->m_invKind->m_bsqsrq.c_str()));
	DBG_PRINT(("m_bszzrq = %s", g_globalArgLib->m_invKind->m_bszzrq.c_str()));

	XmlBuild(m_pXmlConstruct, g_globalArgLib->m_invKind, &retInfo);

	return SUCCESS;
}
示例#3
0
INT32 CTjxxcx::Execute()
{
	Return_Info retInfo;	//	返回信息类对象
	CTjxxhz tjxxhz[TJXXCX_MONTHMAX];		//统计信息汇总类
	INT32 retcode = 0;
	INT8 tmpbuf[64];
	INT32 MonthCount = TJXXCX_MONTHMAX;//支持的最大查询月数

	XmlParse(m_pXmlParse, tjxxhz);	//调用XML解析函数
	CheckYWXmlPara(retInfo.m_retMsg);

	DBG_PRINT(("YWXML_TJXXCX: fplxdm = %s", m_ywxml_gy.m_fplxdm.c_str()));
	retcode = CJSKInvManageProc::TJXXCX_Proc(m_ywxml_gy.m_fplxdm, MonthCount, tjxxhz, retInfo.m_retMsg);
	if(retcode != JSK_SUCCESS)
	{
		memset(tmpbuf, 0, sizeof(tmpbuf));
		sprintf(tmpbuf, "%d", retcode);
		retInfo.m_retCode = tmpbuf;
		MonthCount = 0;
	}

	XmlBuild(m_pXmlConstruct, &retInfo, tjxxhz, MonthCount);	//调用XML组装函数

	return SUCCESS;
}
示例#4
0
INT32 CFpzf::Execute()
{
	Return_Info retInfo;
	INT32 retcode = 0;
	INT8 tmpbuf[64];
	CInvHead invHead;
	UINT8 zflx = 0;
	
	XmlParse(m_pXmlParse, &invHead, zflx);
	CheckYWXmlPara(retInfo.m_retMsg);

	invHead.m_jqbh = m_ywxml_gy.m_jqbh;
	invHead.m_xfsh = m_ywxml_gy.m_nsrsbh;
	invHead.m_sksbbh = m_ywxml_gy.m_sksbbh;

	retcode = CJSKMakeInvoice::FPZF_Proc(&invHead, zflx, retInfo.m_retMsg);
	if(retcode != JSK_SUCCESS)
	{
		memset(tmpbuf, 0, sizeof(tmpbuf));
		sprintf(tmpbuf, "%d", retcode);
		retInfo.m_retCode = tmpbuf;
	}
	
	XmlBuild(m_pXmlConstruct, &invHead, &retInfo);
	
	return SUCCESS;
}
INT32 CYWXmlBase::BuildProc()
{
	DBG_PRINT(("BuildProc Begin"));
	m_pXmlConstruct.XMLConstructBegin("1.0", "gbk", XML_BUSINESS);
	m_pXmlConstruct.m_RootElement->SetAttribute(XML_BUSINESS_ID, m_ywlx.c_str());

	INT32 retcode = 0;
	retcode = XmlBuild();
	if(retcode != XML_SUCCESS)
	{
		return retcode;
	}

	if( 1 != m_pXmlConstruct.XMLConstructEnd(KJ_XML_REQUEST_FILE) )
	{
		return XML_INTERNAL_ERR_NO;
	}

	return XML_SUCCESS;
}
INT32 CGpxxxp::Execute()
{
	Return_Info retInfo;
	INT32 retcode = 0;
	INT8 tmpbuf[64];
	string gpxxmw;
	
	XmlParse(m_pXmlParse, gpxxmw);
	CheckYWXmlPara(retInfo.m_retMsg);
	
	retcode = CJSKInvManageProc::GPXXXP_Proc(m_ywxml_gy.m_fplxdm, gpxxmw, retInfo.m_retMsg);
	if(retcode != JSK_SUCCESS)
	{
		memset(tmpbuf, 0, sizeof(tmpbuf));
		sprintf(tmpbuf, "%d", retcode);
		retInfo.m_retCode = tmpbuf;
	}
	
	XmlBuild(m_pXmlConstruct, &retInfo);
	return SUCCESS;
}
INT32 CFpdr::Execute()
{
	UINT8 jzlx=0;		//介质类型
	Return_Info retInfo;//返回信息
	INT32 retcode = 0;
	INT8 tmpbuf[64];
	
	XmlParse(m_pXmlParse, jzlx);	//调用XML解析函数
	CheckYWXmlPara(retInfo.m_retMsg);
	
	retcode = CJSKInvManageProc::FPDR_Proc(jzlx, m_ywxml_gy.m_fplxdm, retInfo.m_retMsg);
	if(retcode != JSK_SUCCESS)
	{
		memset(tmpbuf, 0, sizeof(tmpbuf));
		sprintf(tmpbuf, "%d", retcode);
		retInfo.m_retCode = tmpbuf;
	}
	
	XmlBuild(m_pXmlConstruct, &retInfo);	//调用XML组装函数
	
	return SUCCESS;
}
示例#8
0
INT32 CGpxxcx::Execute()
{
	Return_Info retInfo;
	INT32 retcode = 0;
	INT8 tmpbuf[64];
	CInvVol invVol;
	
	XmlParse(m_pXmlParse);
	CheckYWXmlPara(retInfo.m_retMsg);
	
	retcode = CJSKMakeInvoice::GPXXCX_Proc(&invVol, retInfo.m_retMsg);
	if(retcode != JSK_SUCCESS)
	{
		memset(tmpbuf, 0, sizeof(tmpbuf));
		sprintf(tmpbuf, "%d", retcode);
		retInfo.m_retCode = tmpbuf;
	}
	
	XmlBuild(m_pXmlConstruct, &invVol, &retInfo);
	
	return SUCCESS;
}
示例#9
0
INT32 CFpkj::Execute()
{
	Return_Info retInfo;
	INT32 retcode = 0;
	INT8 tmpbuf[64];
	CInvHead invHead;

	XmlParse(m_pXmlParse, &invHead);
	CheckYWXmlPara(retInfo.m_retMsg);

	retcode = CJSKMakeInvoice::FPKJ_Proc(&invHead, retInfo.m_retMsg);
	DBG_PRINT(("retcode = %d", retcode));
	if(retcode != JSK_SUCCESS)
	{
		memset(tmpbuf, 0, sizeof(tmpbuf));
		sprintf(tmpbuf, "%d", retcode);
		retInfo.m_retCode = tmpbuf;
	}
	
	XmlBuild(m_pXmlConstruct, &invHead, &retInfo);
	
	return SUCCESS;
}
示例#10
0
INT32 CSkpBsp::Execute()
{
	Return_Info retInfo;
	INT32 retcode = 0;
	INT8 tmpbuf[64];
	UINT8 czlx = 0;
	string strHzxx("");
	string strQtxx("");

	XmlParse(m_pXmlParse, czlx, strHzxx, strQtxx);
	CheckYWXmlPara(retInfo.m_retMsg);

	retcode = CJSKDeclareProc::SKPBSP_Proc(m_ywxml_gy.m_fplxdm, czlx, strQtxx,retInfo.m_retMsg);
	if(retcode != JSK_SUCCESS)
	{
		memset(tmpbuf, 0, sizeof(tmpbuf));
		sprintf(tmpbuf, "%d", retcode);
		retInfo.m_retCode = tmpbuf;
	}
	
	XmlBuild(m_pXmlConstruct, &retInfo);

	return SUCCESS;
}