Exemplo 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;
            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();
            }
        }
Exemplo n.º 2
0
        private void btView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            //DataTable dt = new DataTable();
            //IList<PJ_yfsyjl> li = gridView1.DataSource as IList<PJ_yfsyjl>;
            //frmTemplate frm = new frmTemplate();
            //frm.dataList = li;
            //frm.ShowDialog();

            IList<PJ_yfsyjl> datalist = gridView1.DataSource as IList<PJ_yfsyjl>;
            Export11 export = new Export11();
            export.CurrRecord = currRecord;
            export.IsWorkflowCall = isWorkflowCall;
            export.ParentTemple = parentTemple;
            export.RecordWorkFlowData = WorkFlowData;
            switch (_type)
            {
                case "变压器":
                    export.ExportExcelbyq(datalist, _type + "预防性试验记录", parentID);
                    break;
                case "断路器":
                    export.ExportExceldlq(datalist, _type + "预防性试验记录", parentID);
                    break;
                case "避雷器":
                    export.ExportExcelblq(datalist, _type + "预防性试验记录", parentID);
                    break;
                case "电容器":
                    export.ExportExceldrq(datalist, _type + "预防性试验记录", parentID);
                    break;
            }

        }
Exemplo n.º 3
0
 private void btView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     IList<PJ_yfsyhcjl> datalist = gridView1.DataSource as IList<PJ_yfsyhcjl>;
     Export11 export = new Export11();
     export.CurrRecord = currRecord;
     export.IsWorkflowCall = isWorkflowCall;
     export.ParentTemple = parentTemple;
     export.RecordWorkFlowData = WorkFlowData;
     export.ExportExcelhc(datalist, "设备维护实施记录", parentID); 
    
 }
Exemplo n.º 4
0
        private void btView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            //if (PSObj!=null&&gridView1.RowCount>0)
            //{
            //     IList<PJ_yfsyjl> pjlist=new List<PJ_yfsyjl>();
            //    for (int i = 0; i < gridView1.RowCount; i++)
            //    {
            //        pjlist.Add(gridView1.GetRow(i) as PJ_yfsyjl);
            //    }
            //    Export14.ExportExcel(PSObj, pjlist);
            //}
            IList<PJ_yfsyjl> datalist = gridView1.DataSource as IList<PJ_yfsyjl>;

            Export11 export = new Export11();
            export.CurrRecord = currRecord;
            export.IsWorkflowCall = isWorkflowCall;
            export.ParentTemple = parentTemple;
            export.RecordWorkFlowData = WorkFlowData;
            switch (_type)
            {
                case "变压器":
                    export.ExportExcelbyqssqk(datalist, _type + "预防性试验实施情况记录", parentID);
                    break;
                case "断路器":
                    export.ExportExceldlqssqk(datalist, _type + "预防性试验实施情况记录", parentID);
                    break;
                case "避雷器":
                    export.ExportExcelblqssqk(datalist, _type + "预防性试验实施情况记录", parentID);
                    break;
                case "电容器":
                    export.ExportExceldrqssqk(datalist, _type + "预防性试验实施情况记录", parentID);
                    break;
            }


        }
Exemplo n.º 5
0
        private void barAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Export11 export = new Export11();
            export.CurrRecord = currRecord;
            export.IsWorkflowCall = isWorkflowCall;
            export.ParentTemple = parentTemple;
            export.RecordWorkFlowData = WorkFlowData;
            if (MainHelper.UserOrg.OrgName.IndexOf("局") == -1)
                export.ExportExceljhbAll("预防性试验", "设备预防性试验计划(总)表", parentID);
            else
                export.ExportExceljhbAll("预防性试验", "设备预防性试验计划(总)表", "");

        }