private void LoadTextNull() { try { TEN_BLTextEdit.EditValue = String.Empty; MUC_LUONGTextEdit.EditValue = 0; PC_DHTextEdit.EditValue = 0; THUONG_TCTextEdit.EditValue = 0; THUONG_CV_CCTextEdit.EditValue = 0; PC_SINH_HOATTextEdit.EditValue = 0; PC_KY_NANGTextEdit.EditValue = 0; TEN_BLTextEdit.Focus(); } catch { } }
private bool bKiemTrung() { try { DataTable dtTmp = new DataTable(); Int16 iKiem = 0; iKiem = Convert.ToInt16(SqlHelper.ExecuteScalar(Commons.IConnections.CNStr, "spCheckData", "ID_BL", (AddEdit ? "-1" : Id.ToString()), "BAC_LUONG", "ID_NL", ID_NLSearchLookUpEdit.EditValue.ToString(), "TEN_BL", TEN_BLTextEdit.EditValue.ToString(), "ID_DV", ID_DVSearchLookUpEdit.EditValue.ToString())); if (iKiem > 0) { XtraMessageBox.Show(Commons.Modules.ObjLanguages.GetLanguage(this.Name, "msgMS_BACLUONGNayDaTonTai")); TEN_BLTextEdit.Focus(); return(true); } } catch (Exception ex) { XtraMessageBox.Show(ex.Message.ToString()); return(true); } return(false); }