public void PrintDocment()
        {
            String error_str;

            this.Wait();
#if true
            bool Success = false;


        #if true
            Success = printerOnLocal.PrintDocment();
        #endif


            if (Success == false)
            {
        #if true
                /*---本地打印失败-----*/
                try {
                    Success = printerOnNet.PrintDocment();
                }catch (Exception e) {
                    LogHelper.WriteLog(this.GetType(), e);
                }
        #endif
            }
            LibCui.DeleteFile(file.mFileFullPath);
            LibCui.DeleteFile(file.GetPCLprnfullPath());
#endif
            this.Release();
            if (Success == true)
            {
                PrintRecord pp = new PrintRecord();
                pp.WriteRecord2Disk(file);
            }
        }
/**
 *
 *
 */
        public static void DeleteFile(FileSendOnNet fileRcv)
        {
            LibCui.DeleteFile(fileRcv.mFileFullPath);
        }