コード例 #1
0
ファイル: UCPJ_SBQXMX.cs プロジェクト: s7loves/mypowerscgl
        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;
            Export11 export = new Export11();
            export.CurrRecord = currRecord;
            export.IsWorkflowCall = isWorkflowCall;
            export.ParentTemple = parentTemple;
            export.RecordWorkFlowData = WorkFlowData;
            if (MainHelper.UserOrg.OrgName.IndexOf("局") == -1)
                export.ExportExceljhbAllSubmit(ref parentTemple, "预防性试验", "设备预防性试验计划(总)表", parentID, false);
            else
                export.ExportExceljhbAllSubmit(ref parentTemple, "预防性试验", "设备预防性试验计划(总)表", "", false);
            fm.ParentTemple = parentTemple;
            if (fm.ShowDialog() == DialogResult.OK)
            {

                if (MainHelper.UserOrg.OrgName.IndexOf("局") == -1)
                    export.ExportExceljhbAllSubmitToWF_ModleRecordWorkTaskIns(parentID);
                else
                    export.ExportExceljhbAllSubmitToWF_ModleRecordWorkTaskIns(parentID);
                gridControl1.FindForm().Close();
            }
        }
コード例 #2
0
ファイル: UCDYJCZZSZTZ.cs プロジェクト: s7loves/mypowerscgl
        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();
                }
            }
        }
コード例 #3
0
ファイル: UCCLCK.cs プロジェクト: s7loves/mypowerscgl
        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;
            frmProjectSelect fys = new frmProjectSelect();
            fys.strType = " and (type = '工程材料出库单' ) ";
            fys.StrSQL = "select distinct ssgc  from PJ_clcrkd where  (type = '工程材料出库单' ) ";
            if (fys.ShowDialog() == DialogResult.OK)
            {
                ExportCLCKEdit export = new ExportCLCKEdit();
                export.CurrRecord = currRecord;
                export.IsWorkflowCall = isWorkflowCall;
                export.ParentTemple = parentTemple;
                export.RecordWorkFlowData = WorkFlowData;

                export.ExportExcelSubmit(ref parentTemple, "", fys.strProject, fys.strFenproject, 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("", fys.strProject, fys.strFenproject);
                    else
                        export.ExportExceljhbAllSubmitToWF_ModleRecordWorkTaskIns("", fys.strProject, fys.strFenproject);
                    gridControl1.FindForm().Close();
                }
            }
        }
コード例 #4
0
ファイル: UCPJ_TDJH.cs プロジェクト: s7loves/mypowerscgl
        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;
            frmTDJHMonthSet fms = new frmTDJHMonthSet();
            if (fms.ShowDialog() == DialogResult.OK) {
                ExportTDJH export = new ExportTDJH();
                export.CurrRecord = currRecord;
                export.IsWorkflowCall = isWorkflowCall;
                export.ParentTemple = parentTemple;
                export.RecordWorkFlowData = WorkFlowData;

                fms.dtTime = fms.dtTime.AddMonths(-1);
                export.ExportExcelSubmit(fms.dtTime, fms.dtTime2, ref parentTemple, parentID, false);

                fm.ParentTemple = parentTemple;
                if (fm.ShowDialog() == DialogResult.OK) {
                    if (MainHelper.UserOrg.OrgName.IndexOf("局") == -1)
                        export.ExportExceljhbAllSubmitToWF_ModleRecordWorkTaskIns(fms.dtTime, fms.dtTime2, parentID);
                    else
                        export.ExportExceljhbAllSubmitToWF_ModleRecordWorkTaskIns(fms.dtTime, fms.dtTime2, parentID);
                    gridControl1.FindForm().Close();
                }
            }
        }