private void SubmitButton_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmModleSubmit fm = new frmModleSubmit();
            fm.RecordWorkFlowData = WorkFlowData;
            fm.CurrRecord = currRecord;
            if (currRecord.Status == "申报")
                fm.Status = "add";
            else
                fm.Status = "edit";
            fm.Kind = currRecord.Kind;

            ExportSBBZQSBGMXB1Edit export = new ExportSBBZQSBGMXB1Edit();
                export.CurrRecord = currRecord;
                export.IsWorkflowCall = isWorkflowCall;
                export.ParentTemple = parentTemple;
                export.RecordWorkFlowData = WorkFlowData;

                export.ExportExcelSubmit(ref parentTemple, "", false);

                fm.ParentTemple = parentTemple;
                if (fm.ShowDialog() == DialogResult.OK)
                {
                    if (fjly == null) fjly = new frmModleFjly();
                    fjly.btn_Submit_Click(sender, e);
                    //if (MainHelper.UserOrg.OrgName.IndexOf("局") == -1)
                    //    export.ExportExceljhbAllSubmitToWF_ModleRecordWorkTaskIns(parentID);
                    //else
                        export.ExportExceljhbAllSubmitToWF_ModleRecordWorkTaskIns("");
                    gridControl1.FindForm().Close();
                }
            
        }
        private void barExplorYear_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {

            ExportSBBZQSBGMXB1Edit etdjh = new ExportSBBZQSBGMXB1Edit();
                etdjh.ExportExcel("");
            
        }
        private void btView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) {
            //IList<PJ_sbbzqsbgmxb1> datalist = gridView1.DataSource as IList<PJ_sbbzqsbgmxb1>;
            //frmYearSelect fys = new frmYearSelect();
            //fys.StrSQL = "select distinct left(CONVERT(varchar(50) , indate, 112 ),4 )  from PJ_sbbzqsbgmxb1";
            //if (fys.ShowDialog() == DialogResult.OK)
            {

                ExportSBBZQSBGMXB1Edit etdjh = new ExportSBBZQSBGMXB1Edit();
                etdjh.ExportExcel(parentID);
            }
           
           
           
        }