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); } }
private void GroupHeader1_Format(object sender, EventArgs e) { txtDateInvoice.Text = RFMUtilities.DateToTxt(DateTime.Now.Date); }