public AirlineMerger(string name, Airline airline1, Airline airline2, DateTime date, MergerType type) { this.Name = name; this.Airline1 = airline1; this.Airline2 = airline2; this.Date = date; this.Type = type; }
public AirlineMerger(string name, Airline airline1, Airline airline2, DateTime date, MergerType type) { Name = name; Airline1 = airline1; Airline2 = airline2; Date = date; Type = type; }
private void toolBtnHB_Click(object sender, EventArgs e) { try { MergerRemarkType noMergerRemark; List <string> list = new List <string>(); List <DataGridViewRow> list2 = new List <DataGridViewRow>(); foreach (DataGridViewRow row in (IEnumerable)this.aisinoDataGrid1.get_Rows()) { if (row.Selected) { list2.Add(row); list.Add(row.Cells["BH"].Value.ToString()); } } MergerType mType = this.radioButtonSimple.Checked ? MergerType.SimpleMerger : MergerType.ComplexMerger; if (this.checkBoxHBBZ.Checked) { noMergerRemark = this.checkBoxKBZ.Checked ? MergerRemarkType.DoMergerRemarkFill : MergerRemarkType.OnlyMergerRemark; } else { noMergerRemark = MergerRemarkType.NoMergerRemark; } List <SaleBill> listBill = new List <SaleBill>(); foreach (string str in list) { listBill.Add(this.billBL.Find(str)); } SaleBill mergedBill = new SaleBill(); string str2 = this.billBL.MergeSaleBill(listBill, mergedBill, mType, noMergerRemark); if (str2 == "0") { new DJHBYL(this.djhbBLL, listBill, mergedBill).ShowDialog(); this.aisinoDataGrid1.set_DataSource(this.djhbBLL.QueryXSDJ(this.DJmonth, this.DJtype, this.GFname, this.GFsh)); PropValue.KHSH = this.radioButtonMC.Checked ? "KH" : "SH"; PropValue.SimpleComplex = this.radioButtonSimple.Checked ? "Simple" : "Complex"; PropValue.IsMergeBZ = this.checkBoxHBBZ.Checked; PropValue.IsBlankBZAdd = this.checkBoxKBZ.Checked; if (this.aisinoDataGrid1.get_Rows().Count == 0) { this.aisinoDataGrid2.set_DataSource(this.djhbBLL.QueryXSDJMX("noexist")); } } else { MessageManager.ShowMsgBox(str2); } } catch (Exception exception) { HandleException.HandleError(exception); } }