Example #1
0
 private void RefreshClicked()
 {
     try
     {
         list = service.GetInfo("Employee");
         dgvEmpList.DataSource  = null;
         dgvAuthList.DataSource = null;
         if (!isFirst)
         {
             dgvEmpList.DataSource = list;
         }
         ClearDgv();
         isFirst = false;
     }
     catch (Exception err)
     {
         Log.WriteError(err.Message, err);
     }
     ClearSearchOption();
     frm.NoticeMessage = Resources.RefreshDone;
 }
Example #2
0
        private void SettingData()
        {
            switch (Mode.ToString())
            {
            case "Employee":
                SettingForm("사원", 100, 160);
                break;

            case "DepOperation":
                SettingForm("운영기획부사원", 160, 160);
                break;

            case "DepMaterial":
                SettingForm("자재부사원", 160, 160);
                break;

            case "DepProd1":
                SettingForm("생산1부사원", 160, 160);
                break;

            case "DepProd2":
                SettingForm("생산2부사원", 160, 160);
                break;

            case "DepSales":
                SettingForm("영업부사원", 160, 160);
                break;

            case "Defective":
                SettingForm("불량유형", 130, 160);
                break;

            case "Product":
                SettingForm("제품", 100, 300);
                break;

            case "Meterial":
                SettingForm("원자재", 100, 300);
                break;

            case "SemiProduct":
                SettingForm("반제품", 100, 300);
                break;

            case "Downtime":
                SettingForm("비가동유형", 160, 160);
                break;

            case "Factory":
                SettingForm("공장", 100, 160);
                break;

            case "Line":
                SettingForm("공정", 100, 160);
                break;

            case "Customer":
                SettingForm("고객", 100, 160);
                break;

            case "Department":
                SettingForm("부서", 100, 160);
                break;

            case "Warehouse":
                SettingForm("창고", 100, 160);
                break;

            case "Company":
                SettingForm("거래처", 100, 160);
                break;

            case "ProductCategory":
                SettingForm("제품카테고리", 150, 160);
                break;

            case "Worker":
                SettingForm("작업자", 100, 160);
                break;

            case "Handle":
                SettingForm("불량처리유형", 150, 160);
                break;

            case "AllProduct":
                SettingForm("품목", 100, 160);
                break;

            case "WorkListWorker":
                SettingForm("작업지시자", 130, 160);
                break;

            case "DowntimeWorker":
                SettingForm("작업자", 100, 160);
                break;

            case "DefectiveWorker":
                SettingForm("작업자", 100, 160);
                break;

            case "InOutWorker":
                SettingForm("등록사원", 110, 160);
                break;

            case "semiInOutWokrer":
                SettingForm("등록사원", 110, 160);
                break;

            case "baljureqWorker":
                SettingForm("요청등록사원", 150, 160);
                break;

            case "baljuacceptWorker":
                SettingForm("수령사원", 110, 160);
                break;
            }

            txtSearch.PlaceHolderText = string.Concat(this.Text, " ", "키워드 입력");
            // Mode값에 따라 그리드뷰 컬럼명 및 검색 결과
            UtilClass.SettingDgv(dgvSearch);
            UtilClass.AddNewColum(dgvSearch, col1, "ID", true, width1);
            UtilClass.AddNewColum(dgvSearch, col2, "Name", true, width2);
            try
            {
                SearchService service = new SearchService();
                list = service.GetInfo(Mode.ToString());
                dgvSearch.DataSource = list;
            }
            catch (Exception err)
            {
                Log.WriteError(err.Message, err);
            }
        }