Beispiel #1
0
 private void barExplorYear_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frmProjectSelect fys = new frmProjectSelect();
     fys.strType = " and (type = '撤旧材料入库单' or type = '撤旧材料入库单原始库存') ";
     fys.StrSQL = "select distinct ssgc  from PJ_wgclcrkd where  (type = '撤旧材料入库单' or type = '撤旧材料入库单原始库存') ";
     if (fys.ShowDialog() == DialogResult.OK)
     {
         ExportWGCJCLRKEdit etdjh = new ExportWGCJCLRKEdit();
         etdjh.ExportExcelProjectCKD("", fys.strProject, fys.strFenproject);
     }
 }
Beispiel #2
0
        private void btView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) {
            //IList<PJ_wgclcrkd> datalist = gridView1.DataSource as IList<PJ_wgclcrkd>;
            frmProjectSelect fys = new frmProjectSelect();
            fys.strType = " and (type = '撤旧材料入库单' or type = '撤旧材料入库单原始库存') ";
            fys.StrSQL = "select distinct ssgc  from PJ_wgclcrkd where  (type = '撤旧材料入库单' or type = '撤旧材料入库单原始库存') ";
            if (fys.ShowDialog() == DialogResult.OK)
            {

                ExportWGCJCLRKEdit etdjh = new ExportWGCJCLRKEdit();
                etdjh.ExportExcelProjectCKD(parentID,fys.strProject,fys.strFenproject);
            }
           
           
           
        }