Exemplo n.º 1
0
        private void SimpleButton1Click(object sender, EventArgs e)
        {
            if (gridView1.FocusedRowHandle >= 0)
            {
                var bl = new BLSales();
                var dr = gridView1.GetFocusedDataRow();

                var sinv = dr["SINVNO"].ToString();
                if (dr["SALESTYPE"].ToString() == "I")
                {
                   // bl.DoPrint(sinv);  
                   bl.DoInsurancePrint(sinv);
                }
                else
                {
                    var tname = textEdit3.EditValue == null ? "" : textEdit3.EditValue.ToString();

                    if (Utils.PrintSlipPrinter==1)
                    {
                        bl.DoSlipPrint(sinv);
                    }
                   else
                    {
                        bl.DoPrint(sinv, tname);
                    }
                }
            }
        }
Exemplo n.º 2
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            _issucess = true;
            DoTaKePayment(true);
            try
            {
                 var bl = new BLSales();
                if (Utils.DefaultPrinterRow["ISDEFAULT"].ToString() == bool.TrueString)
                {

                    bl.DoSlipPrint(SalesmainRow.SINVNO);
                }
                 else
                    {
                        bl.DoPrint(SalesmainRow.SINVNO);
                    }
            }
            catch (Exception ex)
            { }
        }