Exemplo n.º 1
0
        public void Conncrete_Table_Inheritance_TPC()
        {
            var t11 = new T11(Guid.NewGuid().ToString("N"));

            t11.T111 = 12;
            t11.T112 = "ok";
            Assert.AreEqual(true, t11.Validator().Success);
            var t11Repository = LocalServiceLocator.GetService <IT11Repository>();

            t11Repository.Add(t11);
            var result = t11Repository.Context.Commit();

            Assert.AreEqual(1, result.ResultData);
            var t12 = new T12(Guid.NewGuid().ToString("N"));

            t12.T111 = t11.T111;
            t12.T112 = t11.T112;
            t12.T121 = 12;
            Assert.AreEqual(true, t12.Validator().Success);
            var t12Repository = LocalServiceLocator.GetService <IT11Repository>();

            t12Repository.Add(t12);
            result = t12Repository.Context.Commit();
            Assert.AreEqual(1, result.ResultData);
        }
Exemplo n.º 2
0
    public void ChangesH()
    {
        //transform.FindChild ("Scroll View 1").transform.localPosition = transform.FindChild ("Scroll View").transform.localPosition;
        //transform.FindChild ("Scroll View 1").GetComponent<UIPanel> ().clipOffset = transform.FindChild ("Scroll View").GetComponent<UIPanel> ().clipOffset;

        transform.FindChild("Scroll View 1").gameObject.SetActive(true);
        transform.FindChild("Scroll View 1").GetComponent <UIScrollView> ().ResetPosition();
        transform.FindChild("Scroll View").gameObject.SetActive(false);

        T1.GetComponent <UIButton> ().isEnabled = true;
        T2.GetComponent <UIButton> ().isEnabled = false;

        T11.GetComponent <UIButton> ().isEnabled = true;
        T22.GetComponent <UIButton> ().isEnabled = false;
    }
Exemplo n.º 3
0
 private void Clear(object sender, RoutedEventArgs e)
 {
     T1.Clear();
     T2.Clear();
     T3.Clear();
     T4.Clear();
     T5.Clear();
     T6.Clear();
     T7.Clear();
     T8.Clear();
     T9.Clear();
     T10.Clear();
     T11.Clear();
     T12.Clear();
     T13.Clear();
     T14.Clear();
     T15.Clear();
     T16.Clear();
     T17.Clear();
 }
Exemplo n.º 4
0
    public void ChangesA()
    {
        //transform.FindChild ("Scroll View").transform.localPosition = transform.FindChild ("Scroll View 1").transform.localPosition;
        //transform.FindChild ("Scroll View").GetComponent<UIPanel> ().clipOffset = transform.FindChild ("Scroll View 1").GetComponent<UIPanel> ().clipOffset;
        transform.FindChild("Scroll View").gameObject.SetActive(true);
        transform.FindChild("Scroll View").GetComponent <UIScrollView> ().ResetPosition();
        transform.FindChild("Scroll View 1").gameObject.SetActive(false);

        T1.GetComponent <UIButton> ().isEnabled = false;
        T2.GetComponent <UIButton> ().isEnabled = true;

        T11.GetComponent <UIButton> ().isEnabled = false;
        T22.GetComponent <UIButton> ().isEnabled = true;

//		T1.GetComponent<UILabel>().color = new Color(147f/255f,147f/255f,147f/255f);
//		T2.GetComponent<UILabel>().color = new Color(37f/255f,170f/255f,225f/255f);
//		T11.GetComponent<UILabel>().color = new Color(147f/255f,147f/255f,147f/255f);
//		T22.GetComponent<UILabel>().color = new Color(37f/255f,170f/255f,225f/255f);
//
    }
Exemplo n.º 5
0
        public static float EaseEvaluate(float time, int mode)
        {
            if (time >= 1.0)
            {
                return(1.0f);
            }
            else if (time <= 0.0)
            {
                return(0.0f);
            }
            switch (mode)
            {
            case 1: return(T1.Evaluate(time));

            case 2: return(T2.Evaluate(time));

            case 3: return(T3.Evaluate(time));

            case 4: return(T4.Evaluate(time));

            case 5: return(T5.Evaluate(time));

            case 6: return(T6.Evaluate(time));

            case 7: return(T7.Evaluate(time));

            case 8: return(T8.Evaluate(time));

            case 9: return(T9.Evaluate(time));

            case 10: return(T10.Evaluate(time));

            case 11: return(T11.Evaluate(time));

            case 12: return(T12.Evaluate(time));

            default: return(time);
            }
        }
Exemplo n.º 6
0
 public void Any(T11 request)
 {
 }
