private void groupMovingDocumentID_Format(object sender, EventArgs e) { txtBillNumber.Text = RFMUtilities.GetValue(ds, 1, "ID", nMovingDocumentID, "BillNumber"); txtDateMoving.Text = RFMUtilities.GetValue(ds, 1, "ID", nMovingDocumentID, "DateMoving").Substring(0, 10); txtGoodStateSourceName.Text = RFMUtilities.GetValue(ds, 1, "ID", nMovingDocumentID, "GoodStateSourceName"); txtGoodStateTargetName.Text = RFMUtilities.GetValue(ds, 1, "ID", nMovingDocumentID, "GoodStateTargetName"); txtOwnerSourceName.Text = RFMUtilities.GetValue(ds, 1, "ID", nMovingDocumentID, "OwnerSourceName"); txtOwnerTargetName.Text = RFMUtilities.GetValue(ds, 1, "ID", nMovingDocumentID, "OwnerTargetName"); txtNote.Text = RFMUtilities.GetValue(ds, 1, "ID", nMovingDocumentID, "Note"); object dDateConfirm = RFMUtilities.GetValueObject(ds, 1, "ID", nMovingDocumentID, "DateConfirm"); if (dDateConfirm != null && !Convert.IsDBNull(dDateConfirm)) { txtDateConfirm.Text = "Вып." + ((DateTime)dDateConfirm).ToString("dd.MM.yyyy HH:mm"); } else { txtDateConfirm.Text = "Не вып."; } }