//方法 private void funcs(object obje, T_Trade_Sta_Ext data) { //if (obje == null) // return; //var itemtemp = obje as ArrayList; //if (itemtemp == null) // return; //listPtAnswer = itemtemp[0] as List<T_Trade_Value_Sta>; //string TradeStaNo = itemtemp[1] as string; //string TradeWeight = itemtemp[2] as string; //string keyinfos = string.Empty; //foreach (T_Trade_Value_Sta x in listPtAnswer) //{ // x.Trade_Sta_Key = data.Key; // string f = string.Empty; // if (x.Value_Type == 0 || x.Value_Type == 1) // f = "Fd"; // keyinfos += f + x.Domain + "=" + x.Domain_Value + "(" + x.Proportion + "%)" + // (x.Is_Write.ToString() == "0" ? "(接收数据)" : ""); // if (listPtAnswer.IndexOf(x) != listPtAnswer.Count() - 1) // { // keyinfos += " | "; // } // x.Sort = listPtAnswer.IndexOf(x).ToString(); // la.Add(x); //} //data.Trade_No = TradeStaNo; //data.Proportion = Convert.ToSingle(TradeWeight); //data.KeyInfo = keyinfos; //data.Sort = 0; }
public AddAnswer(T_Trade_Sta_Ext item) { InitializeComponent(); this.SetViewModelValue("AnswerInfo", item); }
public TradeFieldPage(T_Trade_Sta_Ext item, ModifyState isModify) { InitializeComponent(); this.SetViewModelValue("Trade_Sta_Ext", item); this.SetViewModelValue("ModifyOrAdd", isModify); }