private void viewOutsourceData(int idx) { comboBoxOffice.SelectedValue = osd[idx].OfficeCode; comboBoxWork.SelectedValue = osd[idx].Department; labelOrderNo.Text = osd[idx].OrderNo; comboBoxPartner.SelectedValue = osd[idx].PartnerCode; comboBoxPayRoule.SelectedValue = osd[idx].PayRoule; labelSum.Text = DHandling.DecimaltoStr(osd[idx].Amount, "#,0"); if (DHandling.CheckDate(osd[idx].OrderDate)) { dateTimePickerOrderDate.Value = osd[idx].OrderDate; } if (DHandling.CheckDate(osd[idx].StartDate)) { dateTimePickerOStart.Value = osd[idx].StartDate; } if (DHandling.CheckDate(osd[idx].EndDate)) { dateTimePickerOEnd.Value = osd[idx].EndDate; } if (DHandling.CheckDate(osd[idx].InspectDate)) { dateTimePickerInspectDate.Value = osd[idx].InspectDate; } if (DHandling.CheckDate(osd[idx].ReceiptDate)) { dateTimePickerReceiptDate.Value = osd[idx].ReceiptDate; } textBoxDeliveryPoint.Text = osd[idx].Place; textBoxNote.Text = osd[idx].Note; }
//----------------------------------------------------------------------------// // SubRoutine // //----------------------------------------------------------------------------// // Label編集 // 工期 private void create_lblTerm() { if (DHandling.CheckDate(ted.StartDate)) { labelTerm.Text = DHandling.PickUpTopCharacters(Convert.ToString(ted.StartDate), 10) + " ~ "; if (DHandling.CheckDate(ted.EndDate)) { labelTerm.Text += DHandling.PickUpTopCharacters(Convert.ToString(ted.EndDate), 10); } } }