| | |
| | | editBuy1Volume.SetWindowTextW(L""); |
| | | editCode.SetWindowTextW(L""); |
| | | editSellVolume.SetWindowTextW(L""); |
| | | editEndTime.SetWindowTextW(L"14:50:00"); |
| | | editEndTime.SetWindowTextW(L"14:56:55"); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | listRules.InsertColumn(0, _T("代码"), LVCFMT_LEFT, 50, 0); |
| | | listRules.InsertColumn(1, _T("买1量(手)"), LVCFMT_LEFT, 80, 1); |
| | | listRules.InsertColumn(2, _T("买1价"), LVCFMT_LEFT, 80, 2); |
| | | listRules.InsertColumn(2, _T("买1价"), LVCFMT_LEFT, 50, 2); |
| | | listRules.InsertColumn(3, _T("卖量(股)"), LVCFMT_LEFT,60, 3); |
| | | listRules.InsertColumn(4, _T("卖价类型"), LVCFMT_LEFT, 60, 4); |
| | | listRules.InsertColumn(5, _T("结束时间"), LVCFMT_LEFT, 60, 5); |
| | | listRules.InsertColumn(6, _T("状态"), LVCFMT_LEFT, 50, 6); |
| | | listRules.InsertColumn(7, _T("ID"), LVCFMT_LEFT, 50, 7); |
| | | listRules.InsertColumn(8, _T("创建时间"), LVCFMT_LEFT, 50, 8); |
| | | // listRules.InsertColumn(7, _T("ID"), LVCFMT_LEFT, 50, 7); |
| | | // listRules.InsertColumn(8, _T("创建时间"), LVCFMT_LEFT, 50, 8); |
| | | listRules.AutoColumn(); |
| | | |
| | | list<string> types = get_price_types(); |
| | |
| | | app->listRules.SetItemText(index, 4, CString(price_type.c_str())); |
| | | app->listRules.SetItemText(index, 5, rule.end_time); |
| | | app->listRules.SetItemText(index, 6, rule.excuted ? L"已执行" : L"未执行"); |
| | | app->listRules.SetItemText(index, 7, rule.id_); |
| | | app->listRules.SetItemText(index, 8, rule.create_time); |
| | | //app->listRules.SetItemText(index, 7, rule.id_); |
| | | //app->listRules.SetItemText(index, 8, rule.create_time); |
| | | if (rule.excuted) { |
| | | app->listRules.SetItemData(index, COLOR_RED); |
| | | } |
| | |
| | | writer.Int(buy1Volume_int * 100); |
| | | |
| | | writer.Key("buy1_price"); |
| | | writer.Int(buy1Volume_int * 100); |
| | | writer.String(StringUtil::cstring2String(buy1Price).c_str()); |
| | | |
| | | writer.Key("sell_volume"); |
| | | writer.Int(stoi(StringUtil::cstring2String(sellVolume))); |