Exemple #1
0
        private void frmBOR_Load(object sender, EventArgs e)
        {
            string[]                gubun          = { "공정명" };
            ProductService          pService       = new ProductService();
            List <ComboItemVO>      allProcessItem = pService.GetProcessInfoByCodeTypes(gubun);
            List <ProdCBOBindingVO> allProItem     = pService.GetProductInfo();
            MachineService          mService       = new MachineService();
            List <MachineVO>        allMachineItem = mService.GetMachineInfo();



            CommonUtil.ComboBinding(cboProcess, allProcessItem, "공정명");
            CommonUtil.ProdNameBinding(cboProduct, allProItem);
            CommonUtil.MachineNameBinding(cboMachine, allMachineItem);

            CommonUtil.SetInitGridView(dgvBOR);
            CommonUtil.AddGridTextColumn(dgvBOR, "BOR_ID", "bor_id", 60);
            CommonUtil.AddGridTextColumn(dgvBOR, "품목ID", "product_id", 150);
            CommonUtil.AddGridTextColumn(dgvBOR, "품목명", "product_name", 150);
            CommonUtil.AddGridTextColumn(dgvBOR, "공정명", "process_name", 150);
            CommonUtil.AddGridTextColumn(dgvBOR, "설비ID", "m_id", 150);
            CommonUtil.AddGridTextColumn(dgvBOR, "설비명", "m_name", 150);
            CommonUtil.AddGridTextColumn(dgvBOR, "Tact_Time", "bor_tacttime", 150);
            CommonUtil.AddGridTextColumn(dgvBOR, "사용유무", "bor_yn", 60);
            CommonUtil.AddGridTextColumn(dgvBOR, "비고", "bor_comment", 200);
            CommonUtil.AddGridTextColumn(dgvBOR, "수정자", "bor_uadmin", 120);
            CommonUtil.AddGridTextColumn(dgvBOR, "수정일", "bor_udate", 120);

            DGV_Binding();
        }
Exemple #2
0
        private void comboBinding()
        {
            string[]                gubun          = { "공정명" };
            ProductService          pService       = new ProductService();
            List <ComboItemVO>      allProcessItem = pService.GetProcessInfoByCodeTypes(gubun);
            List <ProdCBOBindingVO> allProItem     = pService.GetProductInfo();
            MachineService          mService       = new MachineService();
            List <MachineVO>        allMachineItem = mService.GetMachineInfo();

            CommonUtil.ComboBinding(cboProcessName, allProcessItem, "공정명");
            CommonUtil.ProdNameBinding(cboProductName, allProItem);
            CommonUtil.MachineNameBinding(cboMachine, allMachineItem);
        }
Exemple #3
0
        /// <summary>
        /// 컬럼 헤더 텍스트 바인딩, 데이터 조회
        /// 콤보박스에 설비명 바인딩
        /// 작성자: 최현호 / 작성일: 210210
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frmMachine_Load(object sender, EventArgs e)
        {
            try
            {
                CommonUtil.SetInitGridView(dgvMachine);
                CommonUtil.AddGridTextColumn(dgvMachine, "설비번호", "m_id", 80);
                CommonUtil.AddGridTextColumn(dgvMachine, "설비정보", "m_info", 250);
                CommonUtil.AddGridTextColumn(dgvMachine, "설비명", "m_name", 200);
                CommonUtil.AddGridTextColumn(dgvMachine, "사용여부", "m_yn", 80);
                CommonUtil.AddGridTextColumn(dgvMachine, "비고", "m_comment", 500);
                CommonUtil.AddGridTextColumn(dgvMachine, "수정자", "m_uadmin", 120);
                CommonUtil.AddGridTextColumn(dgvMachine, "수정일", "m_udate", 150);
                DGVBinding();

                List <MachineVO> allMachineItem = service.GetMachineInfo();
                CommonUtil.MachineNameBinding(cbMachine, allMachineItem);
            }
            catch (Exception err)
            {
                MessageBox.Show(err.Message);
            }
        }