private void btnRcptInfo_Click(object sender, EventArgs e)
{
CPResponse response = null;
try
{
#if !CPP
response = new CPResponse(bridge.Printer.GetSalesInfo());
#endif
if (response.ErrorCode == 0)
{
bridge.Log(String.Format("DOC NO : {0}", response.GetNextParam()));
bridge.Log(String.Format("Z NO : {0}", response.GetNextParam()));
bridge.Log(String.Format("DOC TYPE : {0}", response.GetNextParam()));
bridge.Log(String.Format("DATE : {0}", response.GetNextParam()));
bridge.Log(String.Format("TIME : {0}", response.GetNextParam()));
bridge.Log(String.Format("SUB TOTAL : {0}", response.GetNextParam()));
try
{
int payCount = Convert.ToInt32(response.GetNextParam());
bridge.Log(String.Format("PAYMENT COUNT : {0}", payCount));
for (int i = 0; i < payCount; i++)
{
bridge.Log(String.Format("PAY TYPE : {0}", response.GetNextParam()));
bridge.Log(String.Format("PAY INDEX : {0}", response.GetNextParam()));
bridge.Log(String.Format("PAY AMOUNT : {0}", response.GetNextParam()));
bridge.Log(String.Format("PAY DETAIL : {0}", response.GetNextParam()));
}
}
catch
{
}
}
}
catch (Exception ex)
{
bridge.Log(FormMessage.OPERATION_FAILS + ": " + ex.Message);
}
}