Ejemplo n.º 1
0
        private void detail_Format(object sender, EventArgs e)
        {
            rptSubStockBalance rptGIN = new rptSubStockBalance();

            rptGIN.DataSource = dtbl;
            subReport1.Report = rptGIN;

            txtSumBagGIN.Text      = BagSum.ToString();
            txtSumReBagGIN.Text    = RebaggingSum.ToString();
            txtSumWgtGIN.Text      = NetWeightSum.ToString();
            txtAdjustmentBags.Text = AdjustmentBagSum.ToString();
            txtAdjustmentWgt.Text  = AdjustmentWeightSum.ToString();
            if (SumNumberOfBags.ToString() != "" && BagSum.ToString() != "")
            {
                lblBagBalance.Text    = (int.Parse(SumNumberOfBags.ToString()) - int.Parse(BagSum.ToString())).ToString();
                lblWeightBalance.Text = (float.Parse(SumNumberOfNetWeight.ToString()) - float.Parse(NetWeightSum.ToString())).ToString();
            }
            else if (SumNumberOfBags.ToString() != "" && BagSum.ToString() == "")
            {
                lblBagBalance.Text    = SumNumberOfBags.ToString();
                lblWeightBalance.Text = SumNumberOfNetWeight.ToString();
            }
            else
            {
                lblBagBalance.Text    = BagSum.ToString();
                lblWeightBalance.Text = NetWeightSum.ToString();
            }
        }
Ejemplo n.º 2
0
 private void groupFooter1_Format(object sender, EventArgs e)
 {
     txtSumNoOfBags.Text  = SumNumberOfBags.ToString();
     txtSumNetWeight.Text = SumNetWeight.ToString();
 }