void Reflected( ) { if (bill == "付款申请单" || bill == "收款记录单") { if (bill == "付款申请单") { FormPaymentTabie PaymentTabie = new FormPaymentTabie(billNum); PaymentTabie.ShowDialog(); } if (bill == "收款记录单") { FormReceiptRecordtable ReceiptRecordtable = new FormReceiptRecordtable(billNum); ReceiptRecordtable.ShowDialog(); } } else { if (bill.Equals("销售申请单")) { path = "FishClient.FormSalesRequisition"; } if (bill.Equals("预售申请单")) { path = "FishClient.FormPresaleRequisition"; } if (bill.Equals("鱼粉预售合同")) { path = "FishClient.FormPresaleRContract"; } if (bill.Equals("现货销售合同")) { path = "FishClient.FormSalesRContract"; } if (bill.Equals("提货单")) { path = "FishClient.FormBilloflading"; } if (bill.Equals("磅单")) { path = "FishClient.FormOnepound"; } if (bill.Equals("货物反馈单")) { path = "FishClient.FormCargoFeedbackSheet"; } if (bill.Equals("公司问题反馈单")) { path = "FishClient.FormTheproblemsheet"; } Assembly asm = Assembly.GetExecutingAssembly(); Form doc = (Form)asm.CreateInstance(path); Megres.oddNum = billNum; doc.Show(); } }
//单击 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex < 0 || e.RowIndex < 0) { return; } if (dataGridView1.Rows[e.RowIndex].Cells["Numbering"].Value != null) { _list.Numbering = dataGridView1.Rows[e.RowIndex].Cells["Numbering"].Value.ToString(); if (dataGridView1.Columns[e.ColumnIndex].Name.Equals("xssqBool", StringComparison.OrdinalIgnoreCase) == true) { if (Authority.ProcessControText("销售申请单") == true) { FormSalesRequisition Sales = new FormSalesRequisition(_list.Numbering); Sales.ShowDialog(); } } if (dataGridView1.Columns[e.ColumnIndex].Name.Equals("xshtBool", StringComparison.OrdinalIgnoreCase) == true) { if (Authority.ProcessControText("现货销售合同") == true) { FormSalesRContract SalesRCont = new FormSalesRContract(_list.Numbering); SalesRCont.ShowDialog(); } } if (dataGridView1.Columns[e.ColumnIndex].Name.Equals("fksqBool", StringComparison.OrdinalIgnoreCase) == true) { if (Authority.ProcessControText("付款申请单") == true) { FormPaymentTabie PaymentTabie = new FormPaymentTabie(_list.Numbering, "X"); PaymentTabie.ShowDialog(); } } if (dataGridView1.Columns[e.ColumnIndex].Name.Equals("thdBool", StringComparison.OrdinalIgnoreCase) == true) { if (Authority.ProcessControText("提货单") == true) { FormBillofladingTable BillofladingTable = new FormBillofladingTable(_list.Numbering); BillofladingTable.ShowDialog(); } } if (dataGridView1.Columns[e.ColumnIndex].Name.Equals("bdbool", StringComparison.OrdinalIgnoreCase) == true) { if (Authority.ProcessControText("磅单") == true) { FormOnepoundTable BillofladingTable = new FormOnepoundTable(_list.Numbering, false); BillofladingTable.ShowDialog(); } } if (dataGridView1.Columns[e.ColumnIndex].Name.Equals("hwfkBool", StringComparison.OrdinalIgnoreCase) == true) { if (Authority.ProcessControText("货物反馈单") == true) { FormCargoFeedbackSheetTable CargoFeedbackSheetTable = new FormCargoFeedbackSheetTable(_list.Numbering); CargoFeedbackSheetTable.ShowDialog(); } } if (dataGridView1.Columns[e.ColumnIndex].Name.Equals("wtfkBool", StringComparison.OrdinalIgnoreCase) == true) { if (Authority.ProcessControText("公司问题反馈单") == true) { FormTheproblemsheetTable Theproblemsheet = new FormTheproblemsheetTable(_list.Numbering); Theproblemsheet.ShowDialog(); } } if (dataGridView1.Columns[e.ColumnIndex].Name.Equals("skjlBool", StringComparison.OrdinalIgnoreCase) == true) { if (Authority.ProcessControText("收款记录单") == true) { FormReceiptRecordtable ReceiptRecordtable = new FormReceiptRecordtable(_list.Numbering); ReceiptRecordtable.ShowDialog(); } } if (dataGridView1.Columns[e.ColumnIndex].Name.Equals("effect", StringComparison.OrdinalIgnoreCase) == true) { boolget = true; } else { boolget = false; } } }