private void LoadingSettingBOM() { settingBOMs = new List <SettingBOM>(); loadData = new LoadDataPlanning(); settingBOMs = loadData.LoadingSettingBOMs(); dtgv_SettingBom.DataSource = settingBOMs; }
private void Btn_Update_Click(object sender, EventArgs e) { if (txt_productNo.Text != "") { try { int intQtyPacking = (int)nmr_QtyPackage.Value; int intQtyTool = (int)nmr_toolpcs.Value; loadData.UpdateToDatabase(txt_productNo.Text.Trim(), intQtyPacking, intQtyTool); settingBOMs = loadData.LoadingSettingBOMs(); dtgv_SettingBom.DataSource = settingBOMs; } catch (Exception) { throw; } } }
private void LoadingSettingBOM() { settingBOMs = new List <SettingBOM>(); loadData = new LoadDataPlanning(); settingBOMs = loadData.LoadingSettingBOMs(); dtgv_SettingBom.DataSource = settingBOMs; SettingHeaderDataGridViewBom(); SettingDatagridview(ref dtgv_SettingBom); }