コード例 #1
0
ファイル: cPublishManage.cs プロジェクト: zhouweiaccp/code
        private void onPublishCompleted(object sender, PublishCompletedEventArgs e)
        {
            //从当前列表中删除此记录
            cPublishTask pt = (cPublishTask)sender;

            m_ListPublish.Remove(pt);
            pt = null;

            if (e_PublishCompleted != null && !e.Cancel)
            {
                e_PublishCompleted(sender, e);
            }
        }
コード例 #2
0
        private bool ExportData()
        {
            //触发发布启动事件
            PublishStartedEventArgs evt = new PublishStartedEventArgs(this.TaskData.TaskID, this.TaskData.TaskName);

            e_PublishStarted(this, evt);

            switch (this.PublishType)
            {
            case cGlobalParas.PublishType.PublishAccess:
                ExportAccess();
                break;

            case cGlobalParas.PublishType.PublishExcel:
                ExportExcel();
                break;

            case cGlobalParas.PublishType.PublishTxt:
                ExportTxt();
                break;

            case cGlobalParas.PublishType.PublishMSSql:
                ExportMSSql();
                break;

            case cGlobalParas.PublishType.PublishMySql:
                ExportMySql();
                break;

            case cGlobalParas.PublishType.PublishWeb:
                ExportWeb();
                break;

            default:
                break;
            }

            PublishCompletedEventArgs evt1 = new PublishCompletedEventArgs(this.TaskData.TaskID, this.TaskData.TaskName);

            e_PublishCompleted(this, evt1);

            TriggerRun();

            return(true);
        }
コード例 #3
0
        private void Publish_Complete(object sender, PublishCompletedEventArgs e)
        {
            InvokeMethod(this, "ShowInfo", new object[] { e.TaskName, rm.GetString("TaskPulished")});

            InvokeMethod(this, "UpdateTaskPublished", new object[] { e.TaskID ,cGlobalParas.GatherResult.PublishSuccees});

            InvokeMethod(this, "UpdateStatebarTask", null);
        }
コード例 #4
0
        private void onPublishCompleted(object sender, PublishCompletedEventArgs e)
        {
            //�ӵ�ǰ�б���ɾ���˼�¼
            cPublishTask pt = (cPublishTask)sender;
            m_ListPublish.Remove(pt);
            pt = null;

            if (e_PublishCompleted != null && !e.Cancel)
            {
                e_PublishCompleted(sender, e);
            }
        }
コード例 #5
0
        private bool ExportData()
        {
            //������������¼�
            PublishStartedEventArgs evt = new PublishStartedEventArgs(this.TaskData.TaskID, this.TaskData.TaskName);
            e_PublishStarted(this,evt);

            switch (this.PublishType)
            {
                case cGlobalParas.PublishType.PublishAccess :
                    ExportAccess();
                    break;
                case cGlobalParas.PublishType.PublishExcel :
                    ExportExcel();
                    break;
                case cGlobalParas.PublishType.PublishTxt :
                    ExportTxt();
                    break;
                case cGlobalParas.PublishType.PublishMSSql :
                    ExportMSSql();
                    break;
                case cGlobalParas.PublishType.PublishMySql :
                    ExportMySql();
                    break;
                case cGlobalParas.PublishType.PublishWeb :
                    ExportWeb();
                    break;
                default :
                    break;
            }

            PublishCompletedEventArgs evt1 = new PublishCompletedEventArgs(this.TaskData.TaskID, this.TaskData.TaskName);

            e_PublishCompleted(this, evt1);

            TriggerRun();

            return true;
        }