Beispiel #1
0
        private Wind.Comm.Expo4.Message buildRequest()
        {
            UserPolicyData policyData = new UserPolicyData();

            policyData.UserID     = UserID;
            policyData.OfferTime  = dtAutoBid.Value.Minute;
            policyData.OfferTime += dtAutoBid.Value.Second / 100.0;

            policyData.PriceMarkup = tbIncPrice.Text.Trim();

            policyData.Submit400  = dtAutoCommit400.Value.Second;
            policyData.Submit400 += Convert.ToInt32(tbAutoCommitMS400.Text) / 1000.0;

            policyData.Submit500  = dtAutoCommit500.Value.Second;
            policyData.Submit500 += Convert.ToInt32(tbAutoCommitMS500.Text) / 1000.0;

            policyData.SubmitForce  = dtAutoCommit2.Value.Second;
            policyData.SubmitForce += Convert.ToInt32(tbAutoCommitMS2.Text) / 1000.0;
            policyData.ServerIP     = "";

            Wind.Comm.Expo4.Message msg = new Wind.Comm.Expo4.Message();
            msg.SetCommand(3100, UserAdmin.CHANGEPOLICYMSGID);
            MessageV2BuilderHelper helper = new MessageV2BuilderHelper();

            helper.WriteString(AdminUserID);
            helper.WriteUserPolicyData2Msg(policyData);
            msg.setMsgBody(helper.GetMsgBody());

            return(msg);
        }
Beispiel #2
0
 private void btOK_Click(object sender, EventArgs e)
 {
     Wind.Comm.Expo4.Message reqMsg = buildRequest();
     TermAdmin.Server.conBroadcast(reqMsg, PacketHeader.ExpoDealType.InterGroup);
     Hide();
 }