Пример #1
0
        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;
            ExportBPBJJHBEdit export = new ExportBPBJJHBEdit();
            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)
            {
                fjly.btn_Submit_Click(sender,e);
                if (MainHelper.UserOrg.OrgName.IndexOf("局") == -1)
                    export.ExportExceljhbAllSubmitToWF_ModleRecordWorkTaskIns(parentID);
                else
                    export.ExportExceljhbAllSubmitToWF_ModleRecordWorkTaskIns(parentID);
                gridControl1.FindForm().Close();
            }
        }
Пример #2
0
 private void barExplorYear_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     
     ExportBPBJJHBEdit etdjh = new ExportBPBJJHBEdit();
     etdjh.ExportExcelYear(parentID);
 }
Пример #3
0
        private void btView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) {
            IList<PJ_bpbjjhb> datalist = gridView1.DataSource as IList<PJ_bpbjjhb>;
            ExportBPBJJHBEdit etdjh = new ExportBPBJJHBEdit();
            etdjh.ExportExcel(datalist);



        }