private void barButtonItem修改_ItemClick(object sender, ItemClickEventArgs e) { string id = "", supplier = "", begin_date = "", end_date = "", from_type = "0", price = "", meal_price = "", night_price = "", travel_price = "", regular_price = ""; TempEmpPriceQuery.GetInfo(ref id, ref supplier, ref begin_date, ref end_date, ref from_type, ref price, ref meal_price, ref night_price, ref travel_price, ref regular_price); if (supplier != "") { TempEmpPriceUpdate Frm = new TempEmpPriceUpdate(); Frm.TopLevel = false; Frm.Parent = this; Frm.Show(); Frm.BringToFront(); } }
private void TempWorkerPriceUpdate_Load(object sender, EventArgs e) { BindType(); TempEmpPriceQuery.GetInfo(ref id, ref supplier, ref begin_date, ref end_date, ref from_type, ref price, ref meal_price, ref night_price, ref travel_price, ref regular_price); if (supplier != "") { textEditSupplier.Text = supplier; dateTimePickerBegin.Text = begin_date; dateTimePickerEnd.Text = end_date; textEditPrice.Text = price; textEditMeal.Text = meal_price; textEditNight.Text = night_price; textEditTravel.Text = travel_price; textEditRegular.Text = regular_price; comboBoxType.SelectedIndex = -1; comboBoxType.SelectedValue = from_type; } }