Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }