Ejemplo n.º 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;
            frmNumSelect fys = new frmNumSelect();
            fys.strType = " and (type = '局安全工器具入库单' or type = '局安全工器具入库单原始库存') ";
            fys.StrSQL = "select distinct num  from PJ_anqgjcrkd where  (type = '局安全工器具入库单' or type = '局安全工器具入库单原始库存') ";
            if (fys.ShowDialog() == DialogResult.OK)
            {
                ExportAQGJRKEdit export = new ExportAQGJRKEdit();
                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();
                }
            }
        }
Ejemplo n.º 2
0
 private void barExplorYear_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frmNumSelect fys = new frmNumSelect();
     fys.strType = " and (type = '局安全工器具入库单' or type = '局安全工器具入库单原始库存') ";
     fys.StrSQL = "select distinct num  from PJ_anqgjcrkd where  (type = '局安全工器具入库单' or type = '局安全工器具入库单原始库存') ";
     if (fys.ShowDialog() == DialogResult.OK)
     {
         ExportAQGJRKEdit etdjh = new ExportAQGJRKEdit();
         etdjh.ExportExcelProjectCKD("", fys.strNum);
     }
 }
Ejemplo n.º 3
0
        private void btView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) {
            //IList<PJ_anqgjcrkd> datalist = gridView1.DataSource as IList<PJ_anqgjcrkd>;
            frmNumSelect fys = new frmNumSelect();
            fys.strType = " and (type = '局安全工器具入库单' or type = '局安全工器具入库单原始库存') ";
            fys.StrSQL = "select distinct num  from PJ_anqgjcrkd where  (type = '局安全工器具入库单' or type = '局安全工器具入库单原始库存') ";
            if (fys.ShowDialog() == DialogResult.OK)
            {

                ExportAQGJRKEdit etdjh = new ExportAQGJRKEdit();
                etdjh.ExportExcelProjectCKD(parentID,fys.strNum);
            }
           
           
           
        }