Esempio n. 1
0
        private void LoadReceipt(long or_num)
        {
            if (or_num == 0)
            {
                ClearGraphics(pbPreview);
                return;
            }
            cls_POSTransaction temp_tran = new cls_POSTransaction();

            temp_tran.set_transaction_by_ornumber(or_num);

            if (((temp_tran.getShow() == 0) && (temp_tran.getStatus() == 0)) ||
                (temp_tran.getSyncId() == 0))
            {
                ClearGraphics(pbPreview);
                fncFilter.alert(cls_globalvariables.warning_ornumber_invalid);
                return;
            }

            string checkIfVoidSql = @"SELECT Count(*) as cnt FROM Saleshead WHERE (`status`=0) AND `SyncId` = '" + temp_tran.getSyncId() + @"'";
            bool   isVoid         = Convert.ToBoolean(mySQLFunc.getdb(checkIfVoidSql).Rows[0]["cnt"]);

            SaveBitmap(temp_tran, isVoid);
        }