Пример #1
0
 private void AdjustInvRbnBtn_Click(object sender, EventArgs e)
 {
     if (PrivilegesManager.GetEventStatues(Calcium_RMS.Events.AdjustItems) == EventStatus.Permit)
     {
         AdjustItemsFrm aAdjustItemsFrm = new AdjustItemsFrm();
         __AddTabPage(aAdjustItemsFrm, __InventoryColor);
     }
     else
     {
         MessageBox.Show(MsgTxt.PrivUserNotAllowedTxt, MsgTxt.InformationCaption, MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Пример #2
0
        private void ListAdjustDgView_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            try
            {
                if (SEMAPHORE)
                {
                    return;
                }
                int refNum = int.Parse(RefNumberTxtBox.Text);

                AdjustItemsFrm aEditAdjustFrm = new AdjustItemsFrm();
                aEditAdjustFrm.SetActiveMode(AdjustItemsFrm.AdjustItemsFrmModes.EDIT_MODE);
                aEditAdjustFrm.InitializeWithGeneralNumber(refNum);
                aEditAdjustFrm.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }