Exemplo n.º 1
0
 private void btExplorerqc_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frmYearSelect fys = new frmYearSelect();
     fys.StrSQL = "select distinct left(CONVERT(varchar(50) , ssrq, 112 ),4 )  from PJ_cqcssqk";
     if (fys.ShowDialog() == DialogResult.OK)
     {
         ExportCQCSSQK etdjh = new ExportCQCSSQK();
         etdjh.ExportExcelQiuChaYear(parentID, fys.strYear);
     }
 }
Exemplo n.º 2
0
        private void btExplorerYear_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {

            frmYearSelect fys = new frmYearSelect();
            fys.StrSQL = "select distinct left(CONVERT(varchar(50) , gzrq, 112 ),4 )  from PJ_gztjb";
            if (fys.ShowDialog() == DialogResult.OK)
            {
                ExportGZTJB etdjh = new ExportGZTJB();
                etdjh.ExportExcel(fys.strYear);
            }
        }
Exemplo n.º 3
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;
            frmYearSelect fys = new frmYearSelect();
            fys.StrSQL = "select distinct left(CONVERT(varchar(50) , indate, 112 ),4 )  from PJ_sctz";
            if (fys.ShowDialog() == DialogResult.OK)
            {
                ExportDYJCZZSZTZEdit export = new ExportDYJCZZSZTZEdit();
                export.CurrRecord = currRecord;
                export.IsWorkflowCall = isWorkflowCall;
                export.ParentTemple = parentTemple;
                export.RecordWorkFlowData = WorkFlowData;

                export.ExportExcelSubmit(ref parentTemple, parentID, fys.strYear, 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();
                }
            }
        }
Exemplo n.º 4
0
 private void btExplorerYear_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frmYearSelect fys = new frmYearSelect();
     fys.StrSQL = "select distinct left(CONVERT(varchar(50) , wcsj, 112 ),4 )  from PJ_ccxqjh";
     if (fys.ShowDialog() == DialogResult.OK)
     {
         ExportGDSCCXQJH etdjh = new ExportGDSCCXQJH();
         etdjh.ExportExcel(parentID, fys.strYear);
     }
 }
Exemplo n.º 5
0
 private void btExplorerqc_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frmYearSelect fys = new frmYearSelect();
     fys.StrSQL = "select distinct left(CONVERT(varchar(50) , jhwcsj, 112 ),4 )  from PJ_lcfxwtjzgls";
     if (fys.ShowDialog() == DialogResult.OK)
     {
         ExportLCFXWTJZGLS etdjh = new ExportLCFXWTJZGLS();
         etdjh.ExportExcelQiuChaYear(parentID, fys.strYear);
     }
 }