<?xml version="1.0"?>
<TaskInfo Version="1.2">
  <SpiderTaskName>天气预报</SpiderTaskName>
  <RuleName>天气预报</RuleName>
  <RuleType>天气</RuleType>
  <FileName>E:\000\混淆处理\发布版本\免费版\TaskData\天气预报.xml</FileName>
  <Description>天气预报
选择您使用的数据库类型，并修改你的数据库配置：包括数据库地址，用户名，密码，数据库名称
执行动作说明参看各自的说明信息。
简单说明本操作执行的过程：
１，先删除网站数据库天气表中的数据。２，将本地下载表中数据上传至网站天气表中。３删除本地下载表中的数据。</Description>
  <DbAccess>False</DbAccess>
  <DbSqlServer>True</DbSqlServer>
  <DbMySql>False</DbMySql>
  <AccessFile>c:\data.mdb</AccessFile>
  <AccessUser>
  </AccessUser>
  <AccessPass>
  </AccessPass>
  <MsSqlAddress>127.0.0.1</MsSqlAddress>
  <MsSqlPort>1433</MsSqlPort>
  <WindowsCheck>False</WindowsCheck>
  <MsSqlCheck>True</MsSqlCheck>
  <MsSqlUser>sa</MsSqlUser>
  <MsSqlPass>password</MsSqlPass>
  <MsSqlDbName>mynews</MsSqlDbName>
  <MySqlAddress>127.0.0.1</MySqlAddress>
  <MySqlPort>3306</MySqlPort>
  <MySqlUser>
  </MySqlUser>
  <MySqlPass>
  </MySqlPass>
  <MySqlDbCode>
  </MySqlDbCode>
  <MySqlDbName>
  </MySqlDbName>
  <MySqlVer3>False</MySqlVer3>
  <MySqlVer4>False</MySqlVer4>
  <MySqlVer5>False</MySqlVer5>
  <PlanOption>
    <TimingEnabled>False</TimingEnabled>
    <TimingType>每当</TimingType>
    <TimingHours>0</TimingHours>
    <TimingMinutes>0</TimingMinutes>
  </PlanOption>
  <ActionInfos>
    <ActionInfo id="0">
      <ActionName>删除网站原来天气数据</ActionName>
      <ActionType>执行SQL</ActionType>
      <SelectCon>网站数据库</SelectCon>
      <ActionSQL>delete from m_weather</ActionSQL>
      <UsProcedure>False</UsProcedure>
      <UseKey>False</UseKey>
      <WebTable>m_weather</WebTable>
      <LocalTable>天气情况</LocalTable>
      <TableOrder>False</TableOrder>
      <FtpServer>127.0.0.1</FtpServer>
      <FtpPort>21</FtpPort>
      <FtpUser>
      </FtpUser>
      <FtpPass>
      </FtpPass>
      <FtpPath>\</FtpPath>
      <LocalPath>
      </LocalPath>
      <DelLocalFiles>False</DelLocalFiles>
      <InfoDetail>根据您的情况，确定是否删除原来的天气内容，不需要就删除该动作，取消执行该语句</InfoDetail>
      <FieldInfos />
    </ActionInfo>
    <ActionInfo id="1">
      <ActionName>上传数据天气预报</ActionName>
      <ActionType>发布数据</ActionType>
      <SelectCon>本地数据库</SelectCon>
      <ActionSQL>
      </ActionSQL>
      <UsProcedure>False</UsProcedure>
      <UseKey>False</UseKey>
      <WebTable>m_weather</WebTable>
      <LocalTable>天气情况</LocalTable>
      <TableOrder>False</TableOrder>
      <FtpServer>127.0.0.1</FtpServer>
      <FtpPort>21</FtpPort>
      <FtpUser>
      </FtpUser>
      <FtpPass>
      </FtpPass>
      <FtpPath>\</FtpPath>
      <LocalPath>
      </LocalPath>
      <DelLocalFiles>False</DelLocalFiles>
      <InfoDetail>需要通过标签定义，将网站数据库表的字段与本地表的字段一一对应起来。</InfoDetail>
      <FieldInfos>
        <FieldInfo id="0">
          <WebField>add_date</WebField>
          <FieldOpt>本地字段</FieldOpt>
          <LocalField>日期</LocalField>
          <CheckKey>False</CheckKey>
        </FieldInfo>
        <FieldInfo id="1">
          <WebField>city</WebField>
          <FieldOpt>本地字段</FieldOpt>
          <LocalField>城市</LocalField>
          <CheckKey>False</CheckKey>
        </FieldInfo>
        <FieldInfo id="2">
          <WebField>simple</WebField>
          <FieldOpt>本地字段</FieldOpt>
          <LocalField>简单内容</LocalField>
          <CheckKey>False</CheckKey>
        </FieldInfo>
        <FieldInfo id="3">
          <WebField>detail</WebField>
          <FieldOpt>本地字段</FieldOpt>
          <LocalField>详细内容</LocalField>
          <CheckKey>False</CheckKey>
        </FieldInfo>
      </FieldInfos>
    </ActionInfo>
    <ActionInfo id="2">
      <ActionName>删除本地数据</ActionName>
      <ActionType>执行SQL</ActionType>
      <SelectCon>本地数据库</SelectCon>
      <ActionSQL>delete from 天气情况</ActionSQL>
      <UsProcedure>False</UsProcedure>
      <UseKey>False</UseKey>
      <WebTable>m_weather</WebTable>
      <LocalTable>天气情况</LocalTable>
      <TableOrder>False</TableOrder>
      <FtpServer>127.0.0.1</FtpServer>
      <FtpPort>21</FtpPort>
      <FtpUser>
      </FtpUser>
      <FtpPass>
      </FtpPass>
      <FtpPath>\</FtpPath>
      <LocalPath>
      </LocalPath>
      <DelLocalFiles>False</DelLocalFiles>
      <InfoDetail>发布结束后删除本地下载表中的数据。</InfoDetail>
      <FieldInfos />
    </ActionInfo>
  </ActionInfos>
</TaskInfo>