Example #1
0
 private void menu_Print_Click(object sender, EventArgs e)
 {
     PrintDGV.Print_GridView(this.gridView1, this.printTitle);
 }
Example #2
0
 private void toolSLPrint_Click(object sender, EventArgs e)
 {
     PrintDGV.Print_DataGridView(this.dataGridView1);
 }
Example #3
0
 //打印
 private void toolPrint_Click(object sender, EventArgs e)
 {
     PrintDGV.Print_DataGridView(dgv);
 }
 private void toolStripButton1_Click(object sender, EventArgs e)
 {//打印
     PrintDGV.Print_DataGridView(dgvOrderList);
 }
Example #5
0
        //private void ProcessAllBuildings()
        //{
        //    int fromMonth = dtFrom.Value.Month - 2;
        //    int toMonth = dtTo.Value.Month - 2;
        //    int periodYear = (IsThisYear() ? 112 : 12);
        //    int sPeriod = (fromMonth <= 0 ? periodYear + fromMonth : 100 + fromMonth);
        //    int ePeriod = (toMonth <= 0 ? periodYear + toMonth : 100 + toMonth);
        //            //List<Trns> transactions = new List<Trns>();
        //            //double trnBal = 0;
        //            //double remBal = 0;
        //            //List<Trns> bTrans = LoadTransactions(sPeriod, ePeriod, b.Trust, out remBal, out trnBal);
        //            //double openingBalance = GetBalance(b.Trust, fromMonth - 1) + remBal;//- b.Period
        //            //Trns openingTrns = new Trns
        //            //{
        //            //    Amount = openingBalance.ToString("#0.00"),
        //            //    Date = dtFrom.Value.AddDays(-1).ToString("yyyy/MM/dd"),
        //            //    Description = "Opening Balance",
        //            //    Reference = ""
        //            //};
        //            //transactions.Add(openingTrns);
        //            //transactions.AddRange(bTrans);
        //            //Trns closingTrns = new Trns
        //            //{
        //            //    Amount = (openingBalance + trnBal).ToString("#0.00"),
        //            //    Date = dtTo.Value.ToString("yyyy/MM/dd"),
        //            //    Description = "Closing Balance",
        //            //    Reference = ""
        //            //};
        //            //transactions.Add(closingTrns);
        //            //transactions = transactions.OrderBy(t => t.Date).ToList();

        //        }
        //    }
        //}

        private void btnPrint_Click(object sender, EventArgs e)
        {
            PrintDGV.Print_DataGridView(dgTrans);
        }
Example #6
0
 private void btt_printSale_Click(object sender, EventArgs e)
 {
     PrintDGV.Print_DataGridView(dgv_Sale);
 }
Example #7
0
 private void btt_printReturn_Click(object sender, EventArgs e)
 {
     PrintDGV.Print_DataGridView(dgv_Return);
 }
 private void печататьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     PrintDGV.Print_DataGridView(dgv);
 }