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
 public void initParam(UserPolicyData policyData)
 {
     tbIncPrice.Text = policyData.PriceMarkup;
     resetTimePickerValue_1(dtAutoBid, policyData.OfferTime);
     resetTimePickerValue_2(dtAutoCommit400, tbAutoCommitMS400, policyData.Submit400);
     resetTimePickerValue_2(dtAutoCommit500, tbAutoCommitMS500, policyData.Submit500);
     resetTimePickerValue_2(dtAutoCommit2, tbAutoCommitMS2, policyData.SubmitForce);
 }