public void ReportStart()
        {
            try
            {
                if (this.utlParentFKey != null) this.utlParentFKey.IsEnabled = false;

                ExWebService.geDialogDisplayFlg DialogDisplayFlg = ExWebService.geDialogDisplayFlg.Yes;
                if (this.blClose == true || this.rptKbn == DataReport.geReportKbn.OutPut)
                {
                    DialogDisplayFlg = ExWebService.geDialogDisplayFlg.No;
                }

                switch (this.rptKbn)
                {
                    case DataReport.geReportKbn.Download:
                        Common.gstrProgressDialogTitle = "PDFファイル作成中";
                        break;
                    case DataReport.geReportKbn.Csv:
                        Common.gstrProgressDialogTitle = "CSVファイル作成中";
                        break;
                }

                object[] prm = new object[3];
                prm[0] = (int)this.rptKbn;
                prm[1] = pgId;

                if (this.gWinMsterType != Common.geWinMsterType.None)
                {
                    if (this.gWinMsterType == Common.geWinMsterType.Class)
                    {
                        prm[2] = ExCast.zNumNoFormat(ExCast.zCStr((int)this.MstGroupKbn) + "<<@escape_comma@>>" + this.utlID_F.txtID.Text.Trim()) + "," +
                                 ExCast.zNumNoFormat(ExCast.zCStr((int)this.MstGroupKbn) + "<<@escape_comma@>>" + this.utlID_T.txtID.Text.Trim()) + "," +
                                 ExCast.zCStr(this.datUpdateYmd.SelectedDate) + "," +
                                 ExCast.zCStr(this.cmbOrder.SelectedIndex);
                    }
                    else
                    {
                        prm[2] = ExCast.zNumNoFormat(this.utlID_F.txtID.Text.Trim()) + "," +
                                 ExCast.zNumNoFormat(this.utlID_T.txtID.Text.Trim()) + "," +
                                 ExCast.zCStr(this.datUpdateYmd.SelectedDate) + "," +
                                 ExCast.zCStr(this.cmbOrder.SelectedIndex);
                    }
                }
                else
                {
                    prm[2] = this.sqlWhere + "," +
                             this.sqlOrderBy;
                }
                webService.objPerent = this;

                switch (this.rptKbn)
                {
                    case DataReport.geReportKbn.OutPut:
                        reportView = new Dlg_ReportView();
                        reportView.pgId = pgId;
                        reportView.rptKbn = this.rptKbn;
                        reportView.Closed -= dlg_Closed;
                        reportView.Closed += dlg_Closed;
                        reportView.Show();
                        break;
                }

                webService.CallWebService(ExWebService.geWebServiceCallKbn.ReportOut,
                                          DialogDisplayFlg,
                                          ExWebService.geDialogCloseFlg.No,
                                          prm);
            }
            catch
            {
                if (this.utlParentFKey != null) this.utlParentFKey.IsEnabled = true;
            }
        }
示例#2
0
        public void ReportStart()
        {
            try
            {
                if (this.utlParentFKey != null)
                {
                    this.utlParentFKey.IsEnabled = false;
                }

                ExWebService.geDialogDisplayFlg DialogDisplayFlg = ExWebService.geDialogDisplayFlg.Yes;
                if (this.blClose == true || this.rptKbn == DataReport.geReportKbn.OutPut)
                {
                    DialogDisplayFlg = ExWebService.geDialogDisplayFlg.No;
                }

                switch (this.rptKbn)
                {
                case DataReport.geReportKbn.Download:
                    Common.gstrProgressDialogTitle = "PDFファイル作成中";
                    break;

                case DataReport.geReportKbn.Csv:
                    Common.gstrProgressDialogTitle = "CSVファイル作成中";
                    break;
                }

                object[] prm = new object[3];
                prm[0] = (int)this.rptKbn;
                prm[1] = pgId;

                if (this.gWinMsterType != Common.geWinMsterType.None)
                {
                    if (this.gWinMsterType == Common.geWinMsterType.Class)
                    {
                        prm[2] = ExCast.zNumNoFormat(ExCast.zCStr((int)this.MstGroupKbn) + "<<@escape_comma@>>" + this.utlID_F.txtID.Text.Trim()) + "," +
                                 ExCast.zNumNoFormat(ExCast.zCStr((int)this.MstGroupKbn) + "<<@escape_comma@>>" + this.utlID_T.txtID.Text.Trim()) + "," +
                                 ExCast.zCStr(this.datUpdateYmd.SelectedDate) + "," +
                                 ExCast.zCStr(this.cmbOrder.SelectedIndex);
                    }
                    else
                    {
                        prm[2] = ExCast.zNumNoFormat(this.utlID_F.txtID.Text.Trim()) + "," +
                                 ExCast.zNumNoFormat(this.utlID_T.txtID.Text.Trim()) + "," +
                                 ExCast.zCStr(this.datUpdateYmd.SelectedDate) + "," +
                                 ExCast.zCStr(this.cmbOrder.SelectedIndex);
                    }
                }
                else
                {
                    prm[2] = this.sqlWhere + "," +
                             this.sqlOrderBy;
                }
                webService.objPerent = this;

                switch (this.rptKbn)
                {
                case DataReport.geReportKbn.OutPut:
                    reportView         = new Dlg_ReportView();
                    reportView.pgId    = pgId;
                    reportView.rptKbn  = this.rptKbn;
                    reportView.Closed -= dlg_Closed;
                    reportView.Closed += dlg_Closed;
                    reportView.Show();
                    break;
                }

                webService.CallWebService(ExWebService.geWebServiceCallKbn.ReportOut,
                                          DialogDisplayFlg,
                                          ExWebService.geDialogCloseFlg.No,
                                          prm);
            }
            catch
            {
                if (this.utlParentFKey != null)
                {
                    this.utlParentFKey.IsEnabled = true;
                }
            }
        }
        // F12ボタン(キャンセル) クリック
        public override void btnF12_Click(object sender, RoutedEventArgs e)
        {
            Dlg_ReportView win = (Dlg_ReportView)ExVisualTreeHelper.FindPerentChildWindow(this);

            win.Close();
        }