Exemplo n.º 1
0
        private void Detail_Format(object sender, EventArgs e)
        {
            /*if (DateTime.Compare(dDate.Date, (Convert.ToDateTime(Fields["DateOutput"].Value)).Date) <= 0)
             *  dDate = Convert.ToDateTime(Fields["DateOutput"].Value);*/
            dDate = Convert.ToDateTime(Fields["DateOutput"].Value);

            txtDateOutput.Text = RFMUtilities.DateToTxt(dDate);

            if (_nCurrencyID.ToString() == _sRubID)
            {
                txtDeliveryPrice.Text  = ValToRubNum(_nDeliveryPrice);                // RFMUtilities.ValToRub
                txtDeliveryVatSum.Text = ValToRubNum(_nDeliveryVatSum);
            }
            else
            {
                txtDeliveryPrice.Text  = ValToCurrencyNum(_nDeliveryPrice, _sCurrencyAlias);
                txtDeliveryVatSum.Text = ValToCurrencyNum(_nDeliveryVatSum, _sCurrencyAlias);
            }
        }
Exemplo n.º 2
0
 private void GroupHeader1_Format(object sender, EventArgs e)
 {
     txtDateInvoice.Text = RFMUtilities.DateToTxt(DateTime.Now.Date);
 }