public void clear() { TxtUOM.Text = ""; TxtSequence.Text = ""; hdnPrdUOMID.Value = null; TxtUOM.Focus(); rbtnYes.Checked = true; rbtnNo.Checked = false; }
public string checkDuplicate() { try { CustomProfile profile = CustomProfile.GetProfile(); string result = ""; if (hdnPrdUOMID.Value == string.Empty) { result = ProductUOMClient.checkDuplicateRecord(TxtUOM.Text.Trim(), profile.DBConnection._constr); if (result != string.Empty) { WebMsgBox.MsgBox.Show(result); TxtUOM.Text = ""; } TxtUOM.Focus(); } else { result = ProductUOMClient.checkDuplicateRecordEdit(TxtUOM.Text.Trim(), Convert.ToInt32(hdnPrdUOMID.Value), profile.DBConnection._constr); if (result != string.Empty) { WebMsgBox.MsgBox.Show(result); TxtUOM.Text = ""; } } return(result); } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, this, "Product UOM Master", "checkDuplicate"); string result = ""; return(result); } finally { } }
protected void pageAddNew(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e) { clear(); TxtUOM.Focus(); }