private static void mRunOperation() { IntPtr _pInt_buffer1 = Marshal.AllocHGlobal(4); IntPtr _pInt_buffer2 = Marshal.AllocHGlobal(4); StringBuilder bufferForResp = new StringBuilder(100000); StringBuilder bufferForReceipt = new StringBuilder(100000); IntPtr bufferForICode2 = Marshal.AllocHGlobal(4); int res = TrposxImport.TrposxDriverRunOper(OperString, bufferForResp, bufferForReceipt, bufferForICode2, 0, 0); string Resp = bufferForResp.ToString(); string Receipt = bufferForReceipt.ToString(); OperInProcess = false; RunOperationAsincComplitedVoid(res, GetResStr(res), Resp, Receipt); }
private static void mRunFoolReport() { StringBuilder bufferForResp = new StringBuilder(100000); StringBuilder bufferForReceipt = new StringBuilder(100000); IntPtr bufferForICode2 = Marshal.AllocHGlobal(4); Utils.ToCardLog("TrposxImport.TrposxDriverRunOper OperString: " + OperString + " "); int res = TrposxImport.TrposxDriverRunOper(OperString, bufferForResp, bufferForReceipt, bufferForICode2, 1, 0); string Resp = bufferForResp.ToString(); string Receipt = bufferForReceipt.ToString(); OperInProcess = false; RunOperationAsincComplitedVoid(res, GetResStr(res), Resp, Receipt); }
public static void RunOperation(string mOperString, out int ress, out string ResStr, out string Resp, out string Receipt) { OperString = mOperString; ress = 0; Resp = ""; Receipt = ""; if (!OperInProcess) { OperInProcess = true; IntPtr _pInt_buffer1 = Marshal.AllocHGlobal(4); IntPtr _pInt_buffer2 = Marshal.AllocHGlobal(4); StringBuilder bufferForResp = new StringBuilder(100000); StringBuilder bufferForReceipt = new StringBuilder(100000); IntPtr bufferForICode2 = Marshal.AllocHGlobal(4); ress = TrposxImport.TrposxDriverRunOper(OperString, bufferForResp, bufferForReceipt, bufferForICode2, 0, 0); Resp = bufferForResp.ToString(); Receipt = bufferForReceipt.ToString(); OperInProcess = false; //RunOperationAsincComplitedVoid(res, GetResStr(res), Resp, Receipt); } ResStr = GetResStr(ress); }