private void button1_Click(object sender, EventArgs e) { string ordNumber = textBox1.Text; string cilentName = textBox2.Text; string goodName = textBox3.Text; double price = double.Parse(textBox4.Text); int goodNumber = int.Parse(textBox5.Text); string phone = textBox6.Text; bool j = judge(); if (j == true) { OrderDetails newOrder = new OrderDetails(ordNumber, cilentName, goodName, price, goodNumber, phone); Form1.myOrderService.addOrder(newOrder); } else { Form4 form4 = new Form4(); form4.Text = "错误"; form4.ShowDialog(); } //同时刷新DataGridView PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(); PassDataBetweenForm(this, args); this.Close(); }
//Sure private void button1_Click(object sender, EventArgs e) { if (!radioButton1.Checked && !radioButton2.Checked && !radioButton3.Checked) { MessageBox.Show("请选择打印模板"); return; } if (radioButton1.Checked) { cn1 = "1"; } else if (radioButton2.Checked) { cn1 = "2"; } else if (radioButton3.Checked) { cn1 = "3"; } PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(cn1); if (PassDataBetweenForm != null) { PassDataBetweenForm(this, args); } this.Close( ); }
private void saq_PassDataBetweenForm(object sender, PassDataWinFormEventArgs e) { if (e.List != null && e.List.Count > 0) { numList = e.List; } else { model.PQF01 = e.ConOne; if (e.ConTwo == "执行") { label22.Visible = true; label21.Visible = label50.Visible = false; } else if (e.ConTwo == "驳回") { label21.Visible = true; label22.Visible = label50.Visible = false; } else if (e.ConTwo == "送审") { label50.Visible = true; label21.Visible = label22.Visible = true; } else { label21.Visible = label22.Visible = label50.Visible = false; } } }
private void gridView1_DoubleClick(object sender, EventArgs e) { if (sign == "1") { cn1 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQK02").ToString( ); cn2 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQK11").ToString( ); cn3 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQK17").ToString( ); cn4 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQK09").ToString( ); cn5 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "BS").ToString( ); cn6 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PFS").ToString( ); cn7 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQK35").ToString( ); cn8 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQK36").ToString( ); cn9 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQK07").ToString( ); cn10 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQK37").ToString( ); cn11 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "AI012").ToString( ); cn12 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQK30").ToString( ); } else if (sign == "2") { cn1 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "AI001").ToString( ); cn2 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQK02").ToString( ); cn3 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQK11").ToString( ); cn4 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQK17").ToString( ); cn5 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "RES05").ToString( ); cn6 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQK07").ToString( ); cn7 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "AI012").ToString( ); } PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(cn1, cn2, cn3, cn4, cn5, cn6, cn7, cn8, cn9, cn10, cn11, cn12); if (PassDataBetweenForm != null) { PassDataBetweenForm(this, args); } this.Close( ); }
//Sure private void button1_Click(object sender, EventArgs e) { strList.Clear( ); for (int i = 0; i < gridView1.RowCount; i++) { if (gridView1.GetDataRow(i)["check"].ToString( ) == "True") { strList.Add(gridView1.GetDataRow(i)["PQF01"].ToString( )); } } if (strList.Count < 1) { MessageBox.Show("请选择需要批量编辑的流水"); return; } cn1 = "1"; PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(cn1, strList); if (PassDataBetweenForm != null) { PassDataBetweenForm(this, args); } this.Close( ); }
//value private void gridView1_DoubleClick(object sender, EventArgs e) { if (signChe != "1") { cn1 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "AF001").ToString( ); cn2 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "AF002").ToString( ); cn3 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "AF003").ToString( ); cn4 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "AF004").ToString( ); cn5 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "AF005").ToString( ); cn6 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "AF006").ToString( ); //cn7 = gridView1.GetRowCellValue( gridView1.FocusedRowHandle ,"DBA002" ).ToString( ); cn8 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "DGA002").ToString( ); cn9 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "RES05").ToString( ); //cn10 = gridView1.GetRowCellValue( gridView1.FocusedRowHandle ,"AF007" ).ToString( ); cn11 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "AF008").ToString( ); //cn12 = gridView1.GetRowCellValue( gridView1.FocusedRowHandle ,"AF010" ).ToString( ); PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(cn1, cn2, cn3, cn4, cn5, cn6, cn7, cn8, cn9, cn10, cn11, cn12); if (PassDataBetweenForm != null) { PassDataBetweenForm(this, args); } this.Close( ); } }
private void queryNum_PassDataBetWennForm(object sender, PassDataWinFormEventArgs e) { textBox2.Text = e.ConOne; textBox3.Text = e.ConTwo; textBox1.Text = e.ConTre; textBox4.Text = e.ConFor; }
private void button4_Click(object sender, EventArgs e) { cn1 = ""; cn1 = lookUpEdit1.Text; cn2 = ""; cn2 = "2"; if (checkBox1.Checked == false) { cn3 = ""; } else { cn3 = checkBox1.Text; } if (checkBox2.Checked == false) { cn4 = ""; } else { cn4 = checkBox2.Text; } PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(cn1, cn2, cn3, cn4); if (PassDataBetweenForm != null) { PassDataBetweenForm(this, args); } this.Close( ); }
//确定 private void btn1_Click(object sender, EventArgs e) { if (!radioButton1.Checked && !radioButton2.Checked) { MessageBox.Show("请选择计划订单或实际订单"); } else { if (radioButton1.Checked) { cn1 = "计划"; } else if (radioButton2.Checked) { cn1 = "实际"; } PassDataWinFormEventArgs arge = new PassDataWinFormEventArgs(cn1); if (PassDataBetweenForm != null) { PassDataBetweenForm(this, arge); } this.Close( ); } }
private void techQuery_PassDataBetweenForm(object sender, PassDataWinFormEventArgs e) { textBox30.Text = e.ConFiv; textBox27.Text = e.ConTre; lookUpEdit2.Text = e.ConOne; textBox4.Text = e.ConTwo; }
private void gridView1_DoubleClick(object sender, EventArgs e) { if (r369 == "1") { cn1 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "KH01").ToString( ); cn2 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "KH49").ToString( ); cn3 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "KH50").ToString( ); } else if (r369 == "2") { cn1 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "CP001").ToString( ); cn3 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQF04").ToString( ); } else if (r369 == "3") { cn1 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQF01").ToString( ); cn2 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQF02").ToString( ); cn3 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQF03").ToString( ); cn4 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQF04").ToString( ); cn5 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQF06").ToString( ); cn6 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQF07").ToString( ); cn7 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQF08").ToString( ); } PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(cn1, cn2, cn3, cn4, cn5, cn6, cn7); if (PassDataBetweenForm != null) { PassDataBetweenForm(this, args); } this.Close( ); }
private void gridView1_DoubleClick(object sender, EventArgs e) { if (r21 == "1") { cn1 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQF01").ToString( ); cn2 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQF03").ToString( ); cn3 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQF04").ToString( ); cn4 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQF05").ToString( ); cn5 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQF06").ToString( ); cn6 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQF07").ToString( ); cn7 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQF08").ToString( ); cn8 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQF09").ToString( ); cn9 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PQF31").ToString( ); } else if (r21 == "2") { cn1 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "HT02").ToString( ); cn2 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "HT03").ToString( ); cn3 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "HT04").ToString( ); cn4 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "DFA003").ToString( ); cn5 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "DFA015").ToString( ); cn6 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "DFA016").ToString( ); cn7 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "RES05").ToString( ); cn8 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "HT64").ToString( ); } PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(cn1, cn2, cn3, cn4, cn5, cn6, cn7, cn8, cn9); if (PassDataBetweenForm != null) { PassDataBetweenForm(this, args); } this.Close( ); }
protected override void sure( ) { base.sure( ); if (signChan == "1") { if (gridView1.RowCount > 0) { bool result = repeat( ); if (result == false) { MessageBox.Show("您没有选择任何内容或者选择的内容不是同一个单号,请核实"); } else { decimal sum = 0; add.Clear( ); for (int i = 0; i < gridView1.RowCount; i++) { if (gridView1.GetDataRow(i)["check"].ToString( ) == "True") { cn1 = gridView1.GetDataRow(i)["DGA003"].ToString( ); cn2 = gridView1.GetDataRow(i)["OZ001"].ToString( ); cn3 = gridView1.GetDataRow(i)["OZ002"].ToString( ); cn4 = gridView1.GetDataRow(i)["OZ004"].ToString( ); cn5 = gridView1.GetDataRow(i)["OZ003"].ToString( ); //if ( string.IsNullOrEmpty( cn6 ) ) // cn6 = gridView1.GetDataRow( i )["CP06"].ToString( ); //else // cn6 += "," + gridView1.GetDataRow( i )["CP06"].ToString( ); cn6 = "外箱"; //if ( !string.IsNullOrEmpty( gridView1.GetDataRow( i )["CP54"].ToString( ) ) && !string.IsNullOrEmpty( gridView1.GetDataRow( i )["CP13"].ToString( ) ) && !string.IsNullOrEmpty( gridView1.GetDataRow( i )["CP10"].ToString( ) ) ) // sum += Math.Round( Convert.ToDecimal( gridView1.GetDataRow( i )["CP54"].ToString( ) ) * Convert.ToDecimal( gridView1.GetDataRow( i )["CP13"].ToString( ) ) * Convert.ToDecimal( gridView1.GetDataRow( i )["CP10"].ToString( ) ) ,1 ); if (sum == 0) { sum = string.IsNullOrEmpty(gridView1.GetDataRow(i)["OZ"].ToString( )) == true ? 0 : Convert.ToDecimal(gridView1.GetDataRow(i)["OZ"].ToString( )); } else { sum = sum + (string.IsNullOrEmpty(gridView1.GetDataRow(i)["OZ"].ToString( )) == true ? 0 : Convert.ToDecimal(gridView1.GetDataRow(i)["OZ"].ToString( ))); } cn8 = gridView1.GetDataRow(i)["OZ005"].ToString( ); cn9 = gridView1.GetDataRow(i)["OZ011"].ToString( ); if (add.Count < 1) { add.Add(0.ToString( )); } } } cn7 = Math.Round(sum, 2, MidpointRounding.AwayFromZero).ToString( ); PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(cn1, cn2, cn3, cn4, cn5, cn6, cn7, cn8, cn9, add); if (PassDataBetweenForm != null) { PassDataBetweenForm(this, args); } this.Close( ); } } } }
protected override void sure( ) { base.sure( ); for (int i = 0; i < gridView1.RowCount; i++) { if (gridView1.GetDataRow(i)["check"].ToString( ) == "True") { if (!string.IsNullOrEmpty(gridView1.GetDataRow(i)["idx"].ToString( ))) { list.Add(gridView1.GetDataRow(i)["idx"].ToString( )); } } } if (list.Count > 0) { PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(list); if (PassDataBetweenForm != null) { PassDataBetweenForm(this, args); } this.Close( ); } else { this.Close( ); } }
private void button1_Click(object sender, EventArgs e) { if (this.comboBox1.Text == "订单号") { bool ob = judge(); if (ob) { Form1.myOrderService.changeOrder(this.comboBox1.Text, aimOrder, this.textBox1.Text); } else { Form4 form4 = new Form4(); form4.Text = "错误"; form4.ShowDialog(); } } else { Form1.myOrderService.changeOrder(this.comboBox1.Text, aimOrder, this.textBox1.Text); } PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(); PassDataBetweenForm(this, args); this.Close(); }
private void gridView1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { if (MessageBox.Show("确认生成?", "生成", MessageBoxButtons.OKCancel) == DialogResult.OK) { for (int i = 0; i < gridView1.RowCount; i++) { if (gridView1.GetDataRow(i)["check"].ToString( ) == "True") { listCount.Add(gridView1.GetDataRow(i)["JM90"].ToString( )); } } if (listCount.Count < 1) { return; } PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(listCount); if (PassDataBetweenForm != null) { PassDataBetweenForm(this, args); } this.Close( ); } } }
private void tpadga_PassDataBetweenForm(object sender, PassDataWinFormEventArgs e) { tpanum = e.ConOne; textBox15.Text = e.ConTwo; textBox14.Text = e.ConTre; textBox13.Text = e.ConFor; }
private void workQuery_PassDataBetweenForm(object sender, PassDataWinFormEventArgs e) { lookUpEdit3.Text = e.ConOne; textBox8.Text = e.ConTwo; textBox9.Text = e.ConTre; textBox7.Text = e.ConFor; }
private void btn_wrong_Click(object sender, RoutedEventArgs e) { PassDataWinFormEventArgs status = new PassDataWinFormEventArgs(1); PassDataBetweenForm(this, status); this.Close(); }
private void gridView1_DoubleClick(object sender, EventArgs e) { if (r338 == "1") { cn1 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "JM101").ToString( ); cn2 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "JM90").ToString( ); cn3 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "JM100").ToString( ); cn4 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "JM02").ToString( ); cn5 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "DBA002").ToString( ); cn6 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "JM03").ToString( ); cn7 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "DGA002").ToString( ); cn8 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "JM04").ToString( ); cn9 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "JM01").ToString( ); cn10 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "RES05").ToString( ); cn11 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "JM102").ToString( ); cn12 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "JM103").ToString( ); } PassDataWinFormEventArgs arge = new PassDataWinFormEventArgs(cn1, cn2, cn3, cn4, cn5, cn6, cn7, cn8, cn9, cn10, cn11, cn12); if (PassDataBetweenForm != null) { PassDataBetweenForm(this, arge); } this.Close( ); }
private void button1_Click(object sender, EventArgs e) { for (int k = 0; k < gridView1.RowCount; k++) { if (gridView1.GetDataRow(k)["PJ"].ToString( ) == "") { MessageBox.Show("类别有选项没选择内容,请选择"); break; } else { ValueAll( ); try { bll.UpdateOfSign(dicIdx); } catch { } PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(cn1, cn2, cn3, cn4, cn5, cn6, cn7, cn8, cn9); if (PassDataBetweenForm != null) { PassDataBetweenForm(this, args); } this.Close( ); } } }
private void gridView1_DoubleClick(object sender, EventArgs e) { if (lin == "1") { cn1 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "YQ10").ToString( ); cn2 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "YQ11").ToString( ); cn3 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "YQ12").ToString( ); cn4 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "YQ13").ToString( ); cn5 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "YQ14").ToString( ); cn6 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "YQ15").ToString( ); cn7 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "YQ16").ToString( ); cn8 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PY10").ToString( ); cn9 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PY11").ToString( ); cn10 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PY12").ToString( ); cn11 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PY14").ToString( ); cn12 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PY15").ToString( ); cn13 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PY18").ToString( ); cn14 = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, "PY22").ToString( ); } PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(cn1, cn2, cn3, cn4, cn5, cn6, cn7, cn8, cn9, cn10, cn11, cn12, cn13, cn14); if (PassDataBetweenForm != null) { PassDataBetweenForm(this, args); } this.Close( ); }
void megerOne( ) { if (sum >= 2) { if (MessageBox.Show("确定合并?", "数据合并", MessageBoxButtons.OKCancel) == DialogResult.OK) { for (int j = 0; j < gridView1.RowCount; j++) { if (gridView1.GetDataRow(j)["check"].ToString( ) == "True") { if (cn1 == "") { cn1 = gridView1.GetRowCellValue(j, "PQF01").ToString( ); } else { cn1 = cn1 + "," + gridView1.GetRowCellValue(j, "PQF01").ToString( ); } if (cn2 == "") { cn2 = gridView1.GetRowCellValue(j, "PQF02").ToString( ); } else { cn2 = cn2 + "," + gridView1.GetRowCellValue(j, "PQF02").ToString( ); } if (cn3 == "") { cn3 = gridView1.GetRowCellValue(j, "PQF03").ToString( ); } else { cn3 = cn3 + "," + gridView1.GetRowCellValue(j, "PQF03").ToString( ); } if (cn4 == "") { cn4 = gridView1.GetRowCellValue(j, "PQF04").ToString( ); } else { cn4 = cn4 + "," + gridView1.GetRowCellValue(j, "PQF04").ToString( ); } count = count + Convert.ToInt64(gridView1.GetRowCellValue(j, "PQF06").ToString( )); cn6 = gridView1.GetRowCellValue(j, "PQF31").ToString( ); } } cn5 = count.ToString( ); PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(cn1, cn2, cn3, cn4, cn5, cn6); if (PassDataBetweenForm != null) { PassDataBetweenForm(this, args); } this.Close( ); } } else { MessageBox.Show("请选择至少两行"); } }
void byValue( ) { if (gridView1.RowCount > 0) { bool result = repeat( ); if (result == false) { MessageBox.Show("您没有选择任何内容或者选择的内容不是同一个单号,请核实"); } else { decimal sum = 0; add.Clear( ); for (int i = 0; i < gridView1.RowCount; i++) { if (gridView1.GetDataRow(i)["check"].ToString( ) == "True") { cn1 = gridView1.GetDataRow(i)["DGA002"].ToString( ); cn2 = ""; cn3 = ""; cn4 = ""; cn5 = ""; if (string.IsNullOrEmpty(cn6)) { cn6 = gridView1.GetDataRow(i)["YQ12"].ToString( ); } else { if (!cn6.Contains(gridView1.GetDataRow(i)["YQ12"].ToString( ))) { cn6 += "," + gridView1.GetDataRow(i)["YQ12"].ToString( ); } } //[YQ109] * [YQ15] decimal yq109 = string.IsNullOrEmpty(gridView1.GetDataRow(i)["YQ109"].ToString( )) == true ? 0 : Convert.ToDecimal(gridView1.GetDataRow(i)["YQ109"].ToString( )); decimal yq15 = string.IsNullOrEmpty(gridView1.GetDataRow(i)["YQ15"].ToString( )) == true ? 0 : Convert.ToDecimal(gridView1.GetDataRow(i)["YQ15"].ToString( )); if (sum == 0) { sum = yq109 * yq15; } else { sum = sum + yq109 * yq15; } cn8 = 0.ToString( ); cn9 = gridView1.GetDataRow(i)["YQ99"].ToString( ); add.Add(gridView1.GetDataRow(i)["idx"].ToString( )); } } cn7 = Math.Round(sum, 2, MidpointRounding.AwayFromZero).ToString( ); PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(cn1, cn2, cn3, cn4, cn5, cn6, cn7, cn8, cn9, add); if (PassDataBetweenForm != null) { PassDataBetweenForm(this, args); } this.Close( ); } } }
void ergodideses( ) { if (count > 1) { long sum = 0; if (MessageBox.Show("确定合并?", "数据合并", MessageBoxButtons.OKCancel) == DialogResult.OK) { for (int i = 0; i < gridView1.RowCount; i++) { if (gridView1.GetDataRow(i)["check"].ToString( ) == "True") { if (cn1 == "") { cn1 = gridView1.GetRowCellValue(i, "PQF01").ToString( ); } else { cn1 = cn1 + "," + gridView1.GetRowCellValue(i, "PQF01").ToString( ); } if (cn2 == "") { cn2 = gridView1.GetRowCellValue(i, "PQF02").ToString( ); } else { cn2 = cn2 + "," + gridView1.GetRowCellValue(i, "PQF02").ToString( ); } if (cn3 == "") { cn3 = gridView1.GetRowCellValue(i, "PQF03").ToString( ); } else { cn3 = cn3 + "," + gridView1.GetRowCellValue(i, "PQF03").ToString( ); } if (cn4 == "") { cn4 = gridView1.GetRowCellValue(i, "PQF04").ToString( ); } else { cn4 = cn4 + "," + gridView1.GetRowCellValue(i, "PQF04").ToString( ); } sum = sum + Convert.ToInt64(gridView1.GetRowCellValue(i, "PQF06")); } } cn5 = sum.ToString( ); PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(cn1, cn2, cn3, cn4, cn5); if (PassDataBetweenForm != null) { PassDataBetweenForm(this, args); } this.Close( ); } } }
private void query_PassDataBetweenForm(object sender, PassDataWinFormEventArgs e) { _model.AT001 = e.ConOne; //if ( e.ConTwo == "执行" ) // label45.Visible = true; //else // label45.Visible = false; }
private void button1_Click(object sender, EventArgs e) { Form1.myOrderService.changeOrder(this.comboBox1.Text, aimOrder, this.textBox1.Text); PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(); PassDataBetweenForm(this, args); this.Close(); }
private void wxQuery_PassDataBetweenForm(object sender, PassDataWinFormEventArgs e) { textBox10.Text = e.ConOne; textBox1.Text = e.ConTwo; textBox2.Text = e.ConFor; textBox3.Text = e.ConTre; textBox8.Text = e.ConFiv; }
private void se_PassDataBetweenForm(object sender, PassDataWinFormEventArgs e) { if (r519ben.Equals("1")) { tQUOL021.Text = e.ConOne; tQUOL022.Text = e.ConTwo; tQUOL023.Text = e.ConTre; tQUOL019.Text = e.ConFor; tQUOL017.Text = e.ConFiv; tQUOL016.Text = e.ConSix; tQUOL018.Text = ""; tQUOL025.Text = e.ConSev; } else if (r519ben == "2") { tQUOL021.Text = e.ConOne; tQUOL022.Text = e.ConTwo; tQUOL023.Text = e.ConTre; tQUOL019.Text = e.ConFor; tQUOL017.Text = e.ConFiv; tQUOL016.Text = e.ConSix; tQUOL018.Text = ""; tQUOL025.Text = e.ConSev; } else if (r519ben == "3") { tQUOL021.Text = e.ConOne; tQUOL022.Text = e.ConTwo; tQUOL019.Text = e.ConTre; tQUOL017.Text = e.ConFor; tQUOL016.Text = e.ConFiv; tQUOL023.Text = ""; tQUOL025.Text = e.ConSix; } else if (r519ben == "4") { tQUOL018.Text = e.ConOne; tQUOL017.Text = e.ConTwo; tQUOL016.Text = e.ConTre; tQUOL023.Text = ""; tQUOL021.Text = ""; tQUOL022.Text = ""; tQUOL019.Text = ""; tQUOL025.Text = e.ConFor; } else if (r519ben == "5") { tQUOL021.Text = e.ConOne; tQUOL022.Text = e.ConTwo; tQUOL018.Text = e.ConTre; tQUOL017.Text = e.ConFor; tQUOL016.Text = e.ConFiv; tQUOL023.Text = ""; tQUOL019.Text = ""; tQUOL025.Text = e.ConSix; tQUOL024.Text = e.ConSev; } }
private void PWindow_Click(object sender, EventArgs e) { string GuideNum; GuideNum = drp1Name.Text; PassDataWinFormEventArgs args = new PassDataWinFormEventArgs(GuideNum); PassDataBetweenForm(this, args); }