Exemplo n.º 1
0
        private void frmContingConfirmation_Load(object sender, EventArgs e)
        {
            var jewelTransactions = FormData as TransactionLookup;

            label1.Text            = jewelTransactions.TransactionType.GetDescription() + Resources.frmCostingConfirmation_frmContingConfirmation_Load__Data_Saved_Successfuly;
            btnPrintTag.Click     += delegate { ShowManagedModalForm <frmBarcodePrinter>(this, jewelTransactions); };
            btnPrintSticker.Click += delegate { _reportUitility.ShowStickerReport(jewelTransactions.JewelTransactions.Select(x => x.JewelNumber).ToArray()); };
            btnCostingSheet.Click += delegate { _reportUitility.ShowCostingReport(jewelTransactions.JewelTransactions.Select(x => x.JewelTransactionId).ToList()); };
            btnClose.Click        += delegate { Close(); };
        }
Exemplo n.º 2
0
        private void lblCostingChart_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var item = new List <Int32>();

            foreach (var row in dgvJewel.Rows)
            {
                var current = ((DataGridViewRow)(row));
                var chk     = (DataGridViewCheckBoxCell)current.Cells[_columnselectchk.ToLowerCaseColumnName()];
                if ((bool)chk.Value)
                {
                    var tran = (Int32)current.Cells[_columntrno.ToLowerCaseColumnName()].Value;
                    item.Add(tran);
                }
            }
            if (item.Any())
            {
                _reportUitility.ShowCostingReport(item);
            }
        }