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;


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

                export.ExportExcelSubmit(ref parentTemple, parentID,  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(parentID);
                    gridControl1.FindForm().Close();
                }
            
        }
        private void barExplorYear_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {

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

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