Esempio n. 1
0
        private void FactoryPopupForm_Load(object sender, EventArgs e)
        {
            cboName.ComboBinding(service.ComboGet(), "corporation_id", "corporation_name", "-------------------------------", 0);

            if (IsUpdate == false)
            {
                rdoFactory_useY.Checked = true;
            }

            else if (IsUpdate == true)
            {
                if (vo.factory_use == "Y")
                {
                    rdoFactory_useY.Checked = true;
                    rdoFactory_useN.Checked = false;
                }

                else
                {
                    rdoFactory_useY.Checked = false;
                    rdoFactory_useN.Checked = true;
                }

                cboName.SelectedIndex = cboName.FindString(vo.corporation_name);
                txtName.Text          = vo.factory_name;
                nudFactory_seq.Value  = vo.factory_seq;
                txtNote1.Text         = vo.factory_note1;
                txtNote2.Text         = vo.factory_note2;
            }
        }
Esempio n. 2
0
        private void FactoryForm_Load(object sender, EventArgs e)
        {
            DataGridViewContentAlignment RightAlign = DataGridViewContentAlignment.MiddleRight;

            dgvFactorylist.IsAllCheckColumnHeader = true;

            dgvFactorylist.AddNewColumns("법인명", "corporation_name", 100, true);
            dgvFactorylist.AddNewColumns("공장코드", "factory_id", 100, true, true, false, RightAlign);
            dgvFactorylist.AddNewColumns("공장명", "factory_name", 100, true);
            dgvFactorylist.AddNewColumns("공장순번", "factory_seq", 100, true, true, false, RightAlign);
            dgvFactorylist.AddNewColumns("공장비고1", "factory_note1", 100, true);
            dgvFactorylist.AddNewColumns("공장비고2", "factory_note2", 100, true);
            dgvFactorylist.AddNewBtnCol("사용여부", "", new Padding(1, 1, 1, 1), false); // 7 버튼
            dgvFactorylist.AddNewColumns("사용여부", "factory_use", 100, true);          // 명
            dgvFactorylist.AddNewColumns("최초등록시각", "first_regist_time", 100, true);
            dgvFactorylist.AddNewColumns("최초등록사원", "first_regist_employee", 100, true);
            dgvFactorylist.AddNewColumns("최종등록시각", "final_regist_time", 100, true);
            dgvFactorylist.AddNewColumns("최종등록사원", "final_regist_employee", 100, true);

            LoadData();

            cboCorporationName.ComboBinding(service.ComboGet(), "corporation_id", "corporation_name", "전체", 0);
            emp = this.GetEmployee();
        }