private void InitData(string type)
        {
            PersonModel model = new PersonModel();

            List <PersonBasicInfo> list = model.GetPersonBasicInfos("", info.NAMEID, "");

            info.NAMEIDCODEITEM             = list[0];
            this.cb_PersonList.SelectedItem = info.NAMEIDCODEITEM;


            CodeDicModel codedicModel = new CodeDicModel();

            string codeType = "10002";

            if (type == "0")
            {
                codeType = "10002";
            }
            else if (type == "1")
            {
                codeType = "10003";
            }



            List <CodeDicItem> codeItemList = codedicModel.CodeDicItemList(codeType, info.INCIDENT);

            info.INCIDENTCODEITEM     = codeItemList[0];
            this.cb_type.SelectedItem = info.INCIDENTCODEITEM;
        }
Beispiel #2
0
        private void InitControl()
        {
            PersonModel model = new PersonModel();

            List <PersonBasicInfo> list = model.GetPersonBasicInfos("", "", " order by NAME");

            this.cb_PersonList.ValueMember = "NAMEID";

            this.cb_PersonList.DisplayMember = "NAME";


            this.cb_PersonList.ItemsSource = list;

            CodeDicModel codedicModel = new CodeDicModel();


            List <CodeDicItem> codeItemList = codedicModel.CodeDicItemList("10001", "");

            this.cb_OutType.ValueMember = "CODE";

            this.cb_OutType.DisplayMember = "NAME";


            this.cb_OutType.ItemsSource = codeItemList;
        }
        private void InitControl(string type)
        {
            if (type == "0")
            {
                this.tb_title.Text = "人员量化考核信息加分登记";
            }
            else if (type == "1")
            {
                this.tb_title.Text = "人员量化考核信息减分登记";
            }



            PersonModel model = new PersonModel();

            List <PersonBasicInfo> list = model.GetPersonBasicInfos("", "", " order by NAME");

            this.cb_PersonList.ValueMember = "NAMEID";

            this.cb_PersonList.DisplayMember = "NAME";


            this.cb_PersonList.ItemsSource = list;


            CodeDicModel codedicModel = new CodeDicModel();

            string codeType = "10002";

            if (type == "0")
            {
                codeType = "10002";
            }
            else if (type == "1")
            {
                codeType = "10003";
            }

            List <CodeDicItem> codeItemList = codedicModel.CodeDicItemList(codeType, "");

            this.cb_type.ValueMember = "CODE";

            this.cb_type.DisplayMember = "NAME";


            this.cb_type.ItemsSource = codeItemList;
        }
Beispiel #4
0
        private void InitData()
        {
            PersonModel model = new PersonModel();

            List <PersonBasicInfo> list = model.GetPersonBasicInfos("", info.NAMEID, "");

            info.NAMEIDCODEITEM             = list[0];
            this.cb_PersonList.SelectedItem = info.NAMEIDCODEITEM;


            CodeDicModel codedicModel = new CodeDicModel();

            List <CodeDicItem> codeItemList = codedicModel.CodeDicItemList("10001", info.INCIDENT);

            info.INCIDENTCODEITEM        = codeItemList[0];
            this.cb_OutType.SelectedItem = info.INCIDENTCODEITEM;
        }