Exemplo n.º 1
0
        void GetModelNameInfosComboxCompleted(object sender, GetModelNameInfosComboxCompletedEventArgs e)//获取模块代码
        {
            if (e.Result != null)
            {
                ModelDefineList = e.Result.ToList();
                MODELDEFINE     = ModelDefineList.FirstOrDefault();

                InitModelCode(sender, null);
            }
        }
Exemplo n.º 2
0
        void BindModelCode(T_SYS_DICTIONARY DICTIONARY)//绑定模块代码
        {
            cbModelCode.ItemsSource = null;
            if (AgentSetInfo != null && DICTIONARY != null && ModelDefineList != null)
            {
                List <SMT.Saas.Tools.FlowDesignerWS.FLOW_MODELDEFINE_T> tmpModelDefine = ModelDefineList.Where(c => c.SYSTEMCODE == ((T_SYS_DICTIONARY)cbSYSTEMTYPE.SelectedItem).SYSTEMCODE).ToList();
                SMT.Saas.Tools.FlowDesignerWS.FLOW_MODELDEFINE_T        tmp            = new SMT.Saas.Tools.FlowDesignerWS.FLOW_MODELDEFINE_T();
                tmp.DESCRIPTION = Utility.GetResourceStr("PLEASESELECTL");
                tmpModelDefine.Insert(0, tmp);

                if (tmpModelDefine.Count > 0)
                {
                    cbModelCode.ItemsSource       = tmpModelDefine;
                    cbModelCode.DisplayMemberPath = "DESCRIPTION";
                    cbModelCode.SelectedIndex     = 0;
                }
            }
        }
Exemplo n.º 3
0
        void BindModelCode(T_SYS_DICTIONARY DICTIONARY)//绑定模块代码
        {
            cbModelCode.ItemsSource = null;
            if (AgentSetInfo != null && DICTIONARY != null && ModelDefineList != null)
            {
                List<SMT.Saas.Tools.FlowDesignerWS.FLOW_MODELDEFINE_T> tmpModelDefine = ModelDefineList.Where(c => c.SYSTEMCODE == ((T_SYS_DICTIONARY)cbSYSTEMTYPE.SelectedItem).SYSTEMCODE).ToList();
                SMT.Saas.Tools.FlowDesignerWS.FLOW_MODELDEFINE_T tmp = new SMT.Saas.Tools.FlowDesignerWS.FLOW_MODELDEFINE_T();
                tmp.DESCRIPTION = Utility.GetResourceStr("PLEASESELECTL");
                tmpModelDefine.Insert(0, tmp);

                if (tmpModelDefine.Count > 0)
                {
                    cbModelCode.ItemsSource = tmpModelDefine;
                    cbModelCode.DisplayMemberPath = "DESCRIPTION";
                    cbModelCode.SelectedIndex = 0;
                }
            }
        }
Exemplo n.º 4
0
        void GetModelNameInfosComboxCompleted(object sender, GetModelNameInfosComboxCompletedEventArgs e)//获取模块代码
        {
            if (e.Result != null)
            {
                ModelDefineList = e.Result.ToList();
                MODELDEFINE = ModelDefineList.FirstOrDefault();

                InitModelCode(sender, null);
            }
        }