private void toolStripButton27_Click(object sender, EventArgs e) { if (null == this.ly_stocktake_detailDataGridView.CurrentRow) { return; } //if ("" == ly_sales_contract_mainDataGridView.CurrentRow.Cells["类别"].Value.ToString()) //{ // MessageBox.Show("请选择合同类别,然后打印...", "注意"); // return; //} NewFrm.Show(this);; //this.ly_plan_getmaterialTableAdapter.Fill(this.lYPlanMange.ly_plan_getmaterial, parentId); BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密盘点报表"; queryForm.Printdata = this.lYStoreMange; queryForm.PrintCrystalReport = new LY_InventoryRepore(); NewFrm.Hide(this); queryForm.ShowDialog(); }
private void 打印PToolStripButton_Click(object sender, EventArgs e) { if (null == this.ly_store_outDataGridView.CurrentRow) { return; } string out_number = this.ly_store_outDataGridView.CurrentRow.Cells["out_number"].Value.ToString(); NewFrm.Show(this); BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密生产领料单"; queryForm.Printdata = this.lYStoreMange; queryForm.PrintCrystalReport = new LY_Lingliaodan_Tool(); string selectFormula; selectFormula = "{ly_store_out_tool.out_number} = '" + out_number + "' "; queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; NewFrm.Hide(this); queryForm.ShowDialog(); }
private void toolStripButton1_Click(object sender, EventArgs e) { if (null == this.ly_outsource_order_inspectionRepDataGridView.CurrentRow) { return; } BaseReportView queryForm = new BaseReportView(); string nowCheckNum = this.ly_outsource_order_inspectionRepDataGridView.CurrentRow.Cells["质检单号"].Value.ToString(); string code = this.ly_outsource_order_inspectionRepDataGridView.CurrentRow.Cells["物料编码"].Value.ToString(); queryForm.Text = "中原精密质检报告"; queryForm.Printdata = this.lYOutsourceData; queryForm.PrintCrystalReport = new LY_ZJ_WX_R(); string selectFormula; selectFormula = "{ly_outsource_order_inspectionRep.质检单号} = '" + nowCheckNum + "' and {ly_outsource_order_inspectionRep.物料编码} = '" + code + "'"; queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; queryForm.ShowDialog(); }
private void 打印PToolStripButton_Click(object sender, EventArgs e) { if (null == this.ly_store_in_JGDataGridView.CurrentRow) { return; } string nowinput_num; nowinput_num = this.ly_store_in_JGDataGridView.CurrentRow.Cells["入库单号"].Value.ToString(); //---- NewFrm.Show(this); ; //this.ly_plan_getmaterialTableAdapter.Fill(this.lYPlanMange.ly_plan_getmaterial, parentId); BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密外协入库单"; queryForm.Printdata = this.lYQualityInspector; queryForm.PrintCrystalReport = new LY_WaixieRukudan(); string selectFormula; selectFormula = "{ly_store_in_WX.入库单号} = '" + nowinput_num + "' "; queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; //---- NewFrm.Hide(this); queryForm.ShowDialog(); }
private void toolStripButton2_Click(object sender, EventArgs e) { if (null == this.ly_store_innum_purchaseDataGridView.CurrentRow) { return; } NewFrm.Show(this);; BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密异型返库出入库单"; queryForm.Printdata = this.lYSalseMange2; queryForm.PrintCrystalReport = new LY_Yixingchuruku(); //string selectFormula; //selectFormula = "{ly_store_planitemcount.状态} = '原料' and {ly_store_planitemcount.欠料金额}>0 "; //queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; NewFrm.Hide(this); queryForm.ShowDialog(); }
private void 打印PToolStripButton_Click(object sender, EventArgs e) { if (null == this.ly_production_orderDataGridView.CurrentRow) { return; } //string balanceFlag = this.xD_Sel_SellBalanceDataGridView.CurrentRow.Cells["结算"].Value.ToString(); NewFrm.Show(this); BaseReportView queryForm = new BaseReportView(); queryForm.Text = "钳装生产任务领料单"; queryForm.Printdata = this.lYProductMange; queryForm.PrintCrystalReport = new LY_ProductTaskReport(); NewFrm.Hide(this); queryForm.ShowDialog(); }
private void 打印PToolStripButton_Click(object sender, EventArgs e) { if (null == this.ly_store_innum_purchaseDataGridView.CurrentRow) { return; } NewFrm.Show(this);; //this.ly_plan_getmaterialTableAdapter.Fill(this.lYPlanMange.ly_plan_getmaterial, parentId); BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密电装入库单"; queryForm.Printdata = this.lYStoreMange; queryForm.PrintCrystalReport = new LY_ProductRukudan(); //string selectFormula; //selectFormula = "{ly_store_planitemcount.状态} = '原料' and {ly_store_planitemcount.欠料金额}>0 "; //queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; NewFrm.Hide(this); queryForm.ShowDialog(); }
private void toolStripButton7_Click(object sender, EventArgs e) { if (null == this.ly_plan_getmaterialDataGridView.CurrentRow) { return; } int parentId = int.Parse(this.ly_material_plan_mainDataGridView.CurrentRow.Cells["id"].Value.ToString()); frmWaiting.Show(this); //this.ly_plan_getmaterialTableAdapter.Fill(this.lYPlanMange.ly_plan_getmaterial, parentId); BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密计划领料单"; queryForm.Printdata = this.lYPlanMange; queryForm.PrintCrystalReport = new LY_GetMaterial_Dayget(); //string selectFormula; //selectFormula = "{ly_store_planitemcount.状态} = '原料' and {ly_store_planitemcount.欠料金额}>0 "; //queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; frmWaiting.Hide(this); queryForm.ShowDialog(); }
private void 装箱单打印总表ToolStripMenuItem_Click(object sender, EventArgs e) { if (null == this.ly_sales_deliver_detailDataGridView.CurrentRow) { return; } NewFrm.Show(this);; //this.ly_plan_getmaterialTableAdapter.Fill(this.lYPlanMange.ly_plan_getmaterial, parentId); BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密营业发货装箱单"; queryForm.Printdata = this.lYSalseMange; queryForm.PrintCrystalReport = new LY_YingyeHetong_FHZX2(); NewFrm.Hide(this); queryForm.ShowDialog(); }
private void toolStripButton6_Click(object sender, EventArgs e) { if (null == this.ly_purchase_contract_inspectionRepDataGridView.CurrentRow) { return; } BaseReportView queryForm = new BaseReportView(); string task = this.ly_purchase_contract_inspectionRepDataGridView.CurrentRow.Cells["任务单"].Value.ToString(); string item = this.ly_purchase_contract_inspectionRepDataGridView.CurrentRow.Cells["物料号"].Value.ToString(); queryForm.Text = "中原精密追加领料说明报告"; queryForm.Printdata = this.lYQualityInspector; queryForm.PrintCrystalReport = new LY_Add_Rep(); string selectFormula; selectFormula = "{ly_production_task_requestSingle.pruductionOrder_num} = '" + task + "' and {ly_production_task_requestSingle.itemno} = '" + item + "'"; queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; queryForm.ShowDialog(); }
private void toolStripButton12_Click(object sender, EventArgs e) { if (null == this.ly_purchase_contract_detailDataGridView.CurrentRow) { return; } NewFrm.Show(this);; //this.ly_plan_getmaterialTableAdapter.Fill(this.lYPlanMange.ly_plan_getmaterial, parentId); BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密采购合同"; queryForm.Printdata = this.lYMaterielRequirements; queryForm.PrintCrystalReport = new LY_WaixiePurchaseHetong(); //string selectFormula; //selectFormula = "{ly_store_planitemcount.状态} = '原料' and {ly_store_planitemcount.欠料金额}>0 "; //queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; NewFrm.Hide(this); queryForm.ShowDialog(); }
private void 打印PToolStripButton_Click(object sender, EventArgs e) { if (null == this.ly_store_in_JGDataGridView.CurrentRow) { return; } string Rkd = this.ly_store_in_JGDataGridView.CurrentRow.Cells["入库单号"].Value.ToString(); NewFrm.Show(this);; BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密机加入库单"; queryForm.Printdata = this.lYQualityInspector; queryForm.PrintCrystalReport = new LY_WaixieRukudanJG(); string selectFormula; selectFormula = "{ly_store_in_JG.入库单号} = '" + Rkd + "'"; queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; NewFrm.Hide(this); queryForm.ShowDialog(); }
private void toolStripButton1_Click(object sender, EventArgs e) { if (null == this.ly_purchase_contract_inspectionRepDataGridView.CurrentRow) { return; } BaseReportView queryForm = new BaseReportView(); string nowCheckNum = this.ly_purchase_contract_inspectionRepDataGridView.CurrentRow.Cells["总检单号"].Value.ToString(); string code = this.ly_purchase_contract_inspectionRepDataGridView.CurrentRow.Cells["物料编码"].Value.ToString(); queryForm.Text = "中原精密质检报告"; queryForm.Printdata = this.lYQualityInspector; queryForm.PrintCrystalReport = new LY_ZJ_XJ_MainRep(); string selectFormula; selectFormula = "{lY_productionorder_list_Rep.总检单号} = '" + nowCheckNum + "' and {lY_productionorder_list_Rep.物料编码} = '" + code + "' "; queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; queryForm.ShowDialog(); }
private void toolStripButton5_Click(object sender, EventArgs e) { if (null == this.ly_production_submit_periodDataGridView.CurrentRow) { return; } NewFrm.Show(this);; BaseReportView queryForm = new BaseReportView(); queryForm.setchackBoxCansee(false); queryForm.Printdata = this.lYProductMange; queryForm.Text = "中原精密生产报表"; queryForm.PrintCrystalReport = new LY_ProductReport_period(); NewFrm.Hide(this); queryForm.ShowDialog(); }
private void toolStripButton6_Click(object sender, EventArgs e) { if (null == this.ly_store_planitemcountDataGridView1.CurrentRow) { return; } //string balanceFlag = this.xD_Sel_SellBalanceDataGridView.CurrentRow.Cells["结算"].Value.ToString(); frmWaiting.Show(this); BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密物料计划欠料表"; queryForm.Printdata = this.lYPlanMange; queryForm.PrintCrystalReport = new LY_MaterialReport_Owe(); //string nowCardNumber = this.xD_Sel_SellBalanceDataGridView.CurrentRow.Cells["编号"].Value.ToString(); //string selectFormula; //selectFormula = "{XD_Sel_SellBalance.编号} = '" + nowCardNumber + "'"; //queryForm.CrystalReportViewer1.SelectionFormula = selectFormula; //if (this.radioButton2.Checked) //{ // string selectFormula; // selectFormula = "{XD_Sel_SellBalance.Card_number} = '" + nowCardNumber + "'"; // queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; //} string selectFormula; //selectFormula = "{ly_store_planitemcount.status} = '原料' and {ly_store_planitemcount.owemoney} >0 "; selectFormula = "{ly_store_planitemcount.状态} = '原料' and {ly_store_planitemcount.计划欠料金额}>0 "; queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; //((CrystalDecisions.CrystalReports.Engine.TextObject)(queryForm.PrintCrystalReport.DataDefinition.GroupNameFields.GroupHeaderSection1.ReportObjects["Text24"])).Text = "潼关中金冶炼有限责任公司原料结算单"; //queryForm.PrintCrystalReport = new XD_SellBalance_All(); //string nowCardNumber = this.xD_Sel_SellBalanceDataGridView.CurrentRow.Cells["编号"].Value.ToString(); frmWaiting.Hide(this); queryForm.ShowDialog(); }
private void 打印PToolStripButton_Click(object sender, EventArgs e) { if (null == this.ly_outsource_order_inspectionRepDataGridView.CurrentRow) { return; } BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密质检报告"; queryForm.Printdata = this.lYOutsourceData; queryForm.PrintCrystalReport = new LY_ZJ_WX_R(); queryForm.ShowDialog(); }
private void 打印PToolStripButton_Click(object sender, EventArgs e) { if (null == this.ly_purchase_contract_inspectionRepDataGridView.CurrentRow) { return; } BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密质检报告"; queryForm.Printdata = this.lYQualityInspector; queryForm.PrintCrystalReport = new LY_ZJ_CG_R(); queryForm.ShowDialog(); }
private void 打印PToolStripButton_Click(object sender, EventArgs e) { if (null == this.ly_store_innum_purchaseDataGridView.CurrentRow) { return; } BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密钳装改制入库单"; queryForm.Printdata = this.lYStoreMange; queryForm.PrintCrystalReport = new LY_ProductRukudan_GZ(); queryForm.ShowDialog(); }
private void 打印PToolStripButton_Click(object sender, EventArgs e) { if (null == this.ly_store_planitemcountDataGridView1.CurrentRow) { return; } //string balanceFlag = this.xD_Sel_SellBalanceDataGridView.CurrentRow.Cells["结算"].Value.ToString(); frmWaiting.Show(this); BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密物料计划需求表"; queryForm.Printdata = this.lYPlanMange; queryForm.PrintCrystalReport = new LY_MaterialReport(); //string nowCardNumber = this.xD_Sel_SellBalanceDataGridView.CurrentRow.Cells["编号"].Value.ToString(); //string selectFormula; //selectFormula = "{XD_Sel_SellBalance.编号} = '" + nowCardNumber + "'"; //queryForm.CrystalReportViewer1.SelectionFormula = selectFormula; //if (this.radioButton2.Checked) //{ // string selectFormula; // selectFormula = "{XD_Sel_SellBalance.Card_number} = '" + nowCardNumber + "'"; // queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; //} //queryForm.PrintCrystalReport = new XD_SellBalance_All(); //string nowCardNumber = this.xD_Sel_SellBalanceDataGridView.CurrentRow.Cells["编号"].Value.ToString(); frmWaiting.Hide(this); queryForm.ShowDialog(); }
private void toolStripButton5_Click(object sender, EventArgs e) { if (null == this.dataGridView1.CurrentRow) { return; } //string balanceFlag = this.xD_Sel_SellBalanceDataGridView.CurrentRow.Cells["结算"].Value.ToString(); NewFrm.Show(this); BaseReportView queryForm = new BaseReportView(); queryForm.Text = "钳装生产任务单"; queryForm.Printdata = this.lYProductMange; queryForm.PrintCrystalReport = new LY_ProductTaskAllReport(); //string nowCardNumber = this.xD_Sel_SellBalanceDataGridView.CurrentRow.Cells["编号"].Value.ToString(); //string selectFormula; //selectFormula = "{XD_Sel_SellBalance.编号} = '" + nowCardNumber + "'"; //queryForm.CrystalReportViewer1.SelectionFormula = selectFormula; //if (this.radioButton2.Checked) //{ // string selectFormula; // selectFormula = "{XD_Sel_SellBalance.Card_number} = '" + nowCardNumber + "'"; // queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; //} //queryForm.PrintCrystalReport = new XD_SellBalance_All(); //string nowCardNumber = this.xD_Sel_SellBalanceDataGridView.CurrentRow.Cells["编号"].Value.ToString(); NewFrm.Hide(this); queryForm.ShowDialog(); }
private void toolStripButton10_Click(object sender, EventArgs e) { if (null == this.ly_store_outDataGridView.CurrentRow) { return; } //int parentId = int.Parse(this.ly_material_plan_mainDataGridView.CurrentRow.Cells["id"].Value.ToString()); frmWaiting.Show(this); //this.ly_plan_getmaterialTableAdapter.Fill(this.lYPlanMange.ly_plan_getmaterial, parentId); BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密维修欠料单"; queryForm.Printdata = this.lYSalseMange2; queryForm.PrintCrystalReport = new LY_Lingliaodan_WXQL(); //queryForm.PrintCrystalReport.ParameterFields["faliaoren"].CurrentValues.Add( SQLDatabase.nowUserName()); //queryForm.PrintCrystalReport.ParameterFields["faliaoren"].CurrentValues=new CrystalDecisions.Shared.ParameterValues( SQLDatabase.nowUserName()); //queryForm.PrintCrystalReport.SetParameterValue("faliaoren", SQLDatabase.nowUserName()); //queryForm.PrintCrystalReport.ParameterFields["faliaoren"].CurrentValues.AddValue(SQLDatabase.nowUserName()); string selectFormula; selectFormula = " {ly_sales_receive_itemDetail_repair.未领数量}>0 "; queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; //string selectFormula; //selectFormula = "{ly_store_planitemcount.状态} = '原料' and {ly_store_planitemcount.欠料金额}>0 "; //queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; frmWaiting.Hide(this); queryForm.ShowDialog(); }
private void 打印PToolStripButton_Click(object sender, EventArgs e) { if (null == this.ly_outmachine_contract_detail_selDataGridView.CurrentRow) { return; } //if ("True" != ly_purchase_contract_mainDataGridView.CurrentRow.Cells["批准"].Value.ToString()) //{ // MessageBox.Show("合同未经生产审批,不能打印...", "注意"); // return; //} //if ("True" != ly_purchase_contract_mainDataGridView.CurrentRow.Cells["审核"].Value.ToString()) //{ // MessageBox.Show("合同未经质检审核,不能打印...", "注意"); // return; //} //NewFrm.Show(this) 2018-09-12; //this.ly_plan_getmaterialTableAdapter.Fill(this.lYPlanMange.ly_plan_getmaterial, parentId); BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密加工基地委托加工结账单"; queryForm.Printdata = this.lYProductMange; queryForm.PrintCrystalReport = new LY_weituojiagongdan(); //string selectFormula; //selectFormula = "{ly_store_planitemcount.状态} = '原料' and {ly_store_planitemcount.欠料金额}>0 "; //queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; // NewFrm.Hide(this)2018-09-12; queryForm.ShowDialog(); }
private void toolStripButton15_Click(object sender, EventArgs e) { if (null == this.ly_production_orderDataGridView.CurrentRow) { return; } BaseReportView queryForm = new BaseReportView(); queryForm.Text = "钳装改制生产任务领料单"; queryForm.Printdata = this.lYProductMange; queryForm.PrintCrystalReport = new LY_ProductTaskReport(); queryForm.ShowDialog(); }
private void toolStripButton10_Click(object sender, EventArgs e) { if (null == this.dataGridView1.CurrentRow) { return; } // int parentId = int.Parse(this.ly_material_plan_mainDataGridView.CurrentRow.Cells["id"].Value.ToString()); if ("True" != this.ly_material_plan_mainDataGridView.CurrentRow.Cells["生产审批0"].Value.ToString()) { MessageBox.Show("请先审批通过,然后打印...", "注意"); return; } // NewFrm.Show(this); //this.ly_plan_getmaterialTableAdapter.Fill(this.lYPlanMange.ly_plan_getmaterial, parentId); BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密临时配套表"; queryForm.Printdata = this.lYSalseMange; queryForm.PrintCrystalReport = new LY_PlanTemp2(); //string selectFormula; //selectFormula = "{ly_store_planitemcount.状态} = '原料' and {ly_store_planitemcount.欠料金额}>0 "; //queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; queryForm.ShowDialog(); //NewFrm.Hide(this); }
private void toolStripButton2_Click(object sender, EventArgs e) { if (null == this.ly_store_outDataGridView.CurrentRow) { return; } BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密追加领料单"; queryForm.Printdata = this.lYStoreMange; queryForm.PrintCrystalReport = new LY_lingliaodan_ZJ(); queryForm.ShowDialog(); }
private void 打印PToolStripButton_Click(object sender, EventArgs e) { if (null == this.ly_store_innum_purchaseDataGridView.CurrentRow) { return; } string nowcategory = ""; nowcategory = this.ly_store_in_ylDataGridView.CurrentRow.Cells["组别"].Value.ToString(); // NewFrm.Show(this); //this.ly_plan_getmaterialTableAdapter.Fill(this.lYPlanMange.ly_plan_getmaterial, parentId); BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密采购入库单"; queryForm.Printdata = this.lYStoreMange; if (!nowcategory.Trim().Contains("工具")) { queryForm.PrintCrystalReport = new LY_CaigouRukudan(); } else { queryForm.PrintCrystalReport = new LY_CaigouRukudan_Tool(); } //string selectFormula; //selectFormula = "{ly_store_planitemcount.状态} = '原料' and {ly_store_planitemcount.欠料金额}>0 "; //queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; //NewFrm.Hide(this); queryForm.ShowDialog(); }
private void 打印PToolStripButton_Click(object sender, EventArgs e) { if (this.formState != "View") { MessageBox.Show("请保存数据后打印...", "注意"); return; } if (null == this.ly_store_outDataGridView.CurrentRow) { return; } //int parentId = int.Parse(this.ly_material_plan_mainDataGridView.CurrentRow.Cells["id"].Value.ToString()); frmWaiting.Show(this); //this.ly_plan_getmaterialTableAdapter.Fill(this.lYPlanMange.ly_plan_getmaterial, parentId); BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密机加领料出库单"; queryForm.Printdata = this.lYMaterielRequirements; queryForm.PrintCrystalReport = new LY_LingliaodanJG(); //string selectFormula; //selectFormula = "{ly_store_planitemcount.状态} = '原料' and {ly_store_planitemcount.欠料金额}>0 "; //queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; frmWaiting.Hide(this); queryForm.ShowDialog(); }
private void 打印PToolStripButton_Click(object sender, EventArgs e) { if (null == this.ly_store_outDataGridView.CurrentRow) { return; } //int parentId = int.Parse(this.ly_material_plan_mainDataGridView.CurrentRow.Cells["id"].Value.ToString()); if (!string.IsNullOrEmpty(ly_store_outnumDailyDataGridView.CurrentRow.Cells["计划编号"].Value.ToString())) { MessageBox.Show("非手工领料单只能在这里浏览,不能打印", "注意"); return; } frmWaiting.Show(this); //this.ly_plan_getmaterialTableAdapter.Fill(this.lYPlanMange.ly_plan_getmaterial, parentId); BaseReportView queryForm = new BaseReportView(); queryForm.Text = "中原精密出库单"; queryForm.Printdata = this.lYStoreMange; queryForm.PrintCrystalReport = new LY_Lingliaodan(); //string selectFormula; //selectFormula = "{ly_store_planitemcount.状态} = '原料' and {ly_store_planitemcount.欠料金额}>0 "; //queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; frmWaiting.Hide(this); queryForm.ShowDialog(); }
private void toolStripButton27_Click(object sender, EventArgs e) { if (null == this.ly_sales_repair_replacementDataGridView.CurrentRow) { return; } NewFrm.Show(this); BaseReportView queryForm = new BaseReportView(); queryForm.setchackBoxCansee(false); queryForm.Printdata = this.lYSalseRepair; //queryForm.company = ly_sales_contract_mainDataGridView.CurrentRow.Cells["公司"].Value.ToString(); queryForm.Text = "退料明细表"; queryForm.PrintCrystalReport = new LY_sales_repair_Replc(); //string selectFormula; //selectFormula = "not {ly_sales_receive_repairfee.免费} and {ly_sales_receive_repairfee.金额}>0 "; //queryForm.PrintCrystalReport.DataDefinition.RecordSelectionFormula = selectFormula; NewFrm.Hide(this); queryForm.ShowDialog(); }