private void aTextBox_FindNameByCode1_DotDotDotFormClosing(object sender, CustomControls.SearchFormClosingArgs args) //작업장별 조회 { guhoList = (from date in guho where date.Wc_Name == aTextBox_FindNameByCode1.txtNameText select date).ToList(); dgvMainGrid.DataSource = guhoList; }
private void aTextBox_FindNameByCode2_DotDotDotFormClosing(object sender, CustomControls.SearchFormClosingArgs args) //작업장별 { nohmList = (from date in nohm where date.Wc_Code == aTextBox_FindNameByCode2.txtCodeText select date).ToList(); dgvMainGrid.DataSource = nohmList; }
/// <summary> /// 조건 검색 /// </summary> /// <param name="sender"></param> /// <param name="args"></param> private void ATextBox_FindNameByCode1_DotDotDotFormClosing(object sender, CustomControls.SearchFormClosingArgs args) { string iName = dotItem.txtNameText; string wName = dotWorkCenter.txtNameText; if (iName.Length > 0 && wName.Length <= 0) { moldSearchList = (from name in molditemList where name.Item_Name.Contains(iName) select name).ToList(); } else if (wName.Length > 0 && iName.Length <= 0) { moldSearchList = (from name in molditemList where name.Wc_Name.Contains(wName) select name).ToList(); } else if (wName.Length > 0 && iName.Length > 0) { moldSearchList = (from name in molditemList where name.Item_Name.Contains(iName) || name.Wc_Name.Contains(wName) select name).ToList(); dotItem.txtNameText = ""; dotWorkCenter.txtNameText = ""; } DataLoad(moldSearchList); }
private void aTextBox_FindNameByCode1_DotDotDotFormClosing(object sender, CustomControls.SearchFormClosingArgs args) { whcuList = (from date in whcu where date.User_Name == aTextBox_FindNameByCode1.txtNameText select date).ToList(); dgvMainGrid.DataSource = whcuList; }
private void ATextBox_FindNameByCode1_DotDotDotFormClosing(object sender, CustomControls.SearchFormClosingArgs args) { string pcode = dotProcess.txtCodeText; string wName = dotWorkCenter.txtNameText; if (wName.Length > 0 && pcode.Length <= 0) { woSearchList = (from list in woList where list.Wc_Name.Contains(wName) select list).ToList(); } else if (pcode.Length > 0 && wName.Length <= 0) { woSearchList = (from list in woList where list.Process_Code.Contains(pcode) select list).ToList(); } else if (wName.Length > 0 && pcode.Length > 0) { woSearchList = (from list in woSearchList where list.Wc_Name.Contains(wName) && list.Process_Code.Contains(pcode) select list).ToList(); dotProcess.txtCodeText = ""; dotProcess.txtNameText = ""; dotWorkCenter.txtCodeText = ""; dotWorkCenter.txtNameText = ""; } dgvMainGrid.DataSource = woSearchList; }
private void aTextBox_FindNameByCode1_DotDotDotFormClosing(object sender, CustomControls.SearchFormClosingArgs args) { ighList = (from date in igh where date.Item_Code == aTextBox_FindNameByCode1.txtCodeText select date).ToList(); dgvMainGrid.DataSource = ighList; }
private void aTextBox_FindNameByCode1_DotDotDotFormClosing(object sender, CustomControls.SearchFormClosingArgs args) //공정별 검색 { reqdateList = (from date in wowc where date.Process_name == aTextBox_FindNameByCode1.txtNameText select date).ToList(); dgvMainGrid.DataSource = reqdateList; aTextBox_FindNameByCode2.txtCodeText = ""; aTextBox_FindNameByCode2.txtNameText = ""; }
private void aTextBox_FindNameByCode1_DotDotDotFormClosing(object sender, CustomControls.SearchFormClosingArgs args) // 공정별 조회 { if (aTextBox_FindNameByCode2.txtCodeText == "") { lhmList = (from date in lhm where date.Process_name == aTextBox_FindNameByCode1.txtNameText select date).ToList(); dgvMainGrid.DataSource = lhmList; } else { lhmList = (from date in lhm where date.Process_name == aTextBox_FindNameByCode1.txtNameText && date.Wc_Name == aTextBox_FindNameByCode2.txtNameText select date).ToList(); dgvMainGrid.DataSource = lhmList; } }
private void aTextBox_FindNameByCode2_DotDotDotFormClosing(object sender, CustomControls.SearchFormClosingArgs args) //품목별 { if (aTextBox_FindNameByCode1.txtCodeText == "") { gvwiList = (from date in gvwi where date.Item_Code == aTextBox_FindNameByCode2.txtCodeText select date).ToList(); dgvMainGrid.DataSource = gvwiList; } else if (aTextBox_FindNameByCode2.txtCodeText != "" && aTextBox_FindNameByCode1.txtCodeText != "") { gvwiList = (from date in gvwi where date.GV_Group == aTextBox_FindNameByCode1.txtNameText && date.Item_Code == aTextBox_FindNameByCode2.txtCodeText select date).ToList(); dgvMainGrid.DataSource = gvwiList; } }
private void aTextBox_FindNameByCode2_DotDotDotFormClosing(object sender, CustomControls.SearchFormClosingArgs args) // 작업장별 검색 { if (aTextBox_FindNameByCode1.txtCodeText == "") { reqdateList = (from date in wowc where date.Wc_Name == aTextBox_FindNameByCode2.txtNameText select date).ToList(); dgvMainGrid.DataSource = reqdateList; } else { var reqdateList1 = (from date in reqdateList where date.Wc_Name == aTextBox_FindNameByCode2.txtNameText select date).ToList(); dgvMainGrid.DataSource = reqdateList1; } }