예제 #1
0
        private void SetControls()
        {
            listPWorkSchedule = pwsb.selectPWorkScheduleBll("selectPWorkSchedule");
            List <string> strlistPWorkSchedule = new List <string>();

            foreach (PWorkSchedule item in listPWorkSchedule)
            {
                strlistPWorkSchedule.Add(item.CompanyName);
            }
            cb_CompanyName.DataSource = strlistPWorkSchedule;
            cb_CompanyName.Text       = "";
            //treeview
            listProductionLinePC_title = pc_titleBll.selectProductionLinePC_titleBll("selectProductionLinePC_title");
            TreeNode tn = new TreeNode();

            tn.Text = "生产线名";
            treeView1.Nodes.Add(tn);

            if (listProductionLinePC_title.Count > 0)
            {
                foreach (ProductionLinePC_title item in listProductionLinePC_title)
                {
                    TreeNode tnChild = new TreeNode();
                    tnChild.Text = item.LineName.Trim();
                    tnChild.Tag  = item.CompanyName.Trim();
                    tn.Nodes.Add(tnChild);
                    dicProductionLinePC.Add(item.LineName.Trim(), pc_bll.selectProductionLinePCBll(item.LineName.Trim(), "selectProductionLinePC"));
                }
            }
        }
예제 #2
0
 private void EmployeeExperience_Load(object sender, EventArgs e)
 {
     this.UpdateControl();
     this.SetDataGridViewColumns();
     Setcb_WorkTypes(ptwb.selectPTypesWorkDal("selectPTypesWork"));
     Setcb_CompanyName(pwsb.selectPWorkScheduleBll("selectPWorkSchedule"));
     this.ClearControls();
     m_SyncContext = SynchronizationContext.Current;//获取主线程同步的上下文
 }
예제 #3
0
        private void getProductionType()
        {
            listproductiontype = ptb.selectProductionTypeBll("selectProductionType");
            listPWorkSchedule  = pwsb.selectPWorkScheduleBll("selectPWorkSchedule");

            foreach (PWorkSchedule item in listPWorkSchedule)
            {
                liststrcbox_CompanyName.Add(item.CompanyName);
            }
            cbox_CompanyName.DataSource = liststrcbox_CompanyName;
        }
예제 #4
0
        void InitializationContrls1()
        {
            PWorkScheduleBll     pwsb    = new PWorkScheduleBll();
            List <PWorkSchedule> list    = pwsb.selectPWorkScheduleBll("selectPWorkSchedule");
            List <string>        strlist = new List <string>();

            foreach (PWorkSchedule item in list)
            {
                strlist.Add(item.CompanyName);
            }

            if (strlist.Count > 0)
            {
                comb_companyName.DataSource = strlist;
            }
        }