Exemplo n.º 1
0
 public void clear()
 {
     TxtUOM.Text       = "";
     TxtSequence.Text  = "";
     hdnPrdUOMID.Value = null;
     TxtUOM.Focus();
     rbtnYes.Checked = true;
     rbtnNo.Checked  = false;
 }
Exemplo n.º 2
0
        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
            {
            }
        }
Exemplo n.º 3
0
 protected void pageAddNew(Object sender, BrilliantWMS.ToolbarService.iUCToolbarClient e)
 {
     clear();
     TxtUOM.Focus();
 }