示例#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);
                    }
                }
            }
        }