예제 #1
0
        //方法
        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;
        }
예제 #2
0
 public AddAnswer(T_Trade_Sta_Ext item)
 {
     InitializeComponent();
     this.SetViewModelValue("AnswerInfo", item);
 }
예제 #3
0
 public TradeFieldPage(T_Trade_Sta_Ext item, ModifyState isModify)
 {
     InitializeComponent();
     this.SetViewModelValue("Trade_Sta_Ext", item);
     this.SetViewModelValue("ModifyOrAdd", isModify);
 }