Example #1
0
 private void barExplorYear_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frmNumSelect fys = new frmNumSelect();
     fys.strType = " and (type = '所安全工器具出库单' ) ";
     fys.StrSQL = "select distinct num  from PJ_anqgjcrkd where  (type = '所安全工器具出库单') ";
     if (fys.ShowDialog() == DialogResult.OK)
     {
         ExportAQGJSCKEdit etdjh = new ExportAQGJSCKEdit();
         etdjh.ExportExcelProjectCKD("", fys.strNum);
     }
 }
Example #2
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;
            frmNumSelect fys = new frmNumSelect();
            fys.strType = " and (type = '所安全工器具出库单' ) ";
            fys.StrSQL = "select distinct ssgc  from PJ_anqgjcrkd where  (type = '所安全工器具出库单' ) ";
            if (fys.ShowDialog() == DialogResult.OK)
            {
                ExportAQGJSCKEdit export = new ExportAQGJSCKEdit();
                export.CurrRecord = currRecord;
                export.IsWorkflowCall = isWorkflowCall;
                export.ParentTemple = parentTemple;
                export.RecordWorkFlowData = WorkFlowData;

                export.ExportExcelSubmit(ref parentTemple, "", fys.strNum, 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.strNum);
                    else
                        export.ExportExceljhbAllSubmitToWF_ModleRecordWorkTaskIns("", fys.strNum);
                    gridControl1.FindForm().Close();
                }
            }
        }