private void btn_AddEvent_Click(object sender, EventArgs e)
        {
            string StartTime = dtp_StartTime.Text;
            string EndTime   = dtp_EndTime.Text;
            string EvenType  = cbb_Type.SelectedValue.ToString();
            string sql       = string.Format("insert into EBTime_Strategy values('{0}','{1}','{2}') SELECT CAST(scope_identity() AS int)", StartTime, EndTime, EvenType);

            int            ID = mainForm.dba.InsertDbBySQLRetID(sql);
            timestrategies pp = new timestrategies();

            pp.ID        = ID.ToString();
            pp.StartTime = StartTime;
            pp.EndTime   = EndTime;
            pp.EvenType  = EvenType;
            SingletonInfo.GetInstance().audit.TimeList.Add(pp);
            FlashData();
        }
        /// <summary>
        /// 通用反馈  收到tar就回
        /// </summary>
        private void CurrencyTarBack(EBD ebdb, string value)
        {
            try
            {
                ServerForm.DeleteFolder(ServerForm.strBeSendFileMakeFolder);//删除原有XML发送文件的文件夹下的XML
                XmlDocument xmlDoc = new XmlDocument();
                responseXML rp     = new responseXML();
                //rp.SourceAreaCode = ServerForm.strSourceAreaCode;
                //rp.SourceType = ServerForm.strSourceType;
                //rp.SourceName = ServerForm.strSourceName;
                //rp.SourceID = ServerForm.strSourceID;
                //rp.sHBRONO = SingletonInfo.GetInstance().CurrentResourcecode;
                string fName = "10" + SingletonInfo.GetInstance().CurrentResourcecode + BBSHelper.GetSequenceCodes();
                xmlDoc = rp.EBDResponse(ebdb, "EBDResponse", fName, value);
                string xmlSignFileName = "\\EBDB_" + fName + ".xml";

                CreateXML(xmlDoc, ServerForm.strBeSendFileMakeFolder + xmlSignFileName);

                //进行签名
                ServerForm.mainFrm.GenerateSignatureFile(ServerForm.strBeSendFileMakeFolder, fName);
                ServerForm.tar.CreatTar(ServerForm.strBeSendFileMakeFolder, ServerForm.sSendTarPath, fName);//使用新TAR
                string       sSendTarName = ServerForm.sSendTarPath + "\\EBDT_" + fName + ".tar";
                FileStream   fsSnd        = new FileStream(sSendTarName, FileMode.Open, FileAccess.Read);
                BinaryReader br           = new BinaryReader(fsSnd); //时间戳
                int          datalen      = (int)fsSnd.Length + 2;
                int          bufferLength = 4096;
                long         offset       = 0; //开始上传时间
                writeHeader(datalen.ToString(), "EBDT_" + fName + ".tar");

                byte[] buffer = new byte[4096]; //已上传的字节数
                int    size   = br.Read(buffer, 0, bufferLength);
                while (size > 0)
                {
                    outputStream.Write(buffer, 0, size);
                    offset += size;
                    size    = br.Read(buffer, 0, bufferLength);
                }
                outputStream.Write(Encoding.UTF8.GetBytes(sEndLine), 0, 2);
                outputStream.Flush();//提交写入的数据
                fsSnd.Close();
            }
            catch (Exception esb)
            {
                Console.WriteLine("401:" + esb.Message);
            }
        }
 private void ServerSetForm_Load(object sender, EventArgs e)
 {
     txtZJPlat.Text = SingletonInfo.GetInstance().SendTarAddress;
 }