void m_txt_barcode_Leave(object sender, EventArgs e) { try { if (string.IsNullOrEmpty(m_txt_barcode.Text)) { return; } if (!ControlUtility.ValidateControlEmpty(m_le_kho)) { XtraMessageBox.Show("Chọn kho trước", "THÔNG BÁO", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } if (is_xuat_kho(m_txt_barcode.Text)) { XtraMessageBox.Show("Barcode này không có trong kho hoặc đã xuất", "THÔNG BÁO", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } fill_data_suggest(m_txt_barcode.Text); } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
void MainForm_Load(object sender, EventArgs e) { try { } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
void m_txt_barcode_EditValueChanged(object sender, EventArgs e) { try { } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
void m_cmd_in_bao_hanh_Click(object sender, EventArgs e) { try { } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
void m_cmd_danh_sach_phieu_Click(object sender, EventArgs e) { try { } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
void f300_phieu_bao_hanh_sp_Load(object sender, EventArgs e) { try { set_initial_form_load(); } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
void m_cmd_insert_Click(object sender, EventArgs e) { try { add_item(); } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
void m_cmd_lap_phieu_Click(object sender, EventArgs e) { try { lap_phieu(); } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
void f100_phieu_nhap_kho_Load(object sender, EventArgs e) { try { set_initial_form_load(); } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
void m_cmd_dang_nhap_Click(object sender, EventArgs e) { try { Hide(); MainForm main_form = new MainForm(); main_form.ShowDialog(); main_form.Dispose(); } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
private void f200_danh_muc_kho_Load(object sender, EventArgs e) { try { // TODO: This line of code loads data into the 'iVT_Ver01DataSet1.V_DM_KHO' table. You can move, or remove it, as needed. this.v_DM_KHOTableAdapter.Fill(this.iVT_Ver01DataSet1.V_DM_KHO); // TODO: This line of code loads data into the 'iVT_Ver01DataSet.DM_KHO' table. You can move, or remove it, as needed. //this.dM_KHOTableAdapter.Fill(this.iVT_Ver01DataSet.DM_KHO); } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
void f100_phieu_nhap_kho_KeyDown(object sender, KeyEventArgs e) { try { if (e.KeyCode == Keys.F1) { add_item(); } } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
void m_cmd_delete_Click(object sender, EventArgs e) { try { var item = (BO_HANG)m_grv_ds_hang.GetRow(m_grv_ds_hang.FocusedRowHandle); m_lst_hang.Remove(item); fill_data_to_grid_hang(); } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
void m_dat_tu_ngay_bh_EditValueChanged(object sender, EventArgs e) { try { if (string.IsNullOrEmpty(m_txt_barcode.Text)) { return; } m_dat_den_ngay_bh.DateTime = m_dat_tu_ngay_bh.DateTime.AddMonths((int)m_txt_thoi_gian_bao_hanh.EditValue); } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
void m_txt_barcode_Leave(object sender, EventArgs e) { try { if (string.IsNullOrEmpty(m_txt_barcode.Text)) { return; } fill_data_suggest(m_txt_barcode.Text); } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
void m_cmd_lap_phieu_Click(object sender, EventArgs e) { try { if (!ControlUtility.ValidateControlEmpty(m_txt_so_phieu, m_dat_ngay_chung_tu, m_sle_nhan_vien, m_sle_chuyen_toi_kho, m_sle_chuyen_tu_kho, m_txt_barcode)) { XtraMessageBox.Show("Hoàn thiện dữ liệu trước", "THÔNG BÁO", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } lap_phieu(); } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
void m_cmd_phieu_nhan_bao_hanh_ItemClick(object sender, ItemClickEventArgs e) { try { f300_phieu_bao_hanh_sp v_frm = new f300_phieu_bao_hanh_sp(); if (IsExistFormName(v_frm)) { return; } v_frm.MdiParent = this; v_frm.Show(); } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
void m_cmd_chuyen_kho_ItemClick(object sender, ItemClickEventArgs e) { try { f400_phieu_chuyen_kho v_frm = new f400_phieu_chuyen_kho(); if (IsExistFormName(v_frm)) { return; } v_frm.MdiParent = this; v_frm.Show(); } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
void m_cmd_mat_hang_ItemClick(object sender, ItemClickEventArgs e) { try { f203_danh_muc_mat_hang v_frm = new f203_danh_muc_mat_hang(); if (IsExistFormName(v_frm)) { return; } v_frm.MdiParent = this; v_frm.Show(); } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }
void m_sle_mat_hang_EditValueChanged(object sender, EventArgs e) { try { if (m_sle_mat_hang.EditValue == null) { return; } var id_mat_hang = (long)m_sle_mat_hang.EditValue; if (id_mat_hang <= 0) { return; } var obj = (DM_MAT_HANG)m_sle_mat_hang.Properties.View.GetRow(m_sle_mat_hang.Properties.GetIndexByKeyValue(id_mat_hang)); fill_data_suggest(obj); m_txt_barcode.Focus(); } catch (Exception v_e) { ExceptionHandle.Show(v_e); } }