Exemplo n.º 7
0
        private void StageRev(int page)
        {
            WagoIO.Instance.SetListTC(lst, page);

            T1.StageRev("АВАРИЯ^НОСИТЕЛЯ", new SolidColorBrush(Colors.Red), new SolidColorBrush(Colors.Silver));
            T2.StageRev("", new SolidColorBrush(Colors.Red), new SolidColorBrush(Colors.Silver));
            T3.StageRev("Р по^ПАДАЕТ", new SolidColorBrush(Colors.Red), new SolidColorBrush(Colors.Silver));
            T4.StageRev("СРАБОТАЛ^ТД", new SolidColorBrush(Colors.Red), new SolidColorBrush(Colors.Silver));
            T5.StageRev("", new SolidColorBrush(Colors.Red), new SolidColorBrush(Colors.Silver));
            T6.StageRev("ОТКАЗ^БВС", new SolidColorBrush(Colors.Red), new SolidColorBrush(Colors.Silver));
            T7.StageRev("Pса^ПАДАЕТ", new SolidColorBrush(Colors.Red), new SolidColorBrush(Colors.Silver));
            T8.StageRev("РАЗГЕРМ^СА", new SolidColorBrush(Colors.Red), new SolidColorBrush(Colors.Silver));
            T9.StageRev("РАЗГЕРМ^КЖО", new SolidColorBrush(Colors.Red), new SolidColorBrush(Colors.Silver));
            T10.StageRev("Р400^мм рт ст", new SolidColorBrush(Colors.Red), new SolidColorBrush(Colors.Silver));
            T11.StageRev("СОСТАВ^ВОЗДУХА", new SolidColorBrush(Colors.Red), new SolidColorBrush(Colors.Silver));
            T12.StageRev("РАЗГЕРМ^КНР", new SolidColorBrush(Colors.Red), new SolidColorBrush(Colors.Silver));
            T13.StageRev("PАЗГЕРМ^ПОДГОТ", new SolidColorBrush(Colors.Yellow), new SolidColorBrush(Colors.Silver));
            T14.StageRev("РАЗДЕЛЕН^по ГЦ", new SolidColorBrush(Colors.Yellow), new SolidColorBrush(Colors.Silver));
            T15.StageRev("ОТКРЫТ^КСД БО", new SolidColorBrush(Colors.Yellow), new SolidColorBrush(Colors.Silver));
            T16.StageRev("АВАРИЯ^ЦВМ", new SolidColorBrush(Colors.Yellow), new SolidColorBrush(Colors.Silver));
            T17.StageRev("ПРОГР^РАЗДЕЛЕН", new SolidColorBrush(Colors.Yellow), new SolidColorBrush(Colors.Silver));
            T18.StageRev("ТД^ПОДКЛ", new SolidColorBrush(Colors.Yellow), new SolidColorBrush(Colors.Silver));
            T19.StageRev("ПРИЗНАК^СПУСК", new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Silver));
            T20.StageRev("СГ^РАЗАРР", new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Silver));
            T21.StageRev("РАБОТА^ДПО", new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Silver));
            T22.StageRev("СПУСК^ПО ГЦ", new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Silver));
            T23.StageRev("ВЫБОР^ДПО", new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Silver));
            T24.StageRev("РАБОТА^СКД", new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Silver));
            Block1 = "TC-1";
            Block2 = "TC-2";
            Block3 = "TC-3";
            Block4 = "TC-4";

            if (page == 2)
            {
                T1.StageRev("БС", new SolidColorBrush(Colors.Yellow), new SolidColorBrush(Colors.Silver));
                T2.StageRev("БСР", new SolidColorBrush(Colors.Yellow), new SolidColorBrush(Colors.Silver));
                T3.StageRev("закрутка^СА", new SolidColorBrush(Colors.Yellow), new SolidColorBrush(Colors.Silver));
                T4.StageRev("ВЫЗОВ НА^СВЯЗЬ", new SolidColorBrush(Colors.Yellow), new SolidColorBrush(Colors.Silver));
                T5.StageRev("разреш^РРСТ", new SolidColorBrush(Colors.Yellow), new SolidColorBrush(Colors.Silver));
                T6.StageRev("U мало", new SolidColorBrush(Colors.Yellow), new SolidColorBrush(Colors.Silver));

                T7.StageRev("ввод^ЗСП", new SolidColorBrush(Colors.Yellow), new SolidColorBrush(Colors.Silver));
                T8.StageRev("отказ^очист СА", new SolidColorBrush(Colors.Yellow), new SolidColorBrush(Colors.Silver));
                T9.StageRev("ПОСАДКА", new SolidColorBrush(Colors.Yellow), new SolidColorBrush(Colors.Silver));
                T10.StageRev("РБ^подкл", new SolidColorBrush(Colors.Yellow), new SolidColorBrush(Colors.Silver));
                T11.StageRev("отказ^очист БО", new SolidColorBrush(Colors.Yellow), new SolidColorBrush(Colors.Silver));
                T12.StageRev("останов^КС-020", new SolidColorBrush(Colors.Yellow), new SolidColorBrush(Colors.Silver));

                T13.StageRev("БВC^готов", new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Silver));
                T14.StageRev("ОСК", new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Silver));
                T15.StageRev("ГСО", new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Silver));
                T16.StageRev("2 СЕКЦИЯ^НАДДУВА", new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Silver));
                T17.StageRev("2 СЕКЦИЯ^КДУ", new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Silver));
                T18.StageRev("СА-БО^люк откр", new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Silver));

                T19.StageRev("РО АК", new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Silver));
                T20.StageRev("ввод^ОСП", new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Silver));
                T21.StageRev("подача^O2", new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Silver));
                T22.StageRev("РУД", new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Silver));
                T23.StageRev("УКВ^передача", new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Silver));
                T24.StageRev("МЕХАН^СОЕДИН", new SolidColorBrush(Colors.Green), new SolidColorBrush(Colors.Silver));

                Block1 = "TC-5";
                Block2 = "TC-6";
                Block3 = "TC-7";
                Block4 = "TC-8";
            }
        }
Exemplo n.º 8
0
 static bool Do11(T11 t) {
   Nullable<T11> n = new Nullable<T11>(t);
   return Ensure(n.HasValue && n.Value == t);
 }